Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-2002, 02:01 AM
glo's Avatar
glo glo is offline
 
Join Date: Aug 2002
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default why is php modifying my html

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!
Reply With Quote
  #2  
Old 10-06-2002, 10:57 AM
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jun 2002
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like the PHP script is being terminated before finishing.

Could you post the script for peeps to take a look at?
Reply With Quote
  #3  
Old 10-06-2002, 11:16 AM
glo's Avatar
glo glo is offline
 
Join Date: Aug 2002
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
__________________________________________________ _
Reply With Quote
  #4  
Old 10-13-2002, 08:05 AM
glo's Avatar
glo glo is offline
 
Join Date: Aug 2002
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can anyone help?

Thanks in advanced.
Reply With Quote
  #5  
Old 12-25-2002, 10:37 AM
glo's Avatar
glo glo is offline
 
Join Date: Aug 2002
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Merry Christmas!

Any new ideas for this problem?
Reply With Quote
  #6  
Old 12-25-2002, 10:11 PM
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jun 2002
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 :

Code:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
... if that doesn't help, then trying getting rid of the full :

Code:
<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.
Reply With Quote
  #7  
Old 12-26-2002, 12:10 AM
glo's Avatar
glo glo is offline
 
Join Date: Aug 2002
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 12-26-2002, 04:10 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So what's your problem still, glo? I'm alittle off-track by your last post.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03854 seconds
  • Memory Usage 2,238KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete