CrAzY Posted March 10, 2014 Share Posted March 10, 2014 hello all php programmer i want some help in this function how i can use it http_put_data and thank you Link to comment Share on other sites More sharing options...
Ingolme Posted March 10, 2014 Share Posted March 10, 2014 The PHP manual explains the function here: http://php.net/http_put_data An understanding of the HTTP Protocol is necessary to fully understand PHP's http functions. 1 Link to comment Share on other sites More sharing options...
thescientist Posted March 10, 2014 Share Posted March 10, 2014 have you tried anything with it yet? What specifically do you want to know? Link to comment Share on other sites More sharing options...
CrAzY Posted March 10, 2014 Author Share Posted March 10, 2014 thanks to you Ingolmeyou have any example ? Link to comment Share on other sites More sharing options...
CrAzY Posted March 10, 2014 Author Share Posted March 10, 2014 thescientisti try to use it many time but i cant use it i want to create application or site that can do some information or some action to another site for example : do automatic register to another site Link to comment Share on other sites More sharing options...
thescientist Posted March 10, 2014 Share Posted March 10, 2014 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 More sharing options...
CrAzY Posted March 10, 2014 Author Share Posted March 10, 2014 thescientistexample :- 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 Link to comment Share on other sites More sharing options...
Ingolme Posted March 10, 2014 Share Posted March 10, 2014 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 More sharing options...
CrAzY Posted March 10, 2014 Author Share Posted March 10, 2014 Ingolme if you have solve or infomation can i use to create the site plz tell me and thanks for you to help me Link to comment Share on other sites More sharing options...
thescientist Posted March 10, 2014 Share Posted March 10, 2014 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 More sharing options...
birbal Posted March 12, 2014 Share Posted March 12, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now