code_dreamer Posted July 19, 2015 Share Posted July 19, 2015 Hello. I hope this is a simple issue. I have some basic code that will not work on a windows server. Not sure what it is that is preventing it from working. Other php code (forum) is working fine. Here is the simple code: <?php echo "testing script..<br>"; // works mkdir("testing_making_dir"); // does NOT work echo date('Y/m/d'); // works echo "<br> testing script done.."; // works copy('test.php','test_copy.php'); // does not work ?> I am not sure what all information to provide. Like i said, there is a mysql/php form running already in the same directory so I assume its not a php issue as much as maybe a server issue ??? really unsure here... any help or sugguestions would be awsome. Kinda new at windows server admin stuff so it could be a small oversite on my part. Link to comment https://forums.phpfreaks.com/topic/297370-simple-code-works-on-unix-not-in-windows/ Share on other sites More sharing options...
scootstah Posted July 19, 2015 Share Posted July 19, 2015 Probably a file permission issue. Turn error reporting on at the top of your script, before anything else. ini_set('display_errors', 1); error_reporting(-1); Link to comment https://forums.phpfreaks.com/topic/297370-simple-code-works-on-unix-not-in-windows/#findComment-1516810 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.