By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

Batch/local PHP

P: n/a
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.

--
Regards,
Martin Leese
E-mail: pl****@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/
Dec 11 '07 #1
Share this Question
Share on Google+
8 Replies


P: n/a
"Martin Leese" <pl****@see.Web.for.e-mail.INVALIDwrote in message
news:JLo7j.49113$Zn.4282@edtnps90...
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?
uhmmmm...ALL versions of php are free. as for running it on windows 95,
you'll have to get a version from the archives < php 5 (iirc). i would also
download xitami, a free web server that runs on windows. you may have to get
an archive version of that though as well. windows 95? really? i haven't
seen anyone use that in real life in almost 8 years!

anyway, all of that seems a bit feckless if all you want to do is change the
email address. if your webserver is using apache, you can have it include
bits of html into whatever your normal page would produce. if you're not
familiar with this, then look at the tools your host provides. grep and/or
awk would be awesome for this. use that in conjunction with regexp if you
need to.

just food for thought.
Dec 11 '07 #2

P: n/a
PHP is great for that, you can set up an include file with your menu
or specific variables (email address) and then you just change that
and the pages using the included file will display the change. At
work, I use it for our web menus.

If you wish to stay with Tripod, I don't know what you use to publish
your HTML, but many web page/site editors with upload functions
usually have some sort of global search-replace feature where it can
search/replace in all your pages at one time.

As for the idea of getting another hosting service, you could always
create a forward page (or pages) on your tripod site to redirect users
to your new hosting (whatever it becomes) so you don't loose your
current users during your transition.

Hope those ideas help
Larry
Dec 11 '07 #3

P: n/a
Steve wrote:
....
anyway, all of that seems a bit feckless if all you want to do is change the
email address. if your webserver is using apache, you can have it include
bits of html into whatever your normal page would produce.
I don't know whether Tripod Apache or not.
Anyway, the webserver is completely outside of
my control. All I can do is upload files using
FTP. Tripod then serve these with bits added
to include their banner ads.
if you're not
familiar with this, then look at the tools your host provides. grep and/or
awk would be awesome for this. use that in conjunction with regexp if you
need to.
I am familiar with UNIX tools (although would
develop Perl scripts these days). I thought
that I can't be the only person wanting to do
this, so a solution for it must already exist.

--
Regards,
Martin Leese
E-mail: pl****@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/
Dec 11 '07 #4

P: n/a
Martin Leese wrote:
Steve wrote:
...
>anyway, all of that seems a bit feckless if all you want to do is
change the email address. if your webserver is using apache, you can
have it include bits of html into whatever your normal page would
produce.

I don't know whether Tripod Apache or not.
Anyway, the webserver is completely outside of
my control. All I can do is upload files using
FTP. Tripod then serve these with bits added
to include their banner ads.
>if you're not familiar with this, then look at the tools your host
provides. grep and/or awk would be awesome for this. use that in
conjunction with regexp if you need to.

I am familiar with UNIX tools (although would
develop Perl scripts these days). I thought
that I can't be the only person wanting to do
this, so a solution for it must already exist.
Just get yourself an editor which allows search/replace across multiple
files. Don't know where you'll still find one which runs under Windows
95, though.

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

Dec 11 '07 #5

P: n/a
Gordon Burditt wrote:
....
I'm not sure that Windows 95 has the networking needed to build
PHP, and I'm not so sure that pre-built versions of PHP can run on
a Windows that old. Do you have a C or C++ compiler? Anyone else
care to chime in on this? Does the pre-built Windows version of
PHP run on Windows 95?
The most recent version of PHP to run under
Windows 95 was 4.2.3. It works fine.

--
Regards,
Martin Leese
E-mail: pl****@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/
Dec 21 '07 #6

P: n/a
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: pl****@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/
Dec 21 '07 #7

P: n/a
On Dec 11, 6:56*am, Martin Leese <ple...@see.Web.for.e-mail.INVALID>
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.

--
Regards,
Martin Leese
E-mail: ple...@see.Web.for.e-mail.INVALID
Web:http://members.tripod.com/martin_leese/
HERE IS A LIST OF FREE PHP HOSTING

http://www.google.com/custom?q=free+...ORID%3A1&hl=en
Dec 21 '07 #8

P: n/a
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.
js*******@attglobal.net
==================

Dec 27 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.