Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder UrbanTwitch's Avatar
    Join Date
    Apr 2006
    Posts
    485
    Thanks
    44
    Thanked 1 Time in 1 Post

    Thumbs up Footer messed with PHP

    If you look here: http://sodadome.com/fluid/index.html
    you can see it works fine. The template. Its a fluid layout.

    now if you look here: http://sodadome.com/fluid/a.php

    You will see the footer doesn't reach. Why does this happen in PHP and NOT HTML? My guess... Php includes.

    Here is the source for a.php

    Code:
    <?php include("/home/jsfdan/public_html/includes/verytop.php"); ?>
    
    
    
    
    
    <title>sodazoo - sodaDome.com</title>
    
    <meta name="Description" content="Visit the sodazoo. Filled with many creative and unique models that will blow you away. Interact with any model to see how they were constructed and submit your own.">
    
    <meta name="Keywords" content="sodazoo, zoo, gallery, sodaplay, urbantwitch, sodarace, soda ltd, physics, education, science, gravity, mass, friction, javascript_freek, dan jasnowski, sodaplay, sodarace, sodaconstructor, models, moovl, ed burton, soda">
    
    	<link rel='stylesheet' href='http://sodadome.com/css/form-field-tooltip.css' media='screen' type='text/css'>
    
    	<script type='text/javascript' src='http://sodadome.com/js/rounded-corners.js'></script>
    
    	<script type='text/javascript' src='http://sodadome.com/js/form-field-tooltip.js'></script>
    
    </head>
    
    
    <?php include("/home/jsfdan/public_html/includes/header.php"); ?>
    
    <p>
    
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi id purus in urna faucibus commodo. Fusce velit ligula, suscipit sed, molestie vitae, tincidunt et, lorem. Nunc turpis nisl, placerat vel, rhoncus quis, faucibus eget, sem. Aliquam sit amet metus. Nunc ornare sagittis purus. Ut at dui. Nulla aliquet bibendum nisi. Fusce sit amet urna at tortor semper cursus. Sed consequat pede. Curabitur convallis mollis nibh. Proin sed libero. Quisque neque ligula, cursus sit amet, laoreet et, tincidunt at, lacus. Praesent auctor.
    
    Aenean consectetuer, nunc non pulvinar aliquet, turpis dolor fringilla lacus, bibendum lobortis leo ipsum nec est. Morbi molestie felis quis sapien. Duis blandit consectetuer nisl. Nam sit amet nulla et metus fringilla convallis. Quisque malesuada. Quisque ipsum. Praesent in ligula. Quisque hendrerit aliquet mauris. Phasellus ultrices nibh vel lacus. Nunc id nibh imperdiet mi cursus fringilla. Vivamus elit ante, sollicitudin ac, aliquam vel, egestas id, elit. Proin eget nibh. Suspendisse tempor, quam et pellentesque cursus, velit dolor blandit metus, vitae auctor lectus tellus vel sem. Cras bibendum dignissim sapien. Suspendisse lorem elit, tempus quis, ornare non, semper ac, velit. Mauris elit est, feugiat sit amet, scelerisque id, hendrerit eu, turpis. Nam dapibus, lorem non luctus aliquam, nulla tortor fermentum nisi, ut elementum nulla risus sed neque.
    
    Pellentesque ornare arcu eu felis. Aenean hendrerit, orci sed convallis blandit, justo est iaculis arcu, et egestas dui nibh vitae elit. Nam ultricies. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc leo pede, laoreet quis, tempor ut, sodales ac, urna. Nullam et odio ac nisl sollicitudin bibendum. In dictum, quam eget auctor venenatis, sapien orci faucibus dui, id porttitor turpis velit vel eros. Vivamus at erat ac tortor sollicitudin congue. In in quam. Vivamus vestibulum eros porta arcu. Cras quis leo et metus vestibulum rutrum. Nulla non massa eget turpis commodo suscipit. Nulla elementum sapien non massa. Donec ac lacus vel ante pulvinar ullamcorper.
    
    Nulla non sem congue elit commodo dignissim. Donec quam mauris, sodales vitae, dignissim sed, tincidunt dictum, dui. Sed velit sapien, pretium ac, condimentum vel, vestibulum ut, dolor. Sed quam. Praesent dignissim massa. Sed iaculis mattis risus. Maecenas orci. Donec sed magna eget ligula ultrices elementum. Etiam dictum laoreet dui. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur in sem. Aenean ligula felis, scelerisque nec, sodales in, commodo at, ligula. Morbi laoreet, neque vitae tristique volutpat, velit massa gravida nunc, a molestie felis ligula quis felis. Curabitur in diam. Donec adipiscing pede a quam. Suspendisse a enim vitae neque tempus tristique. Donec malesuada. Aliquam ipsum mi, auctor quis, tempus in, faucibus quis, orci. Curabitur interdum velit eget felis. Mauris sit amet mauris eu risus egestas volutpat.
    
    Nulla lacinia ipsum et turpis. Suspendisse adipiscing sapien a erat. Pellentesque tellus nunc, tristique eu, volutpat vel, dapibus et, purus. Vivamus tristique sapien sit amet purus. Vestibulum dapibus. Maecenas molestie orci nec velit. Quisque vestibulum ipsum in tellus. Pellentesque vestibulum arcu vitae ligula. Donec vitae nisl. Nunc venenatis tortor ac tortor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam tempor lectus et lorem hendrerit interdum. Praesent lacinia, neque eu malesuada convallis, sem turpis ultrices sapien, at lobortis dui erat et libero. In lectus. Phasellus quis diam. In velit. Donec varius pharetra urna. Nulla faucibus elementum magna.
    
    Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed massa quam, ultricies id, consectetuer ut, porttitor at, augue. Nulla facilisi. Vivamus gravida leo vestibulum nisl. Nunc turpis lacus, adipiscing et, euismod vel, pulvinar non, nisl. Aenean dapibus lacinia elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vivamus augue mi, fermentum in, elementum in, ornare ac, tellus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec auctor dolor eget nulla. Fusce porta porttitor tellus. Morbi at diam nec tellus ultrices consequat. Vestibulum vestibulum scelerisque lorem.
    
    Morbi eros ipsum, tincidunt lacinia, accumsan ut, fermentum et, risus. Sed euismod nibh sodales purus. Maecenas sed elit. Ut interdum, mi at dictum tincidunt, risus magna tincidunt odio, ac accumsan orci odio mattis tortor. Aenean sodales congue augue. Phasellus eu mi. Maecenas rutrum, est non consectetuer porttitor, ligula odio tristique elit, at dictum turpis purus et libero. Mauris consectetuer. Nam pede dui, congue eu, luctus sit amet, sagittis ac, ligula. Praesent ornare erat vel nulla. Vivamus commodo placerat felis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur cursus dui sed magna. Ut ullamcorper lectus. Curabitur tellus orci, volutpat nec, dapibus ac, posuere id, lacus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
    
    Sed mattis congue enim. Nam faucibus tortor id arcu. Sed bibendum ipsum ut turpis vehicula fringilla. Suspendisse pharetra semper erat. Donec faucibus, quam sit amet pellentesque gravida, velit ligula accumsan diam, non gravida purus justo quis erat. Maecenas bibendum. Nulla facilisi. Suspendisse mauris nunc, interdum in, dictum sed, mollis non, nulla. Morbi nunc pede, ultricies non, suscipit in, convallis quis, est. Phasellus lectus magna, dignissim sed, accumsan non, iaculis nec, nisl. Etiam varius luctus enim. Aenean a metus. Donec convallis magna non magna. Vestibulum justo justo, fermentum vestibulum, consequat at, ullamcorper sed, elit. Maecenas auctor leo egestas neque. Nam nibh. Curabitur sit amet mauris vitae lectus pharetra suscipit. Maecenas ullamcorper rhoncus ante. Sed ipsum nisi, mollis et, venenatis vitae, cursus in, pede. 
    </p>
    
    <?php include("/home/jsfdan/public_html/includes/footer.php"); ?>
    Last edited by UrbanTwitch; 09-30-2008 at 05:10 AM. Reason: fixed
    Formerly MysticScript

    6+ years club

  • #2
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    It is probably not PHP. It's the code you build using PHP that is the problem. PHP doesn't work on your browser, it works on the server side to build what is displayed in your browser.

    View the source under each condition and see where they differ.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #3
    Regular Coder UrbanTwitch's Avatar
    Join Date
    Apr 2006
    Posts
    485
    Thanks
    44
    Thanked 1 Time in 1 Post
    No, I fixed it. The if statements were the problem. :-D
    Formerly MysticScript

    6+ years club


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •