Wade Smart wrote:
> 
> 
> 03132008 1534 GMT-6
> 
> Im having a bit of trouble with this.
> 
> This is part of a page that grabs backup data and puts it in a <option>
> for a <select>. This works great on my linux system but wont work at all
> on the windows server its running on.
> 
> The row with the arrow out to the right, there isnt anything wrong with
> that on windows is there?
> 
> $backupDir = "monthlybackup";
> 
> if(isset($_POST['getbackupfile'])){
> if($_POST['backupfileName'] == "dailynoaareport.htm"){
> $lines = file("dailynoaareport.htm");
> } else {
> $lines = file($backupDir.'/'.$_POST['backupfileName']); <-----
> }
> } else {
> $lines = file("dailynoaareport.htm");
> }
> 
> Wade

I'm certainly no Windoze guy, but don't you have to use a back slash 
instead of a forward slash in windows?
For instance:
$lines = file($backupDir.'\'.$_POST['backupfileName']);

William Piper

Reply via email to