Very new to Wamp and php.
Posted by: Sporky (---.cg.shawcable.net)
Date: October 30, 2013 08:15PM

Hi,

Im new to Wamp and im trying to prgram in PHP, mainly out of curiosity.

A friend suggested I use Wamp to run .php files.
I have DL Wamp Server (64 bits &php 5.3) E 2.2 and my OP sytetem is Windows 7 64 bit.

I have written a simple php website and placed it in the www folder but when i open it, php language does not show.

Can someone assist please?

Options: ReplyQuote
Re: Very new to Wamp and php.
Posted by: Kirk (---.dhcp.stcd.mn.charter.com)
Date: October 30, 2013 10:33PM

Could you elaborate on what "... php language does not show" means? Ideally, you should never actually "see" PHP code on a website. Also, when you publish a web page that contains PHP, it should be published as <page_name>.php and not <page_name>.html.

Options: ReplyQuote
Re: Very new to Wamp and php.
Posted by: groovdafied (67.215.87.---)
Date: October 30, 2013 10:34PM

How are you accessing the PHP file? Are you doing something like:

localhost:80/myfile.php
or
just double-clicking the PHP and opening directly into the browser?

You need to run the PHP file from the server, not locally in your files.

Options: ReplyQuote


Sorry, only registered users may post in this forum.