|
Posted by Lars Eighner on 10/16/75 11:39
In our last episode,
<1139562210.208823.49630@z14g2000cwz.googlegroups.com>,
the lovely and talented Denebola
broadcast on comp.lang.php:
> I want to be able to play around with some php scripting on my pc
> without paying a company to host a domain.
> I have downloaded php onto my pc, at least I think I have, a folder
> called php has appeared on my C: drive, and I have downloaded and
> installed the Abyss web server and that appears to be working. I also
> have HTML Kit as my html editor.
> How do I get simple php scripts to work properly on my pc though? Where
> do I save the files?
You can run php from the command line. I have no idea how you
do this if you are stuck in a GUI like Windows, but if you can
reach a command line prompt (and assuming php is in your path)
simply enter
php yourscript.php
where yourscript.php is, of course some script you have written.
redirect the output where you please:
php yourscript.php > mydoc.html
> I know this may sound so simplistic to some, but I'm getting a real
> headache reading the php manual, frankly I don't understand half of it.
I suggest you do not try to generate html pages immediately.
Try to get
<?php
echo "Hello, World!";
?>
to run first.
--
Lars Eighner usenet@larseighner.com http://www.larseighner.com/
Fast, Cheap, Good: Choose any two.
Navigation:
[Reply to this message]
|