Online PHP editor is going to be changed...

We are going to:

  1. Redesign the site
  2. Work with SSH instead of FTP
  3. Switch to HTTPS
  4. Work without "session" to improve security
  5. And, of course, remain open source

Please consider...

  1. Checking our new PHP blog
  2. Visit the new Facebook page

I'm using SSH and I will continue using

<? Online-PHP::Tutorials ?>

« Back

  • CAPTCHA implementation


    Integration of a relatively simple captcha in your site.
    There is an explanation on their site how to use it, I am going to show the complete required PHP code.


    On their site there are two lines (two URLs) which we are going to use:
    1. Go to you like) and read the text from the picture.
    2. Go to you like)/(text from the picture). If you entered the text correctly, you will see "1".


    Within your form add an image and a simple text input
    the image:
    <img src="" width="130" height="90" />
    * "" is a unique string which you have to append to the URL
    the input (text)
    <input type="text" name="captcha">

    When you receive the request (POST) you check the CAPTCHA in the next way:
    if (file_get_contents(''.urlencode($_POST['captcha'])) != '1') {
        header('Location: '.$_SERVER['HTTP_REFERER']);
    * Same thing here - "" is a unique string which you have to append to the URL


    * also: Google reCaptcha free service: