Search found 3 matches

by brookisme
Mon May 26, 2008 7:53 pm
Forum: PHP - Code
Topic: Noob Question - PHP to XML
Replies: 2
Views: 169

Re: Noob Question - PHP to XML

it seems there is already a simple answer but i happen to be doing the exact same thing so i thought i would go ahead and put in my solution: rather than having php insert new lines to my xml file, i load the xml file to flash, add to it/delete items/etc... in flash and then post the whole edited xm...
by brookisme
Mon May 26, 2008 7:28 am
Forum: PHP - Code
Topic: fopen() create file problems
Replies: 4
Views: 531

Re: fopen() create file problems

hey thanks hansford - you´re exactly right, since the file doesn´t exist it throws that warning. however, the idea is to create the file. if you look at the php manual which you linked it says: w : Open for writing only; place the file pointer at the beginning of the file and truncate the file to ze...
by brookisme
Sun May 25, 2008 9:32 pm
Forum: PHP - Code
Topic: fopen() create file problems
Replies: 4
Views: 531

fopen() create file problems

hey all - i´m new to php and having trouble writing a simple code which should create a file. here is the most simplified version: ***** PLEASE USE CODE OR PHP TAGS WHEN POSTING SCRIPTS ***** <?php    $content = "my content";    $path = "test.txt";         if(!chmod($path, 0744))...