SA-MP Forums Archive
[PHP] fopen wont create my file? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [PHP] fopen wont create my file? (/showthread.php?tid=314061)



[PHP] fopen wont create my file? - legodude - 28.01.2012

PHP код:
$pfile=$_SERVER['DOCUMENT_ROOT']."\\users\\".$player.".ini";
$filehandle=fopen($pfile,"w");
if(!
$filehandle)
{
echo 
'failed';

for some reason, it just won't create my file. it just prints 'failed'.
any advice will be appreciated