Unzip files with PHP

If you dont have shell access or cpanel access to your server and need to unzip an archive of zip file on your php server, php expert has script for you help. You can use the script below to unzip files on your server using php:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
     $zip  = new ZipArchive;
     $file = $zip->open(’my_zip_file.zip’);
     if ( $fil === TRUE ) 
     {
         $zip->extractTo(’target_dir/);
         $zip->close();
         echo ‘ok’;
     }
     else 
     {
         echo ‘failed’;
     }
?>



Above script will extract all the contents of the zip archive in the target directory, so no worries when you have no cpanel or shell access. We still have solution for your problem

Read More

Planning a Web Application

Proper planning of a Web Application is very important aspect in web development company. Here I will consider talking about only the web development companies and web developers who work basically on PHP Application Development. For all the PHP Developers it is required to plan the complete web application before they actually come in to action and start coding.

These are the basic Key Points for Planning a Web Application:

Read More

PHP Development Secrets

To be on the top in the best PHP Developers, you need not to belong a successful corporate. Only your web application and your good code count for your success in Web Development. There are PHP Experts in India and abroad as well, and we all develop PHP applications. So how you are different from a PHP Expert who is very successful.

Here are the secrets of these successful PHP Experts and PHP Developers:

Read More

PHP Tutorials: Security – XSS (Cross-site scripting)

http://www.youtube.com/v/OMcIV_nAkX8?version=3&f=user_uploads&app=youtube_gdata

Protect against injecting of client-side scripts (such as JavaScript) on your website.

Read More

PHP Tutorials: Security – File Includes

http://www.youtube.com/v/V-A4ckDALqc?version=3&f=user_uploads&app=youtube_gdata

Including files from any potentially user defined source can lead to severe security vulnerabilities being present in your code, allowing an attacker to potentially gain full control of your website.

Read More

PHP Tutorials: Security – File Uploading

http://www.youtube.com/v/DM0gjYVPZgE?version=3&f=user_uploads&app=youtube_gdata

Not protecting file uploads is a common security problem, and can lead to a variety of security issues.

Read More

PHP Tutorials: Security – Session Hijacking

http://www.youtube.com/v/6uhsN7eJQ4A?version=3&f=user_uploads&app=youtube_gdata

If you’re using session to either log a user session or storing data in sessions, you’re potentially vulnerable to session hijacking. WEBSITE http://phpacademy.org FORUM http://phpacademy.org/forum TWITTER http://twitter.com/phpacademy FACEBOOK http://www.facebook.com/group.php?gid=64583401868

Read More

PHP Tutorials: Security – Null Byte

http://www.youtube.com/v/hIoXU-Ti8cs?version=3&f=user_uploads&app=youtube_gdata

Null bytes denote the end of a string in C, which means user defined data can contain the null byte to remove data, leading to altering the way your code handles the data. This tutorials shows you how to use null byte, and how to protect against it being used to potentially attack your website. WEBSITE http://phpacademy.org FORUM http://phpacademy.org/forum TWITTER http://twitter.com/phpacademy FACEBOOK http://www.facebook.com/group.php?gid=64583401868

Read More

PHP Tutorials: Security – Cookies

http://www.youtube.com/v/_enCAlzFCUo?version=3&f=user_uploads&app=youtube_gdata

Cookies are an integral part of storing user data client-side and retrieving this data at a later date.

Read More

PHP Tutorials: Security – Passing Variables

http://www.youtube.com/v/5oqUpRXfjso?version=3&f=user_uploads&app=youtube_gdata

Passing variables to a script without performing security checks can lead to numerous security issues. WEBSITE http://phpacademy.org FORUM http://phpacademy.org/forum TWITTER http://twitter.com/phpacademy FACEBOOK http://www.facebook.com/group.php?gid=64583401868

Read More