Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > General Support Issues

Notices

General Support Issues Answers to general questions and help with common problems. For help with a specific issue, post to one of the forums below.

Reply
 
LinkBack Thread Tools
  #1  
Old 08-07-2008, 06:49 AM
Staff Sergeant
 
Join Date: Feb 2008
Posts: 40
Default unwanted html text showing on pages

hello all,
new problem. I recently changed all of my pages from php to html, and thus had to change all my links (not fun).
Anyways, when i switched them over, some white html text (my background is just off-white so it's hardly visible) appeared at the top of each page.

The trouble is its pushed everything else down.

the url is: http://www.bancroftartsandcrafts.com

here is what is appearing:

0) { $upload_DstName[$i] = $prefix . "_" . str_replace(" ", "_", $_FILES[$key]['name']); $upload_SrcName[$i] = $_FILES[$key]['name']; $upload_Size[$i] = ($_FILES[$key]['size']); $upload_Temp[$i] = ($_FILES[$key]['tmp_name']); $upload_Type[$i] = ($_FILES[$key]['type']); $uploadlink[$i] = "$upload_folder/$upload_DstName[$i]"; $upload_fieldname[$i] = $key; $upload_fieldname_final[$i] = ucwords(str_replace("_", " ", $key)); $fieldvalue[$i] = $uploadlink[$i]; $i++; } if ($upload_Size[$i] >= $max_filesize) { $error .= "The size of $key (file: $upload_SrcName[$i]) is bigger than the allowed " . $max_filesize/1024 . " Kbytes!\n"; } } $crack[0] = '\n'; $crack[1] = '\r'; $crack[2] = "%0a"; $crack[3] = "%0d"; $crack[4] = "content-type:"; $crack[5] = "to:"; $crack[6] = "cc:"; $crack[7] = "bcc:"; $crack[8] = "mime-version:"; $crack[9] = "x0a"; $crack[10] = "x0d"; foreach ($_POST as $key => $value) { for ($k = 0; $k < count($crack); $k++) { if (substr_count(strtolower($value), $crack[$k])) { $error .= "The field $key contained e-mail headers ($crack[$k]) in the value submitted. This seems to be a cracking attempt and the message has not been sent.!
"; } } } if ($error) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $error, $errorcode); echo $errorcode; exit; } $uploadfolder = basename($upload_folder); for ($i = 0; $i < count($upload_DstName); $i++) { $uploadFile = $uploadfolder . "/" . $upload_DstName[$i]; if (!is_dir(dirname($uploadFile))) { @RecursiveMkdir(dirname($uploadFile)); } else { @chmod(dirname($uploadFile), 0777); } @move_uploaded_file($upload_Temp[$i] , $uploadFile); chmod($uploadFile, 0644); } $internalfields = array ("submit", "reset", "filesize", "upload_folder", "send", "captcha_code"); $message .= "\n"; foreach ($_POST as $key => $value) { if (!in_array(strtolower($key), $internalfields)) { if (!is_array($value)) { $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . "\n"; } else { $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . "\n"; } } } if (count($upload_SrcName) > 0) { $message .= "\nThe following file have been uploaded:\n"; for ($i = 0; $i < count($upload_SrcName); $i++) { $message .= $upload_SrcName[$i] . " Link: " . $uploadlink[$i] . "\n"; } } mail($mailto, $subject, stripslashes($message), $header); header('Location: '.$success_url); exit; } ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 08-07-2008, 07:43 AM
Karen Mac's Avatar
Lt. Gen & Moderator
 
Join Date: Apr 2006
Posts: 4,335
Send a message via MSN to Karen Mac
Default Re: unwanted html text showing on pages

You didnt delete or take out of the head section your php codes.. and if its a form.. it will still have to be php

Karen
__________________
KMAC Enterprise
Granny's Country Nook 10%Off, your code: Forum Discounts
Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 08-07-2008, 08:07 AM
karenwms63's Avatar
Colonel
 
Join Date: Feb 2008
Location: Poplar Bluff, MO
Posts: 803
Send a message via MSN to karenwms63
Default Re: unwanted html text showing on pages

check this thread: http://www.vodahost.com/vodatalk/sav...tml#post237917
__________________
Karen Williams
Your Belief is Your Reality
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 08-08-2008, 05:53 AM
Staff Sergeant
 
Join Date: Feb 2008
Posts: 40
Default Re: unwanted html text showing on pages

ok. so how do i delete the head section my php codes?
there are no forms on these pages.

when i changed them from php to html i had an awful time getting my homepage to show up updated/

I really dont want to have to change all the links back to php

thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 08-08-2008, 08:44 AM
Karen Mac's Avatar
Lt. Gen & Moderator
 
Join Date: Apr 2006
Posts: 4,335
Send a message via MSN to Karen Mac
Default Re: unwanted html text showing on pages

Right click on the page and go to page html and go thru each of the tabs and take out the code.. usually beginning and end. I beg to differ with you.. you do indeed have a form on that page.. that search box is a form.. and you most likely will be running php or lose your search. Looks like you had some sort of mail form on there as well.

Karen
__________________
KMAC Enterprise
Granny's Country Nook 10%Off, your code: Forum Discounts
Charming Noveltees~Sports Logos Charms, Jewelry, Collectibles- 10% off, your code: VodaHost
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 06:18 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176