Jump to content

http function


CrAzY
 Share

Recommended Posts

again, that's a pretty vague statement. What happens when you try? are you sure a PUT request is the method you're supposed to be using? What site are you trying to do this with? Do they have documentation support with an API?

 

You're going to need to provide specific examples for us to best help you.

Link to comment
Share on other sites

Well, here's an example of how it's used:

$url = 'http://example.com/data.txt';$data = 'Some information';$response = http_put_data ( $url , $data );echo $response;

I don't think the HTTP PUT method is what you need, though.

This function sends a PUT request, but doesn't guarantee that the server will actually do anything.

Link to comment
Share on other sites

thescientist

example :-

i want to create web application that automatic register in facebook i try to use http function but i cant do this i try it alot but the same result in every try

 

That's why I suggested you find documentation for the service you are trying to work with.

 

In the case of Facebook, they have numerous pages of documentation, and an API you need to follow. If you want to interface with Facebook, then you need to learn how to use their API.

https://developers.facebook.com/

Link to comment
Share on other sites

I dont think facebook have registration API. It would be a security issue. They wont let anyone handle passwords other than the facebook itself. Best you can do is ask for FB authentication in case they dont have id , user will register themselves in facebook popup. if they have id already and already logged in they would use your service as regisetred user of fb. you can do things behalf of them according to the application permission. If they are not already logged in they need to just log in FB pop up and then rest of the thing will work as usual.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...