Gp2x Php Directory


firefly2442

Member
Joined
Aug 17, 2006
Messages
136
Age
39
Location
USA
Website
www.rivetcode.com
Hello. Can somebody point out where the PHP directory is in the GP2X. I looked at my "phpinfo()" and it seems that it's in /usr/local/ ... but when I go into this directory, it's empty. Anyone have any ideas? I want to install some PHP modules. Thanks. :)
 
Well, I just thought it would be fun to install some simple PHP apps on it. But one of them requires two PHP modules to work. I would try installing them if I could figure out where the directory was... :blink:

If you go into /usr/gp2x/www/

there's an index.php file.

If you create a new file, say phpinfo.php

and put in:

<?php
phpinfo()
?>

Then fire it up and it tells you a bunch of information about the PHP version.

The webserver is thttpd and after downloading PHP 4.4.4, I found thttpd in a folder in it. So I'm still not sure if it's just built into the thttpd binary...

I tried running PHP from the commandline and nothing happens so I'm guessing this is probably the case.

Has anyone tried compiling Apache or any other webservers that are small and lightweight enough to run PHP?

Thanks, oh and Merry Christmas! :)
 
Back
Top