PHP Dropbox/Other Cloud Services

From: ANT_THOMAS17 Jul 2012 20:43
To: ALL32 of 55

Is it possible clear any memory of previous PHP code?

 

I want to pull from a few text files but it seems to have the previous one in the memory.

 

 

EDITED: 17 Jul 2012 20:50 by ANT_THOMAS
From: Monsoir (PILOTDAN)17 Jul 2012 21:28
To: ANT_THOMAS 33 of 55
Quick and dirty way is to add a random query to the URL.

I.e., if you're doing something like

include("./whatever.txt");

Then make it

code:
<?php
t = time();
include("./whatever.txt?abc=".t);
?>


Because t is different every time, the URL will always be treated as unique. I think that PHP is correct, it's been ages since I've written any :D That said, are you sure it's not the browser cache client side?
EDITED: 17 Jul 2012 21:29 by PILOTDAN
From: ANT_THOMAS18 Jul 2012 09:20
To: Monsoir (PILOTDAN) 34 of 55

Thanks. Something like that might work. I had to do similar to prevent Google caching my KML file.

 

But I've now gone to a MySQL DB driven thing. But that seems to have similar problems of not clearing out the old data :@ (fail)

From: Monsoir (PILOTDAN)18 Jul 2012 10:14
To: ANT_THOMAS 35 of 55
That's a bit weird, are you sure it's not an issue client side? I've never had an issue with PHP or MySQL - I'm not even sure if PHP does any caching by default.

You could try putting the following at the top of your scripts to prevent any browser caching:

php code:
 
<?php
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
 
From: koswix19 Jul 2012 09:26
To: Monsoir (PILOTDAN) 36 of 55

New rule, whatever PB says people 'ought' to be doing with tech, make the opposite.

 

???

 

Profit.

From: Peter (BOUGHTONP)19 Jul 2012 10:37
To: koswix 37 of 55
It wasn't me who said it!
From: koswix19 Jul 2012 10:50
To: Peter (BOUGHTONP) 38 of 55

Doesn't matter. Your opinions on what people should do and how they should do it are almost always the exact opposite of what people want.

 

I have no evidence to back this up, other than your specificness about features and functions, but it's totally true.

From: Peter (BOUGHTONP)19 Jul 2012 10:58
To: koswix 39 of 55
Well we can easily solve that one way or the other, so if you'd like to hire a hundred good programmers, split them into two teams, then have one half do exactly what I say and the other half do the exact opposite of what I say, we'll see what happens...
From: koswix19 Jul 2012 11:10
To: Peter (BOUGHTONP) 40 of 55

No need for that, we have more than enough anecdotal evidence right here on Teh.

 

Pete doesn't use Steam - 40+ million people do use steam
Pete uses Google Plus - Rest of the world + dog uses Facebook
Pete doesn't have a landline - everyone else does

 

I could go on, but I'm busy...

From: Peter (BOUGHTONP)19 Jul 2012 11:18
To: koswix 41 of 55
I use Google Plus and Facebook, (and they are both shit).

So what have you got against Beehive?
From: koswix19 Jul 2012 11:25
To: Peter (BOUGHTONP) 42 of 55

You only use that because of Teh. In Teh Podcast thread you made it quite clear that you'd rather use G+ for text-based communication.

 

:C

From: Peter (BOUGHTONP)19 Jul 2012 11:34
To: koswix 43 of 55
I made it quite clear I'd rather use Hangouts over Skype.

The ability for anyone to drop in and integrated-with-notifications text-based messaging is just a bonus, and does not at all affect my opinions of Beehive - which is the only forum package I'd ever recommend or willingly use (and probably the only reason my server actually has PHP on it).
From: koswix19 Jul 2012 12:33
To: Peter (BOUGHTONP) 44 of 55
You say that, but we know that secretly, deep down, you hate it. Because the Post button is 3 pixels too far to the left.
From: Peter (BOUGHTONP)19 Jul 2012 12:40
To: koswix 45 of 55
Oh crap, it is isn't it! :O :( Well... only about 1.5 pixels, really.

Thank fuck for user stylesheets! *solves*

:)
From: ANT_THOMAS19 Jul 2012 14:58
To: ALL46 of 55
Well the M40 is sunny.
From: Oscarvarium (OZGUR)19 Jul 2012 19:12
To: Peter (BOUGHTONP) 47 of 55
integrated-with-notifications text-based messaging is just a bonus


In what way does Skype not have integrated text based messaging with notifications?
EDITED: 19 Jul 2012 20:56 by OZGUR
From: Peter (BOUGHTONP)19 Jul 2012 19:25
To: Oscarvarium (OZGUR) 48 of 55
Haven't we been over this before?

If you and Kos are having cybersex right now, Skype offers no way for me to see that it is occurring, nor is there a public chat area linked to the conversation.
From: JonCooper19 Jul 2012 20:00
To: koswix 49 of 55
quote: you ^^^
Pete uses Google Plus - Rest of the world + dog uses Facebook



I saw statistics, this week, that suggest Google Plus is overtaking Facebook, mostly since Facebook forced 'timeline' on everyone
From: koswix19 Jul 2012 20:17
To: JonCooper 50 of 55
'Overtaking'? really? In terms if speed of growth at best, I'd imagine. And I'd also think it's more to do with Google automatically signing people up to Plus, rather than anything to do with the 2 day annoyance at Time line.
From: Peter (BOUGHTONP)19 Jul 2012 20:23
To: JonCooper 51 of 55
I've somehow managed to avoid the forced timeline thing, for my own profile at least, though no idea how.

Anyway, any chance of getting a source for that?

It's probably something like new signups per month, or maybe just people with Google accounts.


Ok, I looked it up and the actual finding is that 78% are satisfied with G+ whilst 61% are satisfied with Facebook - out of 70k Americans interviewed.

I'm not sure how much bearing "satisfaction" has - gien that the ratings for search engines Google, Bing, and Ask are 82%, 81%, and 80% respectively...

Actually, there's a better indication of the quality of results: 84% of those surveyed are satisfied with the FoxNews website.