473,395 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Batch/local PHP

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
8 1501
"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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Mark C. | last post by:
I'm trying to call a batch file that I've built using the FileSystemObject and CreateObject("Wscript.Shell"), oShell.Run... in an asp script. Naturally, I can get the script to work from a command...
9
by: Doug at SAU | last post by:
I need to run a batch file on a remote machine from an ASP page. I dummied up a test ASP page as follows: <% Set WshShell = Server.CreateObject("Wscript.Shell") wshshell.run...
12
by: Selva Chinnasamy | last post by:
Hi I am using batch commands against Ms-Access and getting an error Message "Characters found after end of SQL statement." String Here is my sql Dim str_screens As String = "Select * from Screens...
0
by: Elroyskimms | last post by:
I need to execute a batch file via ASP.Net. In my VB.Net code, I'm using System.Diagnostics.Process to call the batch file and its appropriate command line arguments. I'm using...
0
by: RadhakrishnanR | last post by:
Hi, I have created batch file (plz see bellow). This batch file copy the text file from FTP server. I have bellow query: 1. This bellow batch file how to call from VB6.0 application (Not in .Net...
1
by: RadhakrishnanR | last post by:
Hi, How to copy a file from SFTP server to local PC using Batch file. Please consider that SFTP server is installed in Linux OS NOT in Windows OS. i.e. I need Batch file script to do the above...
0
by: Raakish | last post by:
Hello I am trying to use a batch file to run a DTS program that I had created. Below is the Batch File code: REM Type: Batch File REM Created by: Raakish REM Contact: raakish22@gmail.com REM...
2
jamesd0142
by: jamesd0142 | last post by:
Hi, I have a batch file on a remote server. if i use remote desktop to connect to this server and run the batch file it runs as i would expect. However i need to run this batch file from my...
1
by: SPE - Stani's Python Editor | last post by:
Phatch is a simple to use cross-platform GUI Photo Batch Processor Phatch handles all popular image formats and can duplicate (sub)folder hierarchies. It can batch resize, rotate, apply...
0
by: =?Utf-8?B?UnVzdHlfUm9zZXI=?= | last post by:
Hi everyone, I'm having some issues figuring out how to complete certain tasks with a batch file, whether it be not knowing the right syntax or if it can even be accomplished with a batch file....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.