How to print “Hello World” in PHP?
To print Hello world in php you must have PHP installed on your system and follow the following syntax. Goal of this script to teach How to print “Hello World” in browser using PHP.
To print Hello world in php you must have PHP installed on your system and follow the following syntax. Goal of this script to teach How to print “Hello World” in browser using PHP.
Difference between cookies and session is : Cookies stores the information on client browser and session stores the information on server. session and cookies are used to store the information.
You just have to run the following command
Step1 : Fetch/Retrieve the image from datbase using database functions. Step2 : Now use the image tag below. <?php $convertedImage =’CONVERTED_IMAGE_FROM_DB’; ?> <img src="data:image/jpg|gif|png;charset=utf8;base64,$convertedImage" /> jpg/gif/png depends on the type of image.<?php $convertedImage =’CONVERTED_IMAGE_FROM_DB’; ?> <img src="data:image/jpg|gif|png;charset=utf8;base64,$convertedImage" /> jpg/gif/png depends on the type of image.
Step 1: First of all Convert image to binary. <?php $imageURL =’YOUR_IMAGE_URL’; //or you can upload $convertedImage = base64_encode(file_get_contents($imageURL)); /** Now store $convertedImage in Database using database functions.**/ ?> <?php $imageURL =’YOUR_IMAGE_URL’; //or you can upload $convertedImage = base64_encode(file_get_contents($imageURL)); /** Now store $convertedImage in Database using database functions.**/ ?>