Hi,
I'm using a php script to upload a particular page, this script usually works fine and uploads all my files great, however this one page i have is quite long in length and whenever i upload it and try to view it the bottom of the page is cropped off. It's really odd, I go to look at the uploaded page and view it's source code and the code just suddenly stops mid-sentence. I guess something must be limiting it.
Heres the code used to upload (guess it must be this coding thats causing it):
if ($_GET["what"] == "upload"){
$textareavalue = "";
$file = fopen($FILES['htmlfile']['tmp_name'], "r");
while ($line = fgets($file, filesize($FILES['htmlfile']['tmp_name'])))
{
$textareavalue .= $line;
}
fclose($file);
}
Any ideas? been stuck on this for hours and hours now, starting to get a headache, so any help is much appreciated.