Page 1 of 1

Very confused - PHP Script -

Posted: Fri Mar 12, 2004 10:06 pm
by rainman_123
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

Posted: Sat Mar 13, 2004 6:25 am
by Pointybeard
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

Code: Select all

<?php
   print "Code: " . $_REQUEST['code'] . "<br />";
   print "Text: " . $_REQUEST['text'] . "<br />";
?>
That what your meaning?

still confused

Posted: Sat Mar 13, 2004 8:02 am
by rainman_123
What do I do with the code. I have no knowledge of php. I belive the server will need my password and login to.

Looking for php examples

Posted: Sat Mar 13, 2004 6:17 pm
by rainman_123
I am new to php and need good site to get some samples from.

Posted: Sat Mar 13, 2004 6:40 pm
by Pointybeard
Heres a good one: PHP resource index has heaps of stuff.

Fast question

Posted: Sat Mar 13, 2004 6:49 pm
by rainman_123
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 :D