Weird problem. I moved a script that opens a file, parses it and then displays it. Now that it is in a new directory on the same server, the fopen call fails stating it cannot find the file. I figure o.k. no problem, and set the new path. Except I cannot figure out what the path should be.
the code is:
$songfile = "/worship/songs/". substr($song,0,1) . "/".$song;
#$songfile = "/home/tech/public_html/worship/songs/". substr($song,0,1) . "/".$song;
#$songfile = "/tech/public_html/worship/songs/". substr($song,0,1) . "/".$song;
#$songfile = "/public_html/worship/songs/". substr($song,0,1) . "/".$song;
$fd = fopen ($songfile, "r");
the first line represents what I thought it should be and all the others are attempts to figure out what it wants. The variables all come out ok. (I thought for a moment that it might be the spaces, so I tried it with a single word file .. still fails)
The root of the web site should be /home/tech/public_html/
The root the ftp is /home/tech/
The only way I can see /home is in the error message:
The error is:
Warning: fopen("/worship/songs/B/Breathe.pro", "r") - No such file or directory in /home/tech/public_html/modules/OpenWorship/disp.php on line 9
Thanks for any ideas
Joe