Hi
3 questions:
wot does the @ sign in php code? i've seen it several times, but not sure what it does
what does the .= (dot equals) construction do? again, i've seen it before, but dont know wot it does
i am saving user comments to a text file then outputting them on another page.... problem is wen you use the return key and put line breaks in the <textarea> box, it screws up the php wen it reads from the text file!!!!!!!!!!!! i've seen the "$string = <<<HTML" type construction, but as i'm using an array, i'm not sure what to do? any suggestions?
cool. cheers
what is your code for the user comments?
i worte a script doing the same thing yours is doing, but mine works fine. It may have something to do with your explode(), but you have to show the code...
here's the code which i'm using, so if you can help that'd be great!
ola,
I believe that @ means that errors will not be shown....not sure though..
I will give you an example for this one:
<? $test = "blah blah"; $test .= " bleh"; echo "$test"; ?>
The output will be 'blah blah bleh' Get the picture?
i also need to see your text file...
the text file is just an empty plain text file... nothing special... and the data gets entered by the other php page.
although it's empty here it is anyway!
cheers
i know its a text file, but the problem could lie in your explode() function exploding by ',' and therefore causing a problem if someone's input includes a comma...