PHP .responseText glitch??!!?? Please Help!!!

Discussion in 'PHP' started by Imozeb, May 27, 2010.

  1. #1
    I was working on some html on my page (comment tags, javascript, not PHP) and all of a sudden my .responseText in all of my AJAX querys started to return the html of the entire page or of all the javascript around it? Any ideas why this might happen? Please! My entire site broke and I don't know why!!!
     
    Imozeb, May 27, 2010 IP
  2. shubhamjain

    shubhamjain Active Member

    Messages:
    215
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    63
    #2
    Can you give the link of your website?
     
    shubhamjain, May 27, 2010 IP
  3. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    http://www.foreverplaying.com/script/lists/allgames.php

    Ignore the broken image links, they're being updated. The login function at the top is broken but I fixed the printing of the error putting an if statement like (if responseText contains some of the entire page do not print it) to hide the error. But now it is not working at all?
     
    Last edited: May 28, 2010
    Imozeb, May 28, 2010 IP
  4. webria

    webria Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you will focus little more, you will find the bug. It is like you have done yourself the same as shown in the question and it happens sometimes. If not please let us know the website link.
     
    webria, May 28, 2010 IP
  5. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Got it. My site works if I delete the code I was trying to create extensionless PHP urls

    .htaccess file
    Options +FollowSymlinks
    
    RewriteCond %{THE_REQUEST} ^[A-Z]+\ [^.]+\.php\ HTTP/
    RewriteRule ^([^.]+)\.php$ /$1 [R=301,L]
    RewriteRule ^([^.]+)$ $1.php [L]
    Code (markup):
    I can't get the .htaccess to work... Any ideas?
     
    Imozeb, May 28, 2010 IP