wmguk Posted May 25, 2008 Share Posted May 25, 2008 hmmm, ok back to this problem.... my script only shows a white page, and nothing else, and ive turned on error reporting but still only get a blank white page.. I ran an echo to test what was happening but that si just a blank white page... can anyone see a mistake? <?php $thisdir = "/var/www/vhosts/iwphoto.co.uk/httpdocs/clients"; $login = $_GET['login']; $getpics = "/var/www/vhosts/iwphoto.co.uk/httpdocs/clients/getpics.php"; $newdir = "/var/www/vhosts/iwphoto.co.uk/httpdocs/clients/$login/getpics.php"; if (is_dir($thisdir ."/$login") ) exit(); if(mkdir($thisdir ."/$login" , 0755, true)) { chmod($thisdir ."/$login", 0755); } else { echo "<p class='footer'>Failed to create directory... <br> Contact <a href='mailto:[email protected]'>Drew</a></p>"; } copy("$getpics", "$newdir"); ?> Link to comment https://forums.phpfreaks.com/topic/107139-solved-mkdir-and-copy-function-fails/ Share on other sites More sharing options...
Cory94bailly Posted May 25, 2008 Share Posted May 25, 2008 I don't see anything to make it say something after it's successful... Does it copy the files? Link to comment https://forums.phpfreaks.com/topic/107139-solved-mkdir-and-copy-function-fails/#findComment-549272 Share on other sites More sharing options...
wmguk Posted May 25, 2008 Author Share Posted May 25, 2008 thats what i mean, i added echo $login after it just to check if the script runs and i checked the ftp files and it isnt working and the echo didnt show up, so im guessing it must be a coding issue Link to comment https://forums.phpfreaks.com/topic/107139-solved-mkdir-and-copy-function-fails/#findComment-549275 Share on other sites More sharing options...
wmguk Posted May 25, 2008 Author Share Posted May 25, 2008 hmm sorry guys, its working now, i just realised the directory was already there, so im editing it now... Link to comment https://forums.phpfreaks.com/topic/107139-solved-mkdir-and-copy-function-fails/#findComment-549282 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.