Php help
#2

It means it couldn't find the file. Try adding a . to the start of the directory, like so:

PHP код:
$server_file "./scriptfiles/dmap_feed.json"
This makes sure you're working from the current directory.

Also the error is from a different script, since it's about file_get_contents. This appears to be fixable if you specify the full path in the file_get_contents function, like so:

PHP код:
file_get_contents("/home/robert40/vrp-gta.com/servermap/dmap_feed.json"); 
Reply


Messages In This Thread
Php help - by Robert_Crawford - 22.02.2011, 05:50
Re: Php help - by JaTochNietDan - 22.02.2011, 09:03

Forum Jump:


Users browsing this thread: 1 Guest(s)