Hii all
It might be a silly doubt but I am puzzled a lot by it.
Basically my application need to display uploaded file from user.
The name of image file is variable. Lets say the path to uploaded file is stored in
Following four are various combination of $s
Following four commands are various syntax used to display image corresponding to each of the above $s
It might be a silly doubt but I am puzzled a lot by it.
Basically my application need to display uploaded file from user.
The name of image file is variable. Lets say the path to uploaded file is stored in
Following four are various combination of $s
Code:
$S. Now when i used following commands $s="http://localhost/myfolder/imagefolder/image.jpeg" //with quotations $s="c://xampp/htdocs/myfolder/imagefolder/image.jpeg" $s=http://localhost/myfolder/imagefolder/image.jpeg //without quotations $s=c://xampp/htdocs/myfolder/imagefolder/image.jpeg
Code:
echo "img src="$S" width="60" height="80" "; echo "img src='$S' width='60' height='80' "; echo "img src=$S width='60' height='80' "; echo "img src=".$S. "width='60'". "height='80' ";
Comment