Jump to content

[SOLVED] mkdir and copy function fails :(


wmguk

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.