473,395 Members | 1,678 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.

Stand alone PHP

I want to use PHP as a stand alone scripting language. By that I mean
without a web server present and without any HTML in the code. I have done
this in a few tests on a Win 2000 platform and, with just PHP.exe and a DLL
and the ADOdb stuff in a lone directory, I have successfully run some
scripts to talk to a database. All fine and good.

But the real goal is to make this into a tiny runtime environment that I can
deliver to any machine ... Linux or Windows ... and run some performance
tools on the local database engines ... all without any installations on
those host machines (i.e. just copy the files ... run the analysis scripts
and copy the results for post analysis . without changing the host system).

Is there a discussion anywhere about:

Keeping the runtime size to a minimum?

Cross platform got-ya's ? (I read a couple of messages about this, just
now in this group)

If this is a topic that has been covered to death .. then I apologize and
will continue my search of back news articles.

However, if anyone else is interested in this or would care to shed some
light on these issues for me, please contact me either here or directly.

Thanks to all,

Tom


Jul 17 '05 #1
1 5643
Tom Jones wrote:
I want to use PHP as a stand alone scripting language. By that I mean
without a web server present and without any HTML in the code. I have done
this in a few tests on a Win 2000 platform and, with just PHP.exe and a DLL
and the ADOdb stuff in a lone directory, I have successfully run some
scripts to talk to a database. All fine and good.

But the real goal is to make this into a tiny runtime environment that I can
deliver to any machine ... Linux or Windows ... and run some performance
tools on the local database engines ... all without any installations on
those host machines (i.e. just copy the files ... run the analysis scripts
and copy the results for post analysis . without changing the host system).

Is there a discussion anywhere about:

Keeping the runtime size to a minimum?

Cross platform got-ya's ? (I read a couple of messages about this, just
now in this group)

If this is a topic that has been covered to death .. then I apologize and
will continue my search of back news articles.

However, if anyone else is interested in this or would care to shed some
light on these issues for me, please contact me either here or directly.


You should be able to write basic scripts that run everywhere. Just
don't use Windows-only stuff (like COM) or Unix-only stuff (like POSIX).
But, of course, the interpreter will have to be installed too. On
Windows, this is easy; just include php.exe and the needed .dll files in
your set-up program, and create a batch file to execute the php script.
There used to be a program to generate .exe files from PHP source, but
it doesn't work with newer versions of PHP.

On Linux, it should be even easier, being that modern Linux systems ship
with an interpreter for PHP, as well as those for Perl, Python, bash,
awk, and possibly others.
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: none | last post by:
Howdy all, I'm wondering if someone could give some direction on a problem I have or share their experiences. I'm wanting to create a little PHP application that will run on a local machine...
121
by: David Pendrey | last post by:
I was wondering if it is at all posible to write a stand alone .EXE program in Visual Studio .NET. Hopefully in VB.NET but if not another language would be ok. Thanks for the assistance
3
by: Todd D. Levy | last post by:
What do I need to get (from Microsoft I assume) in order to distribute stand alone Access applications to people who do not (and will not) have Access installed on their systems? I have heard...
7
by: Ulrich Wisser | last post by:
Hi, I would like to stop the postmaster every night and run vacuum pg_dump reindex in the stand alone backend.
2
by: jim-on-linux | last post by:
py help, The file below will run as a stand alone file. It works fine as it is. But, when I call it from another module it locks my computer, The off switch is the only salvation. This...
10
by: discobay | last post by:
Is there a way to create a stand alone .exe from VB2005, that does not depend upon the .NET framework being installed on the target machine? I have followed previous threads on this subject and...
11
by: pg | last post by:
My old HD crashes, so I had to do a total re-install. After installer XP, I went to the Micrsoft Update site to get all the update. After 5 hours or so ... the update cycle started looping. ...
3
by: newsaboutgod | last post by:
I need a stand alone database for a VB.Net application on a laptop. It will have about 15,000 records in it. Frst off, if there any way to load XML in to a dataset and then run SQL against it?...
2
by: skneife | last post by:
I need to create some zones in my asp page, that contains a header and a body like a webpart. How can I use a webpart for this designed without any webpart menu or connection with anything, like a...
5
jinalpatel
by: jinalpatel | last post by:
We have access database which is stand alone application. It is sitted at 21 different locations including one main office. Every month the transactions are copied in to disk and sent to the main...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.