Re: [PHP] Call to undefined function

2011-06-23 Thread Shiplu Mokaddim


Sent from a handheld device

On 24-Jun-2011, at 5:53 AM, ad...@buskirkgraphics.com wrote:

 I am running a scheduled task for the first time since switching from linux
 to Windows IIS 
 
 I am getting an error when the task runs.
 
 Fatal error: Call to undefined function mysql_connect()
 
 
 I ran php.exe -m to see that the MySQL Module is loaded.
 
 I have no issues unless I am running a php file in the Scheduled task.
 
 
 
 Any help would be appreciated
 

Richard,
Create a sample scheduled task with a sample.php file. In that file call 
phpinfo() and save that content. After finishing the task find the 
configuration file (php.ini) location in your saved content. Just make sure 
mysql is  activated there.
Good luck
 
 
 
 
 Richard L. Buskirk
 


RE: [PHP] Call to undefined function

2011-06-23 Thread admin
Okay,
I am just start apologizing for my own ignorance.
In the task scheduler I told the php.exe to use a older configuration file.
TOTALLY my fault, seems PHP.ini file I used for the web was not the one I
pointed the task manager at.

Resolved and I will crawl back under my rock and read more about the proper
Arguments for task manager next time before I post.

Thanks Shiplu, and Negin for all your help.

Richard L. Buskirk


-Original Message-
From: Shiplu Mokaddim [mailto:muquad...@gmail.com] 
Sent: Thursday, June 23, 2011 9:42 PM
To: ad...@buskirkgraphics.com
Cc: php-general@lists.php.net
Subject: Re: [PHP] Call to undefined function



Sent from a handheld device

On 24-Jun-2011, at 5:53 AM, ad...@buskirkgraphics.com wrote:

 I am running a scheduled task for the first time since switching from
linux
 to Windows IIS 
 
 I am getting an error when the task runs.
 
 Fatal error: Call to undefined function mysql_connect()
 
 
 I ran php.exe -m to see that the MySQL Module is loaded.
 
 I have no issues unless I am running a php file in the Scheduled task.
 
 
 
 Any help would be appreciated
 

Richard,
Create a sample scheduled task with a sample.php file. In that file call
phpinfo() and save that content. After finishing the task find the
configuration file (php.ini) location in your saved content. Just make sure
mysql is  activated there.
Good luck
 
 
 
 
 Richard L. Buskirk
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] call to undefined function which is defined

2007-06-11 Thread Jim Lucas

Bing Du wrote:

Hi,

RHEL 4
PHP 4.3.9
Apache 2.0.52

Without knowing much about the web application we use, can anybody tell me
what kind of situation could trigger the following 'call to undefined
function' error?

PHP Fatal error:  Call to undefined function:  encryptchar
code() in /data/www/html/typo3_src/typo3/sysext/cms/tslib/class.tslib_fe.p
hp on line 3439

Line 3439 is:

$out .= $this-encryptCharcode($charValue,0x61,0x7A,$offset);

Here is the function block that has line 3439.

function encryptEmail($string,$back=0)  {
$out = '';

if ($this-spamProtectEmailAddresses === 'ascii') {
for ($a=0; $astrlen($string); $a++) {
$out .= '#'.ord(substr($string, $a, 1)).';';
}
} else  {
// like str_rot13() but with a variable
offset and a wider character range
$len = strlen($string);
$offset =
intval($this-spamProtectEmailAddresses)*($back?-1:1);
for ($i=0; $i$len; $i++)   {
$charValue = ord($string{$i});
if ($charValue = 0x2B  $charValue =
0x3A)   {   // 0-9 . , - + / :
$out .=
$this-encryptCharcode($charValue,0x2B,0x3A,$offset);
} elseif ($charValue = 0x40  $charValue
= 0x5A) {   // A-Z @
$out .=
$this-encryptCharcode($charValue,0x40,0x5A,$offset);
} else if ($charValue = 0x61 
$charValue = 0x7A){   // a-z
$out .=
$this-encryptCharcode($charValue,0x61,0x7A,$offset);
} else {
$out .= $string{$i};
}
}
}
return $out;
}

And the encryptCharcode() function the fatal error complained about is
defined right before encrytEmail().

==
 function encryptCharcode($n,$start,$end,$offset){
$n = $n + $offset;
if ($offset  0  $n  $end)   {
$n = $start + ($n - $end - 1);
} else if ($offset  0  $n  $start)  {
$n = $end - ($start - $n - 1);
}
return chr($n);
}
==

I don't understand why the error is about a function that's defined fine??

Thanks in advance for any help,

Bing

you are calling it as a method to an object.  Is it actually defined within that object or a parent 
object??


--
Jim Lucas

   Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them.

Twelfth Night, Act II, Scene V
by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
Try using mysqli, instead of mysql.

Have you tried Joomla! support channels?

Paul Hickey wrote:
 Can someone help me overcome this recurring problem? I am using the
 Joomla content management system and I keep coming across the following
 errors.  
 
 Fatal error: Call to undefined function mysql_real_escape_string()
 in /usr/local/apache2/htdocs/common.php on line 24
 
 Fatal error: Call to undefined function mysql_real_escape_string()
 in /usr/local/apache2/htdocs/class.inputfilter.php on line 344
 
 I notice in my Dynamic Extensions section of php.ini there are no
 extensions called for; if that helps. Joomla works fine, but when adding
 components or modules the problems start. One component author made a
 test for the mysql_real_escape_string and I think avoided using it then
 the component worked. I think that's probably not the best solution. 
 
 Fedora Core 3
 
 Apache 2.0.55
 
 PHP 5.0.5 (compiled with mysqli vice mysql)
 './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-ftp'
 '--enable-inline-optimization' '--enable-magic-quotes' '--enable-
 mbstring' '--enable-track-vars' '--enable-trans-sid' '--enable-
 wddx=shared' '--enable-xml' '--with-dom' '--with-gd' '--with-gettext'
 '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-regex=system'
 '--with-xml' '--with-zlib-dir=/usr/lib'
 
 MySQL 4.1.15
 
 
 TIA,
 
 
 Paul Hickey
 Christian Patriot 
 Palm Bay Fl
 


-- 
David Grant
http://www.grant.org.uk/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread Paul Hickey
I have PHP compiled with mysqli.

The standard answer from the Joomla forums is that I need to have
mysql vice mysqli. I was looking for a more global solution than
having to modify the code for every component, module, mambot I want to
use.

I don't understand why I'm getting undefined function errors. 

PHP.ini has no reference to mysqli. I don't know if changing this would
enable the functions specific to PHP  4.x.

Paul Hickey
Christian Patriot 
Palm Bay Fl

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
Is there no way to specify the database functions in Joomla?

You're getting undefined function because you haven't compiled it with
mysql, but mysqli instead, which means the functions you need are
prefixed with mysqli instead of mysql.

Paul Hickey wrote:
 I have PHP compiled with mysqli.
 
 The standard answer from the Joomla forums is that I need to have
 mysql vice mysqli. I was looking for a more global solution than
 having to modify the code for every component, module, mambot I want to
 use.
 
 I don't understand why I'm getting undefined function errors. 
 
 PHP.ini has no reference to mysqli. I don't know if changing this would
 enable the functions specific to PHP  4.x.
 
 Paul Hickey
 Christian Patriot 
 Palm Bay Fl
 


-- 
David Grant
http://www.grant.org.uk/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread John Nichel

Paul Hickey wrote:

Can someone help me overcome this recurring problem? I am using the
Joomla content management system and I keep coming across the following
errors.  


Fatal error: Call to undefined function mysql_real_escape_string()
in /usr/local/apache2/htdocs/common.php on line 24

Fatal error: Call to undefined function mysql_real_escape_string()
in /usr/local/apache2/htdocs/class.inputfilter.php on line 344

I notice in my Dynamic Extensions section of php.ini there are no
extensions called for; if that helps. Joomla works fine, but when adding
components or modules the problems start. One component author made a
test for the mysql_real_escape_string and I think avoided using it then
the component worked. I think that's probably not the best solution. 


Fedora Core 3

Apache 2.0.55

PHP 5.0.5 (compiled with mysqli vice mysql)
'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-ftp'
'--enable-inline-optimization' '--enable-magic-quotes' '--enable-
mbstring' '--enable-track-vars' '--enable-trans-sid' '--enable-
wddx=shared' '--enable-xml' '--with-dom' '--with-gd' '--with-gettext'
'--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-regex=system'
'--with-xml' '--with-zlib-dir=/usr/lib'

MySQL 4.1.15


I'm pretty sure this was answered yesterday...oh yeah, it was.  ;)

http://marc.theaimsgroup.com/?l=php-generalm=113397347124908w=2

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread John Nichel

Paul Hickey wrote:

I have PHP compiled with mysqli.

The standard answer from the Joomla forums is that I need to have
mysql vice mysqli. I was looking for a more global solution than
having to modify the code for every component, module, mambot I want to
use.

I don't understand why I'm getting undefined function errors. 


PHP.ini has no reference to mysqli. I don't know if changing this would
enable the functions specific to PHP  4.x.


In your configuration line (how php was configured then compiled), you 
have...


--with-mysqli=/usr/local/mysql/bin/mysql_config

That is why you are getting undefined function errors.  Your version of 
php is using mysqli, not mysql.  You have two options: a) Recompile php 
or b) Change all mysql_* functions to their counterparts in mysqli_*



--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread David Grant
Hi John,

John Nichel wrote:
 Paul Hickey wrote:
 I don't understand why I'm getting undefined function errors.
 PHP.ini has no reference to mysqli. I don't know if changing this would
 enable the functions specific to PHP  4.x.
 
 In your configuration line (how php was configured then compiled), you
 have...
 
 --with-mysqli=/usr/local/mysql/bin/mysql_config
 
 That is why you are getting undefined function errors.  Your version of
 php is using mysqli, not mysql.  You have two options: a) Recompile php
 or b) Change all mysql_* functions to their counterparts in mysqli_*


Hmm, that's how I *should* have put it. :)

Cheers,

David
-- 
David Grant
http://www.grant.org.uk/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function mysql_real_escape_string()]

2005-12-08 Thread Curt Zirzow
On Thu, Dec 08, 2005 at 08:32:56AM -0500, Paul Hickey wrote:
 I have PHP compiled with mysqli.
 
 The standard answer from the Joomla forums is that I need to have
 mysql vice mysqli. I was looking for a more global solution than
 having to modify the code for every component, module, mambot I want to
 use.

Well there is a rather global solution, but will require some work.
You would have to create a wrapper for all mysql* calls to use
mysqli, so for example:

?php
if( !function_exists('mysql_connect') 
function_exists('mysqli_real_connect') ) {

  function mysql_connect($server, $username, $password) {
gobal $_mysql_mysqli_dbh_;
$_mysql_mysqli_dbh_ = mysqli_init();

return mysqli_real_connect($_mysql_mysqli_dbh_, $server, $username, 
$password);
  }

  function mysql_real_escape_string($string, $dbh=false) {

if($dbh === $false) {
  gobal $_mysql_mysqli_dbh_;
  $dbh = $_mysql_mysqli_dbh_;
}

return mysqli_real_escape_string($dbh, $string);
  }
  // any other interface needed.

}
?


I've been meaning to write something like this for the
Pear::PHP_Compat tool, it could help upgrading all your scripts to
mysqli interface, not to mention upgrading to php5.1


Curt.
-- 
cat .signature: No such file or directory

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function mysql_real_escape_string()

2005-12-07 Thread John Nichel

Paul Hickey wrote:
Can someone help me overcome this recurring problem? I am using the 
Joomla content management system and I keep coming across the following 
errors. 

Fatal error: Call to undefined function mysql_real_escape_string() in 
/usr/local/apache2/htdocs/common.php on line 24


Fatal error: Call to undefined function mysql_real_escape_string() in 
/usr/local/apache2/htdocs/class.inputfilter.php on line 344


I notice in my Dynamic Extensions section of php.ini there are no 
extensions called for; if that helps. Joomla works fine, but when adding 
components or modules the problems start. One component author made a 
test for the mysql_real_escape_string and I think avoided using it then 
the component worked. I think that's probably not the best solution.


Fedora Core 3

Apache 2.0.55

