Encoding php file

str_rot13()
base64_decode()
 
Try ionCube PHP Encoder, 
link - http://www.ioncube.com/sa_encoder.php 
 

Use $_POST to get input values

It will execute the whole file as PHP. The first time you open it,
 $_POST['submit'] 
won't be set because the form has not been sent.
   
<?php
  if (isset($_POST['submit'])) {
    $example = $_POST['example'];
    $example2 = $_POST['example2'];
    echo $example . " " . $example2;
  }
?>
<form action="" method="post">
  Example value: <input name="example" type="text" />
  Example value 2: <input name="example2" type="text" />
  <input name="submit" type="submit" />
</form>

PHP Write and Read from File


$fp = @fopen ("text1.txt", "r");

$fh = @fopen("text2.txt", 'a+');

if ($fp) {
 //for each line in file
    while(!feof($fp)) {
    //push lines into array
    $thisline = fgets($fp);
    $thisline1 = trim($thisline);

     $stringData = $thisline1. "\r\n";
    fwrite($fh, $stringData);

                  fwrite($fh, "test");

                }
            }
fclose($fp);
fclose($fh);
 
 

Check if image file ??

allow_url_fopen is activated in your PHP config 
 
 $filename = "http://".$_SERVER['SERVER_NAME']."
/media/img/".$row['CatNaam'].".jpg";
 echo"  <img src=\"".$filename."\" alt=\"".$row['CatNaam']."\">";

        

        if (file_exists($filename)) {
            echo "The file $filename exists";
        } else {
            echo "The file $filename does not exist";
        }

PHP mail function

 sendmail cofiguration in php.ini file
 If the smtp server you're trying to relay the 
 

Free Hosting


Biz.ly Free Hosting
 Get 100MB of Free Web space, a free file manager, free online Website editor, UNLIMITED bandwidth and more when you register with Biz.ly's free website hosting service. They also offer free sub-domains, so your URL (Web address) will look like "yourname.

Free Webhosts Directory 
Searchable database directory of over 1,200 free webspace hosts with reviews and ratings.

Writing Java Programs

amount  variable’s value.

class test {
public static void main(String args[]) {
double amount;
amount = 5.55;


HTTP “200 OK” response

A complete request is not necessarily a successful request, and
your handler for the load event should check the status code
of the XMLHttpRequest object to ensure that you received an
HTTP “200 OK” response rather than a “404 Not Found” response,


var keyword JavaScript

The var and function are declaration statements—they declare
or define variables and functions. These statements define
identifiers (variable and function names) that can be used elsewhere
in your program and assign values to those identifiers.
Declaration statements don’t do much themselves, but by creating
variables and functions they, in an important sense,


Expression Statements

Assignment statements are one major category of
expression statements.
 For example: