i read through some of the stickies and stuff, i tried doing the thing withphp where it tel u wut version it has but i make the php file and i dont know how to include it in an html file or wutever i ned to do can some1 point me in the right direction...?You don't need to include it into a PHP file, although if you did then it wouldn't work anyways. All files with PHP code in need to have a .php extension so the server can parse them.
Now all you need for a PHP info page is this...
<?php
phpinfo();
?>
Save it and upload to your server.wut do i do after i upload it i try to view it but then it tries to Download it???i've never seen a browser attempt to Download a .php file instead of opening.Originally posted by Horus_Kol
i've never seen a browser attempt to Download a .php file instead of opening.
This means that php is not configured properly.is there a way i can configure it properly or is it jst the web host that im usingIt would be the host. What host are you using, and do they say that they support php?i as using geocities cause i jst wanted to test out my php but i guess they must not upoet it so wut owuld i have to do to run it on my computer...? or can some1 else tell me of a free web host that supports php...Geocities doesn't support PHP. Look on clickherefree.com for free hosts with PHP.thx for th link my question now is how do i run it on my computer???if all you want to do is run it on your home computer for testing purposes then have a look at <!-- m --><a class="postlink" href="http://www.easyphp.org/">http://www.easyphp.org/</a><!-- m -->
it has apache php mysql and php my admin.. all bundled in one installer for win32 platformor Xammp.
mind you if you have a router or firewall ur going to have to forward (open) some ports (80).
<!-- m --><a class="postlink" href="http://www.apachefriends.org/en/i">http://www.apachefriends.org/en/i</a><!-- m --> went to that website easyphp.org and i looked at it some and i think i should Download easyphp 1.7 but on the top it says that its been tested on a few os's but not on 98, which is wut i have.
im looking at the Xamp and that looks good but i dont see anything saying that i need to open a port, and why would i have to open 80. im assuming u have it so is it easy to setup and everything?
edit: would i have to open 80 since php is a serever language and i would have to connect to something on the internet??? ive never done anything like this before so i have know idea how it works, want to run php on my computer without having to be connected to a website or anything else.can any1 help me out??ive looked through this forum : <!-- m --><a class="postlink" href="http://htmlforums.com/showthread.php?s=&threadid=45154">http://htmlforums.com/showthread.php?s=&threadid=45154</a><!-- m -->
and i see a bunch of links and im getting all mixed up about which ones i want and which ones i dont need.
i want to program regular php on my computer, and i dont wanna have to be connected anywhere. is this simple enough?EasyPHP is a good program, this has all in one (Apache, PHP, MySQL, phpMyAdmin)...
<!-- m --><a class="postlink" href="http://www.easyphp.org/telechargements/dn.php?F=easyphp1-7so">http://www.easyphp.org/telechargements/ ... syphp1-7so</a><!-- m --> all i need to do is Download that and i can write/test php on my computer without being connected to a web server or something like that??http://www.htmlforums.com/showthread.php?s=&threadid=40769 Originally posted by scoutt
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=40769">http://www.htmlforums.com/showthread.ph ... adid=40769</a><!-- m -->
:rofl:
Yeah but you have to have a webserver for it to work.Originally posted by scoutt
I will take it for granted that you have Download ed and installed Apache and php.
that is why I said that. gave links and everything.wut do u mean i need a web server, cant i jst run it on my computer??no you can't. you need to install apache or IIS. and then install php.y do i need apache or IIS(wutever that is...?) to run php, is it like a compiler. and i cant jst run it on my computer without being connected somewhere on the internetListen, you have to have a webserver, and if you run it locally your not connected to the Internet. Read scoutt's sticky, these instructions are very good.You can run either. Apache is free and FAIRLY easy to set upt. You do NOT need to be connected to the internet once you have installed apache and php. Basically, apache is a web-server program, and it allows you computer to act as a web-server(<!-- m --><a class="postlink" href="http://httpd.apache.org/Download">http://httpd.apache.org/Download</a><!-- m --> .cgi). Once your computer can act as a web-server, you can install php on it (<!-- m --><a class="postlink" href="http://www.php.net/Download">http://www.php.net/Download</a><!-- m --> s.php). Then your computer can act as a php-enabled web-server. During installation, you will choose what directory you want to share via the server. You will then be able to view php files in that directory through a web browser like this: <!-- m --><a class="postlink" href="http://localhost/filename.php">http://localhost/filename.php</a><!-- m -->
EDIT: Links added
Now all you need for a PHP info page is this...
<?php
phpinfo();
?>
Save it and upload to your server.wut do i do after i upload it i try to view it but then it tries to Download it???i've never seen a browser attempt to Download a .php file instead of opening.Originally posted by Horus_Kol
i've never seen a browser attempt to Download a .php file instead of opening.
This means that php is not configured properly.is there a way i can configure it properly or is it jst the web host that im usingIt would be the host. What host are you using, and do they say that they support php?i as using geocities cause i jst wanted to test out my php but i guess they must not upoet it so wut owuld i have to do to run it on my computer...? or can some1 else tell me of a free web host that supports php...Geocities doesn't support PHP. Look on clickherefree.com for free hosts with PHP.thx for th link my question now is how do i run it on my computer???if all you want to do is run it on your home computer for testing purposes then have a look at <!-- m --><a class="postlink" href="http://www.easyphp.org/">http://www.easyphp.org/</a><!-- m -->
it has apache php mysql and php my admin.. all bundled in one installer for win32 platformor Xammp.
mind you if you have a router or firewall ur going to have to forward (open) some ports (80).
<!-- m --><a class="postlink" href="http://www.apachefriends.org/en/i">http://www.apachefriends.org/en/i</a><!-- m --> went to that website easyphp.org and i looked at it some and i think i should Download easyphp 1.7 but on the top it says that its been tested on a few os's but not on 98, which is wut i have.
im looking at the Xamp and that looks good but i dont see anything saying that i need to open a port, and why would i have to open 80. im assuming u have it so is it easy to setup and everything?
edit: would i have to open 80 since php is a serever language and i would have to connect to something on the internet??? ive never done anything like this before so i have know idea how it works, want to run php on my computer without having to be connected to a website or anything else.can any1 help me out??ive looked through this forum : <!-- m --><a class="postlink" href="http://htmlforums.com/showthread.php?s=&threadid=45154">http://htmlforums.com/showthread.php?s=&threadid=45154</a><!-- m -->
and i see a bunch of links and im getting all mixed up about which ones i want and which ones i dont need.
i want to program regular php on my computer, and i dont wanna have to be connected anywhere. is this simple enough?EasyPHP is a good program, this has all in one (Apache, PHP, MySQL, phpMyAdmin)...
<!-- m --><a class="postlink" href="http://www.easyphp.org/telechargements/dn.php?F=easyphp1-7so">http://www.easyphp.org/telechargements/ ... syphp1-7so</a><!-- m --> all i need to do is Download that and i can write/test php on my computer without being connected to a web server or something like that??http://www.htmlforums.com/showthread.php?s=&threadid=40769 Originally posted by scoutt
<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=40769">http://www.htmlforums.com/showthread.ph ... adid=40769</a><!-- m -->
:rofl:
Yeah but you have to have a webserver for it to work.Originally posted by scoutt
I will take it for granted that you have Download ed and installed Apache and php.
that is why I said that. gave links and everything.wut do u mean i need a web server, cant i jst run it on my computer??no you can't. you need to install apache or IIS. and then install php.y do i need apache or IIS(wutever that is...?) to run php, is it like a compiler. and i cant jst run it on my computer without being connected somewhere on the internetListen, you have to have a webserver, and if you run it locally your not connected to the Internet. Read scoutt's sticky, these instructions are very good.You can run either. Apache is free and FAIRLY easy to set upt. You do NOT need to be connected to the internet once you have installed apache and php. Basically, apache is a web-server program, and it allows you computer to act as a web-server(<!-- m --><a class="postlink" href="http://httpd.apache.org/Download">http://httpd.apache.org/Download</a><!-- m --> .cgi). Once your computer can act as a web-server, you can install php on it (<!-- m --><a class="postlink" href="http://www.php.net/Download">http://www.php.net/Download</a><!-- m --> s.php). Then your computer can act as a php-enabled web-server. During installation, you will choose what directory you want to share via the server. You will then be able to view php files in that directory through a web browser like this: <!-- m --><a class="postlink" href="http://localhost/filename.php">http://localhost/filename.php</a><!-- m -->
EDIT: Links added