Skip to content

Instantly share code, notes, and snippets.

View antelove19's full-sized avatar

Falah Al Fitri antelove19

View GitHub Profile
@antelove19
antelove19 / transfer-copy.php
Created January 25, 2018 20:54 — forked from sarathlal-old/transfer-copy.php
Transfer files from server to server using PHP `copy()` function.
<?php
// Insert this file on server and go to the path from browser.
set_time_limit(0); //Unlimited max execution time
/* Source File URL */
$remote_file_url = 'http://origin-server-url/files.zip';
/* New file name and path for this file */
$local_file = 'files.zip';
@antelove19
antelove19 / PdfParser.php
Created January 25, 2018 20:41 — forked from smalot/PdfParser.php
Use this static class to extract Text from Pdf files. It supports compressed and uncompressed Pdf (version 1.1 to 1.7) : tested It supports octal encoded (eg : \050) content, but not hexadecimal (eg : <005E>). In some cases, it works better than "pdftotext" binary tool.
<?php
/**
* @file
* Class PdfParser
*
* @author : Sebastien MALOT <[email protected]>
* @date : 2013-08-08
*
* References :