Jump to content
  • 0

Php script , lf for experience developer on sites.


Question

Posted

<?php
    $db_user = "***"; 
    $db_pass = "***"; 
    $db_name = "****"; 
    $db_serv = "*****"; 

error_reporting(0);

@mysql_connect ( $db_serv, $db_user, $db_pass );
@mysql_select_db( $db_name );

   return $res; 

mysql_close(); 

?>

Ok i have this config and i want to add a line that will refresh all scripts every 12 hours for e.x .

 

Anyone knows how can i do this? i have search a lot and i cant find it.

 

Also one other issue is that if i have my pc close and i open my website from another pc is very slow (because of script that can't connect to mysql how can i solve this?)

7 answers to this question

Recommended Posts

  • 0
Posted

You mad?

Wtf you dind't understand? when i have mysql DOWN website do 40sec to refresh / when is up all are ok.

 

With scripts refresh every 12 hours  will solve many problems

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...