Category: PHP Scripts
-
HOWTO: Install PEAR for php in Linux
Install PEAR for php in Linux It is very easy to install PEAR package for php. It lets you to install many many php extensions easily without compiling the source packages. If you get pear – command not found then it means pear is not installed in your server. To install it just follow the…
-
Automatic Face Detection in Photos with PHP
I have always wondered how to detect faces automatically with php script. I have seen in many photo sharing and social network sites automatically detect a face and tag a name after being uploaded. In this article, i will explain how possible this task can be achieved with simplicity with OpenCV and PHP Facedetect extension.…
-
How to filter & escape data from Injection attacks in PHP!
Ask any security expert! He will say you should always filter POST and GET data by escaping them before insertion into the database. In that way your scripts can be safe from SQL injection attacks. Many php programmers are so lazy and just directly insert the POST data without filtering it like [php] mysql_query("INSERT into…
-
how to store and retrieve checkbox value in php?
how to store and retrieve checkbox values in mysql database with php I was working on a project and i had landed in an awkward situation, where i have to save the tick box values in a database and once done, i had to retrieve those values and present it to the user for editing.…
-
PHP script to check server status online/offline
i wrote a simple php script to check whether the website or Ip address is online or offline. All you have to do is specify a website url or ip address and the script will return with ONLINE or OFFLINE. I used php fsockopen() to accomplish this. [code lang=”php”] /* Usage: $status = GetServerStatus(‘http://domain.com’,80) or…
-
Best Free Web based WYSIWYG html editors
Best WYSIWYG HTML Editors I have been searching for some of best web based html editors written in javascript so that i can integrate it with my scripts. I have found pretty nice open source wysiwyg editors so i decided to blog it here. Please note that some of the editors are just markup editors,…
-
How to unzip ZIP files with PHP
How to automatically unzip uploaded zip files with PHP I wanted to upload a zip file with php script and unzip it within the server running PHP and linux. How to do it? i am documenting here about a solution to unpack uploaded zip files locally within the server with PHP. well! it can be…
-
Lightweight PHP WYSIWYG HTML Editor
Lightweight WYSIWYG Editor for PHP A dead simple javascript based WYSIWYG html editor for PHP. It is lightwight, fastloading html editor can be integrated to PHP scripts easily. I always wanted a very simple WYSIWYG editor for my PHP scripts with just simple functions like bold, italic, URL and Image insertion and nothing more than…
-
Implementing Secure File Upload in PHP
Most PHP scripts and content management system scripts (CMS scripts) require writable permission 777 (rwxrwzrwz) to be set for certain folders for uploading photos and videos. Many security experts warn that setting 777 permission means that anybody can upload any content to your server, install malicious code, run unwanted programs and could potentially misuse your…
-
Implementing Secure File Upload in PHP
Most PHP file upload scripts and content management system scripts (CMS scripts) require writable 777 permissions (rwxrwzrwz) to be set for certain folders for uploading photos and videos. Many security experts warn that setting 777 permission means that anybody can upload any content to your server, install malicious code, run unwanted programs and could potentially…