Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

my site is redirected to a blanc page

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  AdSense Account Monitor  
Author Message
guillermina

External


Since: Jul 27, 2003
Posts: 8



(Msg. 1) Posted: Sun Jul 27, 2003 10:31 am
Post subject: my site is redirected to a blanc page
Archived from groups: alt>www>webmaster (more info?)

My index.html page does not show with the site root
http://www.gmanon.com/. A blanc page is being uploaded by the browser.
To access the index or any other page I need to type the full path.

The only strange thing I was able to find in the site were these two
files at the bottom called http.class and http.php. Also I noticed that
my public_html folder had 777 permissions. I don't know how this happeded.

I tryed redirection, and it didn't worked. It gave me an error.

#HTTP.CLASS FILE

<?php

class http {
var $proxy_host = "";
var $proxy_port = 0;

function http_fopen($host, $path, $port = 80) {

# has the user set $proxy_host?
if(empty($this->proxy_host)) {
# we access the server directly
$conn_host = $host;
$conn_port = $port;
} else {
# we use the proxy
$conn_host = $this->proxy_host;
$conn_port = $this->proxy_port;
}

# build the absolute URL
$abs_url = "http://$host:$port$path";

# now we build our query
$query = "GET $abs_url HTTP/1.0\r\n".
"Host: $host:$port\r\n".
"User-agent: PHP/class http 0.1\r\n".
"\r\n";

# open a connection to the server
$fp = fsockopen($conn_host, $conn_port);

# if the connection failed, return false
if(!$fp)
return false;

# send our query
fputs($fp, $query);

# discard the HTTP header
while(trim(fgets($fp, 1024)) != "");

# return the active file pointer
return $fp;
}
}
?>

#HTTP.PHP

*<?php

include "http.class";

$http = new http;

$fp = $http->http_fopen("http://www.gmanon.com", "/");

if(!$fp) {
print "Sorry, the server is not currently available";
exit;
}

print "<BASE HREF=\"http://www.gmanon.com\"><p>";

fpassthru($fp);
?>

This file opens the site with a slash argument instead of r, a or w.


Thanks for any help.

gmanon*

 >> Stay informed about: my site is redirected to a blanc page 
Back to top
Login to vote
guillermina

External


Since: Jul 27, 2003
Posts: 8



(Msg. 2) Posted: Sun Jul 27, 2003 4:28 pm
Post subject: Re: my site is redirected to a blank page [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Correcting, it's not blanc, but blank

gmanon wrote:
 > My index.html page does not show with the site root
 > <a style='text-decoration: underline;' href="http://www.gmanon.com/." target="_blank">http://www.gmanon.com/.</a> A blanc page is being uploaded by the browser.
 > To access the index or any other page I need to type the full path.
 >
 > The only strange thing I was able to find in the site were these two
 > files at the bottom called http.class and http.php. Also I noticed that
 > my public_html folder had 777 permissions. I don't know how this happeded.
 >
 > I tryed redirection, and it didn't worked. It gave me an error.
 >
 > #HTTP.CLASS FILE
 >
 > <?php
 >
 > class http {
 > var $proxy_host = "";
 > var $proxy_port = 0;
 >
 > function http_fopen($host, $path, $port = 80) {
 >
 > # has the user set $proxy_host?
 > if(empty($this->proxy_host)) {
 > # we access the server directly
 > $conn_host = $host;
 > $conn_port = $port;
 > } else {
 > # we use the proxy
 > $conn_host = $this->proxy_host;
 > $conn_port = $this->proxy_port;
 > }
 >
 > # build the absolute URL
 > $abs_url = "http://$host:$port$path";
 >
 > # now we build our query
 > $query = "GET $abs_url HTTP/1.0\r\n".
 > "Host: $host:$port\r\n".
 > "User-agent: PHP/class http 0.1\r\n".
 > "\r\n";
 >
 > # open a connection to the server
 > $fp = fsockopen($conn_host, $conn_port);
 >
 > # if the connection failed, return false
 > if(!$fp)
 > return false;
 >
 > # send our query
 > fputs($fp, $query);
 >
 > # discard the HTTP header
 > while(trim(fgets($fp, 1024)) != "");
 >
 > # return the active file pointer
 > return $fp;
 > }
 > }
 > ?>
 >
 > #HTTP.PHP
 >
 > *<?php
 >
 > include "http.class";
 >
 > $http = new http;
 >
 > $fp = $http->http_fopen("http://www.gmanon.com", "/");
 >
 > if(!$fp) {
 > print "Sorry, the server is not currently available";
 > exit;
 > }
 >
 > print "<BASE HREF=\"http://www.gmanon.com\"><p>";
 >
 > fpassthru($fp);
 > ?>
 >
 > This file opens the site with a slash argument instead of r, a or w.
 >
 >
 > Thanks for any help.
 >
 > gmanon*
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: my site is redirected to a blanc page 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
page layout / css stuffup - Hey. I'm trying a new layout for my site, using css of course (using float). http://vbcentral.port5.com I guess I'll let you have a comment on the site, but that's not really the point of my post. First have a look at the page in Mozilla or Opera. Yo...

CSS footer, how to include so every page is the same? - I have a website that is using CSS. I have a footer defined. I want the footer to be the same on every page. Is there a way to do some sort of include to get so I only have to modify one file? Thanks

CSS footer, how to include so every page is the same? - I have a website that is using CSS. I have a footer defined. I want the footer to be the same on every page. Is there a way to do some sort of include to get so I only have to modify one file? Thanks

Multiple keystroks to load a hidden page? - Hi, What I am looking to do is have a hidden log in screen on my website. I would like to be able to have this screen hidden without any links that would load once a number of keystrokes have been pressed. I don't know if this is possible but if so..

Calling mod_rewrite experts... rewrite based on referring.. - I've got a client we're re-designing a site for - their original site structure was VERY flat... all the pages in the root directory of the site, and the new design calls for directories based on sections of the site, and in a couple of cases, splitting....
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]