help

someone help me, l cant wright php file on http protocol

// open file for appending
@ $fp = fopen("$DOCUMENT_ROOT/http://www.neven-kikinda-web.com/orders/orders.txt", ‘ab’);

You need to specify correct path to file in local filesystem. There should not be “http://” in such path. Try to change path to this:
[php]$fp = fopen($DOCUMENT_ROOT."/orders/orders.txt", ‘ab’);[/php]

Also you can create file info.php and put there this line:
[php]<?php phpinfo() ?>[/php]
And then open this file in your browser to view predefined variables such as $_SERVER[“DOCUMENT_ROOT”], so that you know what is the correct path to your file, and put that file there.

Sponsor our Newsletter | Privacy Policy | Terms of Service