Check premium expire


Posted on 16th Feb 2014 07:03 pm by admin

Hi,

I am making a simple file hosting site and want to check if users premium subscriptions have ended or not. In the database i have premium_start ( time() ) and premium_end ( time() ) that represents the start and end date.

Did you know?Explore Trending and Topic pages for more stories like this.
Would the following code work to check if an account has expired?
Code: <?php
// check premium expire
if((time() - $member['premium_end']) >= time())
{
// do actions here
}
?>

thanks
No comments posted yet

Your Answer:

Login to answer
165 Like 44 Dislike
Previous forums Next forums
Other forums

noob cURL help
I have a pretty basic form that I need to cURL post to a file in my includes folder (includes/login.

Warning: mysql_num_rows() expects parameter 1
When i add quote at the end of this link
example:http://localhost/articlemania/category.php?cid=3

How can I Compare two xml documents?
Hi all,

I am doing a POC for my project and I am using XE database 10g version.

Creating XML with php
I need to creat an XML with php and have successfully produced a valid output.
The problem I hav

rename the file
File.txt

Code: ***DOCUMENT***
..DN:
000044255
..CB:
..SN:
..PY:
2009
..E

Problem with passing variables
I'm not really a php programmer so I'm really struggling with this issue.

I have a banner s

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

Filename like the user name
I am creating a form and storing the values in file. Could anyone please tell me how to write a code

Run function every 5 mins ??
I have a function PostMessage()

How can I run it every 5 mins ??

DATEDIFF Question
First time post, and of course it is a help question.

I am using a WP plug-in to display prev

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash