Standalone Complex

php

Using Shorthand for IF/ELSE in PHP

by wajatimur on Jan.16, 2009, under php

Using shorthand for if/else in php will save you lot of time and code line.

1
    echo ($MyStatus ==sleep’ ? ‘wakeup’ :Time to Work!);
VN:F [1.7.9_1023]
Rating: 0 (from 0 votes)
Leave a Comment :, , , more...

How To Copy From Remote File To Local Server Using PHP

by wajatimur on Jan.04, 2009, under php

1
2
3
4
5
6
  $file = 'example.txt';
  $newfile = 'example.txt.bak';
 
  if (!copy($file, $newfile)) {
     echo "failed to copy $file...\n";
  }
VN:F [1.7.9_1023]
Rating: 0 (from 0 votes)
Leave a Comment :, , , more...

Looking for something?

Use the form below to search the site:

Drop us a comment, anything for sure!

Visit our friends!

A few highly recommended friends...