PHP 5.0.5 (compiled with mysqli vice mysql)
'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-ftp' 
'--enable-inline-optimization' '--enable-magic-quotes' 
'--enable-mbstring' '--enable-track-vars' '--enable-trans-sid' 
'--enable-wddx=shared' '--enable-xml' '--with-dom' '--with-gd' 
'--with-gettext' '--with-mysqli=/usr/local/mysql/bin/mysql_config' 
'--with-regex=system' '--with-xml' '--with-zlib-dir=/usr/lib'


MySQL 4.1.15


mysql_real_escape_string() is a MySQL function, and you're server is 
compiled with the 'improved' MySQL functions.  You want 
mysqli_real_escape_string()


http://us3.php.net/manual/en/function.mysqli-real-escape-string.php

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function ora_logon()

2005-07-05 Thread Richard Lynch
On Tue, July 5, 2005 6:14 am, Chuck Carson said:
 I saw a document that said to build with --with-oci8 AND
 --with-oracle, however --with-oracle doesn't work with 10g. (it
 complains about not finding the correct libraries)

Where are your Oracle 10g headers and libraries?

What did you pass in to --with-oracle?

Dig through the Makefile[s] and see where --with-oracle kicks in and looks
for them.

If your files aren't where it thinks they should be, make symlinks so that
it looks like they are there.

 Any ideas? Does php 5.0.4 work with Oracle 10.1.0.3?

I have NO IDEA that it will work for sure.

I'm only diagnosing the same as I'd diagnose --with-rover complaining it
can't find the libraries.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 18:07, michael watson (IAH-C) wrote:

 So, my question is, having not compiled php with that switch in the
 first place, how can I get the functionality I need into PHP without
 breaking everything else?

In general, you can recompile PHP to your hearts content without breaking 
either Apache or MySQL. For best results untar a fresh copy of the source 
each time you 'recompile'. Stop apache before you run 'make install'.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Today's scientific question is: What in the world is electricity?

And where does it go after it leaves the toaster?
-- Dave Barry, What is Electricity?
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
Hi Jason

Thanks for your response - I did just as you suggested, and here is the
result:

On my test server I installed php 4.3.8 (with --with-gettext)
On my production server, the old version of php (4.3.3 without
--with-gettext) exists
On the test server, if I execute /usr/local/bin/php login.php, I get
some nice HTML
On the production server, if I exceute /usr/local/bin/php login.php, I
get the Call to undefined function error.
So this would suggest that I have cleared up the problem on my test
server, right?

Wrong.

