Re: Batch/local PHP

Re: Batch/local PHP

am 21.12.2007 04:20:26 von Martin Leese

Martin Leese wrote:
> Hi,
>
> I have never used PHP, so please bear with me.
> I have a personal website with about 80 pages
> of HTML. I created and maintain this with a
> text editor and typing in HTML and CSS.
> Sometimes I need to make global changes, such
> as changing my e-mail address which is on every
> page. Currently, I have to manually edit 80
> pages to do this. This is a pain.
>
> So, PHP looks like the perfect solution for me.
> Only difficulty is that I use free Web hosting
> from Tripod, and they don't support PHP. (I
> can't switch without changing my domain name,
> and I am too cheap to register my own domain.)
>
> Therefore, I need a local or batch PHP system
> which I can run on my home computer. I could
> then use this to convert 80 pages of PHP to 80
> pages of HTML, and then FTP these up to my Web
> host.
>
> Is there a free version of PHP which will
> allow me to do this? I run Windows 95 on my
> home computer (which cost me $10). Is there
> another newsgroup which would be more
> appropriate for this question?
>
> Many thanks for any advice you can give.

I am posting an answer to my own question so
that it will be in the archive for others.

What I needed was PHP CLI. I am running
Windows 95, so am forced to use version
4.2.3. I downloaded the ZIP archive,
extracted php-cli.exe and php4ts.dll, and
away I go. Something like:
php-cgi.exe -f Test.php > Test.html

works great, and is just what I was looking
for. Not sure why someone didn't suggest
this. Maybe I posted to the wrong group.
Now I just have to learn PHP (which is a
useful skill to have, anyway).

--
Regards,
Martin Leese
E-mail: please@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/

Re: Batch/local PHP

am 27.12.2007 15:46:18 von Jerry Stuckle

Martin Leese wrote:
> Martin Leese wrote:
>> Hi,
>>
>> I have never used PHP, so please bear with me.
>> I have a personal website with about 80 pages
>> of HTML. I created and maintain this with a
>> text editor and typing in HTML and CSS.
>> Sometimes I need to make global changes, such
>> as changing my e-mail address which is on every
>> page. Currently, I have to manually edit 80
>> pages to do this. This is a pain.
>>
>> So, PHP looks like the perfect solution for me.
>> Only difficulty is that I use free Web hosting
>> from Tripod, and they don't support PHP. (I
>> can't switch without changing my domain name,
>> and I am too cheap to register my own domain.)
>>
>> Therefore, I need a local or batch PHP system
>> which I can run on my home computer. I could
>> then use this to convert 80 pages of PHP to 80
>> pages of HTML, and then FTP these up to my Web
>> host.
>>
>> Is there a free version of PHP which will
>> allow me to do this? I run Windows 95 on my
>> home computer (which cost me $10). Is there
>> another newsgroup which would be more
>> appropriate for this question?
>>
>> Many thanks for any advice you can give.
>
> I am posting an answer to my own question so
> that it will be in the archive for others.
>
> What I needed was PHP CLI. I am running
> Windows 95, so am forced to use version
> 4.2.3. I downloaded the ZIP archive,
> extracted php-cli.exe and php4ts.dll, and
> away I go. Something like:
> php-cgi.exe -f Test.php > Test.html
>
> works great, and is just what I was looking
> for. Not sure why someone didn't suggest
> this. Maybe I posted to the wrong group.
> Now I just have to learn PHP (which is a
> useful skill to have, anyway).
>

Maybe because Win95 went to end of life years ago, and PHP 4.x is doing
so in less than a week.

Why anyone would want to use such out of date software is beyond me.
Windows XP isn't that expensive - and neither is the hardware required
to run it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================