Re: PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

From: Date: Thu, 21 Jun 2007 18:45:31 +0000
Subject: Re: PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-257594@lists.php.net to get a copy of this message
On Thu, 2007-06-21 at 20:25 +0200, Tijnema wrote: > On 6/21/07, Tijnema <tijnema@gmail.com> wrote: > > On 6/21/07, Dan <frozendice@gmail.com> wrote: > > > Seconded :D > > > > Cool, please go to the following url and clickthe button: > > > > http://gpcc.tijnema.info/ > > > > Tijnema > > Go, go, go people :) > > 5 users have clicked yet :) Someone else is doing it too... ;) <?php function teehee() { $rawPost = array ( 'submit' => 'Cool idea!', ); foreach( $rawPost as $key => $value ) { $post[] = urlencode( $key ).'='.urlencode( $value ); } $post = implode( '&', $post ); $ch = curl_init( 'http://gpcc.tijnema.info/?' ); curl_setopt( $ch, CURLOPT_HEADER, 0 ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt( $ch, CURLOPT_TIMEOUT, 45 ); if( $rawPost ) { curl_setopt( $ch, CURLOPT_POSTFIELDS, $post ); } $result = curl_exec( $ch ); } for( $i = 0; $i < 10000; $i++ ) { teehee(); } ?> Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#257594) next »