Secure PHP API: how to ?

Ask about a PHP problem here.

Secure PHP API: how to ?

Postby conradk » Thu May 17, 2012 2:28 pm

Hello world,

It's been a long time since I came to this forum. So Hello :P What's up with you guys ?

I was wondering if you knew any good tutorials on how to make a secure PHP API. Do you have to use cURL to make secure requests ? It seems a lot of API's made by service providers (Paypal...) use cURL or a similar system to make requests, where an AJAX request on the client side would be enough, right ?

Any help would be appreciated :P

Have a happy summer ! :mrgreen:

Conrad
conradk
 
Posts: 117
Joined: Tue Jul 05, 2011 10:41 pm

Re: Secure PHP API: how to ?

Postby jacek » Thu May 17, 2012 11:22 pm

conradk wrote:So Hello :P What's up with you guys ?

Hello :)

conradk wrote:I was wondering if you knew any good tutorials on how to make a secure PHP API

I did a video on the basics of it, not using https but you can just change the port.

conradk wrote:Do you have to use cURL to make secure requests ? It seems a lot of API's made by service providers (Paypal...) use cURL or a similar system to make requests

No you don't, they use cURL because it's a standard and easy (I would say lazy) way to do things with HTTP. It's also about a third slower that using raw sockets.

conradk wrote: where an AJAX request on the client side would be enough, right ?

You can't make an AJAX request to a URL not hosted on the same domain.

That any help ?
Image
User avatar
jacek
Site Admin
 
Posts: 3203
Joined: Thu May 05, 2011 1:45 pm
Location: UK

Re: Secure PHP API: how to ?

Postby conradk » Fri May 18, 2012 1:19 am

Hey,

Thanks Jacek :)

Hadn't noticed you had that vid up (or maybe I watched a very long time ago). Watching it now =)

Conrad
conradk
 
Posts: 117
Joined: Tue Jul 05, 2011 10:41 pm


Return to PHP



Who is online

Users browsing this forum: No registered users and 1 guest