|
Hi
I have a php file called saveimage.php that saves my images in a folder called images on the root of a X website:
$disk_root="..../local/home/x/x.com//";
I would like to use the same saveimage.php file to save at the same time the same image on the root of a Y website:
$disk_root="..../local/home/x/y.com//";
Here it is the contents of the saveimage.php file:
<?
functionmysql_ligar($mysql_host,$mysql_user,$mysql_pass)
{
if(($mysql=mysql_connect $mysql_host,$mysql_user,$mysql_pass))==0)return0;
else return$mysql;}functionmysql_base ($mysql,$mysql_base){if(($out=mysql_select_db($mysql_base,$mysql))==0)return0; else return1;}
include("call.inc.php"); $mysql=$connect; mysql_base($mysql,"x");
$disk_root="/.../local/home/x/x.com//";
if((!isset($client))||(!isset($img)))die("Without client or image"); $name=sprintf("%simage/file%06d%06d.bin",$disk_root,$client,$img);
if<FONT size=3><B>((<FONT face="Courier New"><FONT color=#800080>
|