PHP eval(base64_decode

If you find following line of code on your site:
eval ( base 64_ decode consult a PHP developer – IMMEDIATELY! This line of code means that a hacker has gained complete control over your site and is using your website for malicious purposes. This security compromise is common to websites that are running an outdated version of WordPress. WordPress updates to newer versions to remove found security threats.

DO NOT IGNORE WORDPRESS UPDATES!

Ignoring a WordPress update may result in a mySql ...

Read more →
0

Learn PHP in 24 Hours

SAMS Teach Yourself PHP in 24 Hours, 3rd Edition courtesy of the Association for Computing Machinery

This post was created as a reference point.

PHP Standard Data Types

There are 6 standard data types in PHP. They are:

  • Integer
  • Double
  • String
  • Boolean
  • Object
  • Array
  • There are also 2 Special Data Types. They are:

  • Resource
  • Null
  • Testing for a specific data type.

    Functions to test data types

  • is_array()
  • is_bool()
  • is_double()
  • is_int()
  • is_object()
  • is_string()
  • is_null()
  • is_resource()
  • Operators and Expressions

    An operator is a symbol or series of symbols that, when used in conjunction with values, performs an action and usually produces a new value.

    An ...

    Read more →
    0

    PHP Best Practices

    PHP Best Practices & Notes

    The following notes are listed for reference to PHP development.

    MySql

    MySql Query Example
    // mysql_query(“SELECT * FROM searchengine WHERE keywords LIKE ‘%mike%’ OR keywords LIKE ‘%stratton%'”);

    Apache

    PHP

    PHP Safe Mode is deprecated.

    http://php.net/manual/en/features.safe-mode.php

    The following php script can test the connection to your database.
    Create a php file with the following code and save as test.php. Upload to your web server and run the script from a browser.
    <?php
    $host = ‘localhost’;
    $user = ...

    Read more →
    0
    Page 2 of 2 12