Dynamic Web Pages: deutschsprachiger PHP Knotenpunkt seit 1999

Dynamic Web Pages : tutorials _

 
  PHP Journal  


 
 
 

Offizieller
Konferenz-Partner


php|tek 2009 PHP Conference - Chicago, May 19-22, 2009

 


 
 
 
 

PHP QuickRef

Via QuickRef gelangen Sie direkt zur gesuchten Funktion im Handbuch.

 
 

Printmedien

PHP-Magazin
Das PHP Magazin erscheint 2-monatlich zum Preis von 9,80 €. Studenten erfreuen sich über ermäßigte Abos.

PHP-Journal
Das PHP Journal erscheint 2-monatlich zum Preis von 14,95 €. Studenten und Abonnenten erfreuen sich über bis zu 25% Ermäßigung.

PHP Solutions Magazin
Das PHP Solutions Magazin erscheint alle 3 Monate zum Preis von 8,75 €. Studenten erfreuen sich über ermäßigte Abos.

PHP-Architect
Der php|architect erscheint monatlich als digitale PDF-Version zum Preis von $3,99 USD und als Print-Version zum Preis von $8,69 USD. Im Abo gibt es Rabatt (30% Print, 15% PDF).

International PHP Magazine
Das international PHP Magazine erscheint monatlich zum Preis von 4,- € bzw. im Abo für 3,50 € (42,00 € /Jahresabo).

 
Tutorials: Cache/Output Buffering
Tutorial in dieser Kategorie hinzufügen
Optimizing with APC (238 Zugriffe)

pcode caches save energy, expenses, improve overall user experience on web sites, and it's often one of the simplest optimizations to implement. This article will explain the basics of installing, configuring, and tuning an opcode cache for PHP, the Alternative PHP Cache (APC).

Tutorial kommentieren  Defekten Link melden

 
APC Autofilter: The Real Story (344 Zugriffe)

PHP programmers don't really understand PHP.

They know how to use PHP - but they hardly know how it works, mainly because it Just Works most of the time. But such wilful ignorance (otherwise known as abstraction) often runs them aground on some issues when their code meets the stupidity that is APC. Bear with me while I explain how something very simple about PHP - how includes work.

Every single include that you do in PHP is evaluated at runtime. This is necessary so that you could technically write an include inside an if condition or a while loop and have it behave as you would expect. But executing PHP in Zend is actually a two step process - compile *and* execute, of which APC gets to handle only the first.

Tutorial kommentieren  Defekten Link melden

 
Speedup your website with Cache_Lite (483 Zugriffe)

Every time a request hits your server, PHP has to do a lot of processing, all of your code has to be compiled & executed for every single visit. Even though the outcome of all this processing is often identical for both visitor 21600 and 21601. So why not save the flat HTML generated for visitor 21600, and serve that to 21601 as well? This will relieve resources of your web server and database server because less PHP often means less queries.

Tutorial kommentieren  Defekten Link melden

 
Installing The PHP-MemCache Module On CentOS 5.0 (378 Zugriffe)

“MemCached” is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Tutorial kommentieren  Defekten Link melden

 
Caching your pages with PHP (438 Zugriffe)

In this article I will try to give a view of what is the custom caching with php, why and how we can use it.

In the modern days, most of the sites are database driven. That means that your site is actually an application which retrieves data from a DBMS ( database managment system, eg MySQL) , parses the data and shows the result to the user. Most of these data are usually don't change frequently or don't change at all, and the reason that we use the database is that we can easilly update the site and the content.

A problem that this process creates is the server overhead. Every time we execute a query in the database, the instance of our script will call the DBMS, and then the DBMS will send the results of the query. This is time consuming, and especcially for sites with heavy traffic is a real big problem.

Tutorial kommentieren  Defekten Link melden

 
Vancouver-Conference: Cache for Ca$h [PDF] (402 Zugriffe)

PHP generated content is by its nature dynamic. However, in most cases the content displayed is static or rarely changing.
By caching static components of the page or even entire pages it is possible to reduce the processing time involved in generating a page.

Tutorial kommentieren  Defekten Link melden

 
Serving Cached Data For Improved Performance (822 Zugriffe)

Over the past day I've been going through a few web applications and preparing them in the event they get digged or slashdotted. One of my primary goals was to cache as much data to disk, rather than hitting the database for it each time. Now, most of the web applications I have written myself, so I didn't have the luxury of some type of pre-made mod or plug-in. In one case, this textpattern installation, I did have that luxury.

For the textpattern installation, I just used the wonderful asy-jpcache plug-in. It does full page caching, which is what I was looking for in this instance. It will expire the cache when an article is added, edited, or deleted. It also expires the page cache if a comment is posted. Enabling page level caching in this textpattern installation has made us able to serve roughly 20 times the number of pages before reaching a critical load. Quite impressive!

Tutorial kommentieren  Defekten Link melden

 
Compressing JavaScript and CSS (812 Zugriffe)

When your building fancy AJAX websites one thing that tends to happen is you end up loading amounts of JavaScript and CSS on your pages. And while browsers are smart and do a lot of client side caching you can’t get rid of that weight on your first page load.

For example on my blog I have about 60K of JavaScript and 10K of CSS. Now this isn’t horrible but when you figure images and 90K of HTML it doesn’t take long to get to my 200K total page weight.

There are a lot of various approaches for cutting down the size of JavaScript and CSS. Some of the common ones are removing whitespace and comments for JS and CSS, or using scripts which use alternate smaller syntaxes. There are a couple problems with this approach first it just doesn’t save as much space as I’d like, you can cut 60K of JavaScript down to 30K but not 10K. Second it makes debugging horrible, every JavaScript or CSS error comes from line 1 or the file.

There is a better approach and it comes from a technology in our browsers called Content Encoding. With the right headers we can send gzip’d content to the browser and it will automatically uncompress it. All modern browsers support this so its a huge win.

Tutorial kommentieren  Defekten Link melden

 
How to install Alternative PHP Cache (811 Zugriffe)

The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. It was conceived of to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

Tutorial kommentieren  Defekten Link melden

 
Remember: be nice to byte code caches (448 Zugriffe)

Autoload is kinda convenient. Especially since in PEAR we have such a clear mapping of class name to file name. I do not really understand why some libraries and projects have these insane class name to file name mappings like ez Components and I think symfony also has them. Anyways while it seems kind of nice one must be weary of the idea that they speed up your code. If you are running a byte code cache (which anyone who cares about performance of course does) you will get quite the opposite.

Tutorial kommentieren  Defekten Link melden

 
zurück

PHP Newsletter

Bleiben Sie immer "Up-To-Date" mit unseren Newslettern!

PHP Newsletter
PHP Trainingsletter

 
 
 
 

RSS-Feed

PHP News einbinden News von
Dynamic Web Pages
aktuell per RSS-Feed einbinden!

Mit der Einbindung des RSS-Feed erklären Sie sich mit den Nutzungsbedingungen einverstanden.

 
 
 
 

PHP Releases

 
 
 
 
 
   
powered by Hetzner
Unterstützer von Dynamic Web Pages
Private Krankenversicherungen  volkshochschule / musik 


top Alle Rechte vorbehalten. © Dynamic Web Pages 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 top

  Seitenaufbau in 0.377 Sekunden  
 
Werbung an/aus Werbung aus Werbung an