Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 6 of 6

Thread: Need help

  1. #1
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default Need help

    Okay, Well i can't see whats wrong with my rvr system since we moved hosts its gone wierd :S
    +rep x3 times
    Ross
    Link:
    http://hhgs.net/radiodjpanel/rares/values_public.php

  2. #2
    Join Date
    Jun 2004
    Location
    Reading, Berkshire
    Posts
    2,260
    Tokens
    12,202
    Habbo
    :Jin:

    Latest Awards:

    Default

    Had a look at your DB and Code the problem is that you have no tables in your database and therefore no data in your database.

    Its fetching things that simply don't exist.

    Edit: This is now fixed
    Last edited by Jin; 19-03-2008 at 03:17 PM.


  3. #3
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    Okay im having a problem with my uploader the RVR manager uses:
    Here it is:
    PHP Code:
    <?php require('head.php');if(!$_GET["upload"]){echo('<form action="?upload=upload" method="post" enctype="multipart/form-data"><div align="center">Please Choose a file to upload...<br /><input type="file" name="file" /><br /><br /><input type="submit" value="Upload File" /></div></form>');}else{$filename 'uploads/'.$_FILES["file"]["name"].'';    if(!file_exists($filename))    {    move_uploaded_file($_FILES["file"]["tmp_name"],$filename);$filesize getimagesize("$filename");if($filesize[0]<=45 AND $filesize[1]<=45){    echo('Your File URL<br /><input type="text" size="50" value="http://www.hhgs.net/danny/'.$filename.'" />');}else{unlink("$filename");echo('Files must be the dimensions 45*45 or less!');}    }    else    die("Sorry, a file with that filename already exists, Please rename and try again!");}?>

  4. #4
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Well that codes impossible to read, look into lines :rolleyes: heres my upload code:

    Code:
    <form enctype="multipart/form-data" action="upload_file.php" method="POST">
    
    	  <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
    		<fieldset><legend>Directory</legend>
          <input type="text" name="dir" id="aim" value="../images"  />
    	  </fieldset>
    		<fieldset><legend>Browse File...</legend>
          <input id="clientname" name="uploadedfile" type="file" />
    	  </fieldset>
    		<fieldset><legend>Finished?</legend>
          <input name="submit" type="submit" id="add" value="Upload File" />
    	  </fieldset>
    </form>
    and

    Code:
    <?php
    $target_path = $_POST['dir'];
    
    $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); 
    
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
        echo "The file ".  basename( $_FILES['uploadedfile']['name']). 
        " has been uploaded, we are redirecting you now!";
    	echo "<meta http-equiv=\"refresh\" content=\"0;http://"; 
    	echo $_SERVER['HTTP_HOST']
    	echo "/backend/index2.php?upload=Congratulations your file was uploaded!\">";
    } else{
        echo "There was an error uploading the file, please try again!";
    }
    
    ?>
    How could this hapen to meeeeeeeeeeeeeee?lol.

  5. #5
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Quote Originally Posted by GoldenMerc View Post
    Okay im having a problem with my uploader the RVR manager uses:
    Here it is:
    PHP Code:
    <?php require('head.php');if(!$_GET["upload"]){echo('<form action="?upload=upload" method="post" enctype="multipart/form-data"><div align="center">Please Choose a file to upload...<br /><input type="file" name="file" /><br /><br /><input type="submit" value="Upload File" /></div></form>');}else{$filename 'uploads/'.$_FILES["file"]["name"].'';    if(!file_exists($filename))    {    move_uploaded_file($_FILES["file"]["tmp_name"],$filename);$filesize getimagesize("$filename");if($filesize[0]<=45 AND $filesize[1]<=45){    echo('Your File URL<br /><input type="text" size="50" value="http://www.hhgs.net/danny/'.$filename.'" />');}else{unlink("$filename");echo('Files must be the dimensions 45*45 or less!');}    }    else    die("Sorry, a file with that filename already exists, Please rename and try again!");}?>
    What's the error that is shown?
    Also Ross it'll be much easier if you post the code in paragraphs / PHP syntax .

  6. #6
    Join Date
    Oct 2005
    Location
    Spain, Valencia
    Posts
    20,492
    Tokens
    3,575
    Habbo
    GoldenMerc

    Latest Awards:

    Default

    It doesnt show a code i dont think :S

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •