Free Adult Tube-Video Script Forum
HELP URGENT - Printable Version

+- Free Adult Tube-Video Script Forum (http://freeadultscript.com/forum)
+-- Forum: My Category (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: HELP URGENT (/showthread.php?tid=1344)



HELP URGENT - Role-Model - 03-08-2011 10:25 PM

HELP, my host is telling me i have CPU above 120 minutes per a day, how to make them below 60 min/per hour ????

I made chash time to be 1 second from admin panel, is that a problem?

Kind Regards
Svetoslav


RE: HELP URGENT - admin - 03-08-2011 11:55 PM

yes pls make it to deafult
it is important


RE: HELP URGENT - Punktured - 04-08-2011 07:30 AM

when your cache is 1...
your site has to connect to mysql every time a person opens a page...

when it is set to a higher number...
inistead of connecting to mysql,
your site will use the cached code that is stored in a file...

which results in less cpu usage...


RE: HELP URGENT - Role-Model - 05-08-2011 08:14 PM

But when is bigger than 1, my users can't log in to my site.
This cache make trouble to log users Sad
How to fix this ;(

How you make your users to login?

Can you send me the script?


Please Help

(04-08-2011 07:30 AM)Punktured Wrote:  when your cache is 1...
your site has to connect to mysql every time a person opens a page...

when it is set to a higher number...
inistead of connecting to mysql,
your site will use the cached code that is stored in a file...

which results in less cpu usage...



RE: HELP URGENT - Punktured - 05-08-2011 08:37 PM

my login system is not complete yet, but i would not be comforetable posting it here because it has MANY edits to functions.php and i do not want to be responsible for people breaking their files...

if your login system uses post to log a user in...
i do not see how it would create problems...

my cache is on the recommended time,
and logins seem to work fine...

but as i said, my system is not complete yet...


RE: HELP URGENT - Role-Model - 06-08-2011 12:00 AM

Can i post my login system here to see it and tell me where is the problem?
I put my check code for login in video function :
global $kaynak_url,$comment_enable;
$baglanti=db_baglan();
$result = mysql_query("Select * from video where v_id=".$id);

//login check
if(isset($_SESSION['username'])){
$username = $_SESSION['username'];



if(mysql_affected_rows()>0)
{ $row = mysql_fetch_array($result);
$description=$row['description'];
$title=$row['title'];
$hit=$row['hit'];
$kaynak=$row['kaynak'];
mysql_close($conn);


Regards
Svetoslav


(05-08-2011 08:37 PM)Punktured Wrote:  my login system is not complete yet, but i would not be comforetable posting it here because it has MANY edits to functions.php and i do not want to be responsible for people breaking their files...

if your login system uses post to log a user in...
i do not see how it would create problems...

my cache is on the recommended time,
and logins seem to work fine...

but as i said, my system is not complete yet...



RE: HELP URGENT - Punktured - 06-08-2011 01:10 AM

the way you have it... if working correctly...
would make it so only logged in users could watch videos...

personally i would not use the login checks in that function...
i would only...
limit comment making to members...
limit extra features, like rating system etc... to members...