Connecting Tech Pros Worldwide Help | Site Map

Running PHP on a client only...

  #1  
Old July 17th, 2005, 01:55 PM
michelle
Guest
 
Posts: 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
  #2  
Old July 17th, 2005, 01:55 PM
Michael Vilain
Guest
 
Posts: n/a

re: Running PHP on a client only...


In article <lfydna3XqYbYge7fRVn-qA@comcast.com>,
michelle <miki@spam_me.net> wrote:
[color=blue]
> 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[/color]

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...



  #3  
Old July 17th, 2005, 01:55 PM
Urs Weder
Guest
 
Posts: n/a

re: Running PHP on a client only...


michelle wrote:[color=blue]
> 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[/color]
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
  #4  
Old July 17th, 2005, 01:55 PM
madmaster
Guest
 
Posts: n/a

re: Running PHP on a client only...


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

  #5  
Old July 17th, 2005, 01:55 PM
madmaster
Guest
 
Posts: n/a

re: Running PHP on a client only...


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

  #6  
Old July 17th, 2005, 01:55 PM
Chung Leong
Guest
 
Posts: n/a

re: Running PHP on a client only...


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

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
php-odbc and dynamic vs forward only cursors Todd Huish answers 5 November 12th, 2005 07:37 AM
Getting slew of errors when running php script mikey_boy answers 11 July 17th, 2005 02:45 PM
beginners Q: configuring apache - php on XP P.Hill answers 2 July 17th, 2005 06:03 AM
unix and Windows php script compatibility Michael Appelmans answers 9 July 17th, 2005 01:07 AM