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!!!
Newbie: Please help I can't figure it out
Moderator: General Moderators
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Um.... that is the complete opposite of REST.
Check out http://en.wikipedia.org/wiki/Representa ... e_Transfer
Check out http://en.wikipedia.org/wiki/Representa ... e_Transfer
Good, now what?
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.
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
This might be of interest, though I can't personally vouch for it:
http://phprestsql.sourceforge.net
http://phprestsql.sourceforge.net
Descriptive Subjects
[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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.