Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-04-2008, 03:12 AM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 38
Unhappy PHP website and iPhone app??

I'm "very" new to web programming. If anything that I misunderstand, any help will be welcome to correct my mistake or misunderstanding.

How can I parse websites made by PHP for iPhone app??

I know some interesting PHP websites (including search box and using (maybe) eBay API), and just want to create my app which looks more customized layout (including search box) especially for iPhone app. Through the app, once I enter something into the search-box, I want things that I typed in automatically to be connected to the PHP websites which can find what i want. Then I wish I could display only some of outputs that website provides on iPhone screen in some customized way.

Since I don't see the URL looks like "***php?q=***" in URL field after entering search word (i.e. The URL looks like just "*****.com/search.php"), I guess I cannot use such an URL including query word like..

[WebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com/search?&q="]]];

It seems to me that I cannot even search anything from native iPhone app. This situation made me wonder if I have to parse/decode PHP website.

My question is...
1) How can I parse/decode PHP website for iPhone native app? Possible?
2) If I can, how do I make a customized search-box, which is on iPhone app, connecting to the search-box on the PHP websites?? This hopefully enables us to search anything and provide the same outputs that PHP websites gives us.
3) Any good tutorials for this kind of stuff??

Sorry for my complicated preference. Any help will be appreciated!!

Thanks,
hogeo is offline   Reply With Quote
Old 09-06-2008, 08:47 AM   #2 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 272
Default

What I would do is in your PHP, make sure you are exporting something the Iphone will enjoy.. look at JSON, or XML. The xml parser is very easy to work with on the iphone.
bikr is offline   Reply With Quote
Old 09-06-2008, 02:52 PM   #3 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 100
Default

Quote:
Originally Posted by hogeo View Post
I'm "very" new to web programming. If anything that I misunderstand, any help will be welcome to correct my mistake or misunderstanding.

How can I parse websites made by PHP for iPhone app??

I know some interesting PHP websites (including search box and using (maybe) eBay API), and just want to create my app which looks more customized layout (including search box) especially for iPhone app. Through the app, once I enter something into the search-box, I want things that I typed in automatically to be connected to the PHP websites which can find what i want. Then I wish I could display only some of outputs that website provides on iPhone screen in some customized way.

Since I don't see the URL looks like "***php?q=***" in URL field after entering search word (i.e. The URL looks like just "*****.com/search.php"), I guess I cannot use such an URL including query word like..

[WebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com/search?&q="]]];

It seems to me that I cannot even search anything from native iPhone app. This situation made me wonder if I have to parse/decode PHP website.

My question is...
1) How can I parse/decode PHP website for iPhone native app? Possible?
2) If I can, how do I make a customized search-box, which is on iPhone app, connecting to the search-box on the PHP websites?? This hopefully enables us to search anything and provide the same outputs that PHP websites gives us.
3) Any good tutorials for this kind of stuff??

Sorry for my complicated preference. Any help will be appreciated!!

Thanks,
PHP code is run server side. All the browser ever sees is code that is generated by the PHP. It's less of a decoding PHP problem than a making iPhone compatible code.
spuy767 is offline   Reply With Quote
Reply

Bookmarks

Tags
decode, parse, php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 346
19 members and 327 guests
ADY, Alsahir, Dani77, e2applets, JasonR, keeshux, mer10, Monstertaco, piesia, prchn4christ, Promo Dispenser, Robiwan, sebasx, sly24, Touchmint, twerner, zulfishah
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,759
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:26 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0