I'm just starting to learn PHP and i have this code just to practice a little. <?php $user = user $pass = pass $conn = ftp_connect("practicefeedbackform.host22.com") or die("Could not connect"); ftp_login($conn,"$user","$pass"); ftp_mkdir($conn,"dir"); ftp_rmdir($conn,"dir"); ftp_close($conn); ?> $user and $pass are filled in with the correct username and password. the error is on line 3
im not sure, although i can access it with filezilla. how would i check that? if it helps any im hosting the site on 000webhost
can you tell us what error message you are recieving? this will help pinpoint where you issue lays, whether it's a PHP configuration stopping you, or an issue with your coding