Re: [PHP] strange errors from command line vs. web
On Thu, 28 Sep 2006 14:29:13 -0400, blackwater dev wrote: Yep, I get called to undefined function so I need to somehow re-compile the cli version? How do I give support to just the cli version? I'm going to the docs now. Thanks! I guess it's dependent on your OS, but you might be able to just enable this line in your php.ini file for the cli version: extension=mysql.so Your php.ini file may be found in /etc/php4/cli/php.ini That's where mine (PHP4) is, but it's dependent on your specific distro. Are you on a package type of distro, such as Debian, Ubuntu, Fedora, Suse or the like? Or are you compiling stuff like on Gentoo? Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange errors from command line vs. web
Ok, I've set up a username and password using Grant All Privileges, blah. with username and password. For some reason though the web now can't login with that. I then changed the root db password and put that in the config and the web side does run properly with that username, password. I still can't run the script from the command line even when I su to root. I am in a virtual hosting situation so not sure if that's it. Does it not know what to do with localhost in a virtual hosting situation when running it from the command line but does from the web? I'm trying to print the error but it just seems to die: echo about to connect; $this-connectionID= @mysql_connect($this-host, $this-user, $this-password); echo after connect; From the command line, it never prints the after connect...just seems to die without error...or at least no error to the screen and I do have a check right after to kick off the mysql error if there is no connection ID but again, I am su'ing to root so I thought it would always have rights. Not really sure what to do next. Thanks! On 9/27/06, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, September 27, 2006 11:36 am, blackwater dev wrote: I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. Show us the code, without any embedded passwords, of course... If I call the script from the browser, it works fine. This almost always boils down to: PHP runs as nobody or a similarly unpowered user You log in as you, blackwaterdev or whatever, with many powers. In this case, it looks like 'nobody' has their own database, and is allowed to connect to it, but you are not. I've changed the permissions and that didn't work. Changed which permissions? mysql_admin? If so, did you reload the permissions after change? File executable? What? The db connection is the basic, localhost, root, with no password. Now that is an entirely separate problem. DON'T DO THAT! :-) What else can I try? You're going to have to create a user and set a password anyway, so do that first. There's no point in getting localhost/root/[blank] to work when it's not what you want anyway. -- Like Music? http://l-i-e.com/artists.htm
Re: [PHP] strange errors from command line vs. web
Hi, (sorry for top-posting) This is the great way PHP-cli lets you know it hasn't got any MySQL support :) Enable that, and you're good to go. Mind you, PHP-cli has a separate php.ini file. Ivo On Thu, 28 Sep 2006 08:26:13 -0400, blackwater dev wrote: Ok, I've set up a username and password using Grant All Privileges, blah. with username and password. For some reason though the web now can't login with that. I then changed the root db password and put that in the config and the web side does run properly with that username, password. I still can't run the script from the command line even when I su to root. I am in a virtual hosting situation so not sure if that's it. Does it not know what to do with localhost in a virtual hosting situation when running it from the command line but does from the web? I'm trying to print the error but it just seems to die: echo about to connect; $this-connectionID= @mysql_connect($this-host, $this-user, $this-password); echo after connect; From the command line, it never prints the after connect...just seems to die without error...or at least no error to the screen and I do have a check right after to kick off the mysql error if there is no connection ID but again, I am su'ing to root so I thought it would always have rights. Not really sure what to do next. Thanks! On 9/27/06, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, September 27, 2006 11:36 am, blackwater dev wrote: I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. Show us the code, without any embedded passwords, of course... If I call the script from the browser, it works fine. This almost always boils down to: PHP runs as nobody or a similarly unpowered user You log in as you, blackwaterdev or whatever, with many powers. In this case, it looks like 'nobody' has their own database, and is allowed to connect to it, but you are not. I've changed the permissions and that didn't work. Changed which permissions? mysql_admin? If so, did you reload the permissions after change? File executable? What? The db connection is the basic, localhost, root, with no password. Now that is an entirely separate problem. DON'T DO THAT! :-) What else can I try? You're going to have to create a user and set a password anyway, so do that first. There's no point in getting localhost/root/[blank] to work when it's not what you want anyway. -- 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] strange errors from command line vs. web
Ok, dumb question but how do I do that? I know how to re-compile the standard php. My code also uses mssql via freetds, does that somehow need to be enabled as it doesn't seem to fail there. Thanks! On 9/28/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: Hi, (sorry for top-posting) This is the great way PHP-cli lets you know it hasn't got any MySQL support :) Enable that, and you're good to go. Mind you, PHP-cli has a separate php.ini file. Ivo On Thu, 28 Sep 2006 08:26:13 -0400, blackwater dev wrote: Ok, I've set up a username and password using Grant All Privileges, blah. with username and password. For some reason though the web now can't login with that. I then changed the root db password and put that in the config and the web side does run properly with that username, password. I still can't run the script from the command line even when I su to root. I am in a virtual hosting situation so not sure if that's it. Does it not know what to do with localhost in a virtual hosting situation when running it from the command line but does from the web? I'm trying to print the error but it just seems to die: echo about to connect; $this-connectionID= @mysql_connect($this-host, $this-user, $this-password); echo after connect; From the command line, it never prints the after connect...just seems to die without error...or at least no error to the screen and I do have a check right after to kick off the mysql error if there is no connection ID but again, I am su'ing to root so I thought it would always have rights. Not really sure what to do next. Thanks! On 9/27/06, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, September 27, 2006 11:36 am, blackwater dev wrote: I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. Show us the code, without any embedded passwords, of course... If I call the script from the browser, it works fine. This almost always boils down to: PHP runs as nobody or a similarly unpowered user You log in as you, blackwaterdev or whatever, with many powers. In this case, it looks like 'nobody' has their own database, and is allowed to connect to it, but you are not. I've changed the permissions and that didn't work. Changed which permissions? mysql_admin? If so, did you reload the permissions after change? File executable? What? The db connection is the basic, localhost, root, with no password. Now that is an entirely separate problem. DON'T DO THAT! :-) What else can I try? You're going to have to create a user and set a password anyway, so do that first. There's no point in getting localhost/root/[blank] to work when it's not what you want anyway. -- 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] strange errors from command line vs. web
On Thu, September 28, 2006 7:26 am, blackwater dev wrote: Ok, I've set up a username and password using Grant All Privileges, blah. with username and password. For some reason though the web now can't login with that. I then changed the root db password and put that in the config and the web side does run properly with that username, password. I still can't run the script from the command line even when I su to root. su root or not does *nothing* to help you run MySQL and do database things. MySQL has a user called 'root' but it's not in any way, shape, or form related to the OS 'root'. Well, okay, the *idea* is the same, and the *name* is the same... But that's it! The *only* thing that matters to MySQL is the username/password used to connect, and what permissions have been granted in MySQL to that username/password. echo about to connect; $this-connectionID= @mysql_connect($this-host, $this-user, $this-password); echo after connect; Get rid of the @, at least until you figure out what is going on. again, I am su'ing to root so I thought it would always have rights. Don't bother su-ing to root. It has no effect on MySQL whatsoever. -- 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] strange errors from command line vs. web
blackwater dev wrote: Ok, dumb question but how do I do that? I know how to re-compile the standard php. My code also uses mssql via freetds, does that somehow need to be enabled as it doesn't seem to fail there. Thanks! echo about to connect; $this-connectionID= @mysql_connect($this-host, $this-user, $this-password); echo after connect; Just to verify that this is in fact the problem you should remove the '@' sign from mysql_connect. '@' is a way of supressing errors, you specifically WANT that error. Is there a reason you have the '@' there? If the error is 'Undefined function mysql_connect' then you do need to get MySQL support compiled in... If it is available on the apache module it should be available to the CLI as well. If there is no 'undefined function' error then you should also be calling 'echo mysql_error()' to see what the error is after connecting. That error is going to give you more info than any of us can. Travis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange errors from command line vs. web
Yep, I get called to undefined function so I need to somehow re-compile the cli version? How do I give support to just the cli version? I'm going to the docs now. Thanks! On 9/28/06, Travis Doherty [EMAIL PROTECTED] wrote: blackwater dev wrote: Ok, dumb question but how do I do that? I know how to re-compile the standard php. My code also uses mssql via freetds, does that somehow need to be enabled as it doesn't seem to fail there. Thanks! echo about to connect; $this-connectionID= @mysql_connect($this-host, $this-user, $this-password); echo after connect; Just to verify that this is in fact the problem you should remove the '@' sign from mysql_connect. '@' is a way of supressing errors, you specifically WANT that error. Is there a reason you have the '@' there? If the error is 'Undefined function mysql_connect' then you do need to get MySQL support compiled in... If it is available on the apache module it should be available to the CLI as well. If there is no 'undefined function' error then you should also be calling 'echo mysql_error()' to see what the error is after connecting. That error is going to give you more info than any of us can. Travis
[PHP] strange errors from command line vs. web
I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. If I call the script from the browser, it works fine. I've changed the permissions and that didn't work. The db connection is the basic, localhost, root, with no password. What else can I try?
Re: [PHP] strange errors from command line vs. web
I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. If I call the script from the browser, it works fine. I've changed the permissions and that didn't work. The db connection is the basic, localhost, root, with no password. What else can I try? Try to get the error message from the DB Connection when it stops. If MySQL something like this (from the PHP Manual for mysql_connect) $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { die('Could not connect: ' . mysql_error()); } Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange errors from command line vs. web
On Wed, September 27, 2006 11:36 am, blackwater dev wrote: I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. Show us the code, without any embedded passwords, of course... If I call the script from the browser, it works fine. This almost always boils down to: PHP runs as nobody or a similarly unpowered user You log in as you, blackwaterdev or whatever, with many powers. In this case, it looks like 'nobody' has their own database, and is allowed to connect to it, but you are not. I've changed the permissions and that didn't work. Changed which permissions? mysql_admin? If so, did you reload the permissions after change? File executable? What? The db connection is the basic, localhost, root, with no password. Now that is an entirely separate problem. DON'T DO THAT! :-) What else can I try? You're going to have to create a user and set a password anyway, so do that first. There's no point in getting localhost/root/[blank] to work when it's not what you want anyway. -- 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] Strange errors when PHP script called from CRON
Hi folks. I've written a CMS where I work, the publishing guts of which is executed through a php script called from my crontab every minute. Every so often (it's happened roughly 17 times since July 22) I get parse errors in my log file when the scripts run into errors while executing. This is very strange, since the code in these files doesn't change, and some of them are from the fairly ubiquitous ADODB class, and some of them are from my own. Below are the errors in my log file, and beneath each the code from the corresponding line which throws the error. Parse error: parse error in /u0/path/to/classes/adodb/adodb.inc.php on line 3382 LINE 3382: $ADODB_LASTDB = $db; Parse error: parse error in /u0/path/to/classes/adodb/adodb.inc.php on line 848 LINE 848: } else if ($this-_queryID === true) { Parse error: parse error in /u0/path/to/classes/adodb/adodb-time.inc.php on line 748 LINE 748: $dates .= sprintf('%s%04d',($gmt0)?'+':'-',abs($gmt)/36); break; Parse error: parse error, expecting `')'' in /u0/path/to/classes/adodb/adodb-time.inc.php on line 850 LINE 850: $_month_table_leaf = array(,31,29,31,30,31,30,31,31,30,31,30,31); Parse error: parse error, expecting `$' in /u0/path/to/cmsutilDEV/monitor/cms.monitor.monitor_content.inc.php on line 77 LINE 77:$commit == true ? $this-conn-CommitTrans() : $this-conn-RollbackTrans(); Parse error: parse error in /u0/path/to/cmsutilDEV/monitor/cms.monitor.monitor_content.inc.php on line 520 LINE 520: if ($rs-RecordCount() = 1) Does anyone have any idea why I might be getting these errors? The code above, to me at least, doesn't look like it should be throwing parse errors. The script which is called by my crontab to start this process executes every minute, so I find it very strange that I'm getting these sporadic error messages. Can any one shed any light on this for me? Cheers and TIA, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Strange errors when PHP script called from CRON
[snip] Does anyone have any idea why I might be getting these errors? The code above, to me at least, doesn't look like it should be throwing parse errors. The script which is called by my crontab to start this process executes every minute, so I find it very strange that I'm getting these sporadic error messages. Can any one shed any light on this for me? [/snip] Perhaps. Could the data being utilized by the code occasionally have characters that should be escaped, by aren't? Are you escaping all of the escapable characters, especially quotes, both single and double? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Strange errors when PHP script called from CRON
Jay Blanchard wrote: [snip] Does anyone have any idea why I might be getting these errors? The code above, to me at least, doesn't look like it should be throwing parse errors. The script which is called by my crontab to start this process executes every minute, so I find it very strange that I'm getting these sporadic error messages. Can any one shed any light on this for me? [/snip] Perhaps. Could the data being utilized by the code occasionally have characters that should be escaped, by aren't? Are you escaping all of the escapable characters, especially quotes, both single and double? That's what I was thinking initially, but all code that is submitted to or extracted from the database is encoded using the translation table from get_html_translation_table plus an additional translation which I manually apply to replace #039; with \'. Also, I'm reluctant to think that the problem lies here because once a page has been scheduled to be published, it is not removed from this schedule unless the owner of the page does so. Basically, if a page is scheduled to be published, and some data in the page caused the error, the error should show up indefinitely, or until the person has removed the scheduled publishing of the page, since the page will not be removed from the publishing schedule due to the error causing the script to stop executing. Also, if you take a look at the error below in particular, Parse error: parse error, expecting `')'' in /u0/path/to/classes/adodb/adodb-time.inc.php on line 850 LINE 850: $_month_table_leaf = array(,31,29,31,30,31,30,31,31,30,31,30,31); You'll see that this is a portion of code that utilizes no external data whatsoever, and is actually in a file (adodb-time.inc.php) which is never called by my script, but is called internally by ADODB. In nearly four years of working with PHP, this is the first time I've ever been completely stumped. Any other ideas? Cheers and TIA, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange errors when PHP script called from CRON
Pablo Gosse wrote: Jay Blanchard wrote: [snip] Does anyone have any idea why I might be getting these errors? The code above, to me at least, doesn't look like it should be throwing parse errors. The script which is called by my crontab to start this process executes every minute, so I find it very strange that I'm getting these sporadic error messages. Can any one shed any light on this for me? [/snip] Perhaps. Could the data being utilized by the code occasionally have characters that should be escaped, by aren't? Are you escaping all of the escapable characters, especially quotes, both single and double? That's what I was thinking initially, but all code that is submitted to or extracted from the database is encoded using the translation table from get_html_translation_table plus an additional translation which I manually apply to replace #039; with \'. Also, I'm reluctant to think that the problem lies here because once a page has been scheduled to be published, it is not removed from this schedule unless the owner of the page does so. Basically, if a page is scheduled to be published, and some data in the page caused the error, the error should show up indefinitely, or until the person has removed the scheduled publishing of the page, since the page will not be removed from the publishing schedule due to the error causing the script to stop executing. Also, if you take a look at the error below in particular, Parse error: parse error, expecting `')'' in /u0/path/to/classes/adodb/adodb-time.inc.php on line 850 LINE 850: $_month_table_leaf = array(,31,29,31,30,31,30,31,31,30,31,30,31); You'll see that this is a portion of code that utilizes no external data whatsoever, and is actually in a file (adodb-time.inc.php) which is never called by my script, but is called internally by ADODB. In nearly four years of working with PHP, this is the first time I've ever been completely stumped. Any other ideas? Is any of the files updated at all? It could be a race condition, happened to me few times - I upload a file to the server, impatiently reload the page and get parse error. I reload once again and everything is fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Strange errors when PHP script called from CRON
Marek Kilimajer wrote: [snip] Perhaps. Could the data being utilized by the code occasionally have characters that should be escaped, by aren't? Are you escaping all of the escapable characters, especially quotes, both single and double? That's what I was thinking initially, but all code that is submitted to or extracted from the database is encoded using the translation table from get_html_translation_table plus an additional translation which I manually apply to replace #039; with \'. Also, I'm reluctant to think that the problem lies here because once a page has been scheduled to be published, it is not removed from this schedule unless the owner of the page does so. Basically, if a page is scheduled to be published, and some data in the page caused the error, the error should show up indefinitely, or until the person has removed the scheduled publishing of the page, since the page will not be removed from the publishing schedule due to the error causing the script to stop executing. Also, if you take a look at the error below in particular, Parse error: parse error, expecting `')'' in /u0/path/to/classes/adodb/adodb-time.inc.php on line 850 LINE 850: $_month_table_leaf = array(,31,29,31,30,31,30,31,31,30,31,30,31); You'll see that this is a portion of code that utilizes no external data whatsoever, and is actually in a file (adodb-time.inc.php) which is never called by my script, but is called internally by ADODB. In nearly four years of working with PHP, this is the first time I've ever been completely stumped. Any other ideas? Is any of the files updated at all? It could be a race condition, happened to me few times - I upload a file to the server, impatiently reload the page and get parse error. I reload once again and everything is fine. [/snip] The files from the ADODB class which are throwing errors have NEVER been updated. The files which I wrote have been updated maybe once or twice in the past four months, but the errors have occurred both before and after the updates. One file threw an error for the first time this morning when including another file, and there are no functions in this file which accept any data as all the data needed is pulled from the database, so that one's really got me thrown for a loop. Any other ideas? Cheers and TIA, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Strange errors when PHP script called from CRON
Typically problems with scripts failing to run from cron can be tracked back to environment variables. When you run it from the shell, you have the users env variables set. When it runs from cron, it (typically) has a slightly different environment. A simple way to test it is to get your shell environment vars with the 'set' command And then run the 'set' command via cron (or at). You can do something like at now, enter 'set' and cntl-d. The output will be mailed back to the user that ran the command. Look for differences. They probally are the source. c -Original Message- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 2:35 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Strange errors when PHP script called from CRON Marek Kilimajer wrote: [snip] Perhaps. Could the data being utilized by the code occasionally have characters that should be escaped, by aren't? Are you escaping all of the escapable characters, especially quotes, both single and double? That's what I was thinking initially, but all code that is submitted to or extracted from the database is encoded using the translation table from get_html_translation_table plus an additional translation which I manually apply to replace #039; with \'. Also, I'm reluctant to think that the problem lies here because once a page has been scheduled to be published, it is not removed from this schedule unless the owner of the page does so. Basically, if a page is scheduled to be published, and some data in the page caused the error, the error should show up indefinitely, or until the person has removed the scheduled publishing of the page, since the page will not be removed from the publishing schedule due to the error causing the script to stop executing. Also, if you take a look at the error below in particular, Parse error: parse error, expecting `')'' in /u0/path/to/classes/adodb/adodb-time.inc.php on line 850 LINE 850: $_month_table_leaf = array(,31,29,31,30,31,30,31,31,30,31,30,31); You'll see that this is a portion of code that utilizes no external data whatsoever, and is actually in a file (adodb-time.inc.php) which is never called by my script, but is called internally by ADODB. In nearly four years of working with PHP, this is the first time I've ever been completely stumped. Any other ideas? Is any of the files updated at all? It could be a race condition, happened to me few times - I upload a file to the server, impatiently reload the page and get parse error. I reload once again and everything is fine. [/snip] The files from the ADODB class which are throwing errors have NEVER been updated. The files which I wrote have been updated maybe once or twice in the past four months, but the errors have occurred both before and after the updates. One file threw an error for the first time this morning when including another file, and there are no functions in this file which accept any data as all the data needed is pulled from the database, so that one's really got me thrown for a loop. Any other ideas? Cheers and TIA, Pablo -- 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] Strange errors when PHP script called from CRON
[snip] i just skimmed the errors, but it looked like various of them were likely due to database failure (i.e., the function didn't have the expected data to process). if something spotty is happening with your database connection that could give you these transient errors (assuming my underlying thinking is correct). [/snip] Some of them are at times caused by the functions not getting the expected data, but for those I always get errors such as call to a member function on a non-object, for example, when no recordset is returned where one is expected. These errors are there as well, but when they are encountered I, as with the other parse errors, see the lock file staying around until the script next executes, at which point it's removed and the process is allowed to continue. Any other ideas? Cheers and TIA, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Strange errors
Hey all, I keep getting this error message on a couple of pages from a site I am currently working on, the strange thing about this is there are no included files in 'browser.php' and I am certainly not including 'browser.php' anywhere. Warning: Failed opening '/home/binary/public_html/browser.php' for inclusion (include_path='./inc:/usr/local/lib/php:.') in Unknown on line 0 If anyone knows what is wrong or has had a simular problem please let me know. Regards Joseph -- 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] Strange errors
Have a look at php.ini in /usr/local/lib It looks like your prepend file is browser.php - just comment that line out. Chris Fry Joseph Blythe wrote: Hey all, I keep getting this error message on a couple of pages from a site I am currently working on, the strange thing about this is there are no included files in 'browser.php' and I am certainly not including 'browser.php' anywhere. Warning: Failed opening '/home/binary/public_html/browser.php' for inclusion (include_path='./inc:/usr/local/lib/php:.') in Unknown on line 0 If anyone knows what is wrong or has had a simular problem please let me know. Regards Joseph -- 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] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- 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] Strange errors
maybe it's something in auto_prepend_file or auto_append_file. do phpinfo() to check. On Thu, 26 Apr 2001 09:36:56 +0930, Joseph Blythe ([EMAIL PROTECTED]) wrote: Hey all, I keep getting this error message on a couple of pages from a site I am currently working on, the strange thing about this is there are no included files in 'browser.php' and I am certainly not including 'browser.php' anywhere. Warning: Failed opening '/home/binary/public_html/browser.php' for inclusion (include_path='./inc:/usr/local/lib/php:.') in Unknown on line 0 If anyone knows what is wrong or has had a simular problem please let me know. Regards Joseph -- 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: php-list- [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] Strange errors
Chris Fry wrote: Have a look at php.ini in /usr/local/lib It looks like your prepend file is browser.php - just comment that line out. Those lines in the php.ini are blank ; automatically add files before or after any PHP document auto_prepend_file = auto_append_file= Hmm, all the scripts look fine, I have restarted apache too. This has me stuffed! Regards Joseph -- 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] Strange errors
On Thu, 26 Apr 2001 09:54:04 +0930, Joseph Blythe ([EMAIL PROTECTED]) wrote: Chris Fry wrote: Have a look at php.ini in /usr/local/lib It looks like your prepend file is browser.php - just comment that line out. Those lines in the php.ini are blank ; automatically add files before or after any PHP document auto_prepend_file = auto_append_file= they could be also be set in .htaccess or httpd.conf or maybe somewhere else. the best way to check is phpinfo() -- 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] Strange errors
Mark Maggelet wrote: On Thu, 26 Apr 2001 09:54:04 +0930, Joseph Blythe ([EMAIL PROTECTED]) wrote: Chris Fry wrote: Have a look at php.ini in /usr/local/lib It looks like your prepend file is browser.php - just comment that line out. Those lines in the php.ini are blank ; automatically add files before or after any PHP document auto_prepend_file = auto_append_file= they could be also be set in .htaccess or httpd.conf or maybe somewhere else. the best way to check is phpinfo() Thanks, it was a permission thing just the error messgage was a little strange and there was no error in apaches error_log for that host hence my confusion :-) Regards Joseph -- 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]