[sclug] Some cool PHP IMHO

Tom Dawes-Gamble tmdg at tmdg.co.uk
Sat Oct 25 09:05:28 UTC 2003


Hi,
	Since Patrick has lost the script I'm going to install a similar
script on the new server.  But while working on the script I had this
cool idea.  

	"Put the date of the next meeting on the web page 'automagicaly'" "-)

So I did it with some PHP.  Please see http://www.sclug.org.uk/

I'll publish the code once I'm happy with it.  I want to make it in to 
a function so it can be used for dates other than the second Wednesday
of the month.

Simon,  
	Can you retrive the updated page it's index.php rather than
index.html now. 

Regards,
Tom.

-- 
int g(int g){putchar(g);}main(){int c=c==c,h=-~c,a=h+h,*r=(int*)gmtime(&c)+a;
char*t,i,m,e;*r++=++a,*r=h+c<<h+h;a=mktime(r-a);t=(char*)ctime(&a);i=g(*t+*(t
-~h));m=g(*++t-(h<<h));e=g(*++t-c);g(*t+h);g(*++t<<c);g(i);g(m);g(e);g(*--t+h
);e=g(*r-h);g(*t-h);g(*--t+~h*h);g(e);g(g(*t)-(e=(h<<h)+h));g(e);puts(--t);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.tmdg.co.uk/pipermail/sclug/attachments/20020918/15e0b548/attachment.bin


More information about the Sclug mailing list