PHP - how does this code work ?

james150687

New member
Ok so I've come across this peice of PHP code and it does exactly what I need - It retrieves the correct day of the month in numeric form etc. However I can''t work out where it is getting this information from?

the PHP code is:

<?php
echo
'theHour='.urlencode(date('G')).
'&theMinutes='.urlencode(date('i')).
'&theSeconds='.urlencode(date('s')).
'&amORpm='.urlencode(date('A')).
'&theDayNum='.urlencode(date('j')).
'&theDaySur='.urlencode(date('S')).
'&theDayChar='.urlencode(date('l')).
'&theMonth='.urlencode(date('F')).
'&theYear='.urlencode(date('Y')).
'&theTmzId='.urlencode(date('T'));
?>


Thanks very much !
 
It is getting the Information from the server you host it on. It is a server side script so the user can not see its source. but you can see the echo output.
 
Back
Top