FTP error

78 views
Skip to first unread message

justin90

unread,
Nov 28, 2012, 6:55:41 PM11/28/12
to phpsli...@googlegroups.com
Hello,

I am not sure what I am missing, but I am receiving the message:

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/content/36/9591036/html/images/phpslideshow.php on line 456

Warning: ftp_chdir() expects parameter 1 to be resource, boolean given in /home/content/36/9591036/html/images/phpslideshow.php on line 458
FTP ERROR: ftp_web_root directory not found.

When I go to the php file on the browser.  In my FTP, there is no indication that the website files are in a /webroot folder or anything like that - they are just there.  I also put in the correct password and login for the automatic creation of thumbnails, and of course the phpslideshow.php file and other contents of the zipfile downloaded from zinkwazi.com are in the folder containing the images.  I have even tried putting the hosting address
in this line:
$ftp_hostname = "localhost";
but it didn't change anything.  I feel like this is really simple, but I missing a piece of the puzzle. I appreciate your help!

BandonRandon

unread,
Dec 5, 2012, 3:28:58 AM12/5/12
to phpsli...@googlegroups.com
From looking at the above errors I'd be curious to know what you have for

$ftp_web_root
= "httpdocs";

You should have either
html or /home/content/36/9591036/html or home some variate of those things should work.
You also need to make sure you have a thumnail direcotry in the images folder and that that folder is able to be written to
(chmode to 777)

Hope that gets you on the right track.
Reply all
Reply to author
Forward
0 new messages