-
Search
Categories
-
Linux, PHP, LAMP, The Web in a blog- Android – how to develop directly on a phone
- Android drawable default icons – they are free to use
- Android how to read and write files
- Uncompress on the fly when copying a file from a remove location with scp
- Setting up an encrypted volume on an external hard drive on CentOS
- Linux bash – tar tricks
- Implement Selenium tests
- Using a downloaded package without IDE in Java
- CSS selectors optimisation
- Ubuntu Linux on Acer Aspire AO751h
Tag Cloud
alarm array backup begin button character commercial constants coppermine CSV DVD eclipse ecommerce email email server expect firefox font foreach formatting fstab ftp GMail gnome keyboard Lucene marketing memcached mount plugin profiling protect regexp scp Selenium SEO sftp split svn tar utf utf8 Vbulletin Virtual Server Web Dev Security
Category Archives: PHP
Linux – Getting Back a Deleted File
You can get back deleted files if they are still loaded by any application. For example, let’s say I’ve deleted the file myfile by mistake but I have got it still open with vim. What I can do in order … Continue reading
Posted in Linux Command Line, PHP, Web Dev Security
Leave a comment
PHP – Run a script from the command line
You can do either: php myscript.phpIn that case myscript.php will be like this: <?php echo “CIAO” ?> ./myscriptIn that case myscript.php will be like this: #!/usr/bin/php <?php echo “CIAO” ?> In order to find out where the php executable lives, … Continue reading
Posted in PHP, System Administration
Leave a comment
PHP for System Administration Using CLI
Example 1: Script example1.php: < ?php $line = trim(fgets(STDIN)); echo $line ?> Launching this command: top -b -n 1|head -5|tail -1 | php example1.php The output will be: Swap: 9839804k total, 0k used, 9839804k free, 274892k cached /////////////////////////////////////////// Example 2: … Continue reading
Posted in PHP, System Administration
Leave a comment
Online PHP Syntax Checker
http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/
Posted in PHP
Leave a comment
PHP Decoding email, Incoming email
http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/index.html decode_email
Secure PHP & Apache Configuration
PHP Disable error messages expose_php Off Check you can’t get info by doing telnet localhost 80 and then issueing: HEAD / HTTP/1.0 session.use_only_cookies = 1 allow_url_fopen Off [if you don’t really need the opposite] register_globals = Off magic_quotes_gpc = ??? … Continue reading
Posted in Apache, LAMP Server Setup, PHP, Security, Web Dev Security
Tagged Web Dev Security
Leave a comment
Protected: Youtube – Uploading Video API
There is no excerpt because this is a protected post.
Posted in PHP, Web Service
Enter your password to view comments.
Web Development Security
Most of these notes come from this book: Essential PHP Security, Chris Shiflett, O’Reilly, First Edition ISBN: 0-596-00656-XX Don’t underestimate a risk just because it’s impossible it happens: hackers are very clever and more expert than you. They could find … Continue reading
Posted in PHP, Security, Web Dev Security
Leave a comment
image_type_to_extension – changing of the default value and behaviour
The Official PHP migration guide says the function image_type_to_extension is introduced by the version 5.2. But I’m pretty sure I used it on version 5.1. And they change the $include_dot parameter from false (in the 5.1) to true. Moreover, now … Continue reading
Posted in PHP
Leave a comment
Hiding Your Email Address In Webpages
It takes the email address as input and generates the Javascript code to print the email address in the page in a hard-to-read-by-a-bot way. It splits the email address in some three-character long chunks. I was in a hurry while … Continue reading
Posted in Javascript, PHP, Web Development
Leave a comment
