Sign in to follow this  

[web] php

This topic is 2564 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

thanks for every one


May be my question is not clear enough.



I know How make link by html
I have tried it but it does not work

when I click on the link , Show me a page that contains PHP Code.


and

I Have tried to search on Google also!!!!

I'm waiting answer for my problem


thank you

Share this post


Link to post
Share on other sites
It sounds like your server doesn't have php installed.

Do you have these pages up on a server or are you just looking at an HTML file on your own computer in your browser?

If you are just looking at a file on your own computer (ie c:\...blah..\index.html), sorry, you can't run PHP that way.

You need to find a host or install a web server and php on your own computer which will probably be very difficult with your level of experience!

[Edited by - Atrix256 on December 1, 2010 12:21:04 AM]

Share this post


Link to post
Share on other sites
PHP files will not work by themselves.

Your PHP files needs to run on a server that has a php interpreter installed. This is usually apache with the php module installed. You can get it for many operating systems for free.

try this page for example (assuming you are using Windows).

otherwise, google "how to install php and apache"

Share this post


Link to post
Share on other sites
hii


I've already installed the apache and put all my files to it.


my problem again

I have a main page (index.html) and when I put a link to a PHP page (game.php) and I click on it I get a page that contains PHP Code



But when I change extension of main page to (index.php), the link to a PHP page (game.php) works


I want the main page .html not .php

How can I do that


Thank You

Share this post


Link to post
Share on other sites
Why do you want your URL to show .html in lieu of the .php extension?

If this is because you're worried most users will type yourdomainname.com/index.html, you can either forward them to index.php OR rest assured that most people these days just type yourdomainname.com. Having the .php extension is not a bad thing as I'd be willing to bet that most users ignore this.

There are also solutions with apache (see above post), but these are slightly difficult.

What is your motivation for changing it?

Share this post


Link to post
Share on other sites
Quote:
Original post by Cygnus_X
If this is because you're worried most users will type yourdomainname.com/index.html, you can either forward them to index.php OR rest assured that most people these days just type yourdomainname.com. Having the .php extension is not a bad thing as I'd be willing to bet that most users ignore this.


On top of that, even amazon and many other big players shows aspx extensions (afair).

Share this post


Link to post
Share on other sites
PHP files will not work by themselves.

Your PHP files needs to run on a server that has a php interpreter installed. This is usually apache with the php module installed. You can get it for many operating systems for free.
If you are trouble ,php tutorial you can found on PHPKode.com---http://www.phpkode.com

Share this post


Link to post
Share on other sites

This topic is 2564 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this