PHP – check if a file was changed under 10 mins ago

I need to cache results of a PHP glob of a folder…
This folder gets files uploaded via FTP from time to time and I need to prevent the script to perform a glob every time that the page is accessed.

 

$file = 'content.json' ; 
$time = 600 ; //in seconds 

if(!file_exists($file)) 
{ 
  echo 'does not exist' ;
  // lets call the function that makes the glob and create the content.json 
} 
else 
{ 
 if( time() - filemtime( $file ) <= $time ) 
 { 
 echo 'file last changed under 10 mins ago' ; 
 } 
 else 
 { 
 echo 'file last changed more than 10 mins ago' ;
 // lets call the function that makes the glob and create the content.json 
 } 
}

pornzrus – HTML5 Video Player like YouTube in jQuery plugin

Well, as you might know porn industry is sometimes associated to HUGE revolutions on media…

On the search for articles about HTML5 responsive video players I’v found this free video player from pornzrus.com.
This is a 100% copy past from their article.

Continue reading pornzrus – HTML5 Video Player like YouTube in jQuery plugin

SCAM ALERT! – Trademark Infringement Cease & Desist Notice for

SCAM ALERT!
I’v getting lots of emails like this….
Shit! People from Bellagio is sending me emails! HOORAY!

Hi PRIVACYDOTLINK CUSTOMER XXXXX

A third party has filed a trademark infringement cease and desist notice for your domain xxxxxx.com

You can download the notice here Download xxxxxxxx.com Domain Copyright Notice

In most cases you should take it seriously to avoid further legal trouble. However for random complaint
without any valid reason is quite common and you can ignore.

In case the copyright notice is applicable and unresolved contact your domain registrar and they will
help you to resolve the issue. Please note that, we don’t consult anyone individually.

Regards

Claim Domain Right

3600 Las Vegas Blvd. South. Las Vegas, NV 89109

 

 

 

 

  • Las Vegas Strip Map – Bellagio Hotel and Casino

    https://www.bellagio.com/map-directions/

    Las Vegas Strip Map & Directions. Location: Bellagio, 3600 Las Vegas Blvd. South,Las Vegas, NV 89109 702.693.7111. Property Map. Directions: Las Vegas …

 

Go Montenegro Domains, LLC, GoDaddy.com, LLC and some more

gomontenegrodomains

I was whoising a domain…

Registrar Registration Expiration Date: 2015-07-18T18:01:03Z
Registrar: Go Montenegro Domains, LLC
Registrar IANA ID: 1152
Registrar Abuse Contact Email: [email protected]
Registrar Abuse Contact Phone: +1.4806242505

And I saw that it was registered on  Go Montenegro Domains, LLC – gomontenegrodomains.com – ok!…. godaddy… lets make a whois to gomontenegrodomains.com

Continue reading Go Montenegro Domains, LLC, GoDaddy.com, LLC and some more

No, You Can’t Register a Famous Trademark

 

No, You Can’t Register a Famous Trademark as a Domain Name Just Because “It Was Available”

Yah! I know it 🙂
But here is a nice excerpt of a post that I’v found.

 

Caller: I don’t mean to be rude, but the domain name was available and I paid $10 for it, so it is mine. How can that be illegal?

Domain Name Lawyer: Why did you register the domain name?

Caller: To sell it to Coca-Cola. I came up with this awesome idea of a website all about how people love Coca-Cola, and YourCocaCola.com would be just the perfect domain name for them to launch this site. I can’t believe their marketing company didn’t come up with this themselves….Anyhow, Coca-Cola earned about 2 Billion dollars last year based upon my research, and I think that 1% of that would be a fair price and I would share what we get with you if you will help me sell it to them.

Domain Name Lawyer: I do not mean to be the bearer of bad news, but registering a famous trademark like that to sell to the trademark owner is unlawful, and you best just hand over the domain name before you get into any more trouble. Sorry I can’t help.

Caller: You mean to tell me that Godaddy lets people register illegal names? Are you sure that you are really an expert in domain names? Because I spoke to a couple people before calling you, and they all told me stories of companies paying millions of dollars to get their domain names back after they inadvertently lapsed, or because someone got to them first. So I find it really hard to believe that a big company like Godaddy would allow someone to register a domain name that was illegal.

Domain Name Lawyer: Look, I have been practising domain name law for like 12 years, and there is something called the Anti-Cybersquatting Consumer Protection Act that makes this kind of thing illegal.

Caller: Did you say “legal” or “illegal”?

Domain Name Lawyer: Illegal.

Read it all at http://blog.dnattorney.com/2012/01/no-you-cant-register-famous-trademark.html