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
https://forums.phpfreaks.com/topic/58724-solved-need-some-help/
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, [email protected] 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
https://forums.phpfreaks.com/topic/58724-solved-need-some-help/#findComment-291283
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.