Richard Dunne wrote:
If you take any .html file and rename it .php for instance, the file will change to the php icon. PHP is installed of course (I have PHP5) It renders exactly the same as an html page does. Once the file is within your context folder, it will be listed in the context dir in localhost under that path http://localhost:8080/your-context-folder-name. Assuming your environment variable path is set correctly.Richard. ----- Original Message ---- From: Pid <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Sent: Friday, April 13, 2007 3:08:53 PM Subject: Re: AW: Ajax xmlhttprequestI'm going to ask a potentially stupid question here: how have you configured / are you running PHP code on Tomcat?Have you called the PHP file directly to see what output it generates? p Konstantin Breu wrote:You can try to use a tool like fiddler, to see better what happens at the requests. Have you tried to change the xmlhttprequest call so that it requests a static html file from tomcat? Does that work? Which progid do you use to instantiate the xmlhttprequest object (if you instantiate it via new ActiveXObject)? -----Ursprüngliche Nachricht-----Von: Richard Dunne [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 13. April 2007 14:25An: Tomcat Users List Betreff: Re: Ajax xmlhttprequest My php webpage renders just like an html page on localhost:8080, but when I run an xmlhttprequest against the tomcat (jakarta) server from within the webpage, the request shows a readystate of 1, and thats as far as it gets. The request goes throught the reaystates 1-4 and status 200 in winodws. I'm not using asp or jsp, just php and Ajax/javascript. cant post code at the moment, at work u c. Richard. ----- Original Message ---- From: Johnny Kewl <[EMAIL PROTECTED]> To: Tomcat Users List <[EMAIL PROTECTED]> Sent: Friday, April 13, 2007 12:56:30 PM Subject: Re: Ajax xmlhttprequest OK... more than a little confused I think you saying when you run it against Apache Server... it works But when you run the script again tomcat it doesnt... Show us the Script in the web page.... and show us the Servlet or JSP in tomcat.... You can also show us the php if u want... Then we can help u....----- Original Message ----- From: "Richard Dunne" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]> Sent: Sunday, April 08, 2007 2:55 PM Subject: Ajax xmlhttprequestI have a php webpage which is hosted on my laptop (XP and tomcat localhost:8080). My webpage is executing a php script via an xmlhttprequest which queries a database and sends back the info to the webpage. I have an a few alerts in my request to see the http.readystate and the http.status as they change. In windows (IE7), when I execute the request Ican see the readystate changing 1,2,3,4 and the status 200. In tomcat whenI execute the request, I am getting 1 alert, that is readystate 1, and thats as far as it goes. Can anyone suggest a possible solution, or have an idea as to what the problem might be.
... right, but how does Tomcat know how to parse the file?Tomcat won't automatically process the PHP code, unless you do something complicated involving a CGI redirection, if I remember correctly.
Your seeing the Javascript ready state change, but you're not seeing the same happen on the server because it's probably not executing the PHP.
Try calling the url you're submitting to directly in a browser, and use view-source to see if Tomcat is actually executing the PHP, or if it's just returning the file as if it's HTML.
p
Richard.____________________________________________________________________________ ________Be a PS3 game guru.Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121--------------------------------------------------------------------- To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com--------------------------------------------------------------------- To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]__________________________________________________ Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
smime.p7s
Description: S/MIME Cryptographic Signature