maxudaskin Posted January 7, 2008 Share Posted January 7, 2008 $deptmetarurl = "ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/".$dept.".TXT"; $destmetarurl = "ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/".$dest.".TXT"; $deptmetar = fopen($deptmetarurl,"r"); $destmetar = fopen($destmetarurl,"r"); $text = $_SESSION["username"].' '.$_POST['dept'].'/'.$_POST['dest'].' '.$my_t[mday].'.'.$my_t[month].'.'.$my_t[year].'/'.$my_t[hours].''.$my_t[minutes].' FP '.$_POST['fltnum'].' '.$_POST['aircraft'].' '.$_POST['acftreg'].' '.$_SESSION['rank'].' '.$_SESSION['name'].' RMKS '.$rmks.' '.$route.' '.$detailedroute' METARS Departure '. $deptmetar .' //Line 287 Dest '. $destmetar ; Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/.grable/vzoom/virtualzoom.net/ops/flights.php on line 287 So... anyone have an answer? Link to comment https://forums.phpfreaks.com/topic/84808-solved-fopen-ftp/ Share on other sites More sharing options...
dsaba Posted January 7, 2008 Share Posted January 7, 2008 <?php $deptmetarurl = "ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/".$dept.".TXT"; $destmetarurl = "ftp://tgftp.nws.noaa.gov/data/observations/metar/stations/".$dest.".TXT"; $deptmetar = fopen($deptmetarurl,"r"); $destmetar = fopen($destmetarurl,"r"); $text = $_SESSION["username"].' '.$_POST['dept'].'/'.$_POST['dest'].' '.$my_t[mday].'.'.$my_t[month].'.'.$my_t[year].'/'.$my_t[hours].''.$my_t[minutes].' FP '.$_POST['fltnum'].' '.$_POST['aircraft'].' '.$_POST['acftreg'].' '.$_SESSION['rank'].' '.$_SESSION['name'].' RMKS '.$rmks.' '.$route.' '.$detailedroute.' METARS Departure '. $deptmetar .' //this is not a comment by the way, its part of the variable Dest '. $destmetar; ?> Link to comment https://forums.phpfreaks.com/topic/84808-solved-fopen-ftp/#findComment-432337 Share on other sites More sharing options...
maxudaskin Posted January 7, 2008 Author Share Posted January 7, 2008 I don't see it... Am I blind or do you not see it either? Link to comment https://forums.phpfreaks.com/topic/84808-solved-fopen-ftp/#findComment-432339 Share on other sites More sharing options...
teng84 Posted January 7, 2008 Share Posted January 7, 2008 you missed the dot here '.$detailedroute' <-------------------- there should be a dot to concatenate METARS Departure Link to comment https://forums.phpfreaks.com/topic/84808-solved-fopen-ftp/#findComment-432341 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.