开发者

How to Use PHP in IPhone Applications

开发者 https://www.devze.com 2023-01-16 12:37 出处:网络
I need to create an iPhone application using Facebook. The facebook FBConnect API supports FQL which is similar to SQL Queries.

I need to create an iPhone application using Facebook.

The facebook FBConnect API supports FQL which is similar to SQL Queries.

I would be able to create the application easily using PHP as compared to Objective-C.

So if there is any way to create 开发者_高级运维an iPhone application using PHP please reply to me.

Thanks.


Well, if you are developing something for jailbroken devices , yes it is possible to use PHP (you have to install it first from Cydia).Also note that you should implement a SQLite database if your app/script needs database functionality (you can't run a MySQL server natively on iPhone ATM). But, as pekka mentioned, this is a really bad idea, because you must set up first a lighttpd web server on iPhone (not really comfortable), or if you're planing to implement a CLI PHP script, you should first launch it (using some C functions like pipe(), dup2(), fork(), execl()) and then parse its output inside your -not-so-Objective-C- iPhone app.

So think it again...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号