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
Expand|Select|Wrap|Line Numbers
- $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
Expand|Select|Wrap|Line Numbers
- 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' ";