Showing posts with label php developer india. Show all posts
Showing posts with label php developer india. Show all posts

Wednesday, May 25, 2011

Enhance PHP Memory LIMIT, Upload FILE LIMIT and EXECUTION TIME: PART - 3


In this part, we will learn about how to increase execution time in PHP.

Increase Script Execution Time PHP scripts are only allowed to be executed for a definite period of time, and when it reaches the time limit, it will stop and create the following error: "Fatal error: Maximum execution time of 30 seconds exceeded in yourscript.php" To allow your PHP script to run at a longer time, you'll need to increase the maximum execution time limit of PHP scripts using any of the following methods.

3.1. php.ini configuration - Locate the php.ini file used by your web server. You can use the phpinfo() PHP function to find it. - find and modify next parameter: max_execution_time = 45 Change the value (in second) or set to 0 for infinite time - restart Apache

3.2..htaccess configuration Edit (Create) the.htaccess file in the site root (public) directory or in the directory of your script and add the following line: php_value max_execution_time 45 Change the value (in second) or set to 0 for infinite time

3.3. Configuration in PHP scripts This is probably the best method as the setting applies only to the particular script, and would not allow other poorly written scripts to also consume and waste the system's resource. To do this, call the following function in your PHP script with the maximum execution time in second as the parameter: set_time_limit ( 300 ) You can use 0 as parameter for infinite execution time.


development, apps development india, php developer india

Tuesday, May 24, 2011

Enhance PHP Memory LIMIT, Upload FILE LIMIT and EXECUTION TIME: PART - 2


In this article, we will discuss about Enhancing File UPLOAD LIMIT.

Set Upload File Size Limit your php installation putting limits on upload file size. The default will restrict you to a max 2 MB upload file size. You need to set the following three configuration options: - upload_max_filesize - The maximum size of an uploaded file. - memory_limit - This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. Note that to have no memory limit, set this directive to -1. - post_max_size - Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.

There are two methods two fix this problem.

2.1. php.ini configuration - Locate the php.ini file used by your web server. You can use the phpinfo() PHP function to find it. - find and modify next parameters: memory_limit = 32M upload_max_filesize = 10M post_max_size = 20M - restart Apache

2.2. .htaccess configuration - This is useful when you do not have access to php.ini file. Edit (Create) the.htaccess file in the site root (public) directory and add the following line: php_value upload_max_filesize 10M php_value post_max_size 20M php_value memory_limit 32M This method will only work if PHP is running as an Apache module.



development, apps development india

Monday, May 23, 2011

Enhance PHP Memory LIMIT, Upload FILE LIMIT and EXECUTION TIME : PART - 1


We know that default memory limit in PHP is 16MB. Sometimes we need more than 32 MB or 64 MB. As well as default file upload limit is 2 MB that is fairly low – and especially when site works on Photos. As script execution time, default time is 30 sec but some times, tasks require more execution time to complete their jobs.  Here are few techniques for enhance PHP memory limit, file upload limit and execution time. These techniques depend on your system configuration.

1. Set Memory Limit

1.1. php.ini configuration This is the suggested approach if you have access to the server's php.ini. This will not be possible in most shared hosting situations, though your host may be able to adjust it for you. Note that this change will affect all websites and PHP scripts on the server. - Locate the php.ini file used by your web server. You can use the phpinfo() PHP function to find it. - Edit the memory_limit parameter in the php.ini file (usually in a section called Resource Limits) memory_limit = 32M; Maximum amount of memory a script may consume (32MB) If there is no section already for this, place the above line at the end of the file. - Restart Apache. Note: If you are using XAMPP/WAMP, there may be two PHP.ini files (one under the PHP directory and the other under Apache/bin). To change your memory limit, edit the file in the XAMPP/Apache/bin directory. The next two solutions are more restricted in scope and, in some cases, may be more appropriate choices than affecting all sites.

1.2..htaccess configuration This is useful when you do not have access to php.ini file. Edit (Create) the.htaccess file in the site root (public) directory and add the following line: php_value memory_limit 32M This method will only work if PHP is running as an Apache module.

1.3. Configuration in PHP scripts Add the following line where you need to give PHP more memory: ini_set('memory_limit', '32M');

1.4. Memory limits on Shared Hostings. In some shared hosting environments, access to the PHP memory limit setting is restricted. If you cannot make the change yourself, please ask your hosting provider to adjust it for you, or look for a new host that allows more flexibility.

