Jump to content

Site Not Showing


bev

Recommended Posts

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

<!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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.