I tried the above code, this was the result
Notice: Use of undefined constant ftp_connect - assumed 'ftp_connect' in C:\php\www\index.php on line 6
the function is availableCouldn't connect to server
It may help to point out my setup
Windows 7 Ultimate x64
php-5.5.11-Win32-VC11-x86
and i am using the built in web server
This is my first attempt at anything ftp related with php, i thought id have to enable an extension dll in the php.ini but none for ftp exist
I tried both of the examples above and they did not work.
I think I know the issue though, I am currently at work for the next 8 days (we live on site for that duration) and our wifi has some pretty extensive port blocking, its entirely possible that port 21 is blocked (if the php protocol utilizes that port?)
thanks for the quick responses by the way
Hey all,
Im trying to create a php script to replicate the following weather radar
http://www.bom.gov.au/products/IDR703.loop.shtml
they have supplied people with a ftp (it has no user/pass)
ftp://ftp2.bom.gov.au/anon/gen/radar/
so this is my code and it wont even connect.
<?php
$ftp_server = "ftp2.bom.gov.au";
// set up a connection or die
$conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server");
?>
I think it might be the ftp itself?
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.