What are some common pitfalls when using FTP programs to transfer PHP projects to web hosting?

One common pitfall when using FTP programs to transfer PHP projects to web hosting is forgetting to set the correct file permissions. Make sure to set the permissions of PHP files to 644 and folders to 755 to ensure they can be accessed and executed properly on the server.

// Set file permissions for PHP files to 644 and folders to 755
chmod("path/to/file.php", 0644);
chmod("path/to/folder", 0755);