Path getting messed up - cannot find a file
- From: Otis <otie_nospam@xxxxxxx>
- Date: Fri, 22 Feb 2008 16:20:07 -0800
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
.
- Follow-Ups:
- Re: Path getting messed up - cannot find a file
- From: No_One
- Re: Path getting messed up - cannot find a file
- From: Otis
- Re: Path getting messed up - cannot find a file
- Prev by Date: Advanced wallpaper script
- Next by Date: Re: Path getting messed up - cannot find a file
- Previous by thread: Advanced wallpaper script
- Next by thread: Re: Path getting messed up - cannot find a file
- Index(es):
Relevant Pages
|