aRo`

automating your e-commerce

Copy a picture with php

I never thought stealing , euhm copying a picture was that easy !
$imgfile = “http://www.domain.com/picture.gif”;
$newfile = “C:/webserverfolder/test.gif”;
if (!copy($imgfile, $newfile)) {
print (“failed to copy $imgfile…
\n”);
}

In this guide i’m going to give a detailed explanation on how u can get the domain name out of a referer URL wich is stored in mysql. The whole process will be executed on the MySQL server.
What i actually want to achieve is a MySQL function that returls me ‘google’ when my referer URL [...]