In part - 2, we will discuss about File upload limit. 

development, apps development india

Tuesday, May 17, 2011

What is the Future of PHP?


Do you understand the rush in demand associated to PHP development and its developers? PHP is one of the finest and cost-effective tools for web development as it is open-source and in this sense, revolutionary. Most businesses are seeking to cord in proficient PHP developers for their web business. PHP is by far one of the best programming devices and one of the most productive too.

Some of the salient advantages of utilizing PHP for web development include:
  • Open source and free
  • Supports multiple stages and web servers
  • Excellent support for MySQL, MS SQL and Oracle databases
  • Supports XML, LDAP, IMAP and other IPs
  • Extensible by its mighty Application Programming Interface
  • MVC structure support
  • Open source CMS like Drupal and Joomla available
  • Plethora of security levels


PHP carries rapid web development due to its extensible characteristics and mighty API. Many offshore development businesses offer a kind of Application development solutions. Some of the services on offer are:
  • Custom PHP Application Development 
  • Website Redesign & Upgrades 
  • Dedicated PHP Developers 
  • E-commerce Development 
  • CakePHP / PHP Zend Development 
  • WordPress, Joomla and Drupal customization 
  • osCommerce, Magento and X-cart customization


Indian businesses are well renowned providers of web development services. They design and develop sites and portals for a variety of purchasers and their offerings encompass characterizing the location structure, development of the structure, design layout, HTML modification and output, and QA-testing. The location is now prepared to use.

Website redesign encompasses productive navigation characteristics and visual apply, should support multiple stages and games an expert presence. Clients demand an interactive location habitually as it makes a world of distinction to how enterprise is undertook with the clients.

Adequate infrastructure and manpower is key for the implementation of a project. Nowadays, PHP business web development professionals use the most effective and the newest web development technologies as there have been drastic alterations to the present PHP version.

CakePHP and Zend frameworks are constructed on MVC which assists the programmers and developers to work independently. This design form permits the web pages to be mostly divided from the intrinsic code, in order that it assists the designers and programmers aim on own modules and expertise. Most PHP development businesses furthermore supply the open source customization services for Joomla, Drupal, and WordPress which can ease your web administration headache. Additionally, PHP developers work on e-commerce sites which are founded in PHP like Oscommerce / Magento / X-cart which are highly customizable shopping carts.

Tuesday, May 10, 2011

What are the Difference between PHP and ASP?


ASP and PHP are two most routinely utilized web development devices for a web design company. With the assist of these devices a developer is adept to evolve content on web servers. This assists the web development business to integrate a broad variety of design methods and methods which are matching with the computer of an individual utilizing the web site.

Active Server Pages (ASP)

ASP is fundamentally designed by Microsoft and is utilized in Internet Information Server (IIS). This is a program which is utilized with Microsoft Servers. Normally ASP is opted for fulfilling the desires of large organizations.

Hypertext Preprocessor (PHP)

PHP is a utility utilized by developers which proceeds along with UNIX and NT Servers. PHP is generally utilized with MySQL databases. Generally, PHP is utilized for fulfilling the desires of medium and small organizations.

Advantages of ASP:

  • This web development device is matching with all Microsoft applications which are commonly utilized in the business market. Because of the huge usage of Microsoft founded applications, companies opt for ASP.
  • In today's world, most of the large associations and companies are utilizing distinct kinds of Microsoft applications and their workers are utilized to Microsoft environment. So, utilizing ASP slashes the cost of teaching employees.
  • When it arrives to trading an association it becomes simpler when the business databases are organized thru ASP because it is most likely that the purchaser association will have a Microsoft founded environment. And it's actually a crucial concern in buying a business that the schemes can be administered easily.

Advantages of PHP:

  • PHP is commonly favored by developers and programmers because it is many easier to use than ASP.
  • It can be discovered very rapidly and any amateur web designer can discover it from the informative and tutorial content accessible on internet. Because of its attractiveness amidst unaligned developers who work as freelancers, there is many of material that can be discovered online for example video tutorials, dos and don'ts, directions etc.
  • Web hosting services are commonly highly ranking PHP founded web sheets and due to this because it has become lower to owner your website designed in PHP rather than ASP.
  • ASP's compatibility is restricted to Microsoft servers while PHP is matching with numerous servers.
  • PHP has its own programming dialect and syntax which are simpler than ASP.

Which is better? This conclusion is founded on the web design business i.e. what are their obligations and demands.