WampServer
Apache, PHP, MySQL on Windows
Home forum
Back to WampServer
presentation
Downloads
Addons
Trainings
Alter Way
Go to Topic:
Previous
•
Next
Go to:
Forum List
•
Message List
•
New Topic
•
Search
•
Log In
•
Print View
My own php not excuting
Posted by:
dabutler
(---.tampfl.fios.verizon.net)
Date: July 26, 2012 08:46PM
I have set up the wamp server and i can run phpBB3 but not any php files i create
the files are in the c:/wamp/www directory
They are either saved as php (if its only a php file)
or a .html file if they its html
By saving them with notepad++ as the files
I used the
<?php ?> tags in the files
I'm opening them in the browser and not just clicking the file
It's weird cause i can run the phpBB3 forum no problem and edit the code but if i try to create my own it doesn't work.
Also i created an alias to the directory because the directory is wamp/www/php_sandbox
Options:
Reply
•
Quote
Re: My own php not excuting
Posted by:
RiggsFolly
(---.as13285.net)
Date: July 26, 2012 09:09PM
Have you tried running your sandbox code like this
[
localhost
]
If that works get rid of the alias
Options:
Reply
•
Quote
Re: My own php not excuting
Posted by:
dabutler
(---.tampfl.fios.verizon.net)
Date: July 26, 2012 09:31PM
Actually it is only the .html file that isn't parsing the code
I tried that the php file i just had a space between the <? and php i fixed it and it works
lol i just realized i have to save the files as only php for it to be read as php
Edited 1 time(s). Last edit at 07/26/2012 09:38PM by dabutler.
Options:
Reply
•
Quote
Re: My own php not excuting
Posted by:
stevenmartin99
(Moderator)
Date: July 26, 2012 09:34PM
php code must be in a php file...
Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [
pampserver.com
]
Options:
Reply
•
Quote
Re: My own php not excuting
Posted by:
dabutler
(---.tampfl.fios.verizon.net)
Date: July 26, 2012 09:38PM
stevenmartin99 Wrote:
-------------------------------------------------------
> php code must be in a php file...
ya lol i just figured that out
Options:
Reply
•
Quote
Re: My own php not excuting
Posted by:
stevenmartin99
(Moderator)
Date: July 26, 2012 09:44PM
you can modify apache to look for php code in html files, but its not really effecient
Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [
pampserver.com
]
Options:
Reply
•
Quote
Go to:
Forum List
•
Message List
•
Search
•
Log In
Sorry, only registered users may post in this forum.
Click here to login