Skip to content

Technology Forum

SEO, Speed Up website, Server Optimization, Linux, Open Source Softwares

  • Home
  • General
    • Web Server
    • Website Formatting
  • IT Companies
  • Optimization
    • PHP
  • Linux
  • Home
  • Optimization
  • PHP
  • Page 3

Category: PHP

PHP optimization, techniques and practises.

Manage and Tweak Dedicated Linux Hosting Web Server

Posted on March 30, 2013 By admin No Comments on Manage and Tweak Dedicated Linux Hosting Web Server
Linux, PHP

To manage your linux based Dedicated Linux Web server having plesk as control panel. You can do following to tweak, enhance performance and to manage services: Linux Configuration As we do on our normal Linux based server, we list out all the services which are running on the it. We should stop those services which … Read More “Manage and Tweak Dedicated Linux Hosting Web Server” »

Using PHP script to delete a multiple files

Posted on September 16, 2012September 16, 2012 By admin No Comments on Using PHP script to delete a multiple files
PHP

This is short php script to delete files file by file in a loop. To do deletion with PHP, use this little PHP script: $dir = “/directory/”; $dh = opendir($dir); $i = 0; while (($file = readdir($dh)) !== false) { $file = “$dir/$file”; if (is_file( $file)) { unlink( $file); if (!(++$i % 100)) { echo … Read More “Using PHP script to delete a multiple files” »

TIPS

Posted on June 30, 2012July 8, 2012 By admin No Comments on TIPS
PHP

Check HTTP Connections The following may indicate if you’re getting slammed by one host. It should display all current connections to port 80 ordered by count netstat -anp |awk ‘/:80/ {print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n How to Release Memory/Caches/Buffers To release disk buffers and caches used … Read More “TIPS” »

PHP Code Optimization

Posted on May 5, 2007February 15, 2023 By infoweb No Comments on PHP Code Optimization
Optimization, PHP

I have found the post by Reinhold Webber, which provide good techniques and methods for PHP performance and optimization. I have tried to add more explanation to the points posted by Reinhold Webber.

    1. If a method can be static, declare it static. Speed improvement is by a factor of 4.
    2. echo is faster than print and print_r.
    3. Use echo’s multiple parameters instead of string concatenation.
    4. Set the maxvalue for your for-loops before and not in the loop.
    5. Unset your variables to free memory, especially large arrays.
    6. Avoid magic like __get, __set, __autoload.

      Read More “PHP Code Optimization” »

Posts pagination

Previous 1 2 3

View Posts

  • PHP FPM modification – Plesk
  • HTML: Link rel – Preload
  • HTML: Attributes of rel
  • Linux Commands
  • Security HTTP Headers

Categories

  • Domain Name
  • General
    • Servers
    • Web Server
    • Website Formatting
  • IT Companies
  • Linux
  • MySQL
  • Optimization
    • PHP
  • Troubleshooting
  • Web Hosting Control Panel
    • Plesk Panel
  • Websites
    • CSS
    • HTML
    • Optimization
  • Windows
    • Windows 10

Recent Posts

  • PHP FPM modification – Plesk
  • HTML: Link rel – Preload
  • HTML: Attributes of rel
  • Linux Commands
  • Security HTTP Headers

Copyright © 2025 Technology Forum.

Theme: Oceanly News by ScriptsTown