GP2X Php


What on earth is the point of porting PHP to the GP2X?

I despair at you people sometimes. :)
 
RobertJ posted on Dec 19 2005 at 12:51 AM said:
What on earth is the point of porting PHP to the GP2X?

Well, there's SDL bindings for php, so why not ?
you can write games in php/sdl that run on the gp2x...
 
Last edited by a moderator:
Also, which file am I supposed to be running? php5 in /usr/bin?

Because I can't seem to get it to run in Sterm, but I think it's just I can't figure out how to run files in Sterm? What command would I use?
 
Jesus, PHP is a piece of crap to begin with. Why not just use pygame?
 
Seconded.. PHP isn't really well suited to general purpose utility or game development without a browser around .. or did folks pop out a pile of PHP bindings to SDL or somesuch lately? ie: Really, any language is good if its expressive enough, just PHP is the last one that woudl enter my head for making new games or utils in, unless theres a DB and browser :)

Cool idea though .. I'd just use another language as so many are easy to pick up.. but why shoudl you? If PHP works for you, go to it. Could be amusing :)

jeff
 
I'm not much of a fan of Python, besides, optimized correctly, PHP can be much faster.

skeezix posted on Dec 18 2005 at 08:23 PM said:
Seconded.. PHP isn't really well suited to general purpose utility or game development without a browser around .. or did folks pop out a pile of PHP bindings to SDL or somesuch lately? ie: Really, any language is good if its expressive enough, just PHP is the last one that woudl enter my head for making new games or utils in, unless theres a DB and browser :)

Cool idea though .. I'd just use another language as so many are easy to pick up.. but why shoudl you? If PHP works for you, go to it. Could be amusing :)

jeff

First off, a Browser could eventually make it to the GP2X. Second, PHP IS a good language as long as you know how to code for it. Third, when did I say something about Game Design? Yes, I didn plan to make some games, but this was merely so I could code PHP on the Go, and once a web browser was coded, design websites on the go.

And about the SDL thing, read up in the topic, because ps_ mentioned that there was one in more than one post.

Once I get PHP working on my GP2X, I'll see what I can do further on it, I might be able to make games and such, and then I'll search around and see what visual Browser would be easiest to port.
 
Last edited by a moderator:
God Ginrai posted on Dec 19 2005 at 03:49 AM said:
I'm not much of a fan of Python, besides, optimized correctly, PHP can be much faster.
I'd love to see your source for that statement, especially as Python is designed to be a glue language so any speed critical sections should be rewritten in C...
 
Last edited by a moderator:
ps_ posted on Dec 18 2005 at 10:11 PM said:
Well, there's SDL bindings for php, so why not ?
you can write games in php/sdl that run on the gp2x...

How about because it's a Hypertext Pre-processor? Designed for serving dynamic web content?

Fair enough to anyone really nerdy, who wants to run a web server on the GP2X, just to do it for no other reason than it can be done.

But wasting any time trying to port a module for a web server, to a handheld which can't connect to a LAN let alone the internet, because you think you can "write games" with it merely because some other nerd thought it'd be fun to add in SDL bindings for it...

...that is right up there with ID wanting to code Doom 4 in VisualBasic, because it'll save them a lot of time with the "prototyping".

But good luck in your *project* anyway. :)
 
Last edited by a moderator:
I'm sure someone will bring over a browser to the 2x, though I don't expect it'll be super useful; ie: the limited input methods on the 2x will make it pretty aggravating to use, and of course limited networking will make remote browsing tenuous. I hadn't though much about using it locally .. a small webserver is trivial (a few dozen lines in perl for example), so all the work would be in the browser. Porting minimo (a mini mozilla) would be pretty easy and could run 'okay' as it works okay in PDAs (ie: Try it on Pocket PC.. it'll run in 12MB of RAM not too badly, and even run not too slow on 200-300MHz .. it prefers much more, but it can operate okay at that level, and its even gecko based so renders pretty well.)

320x240 for testing out websites.. rough, but all overcomable.

The real trick is sensible input .. ie: for designing websites, say, using the joystick to enter text fast enough will make oyu mad I'm sure; naturally its possible to hack on a thumbboard or bluetooth keyboard or the like with enough work, but at that point its probably easier to just use a PDA; used older units aren't expensive, and you can still get Zaurus units (though not as cheap.. they seem to hold their value more.) (Zaurus being Linux, widescreen, various features and networking depending what unit level you get.)

So keep at it .. and enjoy :) I can't see a lot of peopel helping, since a mobile unit with a joystick tends to be gaming focused with some occasional other things, but the web design aspect is one of its least strengths. But keep at it.. you don't need anyone else to do it :)

jeff
 
Back
Top