i use a hosting which supports php. Everything was right about my php script until my hosting upgraded their php version to 4.2.3 , after that some structures in my php scripts start to produce some errors.
i read
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10216198 is similiar to mine,
but my problem is little different.
for example, i have a form in a page is like that;
from main.php
<form method="POST" action="send.php">
<textarea rows="10" name="S1" cols="37"></textarea>
and my send.php:
<?php
$fp = fopen ("text.php", "a+");
$fileBuff = fread($fp, filesize("text.php"));
fwrite($fp, "
<p align=center>
###############
Comments: $S1
IP: $REMOTE_ADDR
##############3
</p>
");
fwrite($fp,$fileBuff);
fclose($fp);
?>
but after the system upgraded 4.2.3 , i cant see entries and ip's on text.php, how can i use variable $S1 as a global variable , and where should i use it as a global variable.
i really need help,
thanks for any assistance.