You are here: Re: Batch/local PHP « PHP Programming Language « IT news, forums, messages
Re: Batch/local PHP

Posted by Martin Leese on 12/21/07 03:20

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация