PDA

View Full Version : why is php modifying my html


glo
10-06-2002, 02:01 AM
Hi,

I have applied a hack to my main page, but when i rename the file with the php extension and then load it up into the browser, some how the html is not fully displayed as well as the hack not operating at all!

What the page looks like in html can be viewed at www.glo-racing.com/v3/main.html

and the php file can be viewed at the same location but with the php extention ie. www.glo-racing.com/v3/main.php

I have created a test page to test the script which can be found at www.glo-racing.com/v3/test.php which i believe is working correctly!

So I am not sure where the problem is!

tHE DSS
10-06-2002, 10:57 AM
Looks like the PHP script is being terminated before finishing.

Could you post the script for peeps to take a look at?

glo
10-06-2002, 11:16 AM
Hi tHE DSS,

here is a copy of the code.
_________________________________________________

<?php
chdir('/hsphere/local/home/glo-raci/glo-racing.com/forums');
require('global.php');
?>
<html>
<head>
<title>GLO Racing</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#0000CC" vlink="#0000CC" alink="#0000CC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="img/backmain.jpg">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td valign="top"> <br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<b>Welcome to GLO-Racing.com</b>.<br><br>

If this is your first time here, have a look around. <b>GLO Promotions</b> represents the automotive aftermarket industry and if you love cars, you will have a good time here.<br><br>

We promote the automotive aftermarket industry through various mediums such as the internet and events like the <b>AUTO EXPO</b>.
<br><br>
<div align="center">
<center>
<p>
<img border="0" src="../images/1.gif" width="120"height="80"></a>&nbsp;&nbsp;
<img border="0" src="../images/2.gif"width="120"height="80"></a>&nbsp;&nbsp;
<img border="0" src="../images/3.gif"width="120"height="80"></a>
</center>
</div>
We respect and appreciate all vehicles, whether it be a small 4cylinder, boosted 6cylinder, big bore V8 or the free revving rotary type. It doesnft matter if you prefer a late model Import or Aussie make, Hot Rod or Street Machine or even a motorbike. Like our events, there is something here for everyone; young or old, male or female. <br><br>
Join our mailing list or our membership program. By joining our mailing list, we will keep you up to date with the latest news and events! <br><br>
Why not become a member of GLO-Racing.com, itfs FREE!<br>
As a member of GLO-Racing.com you will be able to participate in the GLO Forums as well as comment on photofs in the image gallery and get special discounts on GLO Racing gear.
<br><br>
Come on in!
<br><br>
The GLO Crew.</font></td>

</tr>
</table>
<p>&nbsp;</p>
</td>
<td width="150" valign="top" bgcolor="#4977BB">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF">&nbsp;</td>
</tr>
</table>
<img src="img/topright.jpg" width="150" height="20"></td>
</tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">

<p>start here <?php include ('/hsphere/local/home/glo-raci/glo-racing.com/forums/webwelcome.php'); ?> </p>
</td>
</tr>
</table>
</body>
</html>
__________________________________________________ _

glo
10-13-2002, 08:05 AM
can anyone help?

Thanks in advanced.

glo
12-25-2002, 10:37 AM
Merry Christmas!

Any new ideas for this problem?

tHE DSS
12-25-2002, 10:11 PM
I seemed to had lost track of this thread. :nervous: Sorry.

Well, it seems a little weird.

If the 'global.php' script that you are including into the page is the same as used by your forums, in could be somthing to do with the browser headers... can't pin-point right now exactly where what or why.

In the page/script, first try getting rid of :


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


... if that doesn't help, then trying getting rid of the full :


<html>
<head>
<title>GLO Racing</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#0000CC" vlink="#0000CC" alink="#0000CC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="img/backmain.jpg">


... if any of that gets you working, then you know where the problem is.

It might just be worth 'eval()'ing in the 'header' template used by your forum.

glo
12-26-2002, 12:10 AM
Hi tHE DSS,

I have implemented the changes you suggested, and they are as follows


removed code:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

http://www.glo-racing.com/v3/main021226.php

and
removed
<html>
<head>
<title>GLO Racing</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000" link="#0000CC" vlink="#0000CC" alink="#0000CC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="img/backmain.jpg">
http://www.glo-racing.com/v3/main021226i.php

As you can see, the first change

Velocd
12-26-2002, 04:10 AM
So what's your problem still, glo? I'm alittle off-track by your last post.