Solved

Adaptive Image Issue

Posted on 2013-05-24
2
524 Views
Last Modified: 2013-05-26
I'm testing an adaptive image solution which redirects image requests to a PHP file, and serves an image size which is appropriate to the user's browser width.  I'm testing this with Wampserver, and having some challenges.  If the system is working correctly, a folder in the server root directory, called ai-cache, should accumulate some images as server requests are made.  The contents of that folder remain empty.  If you can assist in troubleshooting this, please do.

Wampserver uses Apache 2.2.21 and PHP 5.3.8 with the extension GD2 enabled.
The web page with images, which I am loading in my virtual server, has the following code in the <HEAD> section:
<script type="text/javascript">document.cookie='resolution='+Math.max(screen.width,screen.height)+("devicePixelRatio" in window ? ","+devicePixelRatio : ",1")+'; path=/';</script>

I'm attaching the php file and a text file with contents of the .htaccess, which both reside in the server root directory, along with a writeable folder called ai-cache.

adaptive-images.phphtaccess-text.txt
0
Comment
Question by:ddantes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39196248
0
 

Author Comment

by:ddantes
ID: 39196739
Thank you.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question