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

Running PHP on a client only...

P: n/a
I was wondering if it is possible to run a PHP program on a web browser
on a local PC without having a server, such as Apache, installed
locally? I am thinking about creating an application the will configure
Linux config files based on input from webpages.

I have seen this done on the CUPS setup/admin pages: http://localhost:631/

....do these pages use php, perl or what?

Miki
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
In article <lf********************@comcast.com>,
michelle <miki@spam_me.net> wrote:
I was wondering if it is possible to run a PHP program on a web browser
on a local PC without having a server, such as Apache, installed
locally? I am thinking about creating an application the will configure
Linux config files based on input from webpages.

I have seen this done on the CUPS setup/admin pages: http://localhost:631/

...do these pages use php, perl or what?

Miki


Well, php is a server-side language. So, unless there's a server
_somewhere_ that's turning the php code into HTML, my guess would be no.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Jul 17 '05 #2

P: n/a
michelle wrote:
I was wondering if it is possible to run a PHP program on a web browser
on a local PC without having a server, such as Apache, installed
locally? I am thinking about creating an application the will configure
Linux config files based on input from webpages.

I have seen this done on the CUPS setup/admin pages: http://localhost:631/

...do these pages use php, perl or what?

Miki

If http://localhost:631/ works for you then you have an php server
already running.
Check your php configuration for Doc-root. There you can place your php
files you want to execute by your browser.

Greetings, Urs
Jul 17 '05 #3

P: n/a
I don't know what's the idea (if you want something like the JAVA
Applet it won't work), but you can make your own php desktop
applications using the PHP-GTK bindings.

check http://gtk.php.net

Jul 17 '05 #4

P: n/a
I don't know what's the idea (if you want something like the JAVA
Applet it won't work), but you can make your own php desktop
applications using the PHP-GTK bindings.

check http://gtk.php.net

Jul 17 '05 #5

P: n/a
It is possible to write a simple HTTP daemon in PHP CLI. See
http://www.php.net/sockets/. Not a very robust solution though.

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.