Closed Thread
Page 1 of 5 123 ... LastLast
Results 1 to 10 of 45

Thread: 1,500 points make PHP script work!

  1. #1
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    1,500 points make PHP script work!

    Can someone make this PHP script work.. I have posted the files in the attachment post the finish product here..

    This is a sorta dynamic sig that fetches your character information and shows if you are online of offline.

    Example:

    http://habboxforum.com/showthread.php?t=310015

    ^ Original Thread



    ^ That is what I want...

    His site: http://iat.evenhosting.com/

    The releases of his program..: http://iat.evenhosting.com/projects/...file/releases/

    ^ The top one is the latest.

    Also i have to figure out how to do the image.. I tried /profile.php?habbo=whatever (http://derek.x10hosting.com/habbo/pr...php?habbo=ahha). It shows an error message.

    Figure out what http://iat.evenhosting.com/profile/Blinger%E2%80%9D the mod_rewrite command is like /page=whatever to /whatever you have to figure out what do i put after profile.php.

    The downloads that he has on his site the oldest one works but it cannot fetch information so it doesn't work.. The 2nd one is missing a file and the 3rd one isn't working for me.

    Fix it and get 1,500+ points.


    -----------------------------------------------------------
    *BONUS* http://www.syndk8.com/mod_rewrite_tutorial_and_help.php Make me a mod rewrite which makes page=whatever into /whatever like if I type google.com/whatever it shows the stuff at google.com/?page=whatever it has to make it so that I can put asdfadsfasdf in whatever and it will go to asdfasdfasd's page.
    -------------------------------

    2nd bonus!!!

    Whoever can make the thing look like this with 2 pictures of the person instead of 1 will get 2000 points so ita a total of 4,000+!


    Attached Files
    Last edited by Derek; 09-03-2007 at 10:20 PM.

  2. #2
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: 1,500 points make PHP script work!

    2nd day so far no PHP experts are up to the task. This script has been RELEASED not taken.

  3. #3
    mrasd is offline x10Hosting Member mrasd is an unknown quantity at this point
    Join Date
    Jul 2006
    Posts
    7

    Re: 1,500 points make PHP script work!

    I'm no php expert, but I am slightly bored :P

    the (or a, anyways) problem seems to be on or around this line
    $figure = preg_replace('/<img alt=\"(.*?)\" src=\"(.*?)\" \/>/', '$2', $figure);
    I can't be bothered reading up on reg exp, but it should be trying to get the image url out of something like this

    <img alt="Derek" src="/habbo-imaging/avatar/2801329008255021000119001014400180fe61318bac067b71 380ea375e078e.gif" />

    If you're not a reg exp person either, $figure = substr(strstr($figure, 'src=\"'), 0, strpos($figure, '/>')) might be an easier place to start

  4. #4
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: 1,500 points make PHP script work!

    Sorry I don't get what you are trying to say can you fix it for me.

  5. #5
    Chris73's Avatar
    Chris73 is offline x10 Spammer Chris73 is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    New York
    Posts
    5,360

    Re: 1,500 points make PHP script work!

    Well i decided to try and help you with the script. However i am missing a few images that it tries to pull up. They might be there on the website hosting the images but i myself would rather have them on the machine and this website. The character images.

    c_images/album1584 Don't have it.

    Is there a place i can get the character images?

  6. #6
    deadimp is offline x10 Sophmore deadimp is an unknown quantity at this point
    Join Date
    Jun 2007
    Posts
    249

    Re: 1,500 points make PHP script work!

    I was looking around on the source, and it seems that $hotel is just part of the domain (*.co.uk - forgot the 'technical' name for it).
    What exactly is the problem with it? Trying to get data from the homepage, or display it? I've browsed around it a bit, and it looks like it'd all work. I can't do anything with it 'cause I have to leave.
    Last edited by deadimp; 09-11-2007 at 10:23 AM.
    deadimp.org
    > Thacmus [v0.3.0] - Open source CMS, PHP 5, MySQL

    "¡Ya lo sabo!" - Lo Ausente

  7. #7
    monkey2 is offline x10Hosting Member monkey2 is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    14

    Re: 1,500 points make PHP script work!

    I can do the first bonus part.

    Unzip and upload the attached .htaccess file to your sites root (were your index page is).

    Just to make sure, you wanted http://yoursite.com/something to be rewritten to http://yoursite.com/?page=something. Is that correct?

    EDIT: I am almost positive the script you have doesn't work because the server is setup not to allow scripts to request web pages. I tried the script you uploaded on my local web server and it worked fine. You probably want to check with an admin. The function is called file_get_contents().
    Attached Files
    Last edited by monkey2; 09-11-2007 at 04:52 PM.

  8. #8
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: 1,500 points make PHP script work!

    Thanks I will ask Corey.

  9. #9
    deadimp is offline x10 Sophmore deadimp is an unknown quantity at this point
    Join Date
    Jun 2007
    Posts
    249

    Re: 1,500 points make PHP script work!

    For the second bonus, where do we find the second person? Is it on the same page as the habbo profile?
    deadimp.org
    > Thacmus [v0.3.0] - Open source CMS, PHP 5, MySQL

    "¡Ya lo sabo!" - Lo Ausente

  10. #10
    Derek is offline Community Support Force Derek is a splendid one to beholdDerek is a splendid one to behold
    Join Date
    May 2005
    Location
    cossacks
    Posts
    6,354

    Re: 1,500 points make PHP script work!

    Right now once th script works I will try to figure the other parts out.
    Last edited by Derek; 09-11-2007 at 05:26 PM.

Closed Thread
Page 1 of 5 123 ... LastLast

Similar Threads

  1. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  2. [PHP] PHP For Starters
    By Complex in forum Tutorials
    Replies: 24
    Last Post: 06-14-2008, 11:40 PM
  3. Make 2500 points in less than 10 mins...
    By Joker Boy in forum The Marketplace
    Replies: 12
    Last Post: 12-05-2006, 06:49 PM
  4. PHP login script
    By xunhandmex in forum Scripts & 3rd Party Apps
    Replies: 8
    Last Post: 05-26-2005, 07:56 PM
  5. php Script help!
    By Vr3nuhm in forum Scripts & 3rd Party Apps
    Replies: 7
    Last Post: 04-10-2005, 07:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers