Newbie: Please help I can't figure it out

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

Post Reply
cpomp
Forum Newbie
Posts: 4
Joined: Tue Oct 23, 2007 8:07 pm

Newbie: Please help I can't figure it out

Post 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!!!
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Um.... that is the complete opposite of REST.

Check out http://en.wikipedia.org/wiki/Representa ... e_Transfer
cpomp
Forum Newbie
Posts: 4
Joined: Tue Oct 23, 2007 8:07 pm

Good, now what?

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

This might be of interest, though I can't personally vouch for it:

http://phprestsql.sourceforge.net
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Descriptive Subjects

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply