bev Posted January 10, 2009 Share Posted January 10, 2009 This site is running an incentive script and has been working fine on the VPS until a few hours ago and now the site is not showing up at all ... See www.head-cure.com I logged into phpMyAdmin and there are some things showing red that I am wondering could be causing the problem. Handler_read_rnd 2,517 Handler_read_rnd_next 219 k Created_tmp_disk_tables 55 Key_reads 2,792 Select_full_join 12 Opened_tables 1,711 Table_locks_waited 1 If these are causing the issue then what needs to be done to correct it ? Any suggestions? Thank You Bev Link to comment https://forums.phpfreaks.com/topic/140322-site-not-showing/ Share on other sites More sharing options...
corbin Posted January 10, 2009 Share Posted January 10, 2009 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title> Errrr.... It's dying right after the <title> tag is printed out. What PHP stuff is going on around then? Link to comment https://forums.phpfreaks.com/topic/140322-site-not-showing/#findComment-734288 Share on other sites More sharing options...
bev Posted January 10, 2009 Author Share Posted January 10, 2009 This is what is really in that section from the index.php file <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title><? include "config.php"; echo "$Site_Name"; ?> - Get paid to complete offers!</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link type='text/css' rel='stylesheet' href='style.css'/> </head> I am just lost. Link to comment https://forums.phpfreaks.com/topic/140322-site-not-showing/#findComment-734295 Share on other sites More sharing options...
Mark Baker Posted January 10, 2009 Share Posted January 10, 2009 Well it's not echoing $Site_Name, so start checking for problems in config.php Link to comment https://forums.phpfreaks.com/topic/140322-site-not-showing/#findComment-734303 Share on other sites More sharing options...
bev Posted January 10, 2009 Author Share Posted January 10, 2009 The config.php file contains the following ... <? if(mktime() > mktime(0,0,0,1,10,2009)){ exit(); } $DB_Name = "head_head"; $DB_Pass = "admin123"; $DB_User = "head"; $Site_Name = "Head-Cure"; $Owner_Email = "[email protected]"; $Slogan = "Get paid to complete simple offers!"; ?> However I cannot see a problem ? Link to comment https://forums.phpfreaks.com/topic/140322-site-not-showing/#findComment-734319 Share on other sites More sharing options...
Rushyo Posted January 10, 2009 Share Posted January 10, 2009 <?php if(mktime() > mktime(0,0,0,1,10,2009)){ exit(); } ?> It doesn't much analysis to realise this bit is likely to be problem. What on earth is it designed to achieve other than killing the site? Link to comment https://forums.phpfreaks.com/topic/140322-site-not-showing/#findComment-734324 Share on other sites More sharing options...
nrg_alpha Posted January 10, 2009 Share Posted January 10, 2009 I notice the use of short open tag notations, could that be part of the problem? Some servers may have this disabled... It is best to use the <?php .... ?> notation just to be on the safe side. Link to comment https://forums.phpfreaks.com/topic/140322-site-not-showing/#findComment-734335 Share on other sites More sharing options...
corbin Posted January 11, 2009 Share Posted January 11, 2009 I notice the use of short open tag notations, could that be part of the problem? Some servers may have this disabled... It is best to use the <?php .... ?> notation just to be on the safe side. It just wouldn't parse the PHP part if that were the case. The real problem (although short tags should definitely be avoided, infact, I wish they were removed from PHP) is the mktime thing. Link to comment https://forums.phpfreaks.com/topic/140322-site-not-showing/#findComment-734531 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.