All pastes #610069 Raw Edit

Someone

public php v1 · immutable
·published 2007-07-09 07:19 UTC
rendered paste body
$pos = strrpos("$photoURL","/");$newimage = substr("$photoURL",$pos+1);$handler = fopen("/var/www/$newimage","w+");fwrite($handler,file_get_contents("$photoURL"));$path = "/var/www/$newimage";$uname = "nobody"; umask (0777);chmod ($path, 0777);chown ($path, $uname);chgrp ($path, $uname);