Re: Path getting messed up - cannot find a file
- From: Otis <otie_nospam@xxxxxxx>
- Date: Fri, 22 Feb 2008 17:20:15 -0800
Please ignore - it was a variable problem, not a path problem. Sorry for the trouble.
Otis wrote:
If I run the following code:.
exec ("swetest -edir$sweph -b$utdatenow -ut$utnow -p012 -eswe -flsj -g, -head", $out);
all is well - PHP finds the program swetest and makes the calculations.
But if I then insert this beforehand:
$NetGeoHTML = file_get_contents($NetGeoURL, 99000);
exec ("swetest -edir$sweph -b$utdatenow -ut$utnow -p012 -eswe -flsj -g, -head", $out);
I get no output because apparently PHP does not know where to find the program called swetest. Why does "file_get_contents" mess up my "path" and how do I get this to work?
Thank you.
Otis
- References:
- Path getting messed up - cannot find a file
- From: Otis
- Path getting messed up - cannot find a file
- Prev by Date: Path getting messed up - cannot find a file
- Next by Date: What is the best practice?
- Previous by thread: Path getting messed up - cannot find a file
- Next by thread: Re: Path getting messed up - cannot find a file
- Index(es):