Jump to content


Member Since 06 May 2003
Offline Last Active Oct 24 2014 01:19 PM

Posts I've Made

In Topic: Struggling To Get Vanity URL's To Work

15 October 2014 - 10:40 AM

Make sure all the static resources (css, javascript, images etc) are using a fully qualified url, rather than a relative path and that will go away.

In Topic: Original Image Size, Thumbnail Image, Anchor Tag, Referencing?

14 October 2014 - 08:56 PM

First thing that I see is that you could improve the variation in the uniqid, by using the optional parameter to increase entropy.  


Change uniqid() to 


uniqid('', true)


The more variation of input the better the distribution of hashes.  There is always a chance albeit infinitesimally small that you will have a collision (2 different inputs hash to the same hash).  The chances of a collision on random data requires something around 2^64 hashes.  You will never approach that number of files in your system, short of your system being at google/facebook-like scale.  You could decrease this probability even more by using a larger hash -- sha1 being the most likely alternative.


With that said, and as everyone has already pointed out -- if this is really important to you, then you can simply take the random name generated, and do a  simple filesystem check to see if a file of the same name exists, and keep iterating until one does not.  Practically speaking, the chances of it happening in your system are close to nil.

In Topic: Anyone know of a good vertical scrolling news bulletin plug in?

01 October 2014 - 11:20 AM


In Topic: Smarty PHP help

30 September 2014 - 01:02 PM

Smarty is primarily HTML markup with some logic blocks.  Data gets injected and the logic blocks work and you get output.  What else is there to it that is confusing?  They have solid documentation as well.  


You need to clarify exactly what you are "stuck" on.  

In Topic: Anyone know of a good vertical scrolling news bulletin plug in?

30 September 2014 - 12:56 PM

I hear Google is pretty good for that type of search.

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime