Json web service 4 iPhone

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
quique
Forum Newbie
Posts: 5
Joined: Tue Feb 23, 2010 6:40 am

Json web service 4 iPhone

Post by quique »

Ok ive got the iphone app reading the json echoed by the php reading mySQL. However, i tried it with just one user so i had the iphone add read a hardcoded user.php file echoing the json string.

Now i want to make it like the twitter app from Presence Stanford where the TwitterHelper class is able, (i think because of the API, so the solution to this will be a server side coding in php presenting json), to read individual users status info. The string in that app reads something like NSURL http://%@/users/json/%@.json, where the first %@ is just the twitter.com server and i assume the %@.json refers to the particular user passed in from the authentication.

So my question is, server-side, is the API producing a page per user on request from the iphone app? So my php now needs to be like the action part of an html form, receiving a username and then getting that record from the db and producing a new page upon request called user.json? Im not sure im clear on this? So the server will have as many user.json pages as i have users in my application? All those pages, albeit small cause theyre just json files, will be physically residing on the server at once? Or do they get momentarily produced and then deleted?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Json web service 4 iPhone

Post by pickle »

Double post.

Locked.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Locked