Test.php (which merely executes ? Phpinfo(); ? seems to think I still
have PHP version 4.3.3, vene though the output of /usr/local/bin/php -v
is 4.3.7.  If I log in as my apache user, and execute which php, it
tells me /usr/local/bin/php

So in summary, I have updated php and it now works - however, when
executing php from apache, apache still thinks the old version is in
place - which is odd, as my apache user uses the same version of php,
and to my knowledge, there is only one version of php on my computer.

Any ideas???  This is really odd.  I even tried re-installing apache
from scratch with this new version of php, and still I get those errors
about Call to undefined function... But NEVER from the command line
using php, always from apache using php.

Mick

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2004 13:59
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Call to undefined function: bindtextdomain()


On Friday 18 June 2004 18:07, michael watson (IAH-C) wrote:

 So, my question is, having not compiled php with that switch in the 
 first place, how can I get the functionality I need into PHP without 
 breaking everything else?

In general, you can recompile PHP to your hearts content without
breaking 
either Apache or MySQL. For best results untar a fresh copy of the
source 
each time you 'recompile'. Stop apache before you run 'make install'.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Today's scientific question is: What in the world is electricity?

And where does it go after it leaves the toaster?
-- Dave Barry, What is Electricity?
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 21:10, michael watson (IAH-C) wrote:

 Test.php (which merely executes ? Phpinfo(); ? seems to think I still
 have PHP version 4.3.3, vene though the output of /usr/local/bin/php -v
 is 4.3.7.  If I log in as my apache user, and execute which php, it
 tells me /usr/local/bin/php

It is possible to have both a CLI version of PHP and an apache-module PHP 
which are compiled differently. See manual  Using PHP from the command line.

  /path/to/php -i

will tell you what your CLI php is compiled with. And 

  ?php phpinfo(); ?

via your webserver will do the same for your apache-module PHP.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The party adjourned to a hot tub, yes.  Fully clothed, I might add.
-- IBM employee, testifying in California State Supreme Court
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
So in that case, if I want to upgrade the php that apache and mod_php
use, I have to re-install apache, mod_php and php all over again?

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2004 14:20
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Call to undefined function: bindtextdomain()


On Friday 18 June 2004 21:10, michael watson (IAH-C) wrote:

 Test.php (which merely executes ? Phpinfo(); ? seems to think I 
 still have PHP version 4.3.3, vene though the output of 
 /usr/local/bin/php -v is 4.3.7.  If I log in as my apache user, and 
 execute which php, it tells me /usr/local/bin/php

It is possible to have both a CLI version of PHP and an apache-module
PHP 
which are compiled differently. See manual  Using PHP from the command
line.

  /path/to/php -i

will tell you what your CLI php is compiled with. And 

  ?php phpinfo(); ?

via your webserver will do the same for your apache-module PHP.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The party adjourned to a hot tub, yes.  Fully clothed, I might add.
-- IBM employee, testifying in California State Supreme
Court */

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 21:26, michael watson (IAH-C) wrote:

 So in that case, if I want to upgrade the php that apache and mod_php
 use, I have to re-install apache, mod_php and php all over again?

No. Assuming you installed apache-module of php using apxs then recompiling 
php and 'make install' will automatically do the right thing. There is no 
need to touch either MySQL or Apache.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Kids, the seven basic food groups are GUM, PUFF PASTRY, PIZZA,
PESTICIDES, ANTIBIOTICS, NUTRA-SWEET and MILK DUDS!!
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
Hi Jason

Sorry to be a pain.  I didn't use apxs, I installed apache and php from
source using a devshed.com recipe.

Mick

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2004 14:46
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Call to undefined function: bindtextdomain()


On Friday 18 June 2004 21:26, michael watson (IAH-C) wrote:

 So in that case, if I want to upgrade the php that apache and mod_php 
 use, I have to re-install apache, mod_php and php all over again?

No. Assuming you installed apache-module of php using apxs then
recompiling 
php and 'make install' will automatically do the right thing. There is
no 
need to touch either MySQL or Apache.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Kids, the seven basic food groups are GUM, PUFF PASTRY, PIZZA,
PESTICIDES, ANTIBIOTICS, NUTRA-SWEET and MILK DUDS!! */

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
Hi

So I stopped apache, then for php:

./configure --with-mysql=/usr/ --with-xml --with-gettext
--with-apxs=/usr/local/apache/bin/apxs
make
make install

Everything worked fine apart from I am in exactly the same situation.
Apache is working with one version of php and the command line version
is different.

I have even re-installed everything from scratch (apache and php) from
source and still I get the same result - apache's version of php is
still 4.3.1, despite installing version 4.3.7 of php

CAN anyone tell me how to get rid of this old version of php which
apache insists on using

Thanks :-)

Mick


-Original Message-
From: michael watson (IAH-C) 
Sent: 18 June 2004 14:51
To: Jason Wong; [EMAIL PROTECTED]
Subject: RE: [PHP] Call to undefined function: bindtextdomain()


Hi Jason

Sorry to be a pain.  I didn't use apxs, I installed apache and php from
source using a devshed.com recipe.

Mick

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2004 14:46
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Call to undefined function: bindtextdomain()


On Friday 18 June 2004 21:26, michael watson (IAH-C) wrote:

 So in that case, if I want to upgrade the php that apache and mod_php
 use, I have to re-install apache, mod_php and php all over again?

No. Assuming you installed apache-module of php using apxs then
recompiling 
php and 'make install' will automatically do the right thing. There is
no 
need to touch either MySQL or Apache.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Kids, the seven basic food groups are GUM, PUFF PASTRY, PIZZA,
PESTICIDES, ANTIBIOTICS, NUTRA-SWEET and MILK DUDS!! */

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 21:50, michael watson (IAH-C) wrote:

 Sorry to be a pain.  I didn't use apxs, I installed apache and php from
 source using a devshed.com recipe.

It's been years since I last did a non-apxs install. OK you was using the 
soothingly... guide. Basically repeat the necessary actions from steps 6 
and 7, namely the './configure ...', 'make', and 'make install' bits. I don't 
think you need to 'make certificate' again. Obviously don't copy php.ini if 
you've already made changes to your existing one (and want to keep them).

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Love is a grave mental disease.
-- Plato
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
Hi Jason

I tried that.  I am still left with two versions of php - the one from
the command line which has gettext compiled into it (4.3.7), and the one
which apache uses, which hasn't (4.3.1).

Mick

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2004 15:17
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Call to undefined function: bindtextdomain()


On Friday 18 June 2004 21:50, michael watson (IAH-C) wrote:

 Sorry to be a pain.  I didn't use apxs, I installed apache and php 
 from source using a devshed.com recipe.

It's been years since I last did a non-apxs install. OK you was using
the 
soothingly... guide. Basically repeat the necessary actions from steps
6 
and 7, namely the './configure ...', 'make', and 'make install' bits. I
don't 
think you need to 'make certificate' again. Obviously don't copy php.ini
if 
you've already made changes to your existing one (and want to keep
them).

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Love is a grave mental disease.
-- Plato
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread John Nichel
michael watson (IAH-C) wrote:
Hi Jason
I tried that.  I am still left with two versions of php - the one from
the command line which has gettext compiled into it (4.3.7), and the one
which apache uses, which hasn't (4.3.1).
Mick
Did you restart Apache after you compiled the newer version?
--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 22:15, michael watson (IAH-C) wrote:

 ./configure --with-mysql=/usr/ --with-xml --with-gettext
 --with-apxs=/usr/local/apache/bin/apxs
 make
 make install

 Everything worked fine apart from I am in exactly the same situation.
 Apache is working with one version of php and the command line version
 is different.

 I have even re-installed everything from scratch (apache and php) from
 source and still I get the same result - apache's version of php is
 still 4.3.1, despite installing version 4.3.7 of php

As you have the luxury of reinstalling from scratch then trash the existing 
apache directory (default: rm -rf /usr/local/apache) then install using 
instructions from the php manual.

 CAN anyone tell me how to get rid of this old version of php which
 apache insists on using

  rm -rf /usr/local/apache

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Maintainer's Motto:
If we can't fix it, it ain't broke.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
OK, that worked :-)
Now, do I really trust myself to do rm -rf /usr/local/apache/ on my
production server?
*strokes chin*

Thanks for the help guys :-)

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2004 15:40
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Call to undefined function: bindtextdomain()


On Friday 18 June 2004 22:15, michael watson (IAH-C) wrote:

 ./configure --with-mysql=/usr/ --with-xml --with-gettext 
 --with-apxs=/usr/local/apache/bin/apxs
 make
 make install

 Everything worked fine apart from I am in exactly the same situation. 
 Apache is working with one version of php and the command line version

 is different.

 I have even re-installed everything from scratch (apache and php) from

 source and still I get the same result - apache's version of php is 
 still 4.3.1, despite installing version 4.3.7 of php

As you have the luxury of reinstalling from scratch then trash the
existing 
apache directory (default: rm -rf /usr/local/apache) then install using 
instructions from the php manual.

 CAN anyone tell me how to get rid of this old version of php which 
 apache insists on using

  rm -rf /usr/local/apache

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Maintainer's Motto:
If we can't fix it, it ain't broke.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 22:44, michael watson (IAH-C) wrote:
 OK, that worked :-)
 Now, do I really trust myself to do rm -rf /usr/local/apache/ on my
 production server?
 *strokes chin*

mv /usr/local/apache /some/directory/that/will/never/be/accidently/deleted

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The last round to be plowed next to the line fence is always one furrow 
narrower than the plow. 
-- Plowman's Precept n2
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: mail() with SUSE 9.1

2004-06-02 Thread Marek Kilimajer
Chris W wrote:
I just moved my site to a new install of SUSE 9.1 and get the error..
Call to undefined function: mail()  when ever I try to send a message.  
What is the easiest way to fix this since suse used postfix instead of 
sendmail.

Hmm, weird. The function should always be available, it's part of the 
core, even missing sendmail binary does not give this error.

Isn't mail in disable_functions in php's configuration?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Call to undefined function: mail() with SUSE 9.1

2004-06-02 Thread John Nichel
Chris W wrote:
I just moved my site to a new install of SUSE 9.1 and get the error..
Call to undefined function: mail()  when ever I try to send a message.  
What is the easiest way to fix this since suse used postfix instead of 
sendmail.

You'll have to set the path to postfix's sendmail wrapper.  I think it's 
in /usr/sbin, which is probably not in your path.  So you either need to 
add /usr/sbin to your path, or set 'sendmail_path' in your php.ini file, 
then restart your webserver.

--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Call to undefined function: mail() with SUSE 9.1

2004-06-02 Thread Curt Zirzow
* Thus wrote Chris W ([EMAIL PROTECTED]):
 I just moved my site to a new install of SUSE 9.1 and get the error..
 Call to undefined function: mail()  when ever I try to send a message.  
 What is the easiest way to fix this since suse used postfix instead of 
 sendmail.

This happens  when php is compiled and it can't find the sendmail
program.


Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: dbase_open()

2004-04-13 Thread Joukje de Haan
Yes, the ./configure string includes enable-dbase. But that's the only place I
see the word dbase on the page.

John Nichel wrote:
 
 Joukje wrote:
  Hi,
 
  I tried to open a dbf with, but I got an error message:
  Call to undefined function: dbase_open().
  PHP was compiled (on linux) with the option enable-dbase. Does anyone
  have an idea of what's wrong?
 
  Joukje
 
 
 When you look at a phpinfo() on that server, do you see the enable-dbase
 option in the ./configure string?  And is it listed further down that page?
 
 --
 ***
 *  _  __   __  __   _  * John  Nichel *
 * | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
 * | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
 * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
 *  |___/   * Buffalo, NY  *
 * http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
 ***

-- 
__ 

ARIS - Adviesburo voor Ruimtelijke Informatie Systemen 
   Leeuwarderstraatweg 109  Tel.  +31-(0)513-629981 
   8441 PK Heerenveen   Fax.  +31-(0)513-640567 
   The Netherlands  Email [EMAIL PROTECTED] 
Http://www.aris.nl 
_

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: dbase_open()

2004-04-13 Thread William Lovaton
May be you should load the corresponding extension in your php.ini and
restart the web server.

Something like this:

extension=dbase.so

Then look back at your phpinfo(), you should see information about that
module.


-William


El mar, 13-04-2004 a las 02:26, Joukje de Haan escribió:
 Yes, the ./configure string includes enable-dbase. But that's the only place I
 see the word dbase on the page.
 
 John Nichel wrote:
  
  Joukje wrote:
   Hi,
  
   I tried to open a dbf with, but I got an error message:
   Call to undefined function: dbase_open().
   PHP was compiled (on linux) with the option enable-dbase. Does anyone
   have an idea of what's wrong?
  
   Joukje
  
  
  When you look at a phpinfo() on that server, do you see the enable-dbase
  option in the ./configure string?  And is it listed further down that page?
  
  --
  ***
  *  _  __   __  __   _  * John  Nichel *
  * | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
  * | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
  * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
  *  |___/   * Buffalo, NY  *
  * http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
  ***
 
 -- 
 __ 
 
 ARIS - Adviesburo voor Ruimtelijke Informatie Systemen 
Leeuwarderstraatweg 109  Tel.  +31-(0)513-629981 
8441 PK Heerenveen   Fax.  +31-(0)513-640567 
The Netherlands  Email [EMAIL PROTECTED] 
 Http://www.aris.nl
 _

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Call to undefined function: dbase_open()

2004-04-09 Thread Jay Blanchard
[snip]
I tried to open a dbf with, but I got an error message:
Call to undefined function: dbase_open().
PHP was compiled (on linux) with the option enable-dbase. Does anyone
have an idea of what's wrong?
[/snip]

Have you run phpinfo() to make sure the option is in?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: dbase_open()

2004-04-09 Thread John Nichel
Joukje wrote:
Hi, 

I tried to open a dbf with, but I got an error message:
Call to undefined function: dbase_open().
PHP was compiled (on linux) with the option enable-dbase. Does anyone
have an idea of what's wrong?
Joukje

When you look at a phpinfo() on that server, do you see the enable-dbase 
option in the ./configure string?  And is it listed further down that page?

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Call to undefined function: vadmin_rc4_crypt()

2004-03-04 Thread Brian V Bonini
On Wed, 2004-03-03 at 23:55, [EMAIL PROTECTED] wrote:
 Hi, 
 
 Squirrelmail 1.4.2 serversidefilters plugin version 1.32, apache 1.3.26 and 
 php 4.3.4,  qmail/vpopmail/courier-imap, maildrop on debian stable.
 
 When the serversidefilters plugin goes to en/decrypt domain passwords using 
 mcrypt, I get  this error message:
 
 
 Fatal error: Call to undefined function: vadmin_rc4_crypt() 
 in /var/www/squirrelmail-1.4.2/plugins/serversidefilter/backend.php on line 
 420
 

Since vadmin_rc4_crypt() is not a standard predefined php function it
just means the file containing vadmin_rc4_crypt() is not available to
your script. Find where vadmin_rc4_crypt() is and make it available to
to backend.php


-- 
BrianGnuPG - KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
  Key Server: pgp.mit.edu
==
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: imagecreatefromjpeg()

2003-11-28 Thread Marek Kilimajer
Philip J. Newman wrote:
http://www.php.net/manual/en/function.imagecreatefromjpeg.php

After using this code for some time it suddenly returns ...
It's not suddenly, someone must have recompiled php without gd/jpg support.

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/crushme/public_html/includes/inc_members.php on line 564

?Php

// SNIP

   $quality=70; // JPEG Image Quality (0-95 Higher Value == Better)
   // Resize Create the Output Image (Do Not Disturb this part)
   $src_img = imagecreatefromjpeg($src_img);
   $dst_img = imagecreatetruecolor($dest_width,$dest_height);
   imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $dest_width, $dest_height, 
$src_width, $src_height);
   imageinterlace($dst_img, 1);
   imagejpeg($dst_img, $dest_file, $quality);
   imagedestroy($src_img);
   imagedestroy($dst_img);
// SNIP

?

Is this the server or code that needs to be changed.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Call to undefined function: imagecreatefromjpeg()

2003-11-28 Thread Philip J. Newman
... just what i was thinking, i'll get back to them and complain.

Thanks


- Original Message - 
From: Marek Kilimajer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, November 29, 2003 8:29 AM
Subject: Re: [PHP] Call to undefined function: imagecreatefromjpeg()


 Philip J. Newman wrote:
  http://www.php.net/manual/en/function.imagecreatefromjpeg.php
 
  After using this code for some time it suddenly returns ...

 It's not suddenly, someone must have recompiled php without gd/jpg support.

 
  Fatal error: Call to undefined function: imagecreatefromjpeg() in
/home/crushme/public_html/includes/inc_members.php on line 564
 
 
  ?Php
 
  // SNIP
 
 $quality=70; // JPEG Image Quality (0-95 Higher Value == Better)
 // Resize Create the Output Image (Do Not Disturb this part)
 $src_img = imagecreatefromjpeg($src_img);
 $dst_img = imagecreatetruecolor($dest_width,$dest_height);
 imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $dest_width, 
  $dest_height, $src_width,
$src_height);
 imageinterlace($dst_img, 1);
 imagejpeg($dst_img, $dest_file, $quality);
 imagedestroy($src_img);
 imagedestroy($dst_img);
 
  // SNIP
 
  ?
 
  Is this the server or code that needs to be changed.
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Call to undefined function: xml_parser_create()... but CGI compiled --with-xml

2003-11-03 Thread Dave [Hawk-Systems]
a production box running 4.2.2 recently had a script added to it requiring use
of xml functionality.  The box was already compiled (a few versions earlier)
with the --with-xml option.  Since then, have upgraded this box twice
(though it
is due for another) using config.nice to ensure the same options are installed.

have configured this as an apache module and as the CGI...  the apache module
uses the XML functions just fine.  The CGI however gives the error in the
subject.

Have compared phpinfo() on each, and added extension_dir and include_dir to the
standalone php's php.ini so that it matches the apache module version, still no
joy.

Any thoughts, recommendations, or hints as to what I may be missing which would
cause the cgi version not to compile with the xml features even when
the --with-xml option is and has been specified since 4.0.x and through every
upgrade since then thanks to using the same config.nice.

any takers on this?

Dave

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: mysql_connect()

2003-06-16 Thread Jason Wong
On Monday 16 June 2003 13:49, Daniel R. Hansen wrote:

 Attempts to install the client RPM return messages that it's already
 installed.

What version of MySQL do you have installed? And where did you get it from? If 
it's not from Redhat then it's best that you remove it and install Redhat's.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Rembrandt's first name was Beauregard, which is why he never used it.
-- Dave Barry
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: mssql_pconnect()

2003-03-18 Thread -{ Rene Brehmer }-
On Tue, 18 Mar 2003 13:44:25 -0500, Miro Kralovic wrote about [PHP] Call
to undefined function: mssql_pconnect()  what the universal translator
turned into this:

Hi all.. I'm trying to connect MSSQL2000 Personal Edition from PHP and 
all I'm getting is Call to undefined function: mssql_pconnect() error..
I have installed PHP4.2.2-4, mod_php-4.2.2, php_devel-4.2.2, 
freetds0.53-4, php-sybase-ct-4.2.2, I think I also have php_ldap and 
php_imap..  restarted server, still nothing... running it on RedHat 7.3..
Is there anything else I have to do to get it running? Like recompilling 
PHP or something? If so, how do I do that? 

Did you remember to uncomment the module references in PHP.INI???

Easiest way is to just search through the file for your module(s)'s
filename(s) and remove the comment ';' markers in front of 'em ... 

Rene

-- 
Rene Brehmer

This message was written on 100% recycled spam.

Come see! My brand new site is now online!
http://www.metalbunny.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Call to undefined function: mysql_foo()...

2002-12-01 Thread Marco Tabini
Is it possible that phpBB is using a different copy of PHP?


On Sun, 2002-12-01 at 14:21, Adam Atlas wrote:
 I'm having a strange problem. If I run any MySQL function, I get the 
 error message Call to undefined function: mysql_foo(). Why would I be 
 getting this? I've checked php.ini to see if it has the 
 extension=mysql.so line, and I've run a phpinfo() script which says PHP 
 was compiled with MySQL and it does have a MySQL section. The strangest 
 part is that I have a perfectly functional phpBB installation using a 
 MySQL database. Am I missing something obvious?
 
 --
 Adam Atlas
 
 During my service in the United States Congress, I took the initiative 
 in creating the Internet. - Al Gore, March 9, 1999: On CNN's Late 
 Edition
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Call to undefined function mysql_connect()

2002-08-25 Thread @ Edwin


Help!

I am getting the following error message for :
?
  $link=mysql_connect("localhost","$user","$pass"); // line 34
?

Fatal error: Call to undefined function: mysql_connect() in 
/home/www/test.somename.org/aux/db-mod.php on line 34

I have used this call successfully on php v4.0.6, and am now trying it on 
a new install (which someone else did, as I haven't a clue in setting up a 
server) which is v4.1.1.  Is mysql_connect a defunct command, or do I need 
to do something to enable its use?

Perhaps, if you check the manual you'll see if a certain function is 
already "defunct".

Checking mysql_connect() here,

  http://www.php.net/manual/en/function.mysql-connect.php

shows that it's even "better" than before.

So, most probably, when the person who set up the server didn't include 
mysql support in php. It'd be better to ask the person to enable it.

BTW, you can do phpinfo() and see if mysql support is enabled or not. (Of 
course, you also need to check IF MySQL is even installed...)

- E



Thanks for any help.
Hugh










_
$B2q0wEPO?$OL5NA!&=<

Re: [PHP] Call to undefined function mysql_connect()

2002-08-25 Thread hugh danaher
Thanks Edwin, I'll forward your notes to my new host.  I also checked the
archives and find that there's an extension=mysql.so snip that needs to go
in the php.ini file, and I'll forward this to my host too.
Thanks,
Hugh
- Original Message -
From: "@ Edwin" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, August 25, 2002 8:54 PM
Subject: Re: [PHP] Call to undefined function mysql_connect()



 
 Help!
 
 I am getting the following error message for :
 ?
   $link=mysql_connect("localhost","$user","$pass"); // line 34
 ?
 
 Fatal error: Call to undefined function: mysql_connect() in
 /home/www/test.somename.org/aux/db-mod.php on line 34
 
 I have used this call successfully on php v4.0.6, and am now trying it on
 a new install (which someone else did, as I haven't a clue in setting up a
 server) which is v4.1.1.  Is mysql_connect a defunct command, or do I need
 to do something to enable its use?

 Perhaps, if you check the manual you'll see if a certain function is
 already "defunct".

 Checking mysql_connect() here,

   http://www.php.net/manual/en/function.mysql-connect.php

 shows that it's even "better" than before.

 So, most probably, when the person who set up the server didn't include
 mysql support in php. It'd be better to ask the person to enable it.

 BTW, you can do phpinfo() and see if mysql support is enabled or not. (Of
 course, you also need to check IF MySQL is even installed...)

 - E


 
 Thanks for any help.
 Hugh
 
 
 
 
 
 




 _
 $B2q0wEPO?$OL5NA!&=<<B$7$?=PIJ%"%$%F%`$J$i(B MSN $B%*!<%/%7%g%s(B
 http://auction.msn.co.jp/


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Call to undefined function mysql_connect()

2002-08-25 Thread Peter Houchin

do a php_info() on a page and check the mysql propeties in there.. might
give you a clue..


 -Original Message-
 From: hugh danaher [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 26 August 2002 1:18 PM
 To: php
 Subject: [PHP] Call to undefined function mysql_connect()


 Help!

 I am getting the following error message for :
 ?
  $link=mysql_connect(localhost,$user,$pass); // line 34
 ?

 Fatal error: Call to undefined function: mysql_connect() in
 /home/www/test.somename.org/aux/db-mod.php on line 34

 I have used this call successfully on php v4.0.6, and am now
 trying it on a new install (which someone else did, as I haven't
 a clue in setting up a server) which is v4.1.1.  Is mysql_connect
 a defunct command, or do I need to do something to enable its use?

 Thanks for any help.
 Hugh









-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] call to undefined function: mysql_connect

2002-07-27 Thread Richard Pijnenburg

It seems then that your mysql support isn't installed correctly with
your php. 

Richard Pijnenburg

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 28, 2002 12:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] call to undefined function: mysql_connect 

Hi.



I'm running PHP 4.2.1  MySQL 3.23. I'm getting the error message Call
to

undefined function: mysql_connect() when I try to use it in my code. If

anyone has any ideas as to why this might be happening, I'd be
appreciative.







Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Call to undefined function: pfpro_init()

2001-10-19 Thread Richard Baskett

Did you check out?: http://www.php.net/manual/en/ref.pfpro.php

These functions are only available if PHP has been compiled with the
--with-pfpro[=DIR] option. You will require the appropriate SDK for your
platform, which may be downloaded from within the manager interface once you
have registered. If you are going to use this extension in an SSL-enabled
webserver or with other SSL components (such as the CURL+SSL extension) you
MUST get the beta SDK.

Rick



 Anyone knows how I can use pfpro_init();
 
 It is giving me an error right away saying:
 
 Fatal error: Call to undefined function: pfpro_init() in PATH_TO_FILE.php on
 line 3
 
 Where can I find a support for these functions?
 
 Thanks,
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Call to undefined function problem

2001-09-12 Thread Doug Farmer


Typo in my explanation.  I had defined in my code.  Nice catch though.


However, I'm running into more define issues.  When I get to a file through
a redirect via header(Location: /newfile.php), my defines are existing as
tested by defined but the values are all corrupt.  However, if I then
refresh the page, the value is good.   Anyone else seen this in php-4.0.6?
Can someone explain to me what is fixed for defines in the 4.0.7 candidate?



Andrey Hristov [EMAIL PROTECTED] wrote in message
01ce01c13a93$a4fd6d00$0b01a8c0@ANDreY">news:01ce01c13a93$a4fd6d00$0b01a8c0@ANDreY...
 if (!define(__FUNCTIONS__) )
 must be:
  if (!defined(__FUNCTIONS__) )



 Andrey Hristov
 IcyGEN Corporation
 http://www.icygen.com
 BALANCED SOLUTIONS


 - Original Message -
 From: Doug Farmer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, September 11, 2001 6:50 AM
 Subject: [PHP] Call to undefined function problem


 
  I'm doing the following:
 
   test.php -
  ?php
  require(functions.php);
  require();  // several other requires here
 
  setNoCacheHeaders();   // this is line 16
 
  // other stuff here
  ?
 
  -- functions.php -
  ?php
 
  if (!define(__FUNCTIONS__) )
  {
  define( __FUNCTIONS__, 1, 1 );
 
  // a bunch of other defines here
  echo here 1br;
  function setNoCacheHeaders( ) {
  static $headersNotSet = TRUE;
 
  if ( $headersNotSet ) {
  header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in
the
  past
  header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
//
  always modified
  header(Cache-Control: no-cache, must-revalidate);  // HTTP/1.1
  header(Pragma: no-cache);  // HTTP/1.0
  $headersNotSet = FALSE;
  }
  }
  echo here 2br;
 
  // a few more functions here
 
  }
 
  
 
  My output is
  here 1
  here 2
 
  Fatal error: Call to undefined function: setnocacheheaders() in
  $DOCUMENT_ROOT/test.php on line 16
 
  Can someone explain?  I found something similar in the archives but no
  answer was given.  This exact code worked under php3.  The only changes
in
  the files were files ending in php3 were changed to end php.  I also had
2
  classes that I was using that had initializers in the variable
declaration.
  I moved the initialization to constructors.
 
  Note that on some clients the request goes through w/o errors.  This is
  intermittent but consistent on a per client basis.
 
  - doug
 
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Call to undefined function problem

2001-09-11 Thread Andrey Hristov

 if (!define(__FUNCTIONS__) )
must be:
 if (!defined(__FUNCTIONS__) )



Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS


