Miscellany
public php v1 · immutable<?php$url = $url;if( $url ) { $url = strrev($url); $last_slash = strlen($url) - strpos($url,'/') - 1; $url = strrev($url); if( $last_slash ) { $file_name = substr($url,$last_slash); }}$remote = array("|","+", ";", "/");$file_final = str_replace($remote, "", "$file_name");$img = "$url";$copydir = "uploads/";$data = file_get_contents($img);$file = fopen($copydir . "free_loan_mirror_$file_final", "w+");fputs($file, $data);fclose($file);?>