Calling images on website two times

Hi,
When I am calling the images of the contents in the website which is developped by PHP, there is no problem to display them. But i check the Access Logs of site, Only Firefox GETs the page TWO times. Other browsers GET the page for one time, but Firefox GETs two times.
Image URL like this : http://www.mysite.com/image/name-of-the-image.jpg (With htaccess rewrite, to an image.php PHP file)
in image.php file , Image Magick (Php Image Library) prints the image..
Internet explorer, chrome, opera vs. is normal. Firefox gets two times on Access Log...
What is the solution of this problem, i couldn't find a solution...

Thanks David,
Yes it was a problem for development. I made the headers but still not worked. Then i tried different header, now problem solved... may be needed in the future, the correct header codes like this:
// Last Modified date for caching
$file_last_modified = filemtime($filename);
// Expires in two months
$expires = time() + (60 * 24 * 60 * 60);
header("Pragma: public");
header("Content-type: image/jpeg");
header("Expires: " . gmdate("D, d M Y H:i:s", $expires) . " GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $file_last_modified) . " GMT");
Thanks

Similar Messages

  • Rotate an image after clicking two times on reference points on the picture

    Hello Community!
    I am looking for a solution to rotate an image by clicking on two reference points on the image. The two coordinate pairs of the mouse clicking can give me the rotation angle with simple geometry. After that I will rotate the image with the calculated angle.
    My problem is: How can I get those two coordinate pairs? I wanted to do it with an easy MatlabScript "input: path ... imread(path) ... imshow ... ginput(2) ... calculation ...output: angle". Apparently imshow doesnt work in Labview
    I already have the Mouse Down event but I dont know how I can make Labview let me click EXACTLY and ONLY two times on my picture and store the coordinates.
    Does anyone of you have a glue/ hint how to do that? 
    Best,
    Annki
    (Started LabView 2 weeks ago)
    Solved!
    Go to Solution.

    Hi Annkitranky,
    welcome to the forum!
    Here is one that works well: http://en.wikipedia.org/wiki/Cyanoacrylate  (Sorry, I couldn't resist...)
    Check this out: http://forums.ni.com/t5/LabVIEW/Using-mouse-click-to-return-image-coordinates/m-p/890731 and http://forums.ni.com/t5/LabVIEW/How-to-find-cursor-position-on-an-image-in-LabVIEW/m-p/1862495 There is a suggestion not marked as a solution, but I think it is: see last posts there; User Event Structure with the position reported implicitly. Further, I would put the Event Structure in the While Loop, where I wait for user input, collect the user inputs and finish (execute rotation on a two-element array).
    If you have a code or something, post it.
    Cheers

  • Safari image loading two times ?

    Hi,
    I have a website that loads the contents for an ul tag throug an jquery ajax call every 10 seconds. In this chunk, I have an img tag.
    I see the image loading, then at the next load the image blinks one time, after that the image is ok, until I select another image. After selecting another image, it shows correctly, and upon next load it blinks one time.
    When I look in the Web Inspector - Resources, I see the ajax call being made followed by loading the image. The next time I see the ajax call again followed by loading the image again. From here on, I only see the ajax call every 10 seconds, and no image reloading.
    Can someone explain to me why the image is loaded twice ? Why is it not loaded and cached in one time ?
    I see this on iPod Touch, iPad, Safari Desktop.
    If this is a bug, does anyone know a work around to prevent the image to blink one time ?

    I have created a testcase
    http://www.maakmenietgek.com/test6
    Best is to open safari, open the webinspector in the resrouces, and then browse to this page.
    I should load with a red square, after 3 seconds it should load a green square, and 3 seconds after that you will see the blink. In webinspector you can see that the green image is reloaded.

  • Two images at the same time

    Hi!
    I'm new into FCE and I would like to ask for some help. Can I work with two images at the same time? I mean, Can I superimpose two images to make one? How can I do it?
    Maybe this is something easy, but I'm just starting,
    thanks in advance for your answers
    Message was edited by: angelcotallo

    Yes, you can. You can put one clip on top of the other in the timeline. You can make both clips visible by reducing the opposite of the clip or top, or by scaling back the clips so they are smaller. You can reduce the opacity and scale of the clips in the viewer by opening the clips from the timeline into the viewer. You can also scale the images directly in the canvas when it is in Image+Wireframe mode.

  • Why windowClosing is called two times?

    Hi,
    I'm saving my project in JFrame windowClosing event. But it is called two times...
    How to prevent it?
    this.addWindowListener(new java.awt.event.WindowAdapter() {
         public void windowClosing(java.awt.event.WindowEvent e) {
         saveCurrentProject();
    Thanks,
    Andr�

    Thanks, problem solved.
    this.addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent e) {
    saveCurrentProject();
    System.exit(0); // <-- new line
    Andre

  • ListSelectionListener is always called two times...

    Hello,
    Icreated a JTable and added a ListSelectionListener to this table. I want an action being performed each time the selection within the table changes. If I change the selection via mouse this works quite fine, but if I do so with the mouse the method in the Listener is alwas called two times...why ?
    Here's a little bit of source-code, perhaps you'll get what I mean:
    ListSelectionModel lsm = (ListSelectionModel)e.getSource();
         if (lsm.isSelectionEmpty()) {}
         else { // always called 2 times...
              int selectedRow = lsm.getMinSelectionIndex();
         System.out.println("Test");
         Kunde temp = (Kunde)ShowKunde.kunden.elementAt(selectedRow);
         System.out.println(temp.getName());
              try {
                   kontoTemp = new KontoTemp(temp);
                   kontoTemp.setBuchungenTemp();
                   tableTemp.setModel(kontoTemp);
                   kontoBestand = new KontoBestand(temp);
                   kontoBestand.setBuchungenBestand();
                   tableBestand.setModel(kontoBestand);
                   frame.repaint();
              } // try
              catch (Exception ex) {
                   System.err.println(ex.getMessage());
              } // catch
              }});

    Hi
    you could check is the value is adjusting:
    if (e.getValueIsAdjusting()) {
        return;
    // your code hereviel erfolg
    Phil

  • MouseClicked method was called two times

    Hi all!
    I 've written a program containing a GUI component, and I added a MouseAdapter for it and overided the mouseClicked() method.
    But as I run the program and click the mouse on that component, the mouseClicked() was called two time ( I just made an single click)
    Anyone can tell me why?
    Thanks!

    Is it true that if we add the same MouseListener
    twice, we will receive two times call to mouseXXXX()
    method?I assume there would be some kind of check like this:
    if (!listenerList.contains(candidateListener)) listenerList.add(candidateListener);to ensure that it isn't added twice, because there should never really be a situation where it would be legitimate or useful to have the same instance added as a listener more than once.

  • My apple i4 Phone is Half battery Charged is Automaticly Turn Of When A Incoming A one call me click the turn on key two  time after that my appl phone is not start why????

    My Apple i4 in one incoming call i m press 2 time turning on key and its automatically off but whwn we calling to other no than in phomne no any reaction like ringing,vibration,display light .but complete bell is gone to another mobile.but phone is not started plz tell me

    RLites22,
    I can understand your concern about the insurance you have on the line. I want to make sure that I put a fresh pair of eyes on your account to find out exactly what is going on. I did send you a Direct Message. Can you please respond back to me in the direct message so we can go over the account specifics. I really hope to hear back from you soon.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • Place an mp3 player on top of an image in image-based website??

    Hi everyone!
    I am trying to create a website for our company, and have made an image-based website in Photoshop. The whole background is composed of sliced images from a Photoshop file, and I want to add links, drop down menus, a photo slider, and an mp3 player with Dreamweaver. I am having a great deal of trouble as I don't know nearly as much about coding as I would like to!
    Right now I am trying to add an mp3 player to the bottom of our website, but I want it to be on top of the bar at the bottom of the page. Since the bar is technically an image, every time I paste the code for the mp3 player into the HTML, it goes above or below the bar rather than on top of it. Is there any way to remedy this?? Advice would be appreciated! Thanks

    Is there any way we can see your website? Fishing around in the dark is not a good way to give advice.
    I should also mention that the "slicing Photoshop files" method of website building is probably not the way we build websites anymore, if I understand where you are coming from.
    Generally speaking, if you have an image in the background set up in your style sheet, you should be able to put things on top of that image.
    So, let's say we have a div and I'm going to call it "player." We may want to have more than one player on a page, so we'll give it a class:
    CSS:
    .player {
         background-image: url("/path/myimage.jpg");
    HTML:
    <div class="player">
    <audio controls>
      <source src="/path/myaudio.ogg" type="audio/ogg">
      <source src="/path/myaudio.mp3" type="audio/mpeg">
    Your browser does not support the audio element.
    </audio>
    </div>
    Now, what I have done here is to create an HTML5 Audio player. The web page with the audio must be HTML5. And you will probably need to edit your .htaccess file to include the following:
    AddType audio/ogg .oga
    AddType video/ogg .ogv
    AddType application/ogg .ogg
    AddHandler application-ogg .ogg .ogv .oga
    If you don't know how to edit an .htaccsss file, you should be able to add those MIME types in your host's Control Panel.
    The way you declare an HTML5 document is to start the document with:
    <!DOCTYPE HTML>
    <html>
    This would be before you start your <head> region.
    But I must warn you, I'm offering all of this with a great deal of trepidation. I believe you're putting together a website using tables and inline code for things like backgrounds and such. Modern web design does not use tables to format web pages.
    Without looking at what you're doing, there is a very big limit as to how I can advise you.
    -Mark

  • How  to fade groups of images or multiple images at the same time?

    I am creating a flash infographic, and want to fade images I have imported from Illustrator that are grouped. I would like to know how  to fade these groups and multiple images at the same time.
    Thanks!

    Use TweenMax for this.
    the syntax is like this:
    var arrayOfDisplayObjects:Array = new Array();
    //with arrayOfDisplayObjects.push(DisplayObject)
    //you can put any DisplayObject in the Array and when you want to fade them call this
    TweenMax.allTo(arrayOfDisplayObjects,1, { autoAlpha:0} );
    //to fade them in 1 second to alpha=0 and when reaching the zero make them invisible (to save processing power)

  • How do I view more than one image at the same time in CS6?

    How do I view more than one image at the same time in CS6?

    Hi there
    If you go to Window > Arrange you can choose from several view options. Below I have selected Two-Up Horizontal since I have two images, but you can select other options if you have more than one image.

  • SAP Script need to display main window two times on single page.

    Hello Guru's,
    So here is my requirement, we need to print check. We are using F110_PRENUM_CHCK and linked with driver prog RFFOUS_C. We have Letter size paper with three sections,
    1. Check
    2. Voucher Section (containing table of element 515, 525 and 530) 515: Heading, 525 : Regup-Belnr, Regup-XBLNR, Regud-Wrbtr.
                                                                                    530: Regup-SGTXT
    3. Voucher Section (As a receipt for bank itself) : contains same data as 2nd section.
    I tried several things reading all the previous post over here in SDN.
    1. Created Z form created two instances of main window it results just single display of table (voucher section) in section two and not in third.
    2. I also tried pasting two times same code in single main window which gives only last item line for the table.
    3. Created z driver program made changes in Write_form added control form for element 515 that does results in showing element 515 on both the location.
                CALL FUNCTION 'CONTROL_FORM'
                  EXPORTING
                    command   = 'NEW-WINDOW'
                  EXCEPTIONS
                    unopened  = 1
                    unstarted = 2
                    OTHERS    = 3.
                CALL FUNCTION 'WRITE_FORM'
                  EXPORTING
                    element = '515'
                  EXCEPTIONS
                    window  = 1
                    element = 2.
    3. For Element 525 and element 530 is not acting same. In the prog 525 = hlp_ep_element. And there are many write_form for this. I tried pasting each and every place same kind of code. It doesnt work. what it do it gives me three pages of output repeating every thing twice and weirdly.
    I am need this to be done as I already took so much time solving nothing is working.
    Please give me the exact location where to paste this code so I can have two times data of main window.
    Or is there any other way to do this....Any way will be good for me as long as it shows two times data in the form.
    The data is table.

    Hi Manju,
    I create a new window (no main) but does not run, please can you tell me what should I do to make it work.
    Best regards.
    Robert.

  • TS4268 Hello, it's been 5 days now since my imessage has not working..and i have chatted to the costumer for two times. I took thier advice and instructions just to enable to send and receive on it but unfortunately until now its still NOT working. Pls.he

    Hello, it's been 5 days now since my imessage has not working..and i have chatted to the costumer for two times. I took thier advice and instructions just to enable to send and receive on it but unfortunately until now its still NOT working. Is there anybody who could help me please?

    Try this even if you have already.  Just make sure to follow the steps specifically.
    Go to settings > Facetime > send and recieve > tap on your apple id and sign out.  If your not signed in then that will work as well.
    Go to settings > Messages > sent and recieve > tap on your apple id and sign out.
    Restart the iPad by doing the slide to power off setup.  Just hold the power button on the top right till it turns off.
    After the iPad has been restarted:
    Go to settings > Facetime > and sign in
    Go to settings > Messages > and sign in
    Wait about 3 min then restart the iPad again.  Same instructions as above.
    When you restart you should be able to use messages again.  If not then call support again and talk to someone higher than the first level support they have.

  • Data inserting two times in a table  when i click submit button

    Hi Experts,
    I had a problem, when i am inserting data in a table from a form at the first time when i click button it adds two times, afterwards it is adding one time only, the form and table are from same value node (table is collection cardinality : 1..n and selection cardinality is 0..n) i don't understand why it  is happening here?
    Regards,
    Pradeep Kumar

    Hi Pradeep,
    Please check the method for inserting data in a table. May be method is called two times.
    Post your code here to look into it.
    Best Regards,
    Arun Jaiswal

  • Full screen caller image display

    Full Screen Caller image was one of the best feature of an iPhone that made look iPhone simpler and fantastic to use..
    This particular feature seems to have been last with the upgrade to iOS 7.1..
    Please fix this issue..
    Full screen caller image display makes the phone look beautiful and wonderful when a known person is calling

    I agree with you on  the full screen view for when a users contacts call them. I hesitated upgrading, Apple has now joined the ranks for screw-ups! Since the late  Steve Jobs left this earth, Tim Cook has royally screwed-up this company! Customers here in th U.S and arouund the world are the ones shelling out hundreds of dollars for a product that is the best next thing to revoluntionize the way we communicate with others. But it seems that $600+ dollars gets us junk and a device not tailored to us, the users. I want to call them "M!cr0$oft Apples!" Give us the ability to go back to iOS6. Let us choose! We the customers have made this company rich, full of wealth beyond their greedy little hands. Give us the ability to choose what OS we want to install. Their should be a transparency relationship between the customer with the money, and worker who will work for us to render a product that we "the users," want" and not want a senior desinger assumes we think is good. Remember, this is all thanks to a legend who we all know and respect as ("in my own opinion), the father of modern communication Steve Jobs. SJ worked till his last days here to creat a masterpiece, T.C came on board and took a huge "memoryDUMP," and disregarded his visions. If your passionate like me about Apple and what Steve Jobs stood for, then  help me create a petition to make this company see that we "The customers are ALWAYS right!"
    Missing and need back:
    Transparency on the dock and icons
    Working Wifi, and imessage
    Better Battery life!!!
    Reverse the icons back to iOS7.06
    Fix maps
    Unless the designers are gothic in nature (I love Goth!!); dont make our phone dark and heavy on the fonts.
    I dont know about you, but I' am tired of hearing excuses from Apple and its CEO!
    PRETTY MUCH, REVERSE THE UPDATE OR WE WANT OUR MONEY BACK!
    As th general public alredy knows, Apple will never listen or read these suggestions" They sleep soundly in thier 2.5millon homes, and respectively. Why care about those people that are paying thier salary pretty much! Listen up board of directors.....Fire Tim Cook, Hire a go-getter, Micromanage manic that will continue Mr. Jobs legacy and nip this disaster in the bud!  Tweet this, FB this! Let make the world realize we will not take it anymore! Fix the dam problems!

Maybe you are looking for

  • Report parameter is not populated with exact value in stacked column click throughs

    I have stacked column chart to show below opportunity data. Category axis: Month of created date Series: sales stage Aggregate: runningvalue of revenue on sales stage group.  data set has below fields. 1. opportunity id 2. created date 3. revenue 4.

  • More than one UOM for an item in sales and quotation

    Dear all, I am facing a problem with n# UOM and hope to explain to you and see if anyone can resolve my problem. Case:  We have sales item (non-inventory) selling in different prices with different UOM.  We could not afford to create one UOM with one

  • Macbook pro to Panasonic Viera GT30 TV?

    I have a brand new 15 inch Macbook pro with a high res antiglare screen. I connected it to my brand new Panasonic Viera GT30 plasma TV via an HDMI cable and a Moshi minidisplay port to HDMI adapter. The computer is in mirror mode and the resultion au

  • We made a purchase order for an online phone numbe...

    Please let us know the status of our order it has been pending for two days. The telephone number we ordered is 209-451-5111

  • Ageing of stock

    Hi gurus In my scenario Plant A is procuring the material (suppose on 22/08/08) and sending to the Plant B on (suppose10.09.2008) But when want to find the age the material system should calculate the ageing from 22/08 How can I do this? Nk