Created
October 23, 2014 15:59
-
-
Save RoyBellingan/5cb01b210764ec371416 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP Beautifier | |
Beautify and format your PHP code | |
Here is your PHP code : | |
Source | |
See as Text | |
<?php | |
public | |
function SeEstImg($CodiceSpicers, $NomeBrand, $ListinoA, $DescrizioneBreve) | |
{ | |
$urlimg2 = "http://xx/" . $CodiceSpicers . "A1.jpg"; | |
$urlimg = "http://xx/" . $CodiceSpicers . "A1.jpg"; | |
$out = ''; | |
$urlfinal = ''; | |
$dir = "../img1/"; | |
$upast = $dir . $CodiceSpicers . "_(npget).jpg"; | |
if (is_file($urlimg2)) { | |
if (!copy($urlimg2, $dir . $CodiceSpicers . "_(npget).jpg")) { | |
$out.= "Copy NO success!Copy failed."; | |
} | |
else { | |
$urlfinal = $dir . $CodiceSpicers . "_(npget).jpg"; | |
$out.= "Copy success!"; | |
} | |
} | |
else { | |
// senno mi stampa una img a caso | |
$urlfinal = '../menuimg/jp.png'; | |
} | |
var_dump(is_file($urlprova)); | |
$out.= "<div>" . $upast . "<br />" . $urlimg2 . "<img src='$urlfinal' width='10%' >" . $urlfinal . "<br /> | |
<a href=''> " . iconv("windows-1252", "UTF-8", $DescrizioneBreve) . "-" . $NomeBrand . "-" . $ListinoA * 2.30 . "</a><br /> | |
</div>"; | |
// print_r($rt); | |
return $out; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment