Help A Newbie pls

Discussion in 'PHP' started by nikolaalx, Jan 11, 2007.

  1. #1
    Hi all,
    I just bought this site
    www.jpegserver.com

    I have changed hosting and everything and unfortunately the site doesn seem to work.

    Whenever I try to upload something I get a blank page.

    I have asked the seller if there were any databases which are necessary to be imported, but he said that the whole site consist only of the files which he gave me.

    I see this in my error log.

    [client 213.*********] PHP Warning: POST Content-Length of 733671749 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://www.jpegserver.com/index.php
    [Thu Jan 11 08:03:01 2007] [error] [client 65.55.209.216] File does not exist: /var/www/vhosts/jpegserver.com/httpdocs/robots.txt

    I am trying to upload a pretty small file...something like 10k...its my avatar.

    IF anyone has any idea how to fix this...please advise..

    thank you so much
    nik
     
    nikolaalx, Jan 11, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    try

    <input type="hidden" name="MAX_FILE_SIZE" value="8000000" />

    will allow up to 8 megs, or it should at least, that's the largest size you can specify with that tag I think, but should get you going, alternatively on upload.php or whatever, do

    echo "<pre>"; print_r($_FILES); echo "</pre>";

    near the top before anything else, and paste the stuff it generates ...
     
    krakjoe, Jan 11, 2007 IP