[web] php

Started by
14 comments, last by annyphp 13 years, 4 months ago
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


Advertisement
<a href="YourPhpPage.php">Some Link</a>
You should consider one or more of the following:

* use a search engine, e.g. google
* use a PHP book
* use a HTML book
* use php.net
* use w3c.org
* use wikipedia
* read this
* read this
http://lmgtfy.com/?q=how+to+make+a+link+to+go+to+a+.php+page
http://lmgtfy.com/?q=how+to+make+a+link+to+go+to+a+.php+page
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
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]
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"
I think you should start here:
http://www.w3schools.com/php/php_intro.asp
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

This topic is closed to new replies.

Advertisement