Good morning dear Xekko's users, this time I'm trying to optimize my site with a lot of SEO stuffs, such as CSS Sprites, JS+CSS unique file + compression, CDN, etc.
The biggest trouble I'm getting with optimization regards Data URIs, which would be very useful reducing HTTP request, since my site runs with ab. 70 HTTP requests per page.
I downloaded a plugin (PHP Conditionals in Template) which allows me to put PHP in templates. Then, I put in my header template some PHP code to inizialize Data URI and then tried to encode some images directly into my HTML code.
The result is the following:
Warning  file_get_contents(http://mysite.com/file.png) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden - Line: 3 - File: global.php(511) : eval()'d code(76) : eval()'d code PHP 5.2.17 (Linux)
Seems that file_get_contents function is already declared in global.php, but it can't read the image. The problem can be solved by encoding the image on my own, without server's processing, but I have to encode every image one-by-one, and this is a waste of time. Can you help me? Thank you.