this is weird, about using ftp_connect(...)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mickey
Forum Newbie
Posts: 24
Joined: Thu May 01, 2003 11:14 am
Location: Philippines

this is weird, about using ftp_connect(...)

Post by mickey »

hello,

okay, a while ago, it's working, now, it doesn't!

when i have this line in my php page:

$ftp = ftp_connect("ftp.mobilemo.com");

and when i go to my site to test it: http://www.angrysoft.com/logo1.php

it won't show up, i mean, the browser claims that the page is not available, but when i omit that line, then i the browser shows the page... huh???

well, a while ago this was working, i got disconected on the internet, turned off my computer for a while, and back on again and tried it again and now it doesn't work? it's really weird.. :(

hope someone could enlighten me here..

many thanks.
mickey
Forum Newbie
Posts: 24
Joined: Thu May 01, 2003 11:14 am
Location: Philippines

Post by mickey »

okay there is this another problem,

i use this, and it works

ftp_chdir($ftp, "msgalert/");

but this one fails??

ftp_nlist($ftp, "msgalert/");

anyway, all these stuffs are working a while ago.. i don't understand why now it doesn't.

any clue?

thanks.

edit:
ugh, is there something wrong with this code?

$files = ftp_nlist($ftp_id, "/");
because it always returns false.

pls try this site:
http://www.mobilemo.com/digitel/logo1.php

as you can see, i can connec to the server succesfully.. i just liked to list all the files on the server and it won't work?


thanks.
Post Reply