Jump to content
  • Advertisement
Sign in to follow this  
Game P

[web] php

This topic is 2782 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

hii every one


i have php page

and main page (index.html)

i want put link link in the main page to php page



how can i do that?


thank you


Share this post


Link to post
Share on other sites
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!