PHP Code displayed in localhost
Posted by: dhelsdon (---.abhsia.telus.net)
Date: October 16, 2008 07:32AM

I can access localhost fine, WAMP runs.. But my problem is when I go to localhost\index.php
or any other page containing PHP code it is displayed when it shouldn't be.. I had this problem when I tried running php files before they were in the www root. But now it happens with files in the www root, I am using ZoneAlarm and I am pretty sure I added all possible permissions for it to work. I tried re-installing WAMP with my firewall off and still no luck. Also, I had it working fine and all my php files were showing up correctly but I had to re-format my computer because of a virus, which caused wamp to stop working.

DxDiag

------------------
System Information
------------------
Time of this report: 10/15/2008, 23:29:37
Machine name: DEVONSPC
Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_rtm.040803-2158)
Language: English (Regional Setting: English)
System Manufacturer: Acer
System Model: Aspire E360
BIOS: )Phoenix - Award WorkstationBIOS v6.00PG
Processor: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+, MMX, 3DNow (2 CPUs), ~2.0GHz
Memory: 1022MB RAM
Page File: 613MB used, 1846MB available
Windows Dir: C:\WINDOWS
DirectX Version: DirectX 9.0c (4.09.0000.0904)
DX Setup Parameters: Not found
DxDiag Version: 5.03.2600.2180 32bit Unicode

Options: ReplyQuote
Re: PHP Code displayed in localhost
Posted by: yfastud (Moderator)
Date: October 16, 2008 01:19PM

enable short_open_tag in php.ini through wamp tray icon

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: PHP Code displayed in localhost
Posted by: dhelsdon (---.abhsia.telus.net)
Date: October 17, 2008 02:11AM

I tried that just now, nothing seemed to have changed.

Options: ReplyQuote
Re: PHP Code displayed in localhost
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: October 17, 2008 03:38PM

can you explain exactly how u go about runnign the file?

and wat colour is wamp icon?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.