dakoz
Programmer
- Feb 2, 2002
- 74
ok... i recently migrated my site to another host.
In my previous hosting provider all my scripts were working fine. In my new host i have some problems. I Need to solve the following.
i have the following script in
the source code is :
<!-- STARTGRABBING !-->
<HTML><head></head>
<SCRIPT language=JavaScript src="../js/rightclick.js"></SCRIPT>
<BODY>
<TABLE><TR><TD align=left><IMG SRC='../images/charts.jpg' width='188' height='55'></TD><TD align=right><IMG SRC='../images/counter.gif'><FONT SIZE='3' face='Arial'><B> ( <FONT SIZE='2' face='Arial'> ( <FONT SIZE='1' face='Arial'> ( Weekly Updated Chart ) <FONT SIZE='2' face='Arial'> ) <FONT SIZE='3' face='Arial'> ) </B></FONT><IMG SRC='../images/counter.gif'></TD></TR></TABLE>
<HR><BR>
<TABLE>
<?php
$GrabURL = " //- Complete URL Of The Page Your Grabbing From!
$GrabStart = " <table border=0 cellpadding=2 cellspacing=0 width=435>"; //- HTML Code To Start Grab. Must Be A Unique Bit Of Code!
$GrabEnd = " <td width=2><img src=\"../images/dot.gif\" width=2 height=1 alt=\"\" border=\"0\"></td>"; //- HTML Code To End Grab. Must Be A Unique Bit Of Code!
#############################
## Do Not Edit Below Here ##
## Do Not Edit Below Here ##
#############################
$OpenFile = fopen("$GrabURL", "r"
; //- DO NOT CHANGE
$RetrieveFile = fread($OpenFile, 200000); //- Reduce This To Save Memory
$GrabData = eregi("$GrabStart(.*)$GrabEnd", $RetrieveFile, $DataPrint);
$DataPrint[1] = str_replace("..", ".", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace(" Song code: <b>", "", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("<td width=235>", "<td align=left width=235 bgcolor='#DFDFDF' align=right background='./images/back3.gif'><font face=arial size=2><b>", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("#ffffcc", "#DBE1E9", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("#006699", "#DADADA\" background='./images/back.gif'", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("<span class=hypenumber>", "<span class=hypenumber><font face=arial size=1>", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("<td colspan=2>", "<td bordercolor='#000000' bgcolor='#ECF0FF' colspan=2><i><font face=arial size=3>", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace(" </span>", "</I></span><font face=arial size=1>", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("<td width=150 valign=middle align=right>", "<td align=center width=150 valign=middle align=right background='./images/back2.gif'><font face=arial size=1><b>", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
fclose($OpenFile); //- DO NOT CHANGE
?>
<font face=arial size=2><CENTER><TABLE width=90% border=0 cellpadding=0 cellspacing=0><TR>
<?
echo $DataPrint[1]; //- DO NOT CHANGE
?>
</TR>
</TABLE></CENTER>
<!-- ENDSTARTGRABBING !-->
this is a grabber which takes content from a specific site.
This used to work but now i dont know where is the problem.
my providers php configuration is the following :
do you know what can i, or my host do in order for this script to start running?
In my previous hosting provider all my scripts were working fine. In my new host i have some problems. I Need to solve the following.
i have the following script in
the source code is :
<!-- STARTGRABBING !-->
<HTML><head></head>
<SCRIPT language=JavaScript src="../js/rightclick.js"></SCRIPT>
<BODY>
<TABLE><TR><TD align=left><IMG SRC='../images/charts.jpg' width='188' height='55'></TD><TD align=right><IMG SRC='../images/counter.gif'><FONT SIZE='3' face='Arial'><B> ( <FONT SIZE='2' face='Arial'> ( <FONT SIZE='1' face='Arial'> ( Weekly Updated Chart ) <FONT SIZE='2' face='Arial'> ) <FONT SIZE='3' face='Arial'> ) </B></FONT><IMG SRC='../images/counter.gif'></TD></TR></TABLE>
<HR><BR>
<TABLE>
<?php
$GrabURL = " //- Complete URL Of The Page Your Grabbing From!
$GrabStart = " <table border=0 cellpadding=2 cellspacing=0 width=435>"; //- HTML Code To Start Grab. Must Be A Unique Bit Of Code!
$GrabEnd = " <td width=2><img src=\"../images/dot.gif\" width=2 height=1 alt=\"\" border=\"0\"></td>"; //- HTML Code To End Grab. Must Be A Unique Bit Of Code!
#############################
## Do Not Edit Below Here ##
## Do Not Edit Below Here ##
#############################
$OpenFile = fopen("$GrabURL", "r"
$RetrieveFile = fread($OpenFile, 200000); //- Reduce This To Save Memory
$GrabData = eregi("$GrabStart(.*)$GrabEnd", $RetrieveFile, $DataPrint);
$DataPrint[1] = str_replace("..", ".", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace(" Song code: <b>", "", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("<td width=235>", "<td align=left width=235 bgcolor='#DFDFDF' align=right background='./images/back3.gif'><font face=arial size=2><b>", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("#ffffcc", "#DBE1E9", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("#006699", "#DADADA\" background='./images/back.gif'", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("<span class=hypenumber>", "<span class=hypenumber><font face=arial size=1>", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("<td colspan=2>", "<td bordercolor='#000000' bgcolor='#ECF0FF' colspan=2><i><font face=arial size=3>", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace(" </span>", "</I></span><font face=arial size=1>", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
$DataPrint[1] = str_replace("<td width=150 valign=middle align=right>", "<td align=center width=150 valign=middle align=right background='./images/back2.gif'><font face=arial size=1><b>", $DataPrint[1]); //- Un-Comment This Line for "Replace" purposes!
fclose($OpenFile); //- DO NOT CHANGE
?>
<font face=arial size=2><CENTER><TABLE width=90% border=0 cellpadding=0 cellspacing=0><TR>
<?
echo $DataPrint[1]; //- DO NOT CHANGE
?>
</TR>
</TABLE></CENTER>
<!-- ENDSTARTGRABBING !-->
this is a grabber which takes content from a specific site.
This used to work but now i dont know where is the problem.
my providers php configuration is the following :
do you know what can i, or my host do in order for this script to start running?