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?

Paths problems.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.