User Profile

Collapse

Profile Sidebar

Collapse
meekotherogue
meekotherogue
Last Activity: Aug 13 '10, 09:38 PM
Joined: Jun 4 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • meekotherogue
    replied to How can I prevent caching on my website?
    in PHP
    @zorgi that makes perfect sense! Thanks for the explanation, I like to know why my code works :P

    @londres9b and @johny10151981 that seems like a good idea too, I appreciate your help :)
    See more | Go to post

    Leave a comment:


  • meekotherogue
    replied to How can I prevent caching on my website?
    in PHP
    Thanks a lot!! That worked wonderfully!! Could you per chance let me know why/how that works..?

    @TheServant for the record, no I'm not talking about captcha, just an image that is generated based on what the user clicks on....
    See more | Go to post

    Leave a comment:


  • meekotherogue
    started a topic How can I prevent caching on my website?
    in PHP

    How can I prevent caching on my website?

    I'm trying to prevent the caching of an image on my website. You see, the image is created dynamically, and when the user navigates throughout the site it changes each time. However, it's when the user tries to go back is the problem. The previous image is displayed instead of the new, dynamically created one. The correct image is created, it's just not being displayed. I have no idea where the previous image comes from, because it's destroyed...
    See more | Go to post

  • meekotherogue
    started a topic PHP functions and arrays
    in PHP

    PHP functions and arrays

    Just a quick question:
    Are arrays in php pass by reference?

    So if I had two functions:

    Code:
    function A($arr) { $arr[5]++; }
    
    function B() { 
    $arr = array();
    $arr[5] = 0;
    A($arr);
    echo "The new value is: ".$arr[5];
    }
    Should print:
    The new value is: 1;

    ??
    See more | Go to post
    Last edited by Dormilich; Jun 5 '10, 09:50 AM. Reason: Please use [code] tags when posting code
No activity results to display
Show More
Working...