Comments (5)
It works fine
require __DIR__ . '/../src/RollingCurl/RollingCurl.php';
require __DIR__ . '/../src/RollingCurl/Request.php';
$rollingCurl = new \RollingCurl\RollingCurl();
$rollingCurl
->get('https://maps.googleapis.com/maps/api/streetview?size=400x400&location=taj%20Mahal&key=AIzaSyDTn9FYuxm3h3jKbEjwViHb7TKaCsXhUxI')
->setCallback(function(\RollingCurl\Request $request, \RollingCurl\RollingCurl $rollingCurl) {
file_put_contents('taj Mahal.png',$request->getResponseText(),LOCK_EX);
})->execute();
from rolling-curl.
no it is not.... the file created is empty(0 Byte) please check
from rolling-curl.
my friend google api just blocked your ip, try to change ip
from rolling-curl.
but i can view the image and file_get_contents() is working it does download the image....
from rolling-curl.
its working now the problem was with localhost i just uploaded is to one of my server and its working now... Thanks for your quick response... 👍
from rolling-curl.
Related Issues (16)
- (Emailed in) Prune & Clear HOT 3
- Bug in pruning pending request queue HOT 3
- CURLOPT_PROXY for single requests give fail if threads are > ~10
- Is it possible to add additional requests after the execution started? HOT 1
- Is it possible to get the data of each URL after the execution? HOT 1
- Mixing IPv6 and IPv4 requests HOT 1
- Is there a way to add sleep for each request?
- $html = $request->getResponseText(); gives null result
- Ip rotation HOT 1
- Page source not taking response occur by javascript execution HOT 1
- Is it possible to pass a variable to the anonymous callback function? HOT 2
- Suggestion: facilitate recursivity HOT 1
- Post Request Problem HOT 1
- How can i get curl_errno() HOT 1
- Duplicate lines in RollingCurl.php HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rolling-curl.