Page 1 of 1

Newbie: Please help I can't figure it out

Posted: Tue Oct 23, 2007 8:20 pm
by cpomp
I'm new to php and I have a couple of questions. I need to implement this and I don't know what direction to take.
I'm implementing a REST application that for example, the insert's method query string looks like this: "?format=xml&businessID=1234&customerId54321&itemID=123"

My question is, where do I get the values for businessId and customerId?
Is the businessId hard coded in the business main page?
And when the user first goes to the main page a customerId gets automatically generated and it persists for the rest of the session, possibly storing it in coockies?

If this is the way to go please point me to the appropriate function and/or good tutorials about it. Otherwise, what is the way to go? Thanks!!!

Posted: Tue Oct 23, 2007 8:44 pm
by Kieran Huggins
Um.... that is the complete opposite of REST.

Check out http://en.wikipedia.org/wiki/Representa ... e_Transfer

Good, now what?

Posted: Tue Oct 23, 2007 11:23 pm
by cpomp
Thanks for the link. Now I know what is REST. But I still don't know how to start. Can someone point me to some sample code or tell me what to do. I'm really lost.

Posted: Tue Oct 23, 2007 11:29 pm
by Kieran Huggins
This might be of interest, though I can't personally vouch for it:

http://phprestsql.sourceforge.net

Descriptive Subjects

Posted: Wed Oct 24, 2007 9:52 am
by pickle
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.