can someone plz take a look at this script

Discussion in 'PHP' started by ging999, May 22, 2008.

  1. #1
    Can someone plz take a look at this script, its supposed to be a gamercard generator programme but all i get is a load of symbols and stuff on the page.

    thanks

    http://www.ps3-gaming.co.uk/Xbox_GC_Script.zip
     
    ging999, May 22, 2008 IP
  2. wpc8mry73q

    wpc8mry73q Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi.

    Hmm.. where do you get a "load of symbols"? Which page? In which program? When doing what?

    /LTar
     
    wpc8mry73q, May 23, 2008 IP
  3. ging999

    ging999 Well-Known Member

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #3
    I uploaded the files to my server and followed all the instructions in the read me file.
    went to "www.ps3-gaming.co.uk/xboxtest/ging999.slim.png"
    the url that gave the symbols is "www.ps3-gaming.co.uk/xboxtest/xboxrel.php"
    it still does the same if i dont change the script from standard.
    If you can get it to work can you let me know how
    Thanks
     
    ging999, May 23, 2008 IP
  4. wpc8mry73q

    wpc8mry73q Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm sooo tireeed... anyway..

    Start by changing (in htaccess):
    www.ps3-gaming.co.uk/xboxtest/xboxrel.php
    to
    ErrorDocument 404 /xboxtest/xboxrel.php
    or maybe
    ErrorDocument 404 www.ps3-gaming.co.uk/xboxtest/xboxrel.php

    Then.. rename "htaccess" to ".htaccess" . That's for starters.. I hope it's enough.. I'll see how it went when I get up again.

    /LTar
     
    wpc8mry73q, May 23, 2008 IP
  5. ging999

    ging999 Well-Known Member

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Hmmm Ive tried your suggestion but to no avail and if i rename the file to .htaccess it dissapears
     
    ging999, May 23, 2008 IP
  6. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #6
    Files starting with . (dot) are just hidden.
     
    AsHinE, May 23, 2008 IP
  7. wpc8mry73q

    wpc8mry73q Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Okay.. well.. since I don't have access to the folder anymore, I can't check the files, but when I try to load http://www.ps3-gaming.co.uk/xboxtest/ging999.slim.jpg , I get a "file not found" error -and- a "500 Internal Server Error" while trying to use the error document from your ".htaccess" file.
    This means that there's either an error in ".htaccess" on the "ErrorDocument 404" row, or that the "xboxrel.php" is corrupt in some way (assuming that's the one you've used).
    As I understand it, the whole system is made so that when you request an image (has to end in .jpg .jpeg or .gif - not .png), your site should use the "xboxrel.php" file to "generate" an error, which is the image tag you want. I will check the contents of "xboxrel.php", but I doubt I will find any errors in it..

    /LTar

    Okay, I've done some testing on my own. The path following "ErrorDocument 404 " must start with a "/" for the file to work properly. If it follows with "http://", the URI will change to that address and your script won't work because it expects the fake image name, not the error page address ("http://www.ps3-gaming.co.uk/xboxtest/xboxrel.php"). Also, the address can't begin in anything else than "/" 'cause that will give the 500 error. Therefore, if the full address to the php file is "http://www.ps3-gaming.co.uk/xboxtest/xboxrel.php", your row should be "ErrorDocument 404 /xboxtest/xboxrel.php".
     
    wpc8mry73q, May 23, 2008 IP
  8. ging999

    ging999 Well-Known Member

    Messages:
    146
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #8
    Thanks for the help but it still wont work, im just gunna go bang me head against the wall for a while.

    There is a link to the files on the first post but i think there must be a problem with the script.

    Thanks m8
     
    ging999, May 23, 2008 IP
  9. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hey, message me, we can talk...might be able to help:).
     
    NatalicWolf, May 24, 2008 IP