After some research and with no knowledge of PHP this is a descrition of my problem. I am trying to log on to a API to down load product data for a tab delimited file. The API is asking for login and password and warehouse ID (which I have). How do I feed the information to the API. I have no knowledge of PHP. I was told that it is a very simple script and should easy to write. Any help would be great!!!
This is a sample of the document that I am gettting the information from.
API Responses are a formatted collection of variables and values. By default the response format is URL encoded values:
code=2&text=Parameter+Missing%3A+command
All web-enabled scripting languages provide url-decoding functions to assist in decoding the values. If the calling system is using the php scripting language to access the API, setting the output=php parameter in the request will cause the response to be formatted as a serialized associative array.
brian
Very confused - PHP Script -
Moderator: General Moderators
-
rainman_123
- Forum Newbie
- Posts: 4
- Joined: Fri Mar 12, 2004 10:06 pm
- Pointybeard
- Forum Commoner
- Posts: 71
- Joined: Wed Sep 03, 2003 7:23 pm
- Location: Brisbane, AUS
- Contact:
Well, if thats in your url then you can access the variables by $_REQUEST['code'] & $_REQUEST['text']. If register globals is ON then you can just access it by $code and $text, but dont get in the habbit.
EG
That what your meaning?
EG
Code: Select all
<?php
print "Code: " . $_REQUEST['code'] . "<br />";
print "Text: " . $_REQUEST['text'] . "<br />";
?>-
rainman_123
- Forum Newbie
- Posts: 4
- Joined: Fri Mar 12, 2004 10:06 pm
still confused
What do I do with the code. I have no knowledge of php. I belive the server will need my password and login to.
-
rainman_123
- Forum Newbie
- Posts: 4
- Joined: Fri Mar 12, 2004 10:06 pm
Looking for php examples
I am new to php and need good site to get some samples from.
- Pointybeard
- Forum Commoner
- Posts: 71
- Joined: Wed Sep 03, 2003 7:23 pm
- Location: Brisbane, AUS
- Contact:
Heres a good one: PHP resource index has heaps of stuff.
-
rainman_123
- Forum Newbie
- Posts: 4
- Joined: Fri Mar 12, 2004 10:06 pm
Fast question
I know alittle about asp. what would I do with the php script about it is written? How do I run it ? Can I use dreamweaver to create it?
Thanks
brian
Thanks
brian