As per Open Web Application Security Project (OWASP) there are top 10 security issues. Unfortunately PHP openness allows hackers to exploit it.
1) Injection – Injecting code as part of the actual command or query in order to break or hostile the system. This can be SQL Injection, OS Injection or LDAP injection. This occupies the top list of security flaws.
Continue reading “Zero Down the security issues in PHP by using PHP Frameworks”
Manual backing up of website content from the server to local machine should be fully automated. The system must be able to zip the website content and download to the local machine twice every week using simple PHP and shell script.
Solution: Automatic Website Backup From Linux Server – PHP script
Automatic Website Backup From Linux Server PHP script using FTP function and sh code for zipping the backup files on timely base.
Created two services to make a weekly backup.
1) Server( Centos) – A shell script which compresses the entire web site files and stores in a specific path. This script runs twice every week. Cron will take care to execute periodically based on scheduled time.
2) Client or Local machine – PHP script which downloads the zip file through FTP commands. Using windows task scheduler, the PHP script will execute periodically to download the files.
Continue reading “Automatic Website Backup From Linux Server PHP Script”