SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Nov 2012
    Posts
    117
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    PHP Optimization Tips

    Hi everyone

    I'm looking for PHP Optimization tips. Coding practices and other methodologies which will make my PHP execute faster.
    One tip per answer, please, and include why it makes the code faster!

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    There are no optimization tips we can provided. Optimizing an application is depended on the application. In either case you need to profile your code. See: https://en.wikipedia.org/wiki/Profil...r_programming)

    After that, use your favorite search engine for resource concerning PHP and profiling.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Zealot
    Join Date
    Feb 2012
    Location
    United Kingdom
    Posts
    110
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The best results for optimising your application are usually seen with well written code; so refactoring your PHP is a good place to start. A more generalised method would be to cache the opcode with the likes of APC (a PECL extension).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •