🔒 Locked
[web] php
Advertisement
Original Post
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
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]
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"
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"
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
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 is handled by your Apache server configuartion. A quick Google yields at least one approach.
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?
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?
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).
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
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
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement