Linked Questions
28 questions linked to/from What is cURL in PHP?
-8 votes
2 answers
1k views
What is the use of cURL in PHP? [duplicate]
In PHP, I see the word cURL in many PHP projects. What is it? How does it work? Link http://php.net/curl
90 votes
21 answers
49k views
When is eval evil in php?
In all the years I have been developing in PHP, I have always heard that using eval() is evil. Considering the following code, wouldn't it make sense to use the second (and more elegant) option? If ...
25 votes
5 answers
144k views
Sending email from Command-line via outlook without having to click send
I need to send email via command-line without any human interactions for automation. I know we can use mailto command but that would compose email, subject,body and everything but it wouldn't send it ...
3 votes
2 answers
3k views
Unable to use file_get_contents(), returns nothing
I'm trying to get some data from a website that is not mine, using this code. <? $text = file_get_contents("https://ninjacourses.com/explore/4/"); echo $text; ?> However, nothing is being echo'...
0 votes
2 answers
3k views
Take text from another website through php [closed]
Im trying to "get" text from another website, and publish it on mine, so that when the other website updates the text inside a "div" or other object, my website will update aswell. Can this be done ...
1 vote
2 answers
2k views
PHP and Google's reCaptcha v2 - empty response every time
We have a contact.html form that uses reCaptcha v2, whose backend processing is in a php file. I've taken enough steps to understand that when we send the verification to google's api, the response ...
1 vote
2 answers
3k views
how to stop & from changing to & in a url?
I have a url like this, https://www.example.com/send?id=1&text=http://example2.com/song.mp3 when I try to get the data of the url using file_get_contents() it shows below error, PHP Warning: ...
1 vote
4 answers
2k views
How to get data from another server using - php
The title of this question doesn't explain clearly what I'm looking for, but my question below does. So please read and if possible give me a better solution. What I'm Developing: I'm developing an ...
1 vote
1 answer
3k views
Sending Post Data to remote site and displaying the results
I've read quite a few posts here asking roughly the same thing, but usually the person asking has access to the remote site and can use the methods available to achieve this. My situation is a bit ...
2 votes
1 answer
2k views
Could not include codeigniter controller files in external php script
i have used this code form external php script to include the codeigniter controller file. include_once "codeigniter/index.php/user"; it doesn't work. 'user' is my controller file. However i can ...
-1 votes
1 answer
1k views
Issue while integrating SMS gateway in PHP
In my PHP project I want to integrate SMS gateway. I have integrated HSPSMS SMS gateway. They have given one API for this,but unfortunately I am unable to call this in proper way. I have called API ...
0 votes
1 answer
1k views
Cannot access data from external URL
I tried to open an external url. It works fine in my local server. But when i moved to live server it showing time out error. When i replaced the url by a url in the same domain ,it works fine. ...
2 votes
1 answer
1k views
Erlang & Yaws installation
I want to apologize about my English. It's not very good. So, I want to make a chat application (pretty much like Facebook's), and after reading a lot I decided to make this chat app with Erlang. ...
0 votes
2 answers
987 views
PHP cURL, POST JSON getting error in php curl
curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"firstname":"Mike","lastname":"Doel","customer_id":"12345","email":"[email protected]"}' -u API-key: ...
0 votes
1 answer
908 views
running my url instead of localhost using wampserver
Here is how I am making a REST API Call and my url is in $url below. I am running it on WAMP server and basically I have saved this php(test.php) file www folder and when I execute the url (localhost//...