PDA

View Full Version : Proper code? Error messages in site log


dfdems
03-03-2005, 08:56 PM
I was looking at my error log today for my site and It shows this error message

[error] PHP Warning: chdir(): No such file or directory (errno 2) in /home/dfdems/public_html/dfdems/index.php on line 32

I go to line 32 of my index.php and I have this (line 27 to 32)

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

chdir('http://www.dfdems.com/dfdems/indexOLD.php');

This is the index.php from vbavdvanced CMPS v1.0

Any clue why its doing this?

Link14716
03-03-2005, 08:59 PM
chdir uses paths, not URLs, and it must point to a directory.

dfdems
03-03-2005, 09:05 PM
so I am assuming it would be

chdir('/dfdems/indexOLD.php');

and thats it? Not the brightest guy in the world when it comes to this stuff..