@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 :)
User Profile
Collapse
-
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....Leave a comment:
-
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... -
PHP functions and arrays
Just a quick question:
Are arrays in php pass by reference?
So if I had two functions:
Should print:Code:function A($arr) { $arr[5]++; } function B() { $arr = array(); $arr[5] = 0; A($arr); echo "The new value is: ".$arr[5]; }
The new value is: 1;
??
No activity results to display
Show More
Leave a comment: