|
Posted by John Obrien on 11/29/06 15:17
I have been using the manuals and typing samples in the text editor and
saving the infor as a php file. They display blank.
Here is a sentence
Now you have finished your script save it as phpinfo.php and upload it
to your server in the normal way. Now, using your browser, go the the
URL of the script. If it has worked (and if PHP is installed on your
server) you should get a huge page full of the information about PHP on
your server.
I think I do not know how to "upload it to my server in the nornal way
I was looking for something like front page or dreamweaver.
I got my sample script.
I named it myfirstphp.php
I opened my XMMA using localhost
I when to file, open and found the file in the place you suggested.
The display is blank.
<html>
<head>
<title>My first PHP page</title>
</head>
<body>
<?php
print "Hello World";
?>
</body>
</html>
I think I do not understand the statement upload it in the normal
manner.
Krustov wrote:
> <comp.lang.php>
> <John Obrien>
> <28 Nov 2006 17:23:39 -0800>
> <1164763419.053205.96230@n67g2000cwd.googlegroups.com>
>
> > I bought the book "Sams Teach yourself PHP in 24 hours."
>
> I bought the same book and now that i'm well past the php basics my
> personal opinion of it is that its a pile of steaming poo .
>
> As a php newbie it didnt tell me what i wanted to know and lots of stuff
> it does tell you is the sort of stuff you will never use .
>
> > The first step says to install PHP on my computer or an computer.
>
> Do a google search for XAMMP as this will install apache/php/mysql on
> your windows pc without the need to edit any config files .
>
> http://localhost
>
> Use the above url in your browser regardless if you are online or
> offline , Be sure and copy your website folder(s) to the /xammp/htdocs/
> folder on your hard disk or it wont work .
>
> e.g.
>
> /xammp/htdocs/yourwebsitefolder
>
> To roughly sum up , Your windows pc will now work in the exact same way
> as your php webspace .
>
>
> --
> www.phpwhois.co.uk
Navigation:
[Reply to this message]
|