Re: [PHP] Re: strange include path error
Jim Lucas wrote: brian wrote: FWIW, i've also carefully gone over the site and everything seems to be in order. The error was triggered when some script included a DB connection script (that has "require_once 'MDB2.php';") but, unfortunately, the error msg doesn't specify which it was. I guess i'll have to wait until tuesday to get more info from the client. brian you could always cross reference the time stamp in the error log to the access log and see what matches. D'OH! I guess that's why $deity created mailing lists--to allow us all to make boobs of ourselves once in a while. I saw the same error again twice today and have found the two seperate scripts that were called (incidentally, the clients were the google & yahoo bots). Neither script shows me anything odd and i've checked every other script included within them. It's like there's a rogue thread or something. Except the box has been rebooted at least once since i upgraded, which is when i changed the include path location. brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: strange include path error
brian wrote: Greg Beaver wrote: brian wrote: PHP 5.1.4 on Fedora 2 I recieved a note from a client about a problem with their site today. Looking at the error log, i found that the DB connection script that's included into any other that needs it was throwing an error because MDB2.php couldn't be found: Failed opening required 'MDB2.php' (include_path='.:/opt/www/zijn2/htdocs/includes:/usr/local/lib/php') What's *really* weird is that the paths listed there are ancient--everything is in /usr/share/pear now, and the zijn2 one had been added--then removed--when i was troubleshooting something (it seems like a couple of years ago). Do a grep for "set_include_path" in your client's code - I suspect you'll find it. Nope. I wrote the app and i have no need for set_include_path, in any case, as i control the server. I did also doublecheck the vhost conf but there's nothing there. This is the thing: it's *my* code and i can't think of anything that would cause this. I've also ensured that there's only one php.ini on the server. Apache has been restarted several times since that old include path existed. This is why i was talking about the box being rebooted, as well. I'm trying to cover everything but i'm flummoxed. FWIW, i've also carefully gone over the site and everything seems to be in order. The error was triggered when some script included a DB connection script (that has "require_once 'MDB2.php';") but, unfortunately, the error msg doesn't specify which it was. I guess i'll have to wait until tuesday to get more info from the client. brian you could always cross reference the time stamp in the error log to the access log and see what matches. -- 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] Re: strange include path error
Greg Beaver wrote: brian wrote: PHP 5.1.4 on Fedora 2 I recieved a note from a client about a problem with their site today. Looking at the error log, i found that the DB connection script that's included into any other that needs it was throwing an error because MDB2.php couldn't be found: Failed opening required 'MDB2.php' (include_path='.:/opt/www/zijn2/htdocs/includes:/usr/local/lib/php') What's *really* weird is that the paths listed there are ancient--everything is in /usr/share/pear now, and the zijn2 one had been added--then removed--when i was troubleshooting something (it seems like a couple of years ago). Do a grep for "set_include_path" in your client's code - I suspect you'll find it. Nope. I wrote the app and i have no need for set_include_path, in any case, as i control the server. I did also doublecheck the vhost conf but there's nothing there. This is the thing: it's *my* code and i can't think of anything that would cause this. I've also ensured that there's only one php.ini on the server. Apache has been restarted several times since that old include path existed. This is why i was talking about the box being rebooted, as well. I'm trying to cover everything but i'm flummoxed. FWIW, i've also carefully gone over the site and everything seems to be in order. The error was triggered when some script included a DB connection script (that has "require_once 'MDB2.php';") but, unfortunately, the error msg doesn't specify which it was. I guess i'll have to wait until tuesday to get more info from the client. brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: strange include path error
brian wrote: > PHP 5.1.4 on Fedora 2 > > I recieved a note from a client about a problem with their site today. > Looking at the error log, i found that the DB connection script that's > included into any other that needs it was throwing an error because > MDB2.php couldn't be found: > > Failed opening required 'MDB2.php' > (include_path='.:/opt/www/zijn2/htdocs/includes:/usr/local/lib/php') > > What's *really* weird is that the paths listed there are > ancient--everything is in /usr/share/pear now, and the zijn2 one had > been added--then removed--when i was troubleshooting something (it seems > like a couple of years ago). > > I checked phpinfo() which shows the correct path. > > # uptime > 19:41:32 up 282 days, 16:24, 1 user, load average: 0.13, 0.04, 0.01 > # ls -l /usr/bin/php > -rwxr-xr-x 1 root root 16466469 Aug 27 2006 /usr/bin/php > > Aug 27, 2006 + 282 days gives June 5, 2007, so it looks like the server > was rebooted after upgrading. > > Unfortunately, i recieved the mail after my client split for a long > weekend, and he didn't say what script he was trying to use (the error > log only points back to the included script, not the original). But a > quick scan of the site shows no problems at all. > > I also have no .htaccess files for this particular site, and the vhost > conf checks out. Any idea what the heck just happened here? Do a grep for "set_include_path" in your client's code - I suspect you'll find it. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Strange include
this '/' method looks kinda neet, but some vars get messed, ie $PHP_SELF, just be carefull using it. Chris Lee [EMAIL PROTECTED] "OòkóöårzòËèkó" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sveiki, php-general, > > I have a file index.php . I include file menu.php in index.php ( I > write include('menu.php'); in index.php ) . I want to do like this: > > index.php/menu.php . That means, that index.php has to include menu.php > > index.php/second.php . That means, that index.php has to include > second.php . > > I think that you already know what I'm talkking about. So how could > I do it? > > Thank you > > > > > 2001.11.02, penktadienis > Marius Pertravèius > iCQ: #125733984 > [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]