| | |||||||
| Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Senior Member Join Date: Nov 2006
Posts: 156
|
Calling all php gurus I'm running the XAMPP combo on my machine and everything appears to be running fine until.(PHP is showing green and enabled in the Status area) I have put together a very simple .html file with a form and a button. The button calls a php script. However instead of the browser running it, it asks me what application I would like to use to open the php script! I'm sure the solution is something very simple that I have overlooked. It used to work before but now it doesn't. The php script is in the same directory as the file (.html) that calls it. Help! Last edited by trekr5; 02-28-2007 at 10:03 PM. |
| | |
| | #2 (permalink) |
| Senior Member Join Date: Nov 2006 Location: Melbourne, Australia
Posts: 182
|
This may mean the mime type is not set in Apache correctly. Or that there is an issue with the directory you are running your php from. Can you access the default XAMPP panel? This has some test code that you can use to see if PHP is installed correctly. There should be a file called mime.types in {XAMPP_INSTALL}/apache/config. You can add mime types to this file. |
| | |
| | #4 (permalink) |
| Senior Member Join Date: Nov 2006 Location: California, USA
Posts: 593
|
Ah, it could be not thinking it's an html page and instead a downloadable extension. Try in a different browser and take a look at the mime types as suggested to see what kind it is. Also, how are you calling the php script? Oh, and make sure you're accessing the page via http://localhost/ in your browser, not just c:\www\filename.html Last edited by andrew; 02-28-2007 at 11:14 PM. Reason: rephrased |
| | |
| | #6 (permalink) |
| Senior Member Join Date: Nov 2006 Location: Melbourne, Australia
Posts: 182
|
OK, if NO php files are running, it's some sort of configuration issue. I'd try reinstalling as a first stop. And then I guess you need to start working with the apache config. Google will help there. But hopefully a resintall will work. |
| | |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Marijuana effect | placebo | Spirituality, Consciousness, & Awareness | 84 | 09-17-2010 01:58 PM |
| Driving Blog Traffic | tommy | Technology & Technical Skills | 30 | 12-03-2007 06:43 PM |
| Driving traffic to your website | Tom_Chambers | Technology & Technical Skills | 5 | 01-13-2007 12:54 AM |
| Any PhP/mySQL gurus out there? | trekr5 | Technology & Technical Skills | 20 | 01-10-2007 11:05 PM |
| People with HTML or PHP skills | Dave Kaminski | Technology & Technical Skills | 5 | 11-14-2006 01:51 AM |
All times are GMT. The time now is 08:46 AM.




