maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Php on Maemo5 (https://talk.maemo.org/showthread.php?t=60152)

cesco 2010-08-11 09:19

Php on Maemo5
 
Hi everybody,
i'm newbie ... sorry
I want to know if is it possible to use PHP4/5 instead of QT. I read some about http://www.phpforandroid.net/ , and i think it's very interesting for improve app catalog on Maemo.

Sorry for my bad english :( ...

Ciao
Francesco

dchky 2010-08-11 09:58

Re: Php on Maemo5
 
Yes, you can install PHP5, lighttpd, and mysql. Last time I checked (a couple of weeks ago) PHP and mysql used up about 10 or 15 megabytes of rootfs space, not yet optified by the looks of things.

Quite a few applications are using QT now, so not really a good idea to get rid of that.

Fast application manager has come along way in the last month or two, so I think that'd be a good baseline for what you'll need to improve upon. Good luck sir.

cesco 2010-08-11 10:09

Re: Php on Maemo5
 
Quote:

Originally Posted by dchky (Post 782755)
Yes, you can install PHP5, lighttpd, and mysql. Last time I checked (a couple of weeks ago) PHP and mysql used up about 10 or 15 megabytes of rootfs space, not yet optified by the looks of things.

Quite a few applications are using QT now, so not really a good idea to get rid of that.

Fast application manager has come along way in the last month or two, so I think that'd be a good baseline for what you'll need to improve upon. Good luck sir.

Thank you for tha fast answer dchky,

But can i access to my contact or call (like php on symbian) with PHP ?

kureyon 2010-08-11 11:59

Re: Php on Maemo5
 
Quote:

Originally Posted by cesco (Post 782768)
But can i access to my contact or call (like php on symbian) with PHP ?

If it can be done using command line then yes. I know for certain calling numbers can be done using some shell command (see wiki). PHP can exec shell commands and optionally return result etc.

smoku 2010-08-11 12:05

Re: Php on Maemo5
 
Quote:

Originally Posted by dchky (Post 782755)
Yes, you can install PHP5, lighttpd, and mysql. [...]

I guess, what he meant is http://gtk.php.net/

dchky 2010-08-11 12:11

Re: Php on Maemo5
 
Quote:

Originally Posted by cesco (Post 782768)
Thank you for tha fast answer dchky,

But can i access to my contact or call (like php on symbian) with PHP ?

I don't think you'll have much luck with contacts - it's a berkeley database - You could get at it with an exec through PHP and a little bit of C or C++, probably easier to use dbus though (/home/user/.osso-abook/addressbook.db)

You can quite easily access the event log with php5-sqlite for all your call and text messages. (/home/user/.rtcom-eventlogger/el-v1.db)

@smoku - PHP is in one of the repo's - testing or devel.

cesco 2010-08-11 17:28

Re: Php on Maemo5
 
what do you think about https://developer.berlios.de/projects/php-qt/ ?


All times are GMT. The time now is 04:34.

vBulletin® Version 3.8.8