View Full Version : Client Side PHP
01-28-2010, 08:24 PM
Is there any way to run PHP files easily client-side. I've looked at Google gears that easily gives a local server. I also know that I could install WAMP, or LAMP. However, is there any PHP Runtime Environment like Java's ability to have .jar files and also be web applets. I know Java does work a little differently than this specifically but still is there a way to get PHP to run client-side easiely?
01-28-2010, 08:45 PM
You'll always need a PHP interpreter to run it, but you can package you're php into phar files if you wanted to. Phar requires PHP5.2+ and had bugs until 5.2.6. This lets you create a 'package' similar to how java handles their packages. I haven't had a chance to play around with this in a PHP5.3 environment with namespacing at this point in time, so I'm uncertain how this will interact with the spl_autoload handling.
Aside from the phar, you only need a php executable to run via cli or cgi. This is included in all php distributions. Best I know you cannot package this into a phar since that itself is just a compressed collection of php files. Best way to think of phar is like a jar file.
01-29-2010, 03:27 PM
download Wamp server http://www.wampserver.com/en/download.php .........and install it on your root of your hard drive so it should have the directory 'localdrive':\wamp\
to run php code place your .php files in 'localdrive':\wamp\www\ then in your browser type http://localhost/filename.php and it should work.
to access phpmyadmin type http://localhost/phpmyadmin/
be sure to exit skype because some of the function won't work with wampserver becase skype uses the same port number as it
01-29-2010, 08:12 PM
Is there any better wrapping system then installing WAMP?
01-29-2010, 08:16 PM
You can just download the php source or package from the php.net website. In it is the executable for it that can be run on the command line. HTML will be of no use to you of course.
01-29-2010, 08:23 PM
How about this
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.