![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| php / apache configuration problem: apache not parsing php correctly? I am having trouble that I believe is caused by some issue with my apache / php configuration. My environment is XAMPP on windows xp. This issue is around passing objects. Things work find when I debug my code in my IDE (PHP Designer 2006). The problem comes when I actually invoke the pages in the browswer. What has worked correctly in the debugger then fails in the browser. Specifically, the browser simply returns the source code of the php file instead of what that code is supposed to return. It is as if it does not recognize the php tags and then just treats it as if it were just html text to output. The code itself is quite simple: <?php //include Track class require("Track.php"); //get parameters from query string //load into $mycri $mycri = array('rock','party'); //create Track object and run query $mytrack = new Track(); $myarray = $mytrack->find($mycri); //print out results print_r($myarray); ?> This generally happens only with includes. Any thoughts? |
| |||
| As long as the file is saved with a .php extension, it should work just fine. If it is saved as .php and only shows source, there is a problem with either apache's configuration or XAMPP. I'd recommend maybe reinstalling XAMPP in that case. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache server Problem??????? | Richard | Web Hosting | 2 | 04-11-2007 11:19 PM |
| What is apache server? | movingout | Web Hosting | 7 | 01-27-2007 09:14 AM |
| Apache problem: two .htaccess? | Jem4Himesh | Web Hosting | 1 | 01-10-2007 07:22 PM |
| Apache Server Help!? | Frenkel | Web Hosting | 4 | 01-09-2007 10:14 AM |
| PHP & Apache installed on Linux, but PHP is not running on Apache. Am i need to install any rpms? | cutereems | PHP | 1 | 10-04-2006 05:05 AM |