0

Hi all, I need some help with this problem.

I have a function that has 2 fields, name of the folder to be created and the featured image to be put inside.
This code works fine online, but when I imported it on my localhost (MAC Mavericks+XAMPP), the code creates the folder but no longer uploads the image inside it.

$ftp_server = "localhost";
$ftp_conn = ftp_connect($ftp_server) or die("Could not connect to $ftp_server");
$login = ftp_login($ftp_conn, "AdminUsername", "AdminPassword");
  1. I thought of permissions problems on the folder, so I set the permissions on 777 on HTDOCS for all, but it is still not working.
  2. I have also created a tmp folder in the root with permission set on 777, but nothing.

I use move_uploaded_file() to upload the file.

Any hint?

1
Contributor
1
Reply
3
Views
3 Years
Discussion Span
Last Post by Thevenin
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.