Page 1 of 1

php files wihtout a web server ? Possible ?

Posted: Fri Sep 27, 2002 4:00 am
by bussifr1
Hello,

I'm trying to start a project that will come on a CD-ROM to the clients.
It will contain a lot of static pages but a little database which I would like to access with PHP script code.

I know that it is possible to run php files from the command line with something like c:\php\php.exe -f test.php which generates the HTML code, but how can the client execute them from an Internet Explorer window or something like that ?

Any idea ? :?

Posted: Fri Sep 27, 2002 5:20 am
by twigletmac
Saw a link to this in another forum where someone was asking for help to achieve the same thing. I've never used the program so I don't know if it's any good but you might want to try it out:

http://www.indigostar.com/microweb.htm

Mac

Posted: Wed Oct 16, 2002 11:18 pm
by phphead
assuming your using windows peice a cake...
simple just write a batch file like so...
-------------------------------------------
@echo off
cls
SET PATH=%PATH%;C:\php\or wherver php is..
php -q %1 > temp.html
start temp.html
del temp.html
cls
-------------------------------------------
then just create a Short Cut with the command "batch.bat script.php" and run it. You should see Internet Explorer humming away with your scripts output run.

If for some reason you hacked *nix till it ran Internet Explorer... try converting the batch file to SH.
for more on batch files goto
http://ericphelps.com/batch/
hey im only 12(Dont tell COPPA) what you expect me to be running on my computer.

Posted: Thu Nov 21, 2002 5:30 am
by 662Corporation
that solution would require that the client have php installed on their system, i know some php developers who don't even have it on their system nevermind the people who'll be seeing the work

Posted: Thu Mar 27, 2003 5:05 pm
by Cogs
It would be overkill to have PHP on the cd.

Why not try another language?

Posted: Thu Mar 27, 2003 5:08 pm
by twigletmac
This is kinda an old thread - original post Fri Sep 27, 2002 - not sure what resurrecting it achieves :wink: .

Mac

Posted: Thu Mar 27, 2003 5:09 pm
by Cogs
OOps :oops:

Posted: Fri Apr 25, 2003 12:42 pm
by m3mn0n
i'm pretty interested in a solution to this if anyone else has found one...

Posted: Fri Apr 25, 2003 5:09 pm
by MrNonchalant
The easiest way to do this would be to have the contents of the CD launch a browser with your server URL. If you needed to do stuff on an individual basis you could have the URL include a GET with a unique userid, having the page set a cookie for future reference if the client tries to access the page minus the CD. This would also provide valuable feedback on click-throughs and usage.

Posted: Sat Apr 26, 2003 7:11 am
by []InTeR[]
The nicest solution is a php compiler that makes it a .exe ? or something like it, that can be still caled tru a webclient.

Posted: Sat Feb 14, 2004 7:46 pm
by Straterra
Why would putting PHP on a cd be overload?