Re: [PHP] strange include path error



WILD GUESS!!!

A rogue Apache child didn't get killed when you shut down Apache?...

On Wed, June 27, 2007 6:59 pm, 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?

brian

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




--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
.



Relevant Pages

  • Re: [PHP] Re: strange include path error
    ... The error was triggered when some script included a DB connection script 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. ... you could always cross reference the time stamp in the error log to the access log and see what matches. ...
    (php.general)
  • Re: "pool" a tightly controlled set of Excel instances
    ... Brian, microsoft has acknowledged the problem, and provided ... an actX object to call the api, ... possibility, I suggest using DynaWrap, which will allow ... you to call api's from script. ...
    (microsoft.public.scripting.vbscript)
  • Re: Script Error
    ... Brian, Thank you for your responce, it is very helpfull, I am learning here ... with the script for Internet Exployer thanks to you. ... You are right about the restore point I should have thought about ...
    (microsoft.public.windowsxp.basics)
  • Re: Console application exporting COM interface?
    ... Well...thanks brian for the shakeup. ... I already have some C code that I want to use from a VB script. ... Can you pls guide me to a tutorial abt starting an ATL ... >> find the details since all the tutorials point to the inner workings of ...
    (microsoft.public.vc.atl)
  • Re: reading a var from another file
    ... > Brian wrote: ... >>>becomes one script and then you won't need to pass it anywhere... ... >> this way a pop up window appears to download the zip file. ... passes the query was my first idea, but that didn't work (see my post ...
    (alt.php)