dakoz
Programmer
- Feb 2, 2002
- 74
ok...
i have this script which runs on a server which operates php v4.1.1 at this location is working perfectly:
and the same one running on another server which operates php v4.3.1 doesnt work at.
my hosting provider says that something must be changed in the configuration of the second one but they dont know what it is!!
Any suggestions?
the source code of the script above 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"or die("Error" //- 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 !-->
<?
phpinfo();
?>
here is the view
i have this script which runs on a server which operates php v4.1.1 at this location is working perfectly:
and the same one running on another server which operates php v4.3.1 doesnt work at.
my hosting provider says that something must be changed in the configuration of the second one but they dont know what it is!!
Any suggestions?
the source code of the script above 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"or die("Error" //- 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 !-->
<?
phpinfo();
?>
here is the view