Need help on PHP script

Discussion in 'PHP' started by mvmnt, Jun 11, 2008.

  1. #1
    So I paid for the product "Youtube Sites in a Box" on TradeBit.com and tried to install it on a server.

    I created funnyvideos4u . uni . cc (without spaces) but when you click "Click to Watch", a Tag or Search anything a 404 page pops out..

    For example in photoshopfreetutorial. com doesn't happen this when you do the actions described above.

    Don't know what's the problem cause the program automatically uploaded all the files.

    These are the files uploaded on my server
    http://www.badongo.com/file/9839351

    Thanks in advance
     
    mvmnt, Jun 11, 2008 IP
  2. mehmetm

    mehmetm Well-Known Member

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #2
    probably it is about apache's mod rewrite. As I see you use free hosting.
    May be they don't provide this apache feature for you..

    try to install it a payed hosting.
     
    mehmetm, Jun 11, 2008 IP
  3. Ang3r

    Ang3r Peon

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Check again that have uploaded .htaccess file in main dir..
     
    Ang3r, Jun 11, 2008 IP
  4. mvmnt

    mvmnt Peon

    Messages:
    180
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hmm It wasn't there. Now It's uploaded (in "public_html").
    Anyway Doesn't work :(

    Is this true?. I'm only trying if the script works. I want to be sure before buying a hosting.



    Thanks for the replies
     
    mvmnt, Jun 11, 2008 IP
  5. sky22

    sky22 Guest

    Messages:
    59
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you only want to check it works you could set up a localhost (host it on your PC) then you can can check it works from that.

    Sky22
     
    sky22, Jun 11, 2008 IP
  6. mvmnt

    mvmnt Peon

    Messages:
    180
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Sorry sky22 Don't know how to set up localhost (I'm a noob :D)
     
    mvmnt, Jun 11, 2008 IP
  7. mehmetm

    mehmetm Well-Known Member

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #7
    http://www.en.wampserver.com/

    download wampserver and install. it's just easy ;)
     
    mehmetm, Jun 11, 2008 IP
  8. mvmnt

    mvmnt Peon

    Messages:
    180
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    mvmnt, Jun 11, 2008 IP
  9. mvmnt

    mvmnt Peon

    Messages:
    180
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Got this error

    I am almost sure it's a server problem cause I used another server and that 404 error doesn't pop out (Has another errors though)
     
    mvmnt, Jun 11, 2008 IP
  10. sky22

    sky22 Guest

    Messages:
    59
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Looks like it's just showing the plain PHP file and not running it.

    Have you started the wampserver up and are you looking at the file in your browser from http://localhost/phpfilename.php?

    Sky22
     
    sky22, Jun 11, 2008 IP
  11. mvmnt

    mvmnt Peon

    Messages:
    180
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    The server's on.

    Don't know why it has such many problems :(
     
    mvmnt, Jun 11, 2008 IP
  12. kip

    kip Notable Member

    Messages:
    1,521
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    205
    #12
    On your free host you can create a file called phpinfo.php and put in the file.

    <?phpinfo();?>
    Code (markup):
    Upload it to your server and run it. Either A. scroll down to the apache handler section, and look in the loaded modules and see if you see mod_rewrite. or B. go to search and type mod_rewrite. If it's not found or there, your host doesn't support mod_rewrite or not using an apache server (windows).
     
    kip, Jun 11, 2008 IP
  13. mvmnt

    mvmnt Peon

    Messages:
    180
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
  14. mvmnt

    mvmnt Peon

    Messages:
    180
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Hey I found the solution!
    As mehmetm the problem was the host.
    I tried with another one and worked like charm!

    Thanks for your replies and comprehension! :D

    EDIT: I haven't changed the dns yet so funnyvideos4u.uni.cc is the same
     
    mvmnt, Jun 11, 2008 IP
  15. mehmetm

    mehmetm Well-Known Member

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #15
    congratulations dude :)

    So,I'm interested in watching these funny videos, let me know your actual domain :)
     
    mehmetm, Jun 12, 2008 IP