I tried to execute a php code using Wamp Server and PHP 5. it didn't work with me properly. When i executed it All times the php code content itself is coming not the things we expect. I tried with NetBeans IDE too. It returned as Connection Failed. How to run a php file other than these ways? Pls do help me.
senthamilgsa 0 Newbie Poster
Recommended Answers
Jump to PostIf you see the php code when you try to execute the module then the most likely cause is that you didn't save the module with a .php suffix. If that is the case, change the suffix and try again.
Jump to PostIf you have wamp installed you can run php from the command line.
In my system it's c:\xampp\php\php <filename.php>
You won't have any server variables or HTTP properties like cookies, though.If you can run it that way but not under apache, then probably apache is not configured …
All 5 Replies
chrishea 182 Nearly a Posting Virtuoso
tomato.pgn -6 Posting Whiz in Training
tamsoft 0 Newbie Poster
RoyalElite96 6 Light Poster
smantscheff 265 Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.