Ik ben een paar dagen geleden overgestapt van een eigen WinXP Pro/Apache2/PHP5/MySQL5-server
overgestapt naar een eigen server met Ubuntu Linux 6.06 LAMP
. Het draait allemaal, maar sinds ik ben overgestapt is de functie file_get_contents() hopeloos traag geworden. Voorheen duurde het opvragen van een simpel RSS-je hooguit twee seconden, nu meer dan een minuut. Het resultaat is echter hetzelfde. Iemand een idee hoe dit komt?
In mijn nieuwe php.ini:

In mijn nieuwe php.ini:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| ;;;;;;;;;;;;;;;;;; ; Fopen wrappers ; ;;;;;;;;;;;;;;;;;; ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. allow_url_fopen = On ; Define the anonymous ftp password (your email address) ;from="john@doe.com" ; Define the User-Agent string ; user_agent="PHP" ; Default timeout for socket based streams (seconds) default_socket_timeout = 900 ; If your scripts have to deal with files from Macintosh systems, ; or you are running on a Mac and need to deal with files from ; unix or win32 systems, setting this flag will cause PHP to ; automatically detect the EOL character in those files so that ; fgets() and file() will work regardless of the source of the file. ;auto_detect_line_endings = Off |