|
Posted by Kimmo Laine on 12/21/05 07:03
<gjdagis@hvc.rr.com> kirjoitti
viestissδ:1135136100.746320.219580@z14g2000cwz.googlegroups.com...
> This is my first day trying to learn PHP and ALREADY I'm stumped. I
> bought the SAMS Guide toPHP. MySQL, and Apache Book. On page 18 it
> tells me to create a file called phpinfo.php. HOW do I create a PGP
> file ? I have Word etc but programs like this create TEXT files etc. ,
> DON'T THEY? I created it anyway and did as told. Was this OK ?
>
> The file looks like this
> <?php
> phpinfo();
> ?>
> and was created in WORD saved as phpinfo.pgp
>
> Secondly: On the same page (after creating the above and putting it
> into C:/Apache/Apache2/htdocs as told) it says to point the web browser
> to http://localhost/phpinfo.php and I should see the PHP information
> page. All my browser does is hang up while searching for the page. What
> the heck am I doing wrong ALREADY ! Geez this is HORRIBLE. Please help.
Php files (not pgp) are simply text files that have the extension ".php", so
you can easily work even with notepad. In fact I'd strongly recommend you to
use that instead of Word, but it's up to you.
The true problem may exist somewhere else in your localhost configuration.
Firstly Apache should display a test page if you go to http://localhost/ to
confirm that Apache is able to display any pages at all. Once you've made
sure the apache test page appears, you can start looking for the problem
from php configuration, but for now just make sure Apache can serve plain
html pages so the problem isn't there.
Cheers
--
SETI @ Home - Donate your cpu's idle time to science.
Further reading at <http://setiweb.ssl.berkeley.edu/>
Kimmo Laine <antaatulla.sikanautaa@gmail.com.NOSPAM.invalid>
Navigation:
[Reply to this message]
|