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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-06-21 at 20:25 +0200, Tijnema wrote:
> On 6/21/07, Tijnema <tijnema@xxxxxxxxx> wrote:
> > On 6/21/07, Dan <frozendice@xxxxxxxxx> 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.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux