Jump to content

[SOLVED] Need some help...


PICS

Recommended Posts

One of my biggest issues is an internal error im receiving.

 

After reviewing the logs i see it's "Premature end of script headers: php-script"

I tried turning off high security in ensim and put it to 3.1 which works.

 

Only problem is now every other script working on this server with sessions fails to work.

 

Is it my code or is it in deed a server issue?

 

I have complete access to the server because i do work for the hosting company.

 

I know that the file im trying to create is not being created. I tried using .txt as well but in order for this script to work it must be .html,.htm, or .php.

 

http://picstools.com/t/new.php?name=Jack&url=dog.com

 

<?php
####################
##by Brandon Ryall##
####################

$name = ($_GET['name']); 
$url = ($_GET['url']); 
$content = ('<html>
<head>
<title>PICS Tools - URL - '.$name.'</title>
</head>
<frameset rows="55,*" framespacing="0" border="0" frameborder="0">
<frame name="topper" scrolling="no" noresize src="http://picstools.com/t/top.htm">
<frame name="bottom" src="'.$url.'" scrolling="auto">
<noframes>
<body>
<p>Please visit '.$url.'</p>
</body>
</noframes>
</frameset>

</html>');

$filename = 'index.html';

if (is_writable($filename)) {

    if (!$handle = fopen($name.'/'.$filename, 'a+')) {
         echo "Cannot open file ($filename)";
         exit;
    }

    if (fwrite($content) === FALSE) {
        echo "Cannot write to file ($filename)";
        exit;
    }

    echo "Success, wrote ($content) to file ($filename)";

    fclose($handle);

} else {
    echo "The file $filename is not writable";
}

?>

Link to comment
Share on other sites

Could it possibly be a dns issue? I know we also have this domain pointed to another location on google. Using www get's you there...

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@pics.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache Server at www.picstools.com Port 80

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

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.