Copy image from url to server PHP

As I was working for image module I got opportunity to understand copy image from URLĀ to server. Simple source code will copy remote image and store into server. But you need consider about the bandwidth and storage capacity of the image which you are trying copy from remote. If you are copying the image from […]

Changing javascript date/time to server date/time using php

Simple way to change JavaScript date/time to server date/time, first we are going to pass php date format into javascript date function. <script language="javascript"> var serverDate = new Date("<?php echo date("Y/m/d");?>"); var systemDate = new Date(); function currentDateTime() { document.getElementById("divCurrentSYSTEMDate").innerHTML = systemDate; document.getElementById("divCurrentSERVERDate").innerHTML = serverDate; } </script>