Starting from scratch

4 views
Skip to first unread message

MajusC00L

unread,
Apr 27, 2008, 7:40:52 PM4/27/08
to Fotolia API
Hi

I downloaded all files and I begin to have a good understanding of how
this PHP API kit is built.

I'm not sure yet if I will be adapting this one of build a simple one
from scratch adapted to my simpe needs. The reason is that the files
in the script, specially xml-rpc.php, use certain functions that
require a certain PHP configuration. The thing is that sometimes ISPs
set a standard PHP configuration in order to enhance their security.
One can always modify these parameters my installing its own PHP
version or my forcing a different PHP config file. Well this might not
be an obvious matters for everybody. TRo prove that, my previous
message was left unanswered probably because nobody had a clue of what
the problem was. (xml-rpx.php generates 15 warnings on every single
page of the kit).

And also, I'm quite excited at trying to build a simpler kit that
might be useful to many Fotoliaphers.

My first question is:

Is xml-rpc mandatory to post request? Is the Fotolia api capable of
receiving standard POST request issued by HTML <FORM> (with GET or
POST method) ? What would be the URL to post such a request? I guess
it's not the same "/xmlrpc/rpc" used by xml-rpc.php ?

My second question is:

Does anyone reckon that the PHP built in "simplexml()" would be
sufficient to parse the results?

Thanks in advance to anyone who will put me on the right tracks.

Friendly

Darryl

Olivier / Fotolia

unread,
May 1, 2008, 8:57:48 PM5/1/08
to Fotolia API
Hi,

On Apr 28, 1:40 am, MajusC00L <MajusC...@gmail.com> wrote:
> Is xml-rpc mandatory to post request? Is the Fotolia api capable of
> receiving standard POST request issued by HTML <FORM> (with GET or
> POST method) ? What would be the URL to post such a request? I guess
> it's not the same "/xmlrpc/rpc" used by xml-rpc.php ?
Fotolia API is using XML-RPC standard. So if you want to be able to
use the API,
you have to send valid XML-RPC requests, a simple http post with form
data won't do the job.

> Does anyone reckon that the PHP built in "simplexml()" would be
> sufficient to parse the results?
Yes it would be sufficient although it would reinvent the wheel as
there are quite a lot of xml-rpc parser available out there.
For instance, php4 and php5 provide a build-in xml-rpc encoder/decoder
(see http://www.php.net/xmlrpc)

Hope this helps

Olivier

MajusC00L

unread,
May 2, 2008, 7:34:37 PM5/2/08
to Fotolia API
It sure helps. Thanks

I've never tried to learn so many standards in such a short period of
time ;-) Let's go for XML-RPC then ;-)

As for my question about simplexml, it is because I already use it in
other script. Having that little experience, I was wondering if I
could use it on Fotolia as well.

So let's go for xml-rpc encoder/decoder then!

Thanks for the links

Darryl
> (seehttp://www.php.net/xmlrpc)
>
> Hope this helps
>
> Olivier
Reply all
Reply to author
Forward
0 new messages