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
  • infoweb

Author: infoweb

HTTP header and Server Response Codes

Posted on May 19, 2008August 11, 2018 By infoweb No Comments on HTTP header and Server Response Codes
Web Server

Introduction

HTTP is a transfer protocol used by the World Wide Web (WWW) to retrieve information from distributed servers. The HTTP model is extremely simple; the client establishes a connection to the remote server, then issues a request. The server then processes the request, returns a response, and closes the connection. Most HTTP communication is initiated by a user agent and consists of a request to be applied to a resource on some origin server. HTTP communication usually takes place over TCP/IP connections. The default port is TCP 80, but other ports can be used like 21 (FTP), 443 (HTTPS).

Read More “HTTP header and Server Response Codes” »

Shorthand CSS Properties

Posted on May 8, 2007May 20, 2008 By infoweb No Comments on Shorthand CSS Properties
Website Formatting

The CSS can be made clean with removing the properties names as mentioned below. This can help in reducing the size of CSS in the process of development of website.

Font

Use:

font: 1em/1.5em bold italic serif
…instead of
font-size: 1em; line-height: 1.5em; font-weight: bold; font-style: italic; font-family: serif

Read More “Shorthand CSS Properties” »

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” »

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