Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming > PHP Programming
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 11-04-2009, 04:21 PM
  #1
tmw-webdesigns
will code html for beer
 
tmw-webdesigns's Avatar
 
Join Date: Nov 2006
Posts: 385
iTrader: (0)
tmw-webdesigns is on a distinguished road
include issue

I am pulling my hair out trying to figure out why this is happening.

I am using php includes for my navbar, left sidebar, and the footer on a project I am working on.

I've used includes numerous times and never seen this before.

Here is the html version of the site:

NO LINK

So I taken out the content on each the 3 sections (navbar, left sidebar, and footer) and inserted the php include code:

PHP Code:
<?php include("navbar.php"); ?>
Saved it as a .php file instead of .htm; copied the navbar and other html from each section into a new file and saved them as a .php file as well.

But when I upload everything onto my server:

NO LINK

I am getting unwanted spacing pushing the navbar, left sidebar header, and footer content down. I ran thru my css and that doesn't fix anything.

What is causing it to push those sections down?
__________________
I got a business doing websites/When my friends need some code, who do they call?/I do HTML for 'em all
- Weird Al Yankovich


Last edited by tmw-webdesigns : 11-04-2009 at 04:54 PM.
tmw-webdesigns is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-04-2009, 04:43 PM
  #2
Vege
Super Deity (Level 18)
 
Join Date: Sep 2004
Location: Finland
Posts: 3,410
iTrader: (0)
Vege is just really niceVege is just really niceVege is just really niceVege is just really nice
save files without bom character.
how to do this debends on the editor your using.
"Encoding: UTF-8 without bom"

Last edited by Vege : 11-04-2009 at 04:46 PM.
Vege is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-04-2009, 04:50 PM
  #3
tmw-webdesigns
will code html for beer
 
tmw-webdesigns's Avatar
 
Join Date: Nov 2006
Posts: 385
iTrader: (0)
tmw-webdesigns is on a distinguished road
What is bom?

and why did it do that to the includes.

thanks for you help
__________________
I got a business doing websites/When my friends need some code, who do they call?/I do HTML for 'em all
- Weird Al Yankovich


Last edited by tmw-webdesigns : 11-04-2009 at 04:54 PM.
tmw-webdesigns is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-04-2009, 05:31 PM
  #4
Vege
Super Deity (Level 18)
 
Join Date: Sep 2004
Location: Finland
Posts: 3,410
iTrader: (0)
Vege is just really niceVege is just really niceVege is just really niceVege is just really nice
It's basically a invisible control character that when forced to render will put some empty space.

It would tell the endianness of a file but is not needed in x86 environment and PHP cannot hande it that well.
Is the data read from left to right or right to left from memory when data is handles in bits.

Wikipedia explains this much better than i do
Vege is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


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



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 04:10 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.