- Original Message - 
From: Doug Farmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 6:50 AM
Subject: [PHP] Call to undefined function problem


 
 I'm doing the following:
 
  test.php -
 ?php
 require(functions.php);
 require();  // several other requires here
 
 setNoCacheHeaders();   // this is line 16
 
 // other stuff here
 ?
 
 -- functions.php -
 ?php
 
 if (!define(__FUNCTIONS__) )
 {
 define( __FUNCTIONS__, 1, 1 );
 
 // a bunch of other defines here
 echo here 1br;
 function setNoCacheHeaders( ) {
 static $headersNotSet = TRUE;
 
 if ( $headersNotSet ) {
 header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in the
 past
 header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT); //
 always modified
 header(Cache-Control: no-cache, must-revalidate);  // HTTP/1.1
 header(Pragma: no-cache);  // HTTP/1.0
 $headersNotSet = FALSE;
 }
 }
 echo here 2br;
 
 // a few more functions here
 
 }
 
 
 
 My output is
 here 1
 here 2
 
 Fatal error: Call to undefined function: setnocacheheaders() in
 $DOCUMENT_ROOT/test.php on line 16
 
 Can someone explain?  I found something similar in the archives but no
 answer was given.  This exact code worked under php3.  The only changes in
 the files were files ending in php3 were changed to end php.  I also had 2
 classes that I was using that had initializers in the variable declaration.
 I moved the initialization to constructors.
 
 Note that on some clients the request goes through w/o errors.  This is
 intermittent but consistent on a per client basis.
 
 - doug
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Call to undefined function problem

2001-09-10 Thread Rasmus Lerdorf

Try the current 4.0.7 release candidates.  There were some define()
related issues in prior versions.  Also, in PHP 4 you don't need those
defines to protect from multiple inclusion.  You can simply use
include_once

-Rasmus

On Mon, 10 Sep 2001, Doug Farmer wrote:


 I'm doing the following:

  test.php -
 ?php
 require(functions.php);
 require();  // several other requires here

 setNoCacheHeaders();   // this is line 16

 // other stuff here
 ?

 -- functions.php -
 ?php

 if (!define(__FUNCTIONS__) )
 {
 define( __FUNCTIONS__, 1, 1 );

 // a bunch of other defines here
 echo here 1br;
 function setNoCacheHeaders( ) {
 static $headersNotSet = TRUE;

 if ( $headersNotSet ) {
 header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);// Date in the
 past
 header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT); //
 always modified
 header(Cache-Control: no-cache, must-revalidate);  // HTTP/1.1
 header(Pragma: no-cache);  // HTTP/1.0
 $headersNotSet = FALSE;
 }
 }
 echo here 2br;

 // a few more functions here

 }

 

 My output is
 here 1
 here 2

 Fatal error: Call to undefined function: setnocacheheaders() in
 $DOCUMENT_ROOT/test.php on line 16

 Can someone explain?  I found something similar in the archives but no
 answer was given.  This exact code worked under php3.  The only changes in
 the files were files ending in php3 were changed to end php.  I also had 2
 classes that I was using that had initializers in the variable declaration.
 I moved the initialization to constructors.

 Note that on some clients the request goes through w/o errors.  This is
 intermittent but consistent on a per client basis.

 - doug








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Call to undefined function: imap_open()

2001-08-06 Thread Renze Munnik

On Sat, Aug 04, 2001 at 06:57:35PM -0500, Damiano Ferrari wrote:
 I just tried to use the IMAP functions on my website. When I run the first
 script, I get this error:
 
 Call to undefined function: imap_open()
 
 Does this mean the IMAP functions are not installed?
 
 Damiano


Most likely!

You can e.g. use phpinfo() (or phpinfo(INFO_MODULES) to see if it is
installed.

-- 

* RzE:

-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes

Nevermind.
The php.ini was replaced which changed my include path.






Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Internetwork Solutions Engineer
Internetwork Management Engineer
Thrupoint, Inc.
Tampa, FL
(c) 904.477.7825
(h) 904.292.1881

  - Original Message - 
  From: Clayton Dukes 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, March 15, 2001 6:53 PM
  Subject: [PHP] Call to undefined function


  Hey everyone,

  I just upgraded from php v4.03pl1 to php 4.04pl.
  Everything seems to work okay except my IMP/Webmail.

  When I load the url, I get:
  Fatal error: Call to undefined function: page_open() in 
/home/www/websites/horde/imp/index.php3 on line 15


  Is this something that is no longer available in php v4.04? has anyone else seen 
this?





  Clayton Dukes
  CCNA, CCDA, CCDP, CCNP
  Internetwork Solutions Engineer
  Internetwork Management Engineer
  Thrupoint, Inc.
  Tampa, FL
  (c) 904.477.7825
  (h) 904.292.1881



--


  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]



Re: [PHP] Call to undefined function

2001-03-15 Thread Jack Dempsey

clayton, 

checking php.net for 'page_open()' gives me nothingalso, why is it
.php3 if you're on php 4.04?

jack

 Clayton Dukes wrote:
 
 Hey everyone,
 
 I just upgraded from php v4.03pl1 to php 4.04pl.
 Everything seems to work okay except my IMP/Webmail.
 
 When I load the url, I get:
 Fatal error: Call to undefined function: page_open() in
 /home/www/websites/horde/imp/index.php3 on line 15
 
 Is this something that is no longer available in php v4.04? has anyone
 else seen this?
 
 
 
 
 
 Clayton Dukes
 CCNA, CCDA, CCDP, CCNP
 Internetwork Solutions Engineer
 Internetwork Management Engineer
 Thrupoint, Inc.
 Tampa, FL
 (c) 904.477.7825
 (h) 904.292.1881
 
 ---
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes

it's an older app.

But I got it. Thanks :-)



Clayton Dukes
CCNA, CCDA, CCDP, CCNP
Internetwork Solutions Engineer
Internetwork Management Engineer
Thrupoint, Inc.
Tampa, FL
(c) 904.477.7825
(h) 904.292.1881

- Original Message - 
From: "Jack Dempsey" [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 15, 2001 7:03 PM
Subject: Re: [PHP] Call to undefined function


 clayton, 
 
 checking php.net for 'page_open()' gives me nothingalso, why is it
 .php3 if you're on php 4.04?
 
 jack
 
  Clayton Dukes wrote:
  
  Hey everyone,
  
  I just upgraded from php v4.03pl1 to php 4.04pl.
  Everything seems to work okay except my IMP/Webmail.
  
  When I load the url, I get:
  Fatal error: Call to undefined function: page_open() in
  /home/www/websites/horde/imp/index.php3 on line 15
  
  Is this something that is no longer available in php v4.04? has anyone
  else seen this?
  
  
  
  
  
  Clayton Dukes
  CCNA, CCDA, CCDP, CCNP
  Internetwork Solutions Engineer
  Internetwork Management Engineer
  Thrupoint, Inc.
  Tampa, FL
  (c) 904.477.7825
  (h) 904.292.1881
  
  ---
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
  [EMAIL PROTECTED]
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]