RE: [PHP] Call to undefined function
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: Cc: Subject: Re: [PHP] Call to undefined function Sent from a handheld device On 24-Jun-2011, at 5:53 AM, 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
Sent from a handheld device On 24-Jun-2011, at 5:53 AM, 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] Call to undefined function
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 L. Buskirk
Re: [PHP] call to undefined function which is defined
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; $aspamProtectEmailAddresses)*($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
[PHP] call to undefined function which is defined
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; $aspamProtectEmailAddresses)*($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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Call to undefined function
I have just encountered a fatal error using file_put_contents() on a PHP4 box. After a bit of research I found a simple function within the php.net user comments. I just wanted to know what happens if I then tried to run this script on a PHP 5 box, whereby I'd be defining a function that already exists. Should I be changing the name of the function just in case it moves to PHP5 in the future? Thanks, Tom -- 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()]
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: 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()]
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()]
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()]
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-general&m=113397347124908&w=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()]
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()]
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()]
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
[PHP] Call to undefined function mysql_real_escape_string()]
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 -- 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()
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
[PHP] Call to undefined function mysql_real_escape_string()
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
Re: [PHP] Call to undefined function ora_logon()
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
[PHP] Call to undefined function ora_logon()
I am unable to get php 5.0.4 working with Oracle 10.1.0.3. (also Apache 2.0.54). Running on SuSE 9.3. When I look at the output of phpinfo() it shows OCI8 support enabled as well as mysql support. (Mysql support works fine) bongrip:/usr/local/apache2/modules # ldd libphp5.so linux-gate.so.1 => (0xe000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x402c6000) libclntsh.so.10.1 => /u01/app/oracle/product/10.1.0.3/lib/libclntsh.so.10.1 (0x4048d000) Here you can see it is correctly linked with the oracle client. However, Ora_Logon and OCILogOn but fail with this error: Call to undefined function ora_logon()/OCILogon() $ORACLE_HOME/lib is defined in LD_LIBRARY_PATH of the environment that is running the apache server, I also explictly set ORACLE_HOME in the same environment as well as using SetEnv in the httpd.conf file. (although I'm not getting to a point where ORACLE_HOME is an issue yet) 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) Any ideas? Does php 5.0.4 work with Oracle 10.1.0.3? Thx, CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Call to undefined function imagettftext()
While working with some CAPTCHA stuff I get the following error: Fatal error: Call to undefined function imagettftext(). The PHP Manual states that the function is available in PHP 5 (http://www.php.net/manual/en/function.imagettftext.php), and I have compiled with GD support. What am I missing? './configure' '--with-mysql=/usr/local/mysql' '--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png' '--with-zlib-dir=/usr/local/zlib-1.2.1' '--enable-gd-native-ttf' '--with-ttf' thanks paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Call to undefined function: bindtextdomain()
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: bindtextdomain()
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()
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()
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()
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()
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()
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()
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()
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()
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 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 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()
On Friday 18 June 2004 21:10, michael watson (IAH-C) wrote: > Test.php (which merely executes 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 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()
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 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()
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] Call to undefined function: bindtextdomain()
Hi I am running Suse Linux 8.2, Apache 1.3.28, MySQL 4 and PHP 4.3.3 - all installed from source as I couldn't get the necessary integration when using rpms. I have several production systems working with this configuration. However, I now need to set up another one, and this one can't find bindtextdomain(). I realised that to get this function I needed to compile php with the --with-gettext switch. 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? Just to re-iterate, I HAD to compile Apache, MySQL and PHP together from source originally to get all of the required integration. What I want to avoid is having to install all three again! Is this possible? Just for info, I used this guide the first time I set up AMP (http://www.devshed.com/c/a/PHP/The-Soothingly-Seamless-Setup-of-Apache- SSL-MySQL-and-PHP/) Thanks Mick -- 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
* 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: mail() with SUSE 9.1
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
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
[PHP] Call to undefined function: mail() with SUSE 9.1
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. -- Chris W Bring Back the HP 15C http://hp15c.org Not getting the gifts you want? The Wish Zone can help. http://thewishzone.com -- 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()
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 * > > * | ' > * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* 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()
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 * > * | ' * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* 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()
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 * * | ' 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: dbase_open()
[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
[PHP] Call to undefined function: dbase_open()
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 -- 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()
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
[PHP] Call to undefined function: vadmin_rc4_crypt()
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 (line 420 when encrypting, 423 is when decrypting) The offending file is at http://feayn.org/backend.txt Now, lines 420-23 are controlled by if ($MCRYPT_ALGO == 'rc4_builtin') the 'else' to that if seems to open the specified mcrypt module and en/decrypt the input using that, bypassing lines 420-423 entirely. But but I get this error regardless of whether I set MCRYPT_ALGO to 'rc4_builtin' or 'blowfish' or whatever. My questions are: * Where/how should I define vadmin_rc4_crypt() * Why does php still die on lines 420-423 when the selection of an MCRYP_ALGO other than 'rc4_builtin' should bypass it? Sorry if this is plainly obvious, I'm totally new to php. Google has not been my friend on this one. Cheers, L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Call to undefined function: imagecreatefromjpeg()
... 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 > > > > > > > > > // 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()
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 // 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
[PHP] Call to undefined function: imagecreatefromjpeg()
http://www.php.net/manual/en/function.imagecreatefromjpeg.php After using this code for some time it suddenly returns ... Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/crushme/public_html/includes/inc_members.php on line 564 Is this the server or code that needs to be changed.
RE: [PHP] Call to undefined function: xml_parser_create()... but CGI compiled --with-xml
>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
[PHP] Call to undefined function: xml_parser_create()... but CGI compiled --with-xml
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. thanks 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()
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
[PHP] Call to undefined function: mysql_connect()
This is driving me buggy... I just upgraded to RH 8 which included an Apache 2.0 update. PHP and MySQL work OK independently; I can call mysql_connect() from the command line, but an attempt to do so from a script within Apache returns a "Fatal error: Call to undefined function: mysql_connect()" I tried to install php-mysql-4.2.2-8.0.7.i386.rpm but am getting: warning: php-mysql-4.2.2-8.0.7.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e error: Failed dependencies: php = 4.2.2-8.0.7 is needed by php-mysql-4.2.2-8.0.7 libmysqlclient.so.10 is needed by php-mysql-4.2.2-8.0.7 Attempts to install the client RPM return messages that it's already installed. I saw a message in the RH archive about this, but could not locate a resolution. phpinfo dump follows. System info: PHP Version 4.2.2 RH Kernel 2.4.18-14 Server API Apache 2.0 Filter Apache 2.0.40 Thanks... Dan PHP Version 4.2.2 System Linux daffy.perf.redhat.com 2.4.18-11smp #1 SMP Thu Aug 15 06:41:59 EDT 2002 i686 i686 i386 GNU/Linux Build Date Sep 3 2002 05:25:09 Configure Command './configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs' Server API Apache 2.0 Filter Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php.ini Debug Build no Thread Safety disabled This program makes use of the Zend Scripting Language Engine: Zend Engine v1.2.0, Copyright (c) 1998-2002 Zend Technologies PHP 4 Credits Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference On On allow_url_fopen 1 1 always_populate_raw_post_data 0 0 arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_functions no value no value display_errors On On display_startup_errors Off Off doc_root no value no value enable_dl On On error_append_string no value no value error_log no value no value error_prepend_string no value no value error_reporting 2039 2039 expose_php On On extension_dir /usr/lib/php4 /usr/lib/php4 file_uploads 1 1 gpc_order GPC GPC highlight.bg #FF #FF highlight.comment #FF9900 #FF9900 highlight.default #CC #CC highlight.html #00 #00 highlight.keyword #006600 #006600 highlight.string #CC #CC html_errors On On ignore_user_abort Off Off implicit_flush Off Off include_path .:/usr/share/pear .:/usr/share/pear log_errors Off Off magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off max_execution_time 30 30 memory_limit 8M 8M open_basedir no value no value output_buffering no value no value output_handler no value no value post_max_size 8M 8M precision 14 14 register_argc_argv On On register_globals Off Off safe_mode Off Off safe_mode_exec_dir no value no value safe_mode_gid Off Off safe_mode_include_dir no value no value sendmail_from [EMAIL PROTECTED] [EMAIL PROTECTED] sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i short_open_tag Off Off SMTP localhost localhost
Re: [PHP] Call to undefined function: mssql_pconnect()
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
[PHP] Call to undefined function: mssql_pconnect()
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? Thanks for any help in advance!! Miro. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Call to undefined function: imagetypes()
Dear Supportteam Im Runing a Apache Webserver under Debian sid (testing). I've installed PHP Version 4.1.2. Now I would like to create a Webalbum, but my Server doesn't know the funktion imagetypes. He gives me the Error-message: Call to undefined function: imagetypes(). I found the same Error on you messageboard, and their I found your E-mail adress. Could you help me, I'm a beginner in Linux and PHP. phpinfo() and Errormessage: http://www.e-women.ch/growcenter/picalbum/picture1.php With kind regards Stefan Vogel -- 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()...
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
[PHP] Call to undefined function: mysql_foo()...
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
RE: [PHP] Call to undefined function mysql_connect()
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()
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!&=< 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()
> >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!&=
[PHP] Call to undefined function mysql_connect()
Help! I am getting the following error message for : 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
RE: [PHP] call to undefined function: mysql_connect
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
[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] Call to undefined function: bcdiv()
Hi, i when i run a script that contains a bcdiv() calculation i get this error: Call to undefined function: bcdiv() I am using bcdiv() successfully in other scripts. However i vaguely remember getting an error message some time for some operation in bcdiv... Any ideas? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- 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: pfpro_init()
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]
[PHP] Call to undefined function: pfpro_init()
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]
Re: [PHP] Call to undefined function problem
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 - > > > require("functions.php"); > > require(""); // several other requires here > > > > setNoCacheHeaders(); // this is line 16 > > > > // other stuff here > > ?> > > > > -- functions.php - > > > > > if (!define("__FUNCTIONS__") ) > > { > > define( "__FUNCTIONS__", 1, 1 ); > > > > // a bunch of other defines here > > echo "here 1"; > > 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 2"; > > > > // 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
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 - > require("functions.php"); > require(""); // several other requires here > > setNoCacheHeaders(); // this is line 16 > > // other stuff here > ?> > > -- functions.php - > > if (!define("__FUNCTIONS__") ) > { > define( "__FUNCTIONS__", 1, 1 ); > > // a bunch of other defines here > echo "here 1"; > 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 2"; > > // 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
Thanks. I ran some further tests and came to the same conclusion. My test showed that the constant was defined even though in theory it should be a new request. Since this is a production system, I don't want to go with a release candidate. I'm going to do a switchover to "include_once". "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 - > > > require("functions.php"); > > require(""); // several other requires here > > > > setNoCacheHeaders(); // this is line 16 > > > > // other stuff here > > ?> > > > > -- functions.php - > > > > > if (!define("__FUNCTIONS__") ) > > { > > define( "__FUNCTIONS__", 1, 1 ); > > > > // a bunch of other defines here > > echo "here 1"; > > 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 2"; > > > > // 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 problem
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 - > require("functions.php"); > require(""); // several other requires here > > setNoCacheHeaders(); // this is line 16 > > // other stuff here > ?> > > -- functions.php - > > if (!define("__FUNCTIONS__") ) > { > define( "__FUNCTIONS__", 1, 1 ); > > // a bunch of other defines here > echo "here 1"; > 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 2"; > > // 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] Call to undefined function problem
I'm doing the following: test.php - -- functions.php - "; 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 2"; // 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] Call to undefined function: dbase_open() in
i want try to open the test.dbf files .. but have the problem Call to undefined function: dbase_open() in -- 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()
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. -- * R&zE: -- -- 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]
[PHP] Call to undefined function: imap_open()
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 -- 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
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]
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]
Re: [PHP] Call to undefined function
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]
[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 DukesCCNA, CCDA, CCDP, CCNPInternetwork Solutions EngineerInternetwork Management EngineerThrupoint, 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]