im using a script to do make a cfg file based on the info i just entered in a table which it does do but i want it to save the file to http://www.global-european.com/cfgs but i get the following errors:
Warning: fopen(http://www.global-european.com/cfgs/test324r.cfg): failed to open stream: HTTP wrapper does not support writeable connections. in /home/homer090/public_html/global-european/fspax/FsPadmin/user_admin.php on line 261
Warning: fputs(): supplied argument is not a valid stream resource in /home/homer090/public_html/global-european/fspax/FsPadmin/user_admin.php on line 263
Warning: fclose(): supplied argument is not a valid stream resource in /home/homer090/public_html/global-european/fspax/FsPadmin/user_admin.php on line 264
heres my code:
$var1 = "menu_name=Global European;";
$var2 = "base_url=http://www.global-european.com;";
$var3 = "path_stats=fspax/FsPlistflight.php;";
$var4 = "path_export=fspax/FsPgetflight.php;";
$var5 = "username=$UserName;";
$var6 = "password=$Password;";
$filename = "$UserName.cfg";
$fp = fopen($filename, "a");
$strings1 = "$var1\n$var2\n$var3\n$var4\n$var5\n$var6";
$write = fputs($fp, $strings1);
fclose($fp);
ive changed the cfgs folder permissions to 777 and still no luck yet it works perfectly fine if i let it write the cfg file to teh location the php file is in??