dimanche 25 octobre 2015

Open .java file using fopen in php

Why cant I open this file? The php and .java file are in the same directory on AFS. Yet it keeps saying "Unable to open file!".

$myfile = fopen("test.java", "w") or die("Unable to open file!");
$txt = "dsdadas";
fwrite($myfile, $txt);
fclose($myfile);




Aucun commentaire:

Enregistrer un commentaire