What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-05 21:44:14
php save image from url to folder
You should be able to use file_get_contents for this one. In order to use an URL with file_get_contents make sure allow_url_fopen is enabled in you php.ini file. define('DIRECTORY', '/home/user/uploads'); $content = file_get_contents('http://anothersite... Add solution -
Go 2021-11-04 08:34:13
uncloaking google colaboratory
<?phprequire __DIR__ . '/vendor/autoload.php';if (php_sapi_name() != 'cli') { throw new Exception('This application must be run on the command line.');}/** * Returns an authorized API client. * @return Google_Client the authorized client object */fu... Add solution -
PHP 2021-10-09 08:06:19
Download a file from external server using PHP - Move one project to another server
<?php // It will copy one server file to another server and beleive me, // it would jist take 1 second for 100MB file. // May be for 1GB = 10 seconds highest. // It's very useful to move cPanel file to another cPanel server // Create a file downl... Add solution -
PHP 2021-10-04 02:54:03
how to confirm sns subscription https php
<?php $json_write_to_text = file_get_contents("php://input"); //read the raw data $json_write_to_text = json_decode($json_write_to_text, TRUE, 512, JSON_OBJECT_AS_ARRAY); if($json_write_to_text['Type'] == SubscriptionConfirmation) { $curl ... Add solution -
PHP 2021-09-30 01:03:05
upload file to firebase storage laravel
$image = $request->image; //base64 string from frontend $student = app('firebase.firestore')->database()->collection('Student')->document('defT5uT7SDu9K5RFtIdl'); $firebase_storage_path = 'Students/'; $name = $student->id();... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5