Jump to content

[SOLVED] FOPEN FTP


maxudaskin

Recommended Posts

$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

<?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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.