Very confused - PHP Script -

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
rainman_123
Forum Newbie
Posts: 4
Joined: Fri Mar 12, 2004 10:06 pm

Very confused - PHP Script -

Post 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
User avatar
Pointybeard
Forum Commoner
Posts: 71
Joined: Wed Sep 03, 2003 7:23 pm
Location: Brisbane, AUS
Contact:

Post 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?
rainman_123
Forum Newbie
Posts: 4
Joined: Fri Mar 12, 2004 10:06 pm

still confused

Post 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.
rainman_123
Forum Newbie
Posts: 4
Joined: Fri Mar 12, 2004 10:06 pm

Looking for php examples

Post by rainman_123 »

I am new to php and need good site to get some samples from.
User avatar
Pointybeard
Forum Commoner
Posts: 71
Joined: Wed Sep 03, 2003 7:23 pm
Location: Brisbane, AUS
Contact:

Post by Pointybeard »

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

Post 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
Post Reply