get yesterday's date? / get weather the current site is http://... or https://...
OK first of all,
How can i get yesterday's date?
I mean in the format:
PHP Code:
date("d m, Y");
(Simply:
PHP Code:
$yesterday = date("d") - 1;
$yesterday .= " ".date("m, Y");
doesn't cut it (like i thought it mite [dummy me :D]) as d - 1 = 0 if its the first etc.. and the month etc :@
Next:
Is there a HTTP_SERVER_VARS[?] or getenv("?") call to get weather the current site is http:// or https:// ?
tnx :)
Oh also: mSQL (Microsoft SQL Server):
is there an equivilent to MySQL_Error() for it?
ta :)