Microsoft
Software
Hardware
Network
Question : Help using php ftp_get
Hi All - I'm trying to use the following code to download some metar files from NOAA but I'm getting an error can not connect. Not sure what I'm doing wrong or if I have to enable something in the php.ini file. I'm using godaddy shared.
<?php
$source = "data/observations/metar/s
tations/CY
QR.TXT";
$target = fopen("yqr-metar.txt", "w");
$conn = ftp_connect("tg
ftp.nws.noa
a.gov
") or die("Could not connect");
ftp_login($conn,"anonymous
","myemail
addressher
e");
ftp_fget($conn,$target,$so
urce,FTP_A
SCII);
ftp_close($conn);
?>
Answer : Help using php ftp_get
AFAIk godaddy does not allow outgoing connects. You have to use thei proxy for such things.
See
http://www.bin-co.com/php/
articles/c
url_in_god
addy.php
You might use url with the proxy to getthe files, the ftp_ function AFAIK do not support a proxy.
Random Solutions
Setting Reporting Services data driven subscription Using Web Service
Should you dismount exchange database before exhange updates?
Two computers conected by ethernet to same router
asp.net mssql I have a need to update records where the record column needs modifing in orde to match the Id value
Using sendkeys in SQL
SSRS Combine two datasets into one data region - Must be in report not in SQL server
Diffrence between debug & release versions
Excel 2007 Can Not Display Images From Web
Grub menu in not loading on ESXi 4
Windows Small Business Server 2008: Critical Event Notification