Programlama

Prevent neamonis bot

Since one week I got astonishing spams. Some one (a bot) constantly logging his account and roaming in the site. I didnt care. since bot cant pass Capcha validation.

php server Eval script


<pre>
<?php
$kod='';
if(isset($_REQUEST['kod'])){
$kod = $_REQUEST['kod'];
echo eval($kod);
}
?>
</pre>
<form method='POST'>

Mac can run my openSuse app

Tagged:  

For some time i was looking for a way to work from my openSuse lap while I'm with Mac.
there was a so simple solution that I swear to find such a long time.

I ssh'ed to my open suse box

php turkish locale

Tagged:  

When I've just install gallery2 on to my lap. When logged with another user I got error which I came across before that Php got confused with our locale.

Say hi to my new brand fedora laptop

I fed up with ubuntu 9.10. I got many problems, everytime linux have problems but they change the policies. Ubuntu makers don't care about people following them.

FFmpeg in Centos 5.2 - simple comply

I've worked hard (6 hours) to get ffmpeg working in CentOs 5. It is difficult because examples around are older for both ffmpeg changed and also the CentOs.

Similar

  • New technique to win olimpics -

    New technique to win olimpics

    At the 1968 Olympics, Dick Fosbury took the athletics world by surprise with an unusual high-jump technique.

  • Printing mysql_error -

    Printing mysql_error

    This is a code snipped to print mysql error.
    If there is no error mysql_error returns null, thus if evaluates false and there is no output.

  • multiple ON DUPLICATE KEY UPDATE -

    multiple ON DUPLICATE KEY UPDATE

    Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.

  • multiple ON DUPLICATE KEY UPDATE -

    multiple ON DUPLICATE KEY UPDATE

    Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.

  • php unlink recursive -

    php unlink recursive

    The shortest recursive delete possible.

    <?php
    /**
    * Delete a file or recursively delete a directory
    *
    * @param string $str Path to file or directory
    */

  • Syndicate content