PHP Dropbox/Other Cloud Services

From: Peter (BOUGHTONP)17 Jul 2012 18:02
To: Ken (SHIELDSIT) 20 of 55
From: Ken (SHIELDSIT)17 Jul 2012 18:03
To: Peter (BOUGHTONP) 21 of 55
It doesn't look very dropbox like to me.
From: ANT_THOMAS17 Jul 2012 18:04
To: Peter (BOUGHTONP) 22 of 55
I'll give that a go. Thanks.
From: Peter (BOUGHTONP)17 Jul 2012 18:04
To: Ken (SHIELDSIT) 23 of 55
Uh, you're looking at SourceForge aren't you? :S
From: Ken (SHIELDSIT)17 Jul 2012 18:06
To: Peter (BOUGHTONP) 24 of 55
yes.
From: Drew (X3N0PH0N)17 Jul 2012 18:41
To: Peter (BOUGHTONP) 25 of 55
Wow, I'd forgotten that :')
From: ANT_THOMAS17 Jul 2012 18:59
To: Peter (BOUGHTONP) 26 of 55
Works a treat. Thanks PB. Don't believe what the others say, you are helpful!
From: Dan (HERMAND)17 Jul 2012 19:03
To: Peter (BOUGHTONP) 27 of 55

Now there's a blast from the past. Someone on here told me it was a pointless endeavour because anyone who wanted to put files on the Internet would have hosting :-(

 

I ought to be rich...

From: ANT_THOMAS17 Jul 2012 19:09
To: Dan (HERMAND) 28 of 55

:(

 

I blame PB.

From: ANT_THOMAS17 Jul 2012 19:10
To: ALL29 of 55
Dropbox is bloody slow, much slower than the free hosting I found.
From: Voltane17 Jul 2012 19:43
To: Dan (HERMAND) 30 of 55

I may be talking completely out of my hat here:

 

Could it be integrated into Beehive in any way?

 

At the moment when I go to attachments I can see everything i've uploaded. Maybe using this people can browse each others attachments (if given permission).
For example, Fozza attaches torrent files for teh podcast. While attaching the file is put in his storage, which could even be on another server that uses Teh for authentication in some way. As long as they're in his storage you don't even have to look for the thread they were originally posted in. You just go to his profile and look in his storage.

 

And he can select who on the forum can see his files, creating groups from the user list. Mods could then share files of world domination without the common people having access.

 

I don't know if you can do this with dropbox but having the capability to do it on your own server instead of trusting someone else might come in useful for some people - even if it isn't useful for us it helps distinguish Beehive from other Forum software.

 

</possibly useless thought>

From: Dan (HERMAND)17 Jul 2012 20:15
To: Voltane 31 of 55
Whoa, I dunno :-D
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: Dan (HERMAND)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 HERMAND
From: ANT_THOMAS18 Jul 2012 09:20
To: Dan (HERMAND) 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: Dan (HERMAND)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: Dan (HERMAND) 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...