Need help with code

Discussion in 'HTML & Website Design' started by haxor1980, Jul 17, 2008.

  1. #1
    Hi,

    I have created a index.php file and placed it in the main directory of my site. When I go to my site say http://haxor.com the site does not show anything. Even if I put http://haxor.com/index.php it does not show anything.

    here is my code:

    <?php get_header(); ?>
    
    	<!-- Container -->	
    	<div id="content-wrap">
    	
    		<!-- Left Column -->
    		<div id="leftcolumn">
    <h3>Latest Tips and Tricks</h3>
    <script type="text/javascript"><!--
    google_ad_client = "pub-5461509808035482";
    /* 160x600, created 7/1/08 */
    google_ad_slot = "9077806075";
    google_ad_width = 160;
    google_ad_height = 600;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    			
    			<!-- Featured Article -->
                          	
    <div id="postdetails">
    <?php the_time('g:i a, F j'); ?> | <a href="<?php echo get_permalink(); ?>" title="Read More">More</a>
    					</div>
    
    					
    			<?php endwhile; else : ?>
    			<?php endif; ?>
    			
    		</div>
    		<!-- /Left Column -->
    	
    		<div id="midcolumn">
    
                     <div id="midcolumnlatest">
    			<h2>Latest Post</h2>
    			
                            <div class="latestnews">	
    				
    		
    <!--adsense-->
    <script type="text/javascript"><!--
    google_ad_client = "pub-5461509808035482";
    /* 468x15, created 6/28/08 */
    google_ad_slot = "8257981416";
    google_ad_width = 468;
    google_ad_height = 15;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <!--adsense-->
    <div class="details"><?php the_time('g:i a, F j, y'); ?> | <?php comments_popup_link(__('Leave a comment'), __('1 Comment'), __('% Comments'));?> | <a href="<?php the_permalink() ?>" rel="bookmark">Read More &raquo;</a></div>
    
    				</div>	
    			     </div>
    
    			                    			
    			
    			
    			       <div id="midcolumnleft">
                                    <h2>Internet News & Tips</h2>
    
    <?php
    require_once '/home/admin/techiezone/carp/carp/carp.php';
    // Add any desired configuration settings before CarpCacheShow
    // using "CarpConf" and other functions
    
    CarpCacheShow('http://blog.techiezone.in/feed');
    ?>
    
    				
    					<div class="midcolumnpost">
    						
    				</div>
    								
    			</div>
    			
    			        <div id="midcolumnright">
    				
    					<div class="midcolumnpost">
    						
    					</div>
                                          </div>
    				
                                    
    		</div>
    		<!-- /Mid Column -->
    		
    		<div id="sidebar">
    			
    		</div><div style="clear:both"></div>
    		<!-- /Sidebar -->
    
    	</div>
    	<!-- /Content-wrap -->
    </div>
    
    
    
    <div id="footer">
    <?php wp_loginout(); ?> - <a href="">NewsPro Theme</a> by <a href="http://www.gabfire.com">Gabfire</a> | Copyright &#169; 2007, <a href ="http://techiezone.in">TechieZone Pvt Ltd</a>
    <!-- Site Meter -->
    <script type="text/javascript" src="http://s41.sitemeter.com/js/counter.js?site=s41ajaykumarmeher">
    </script>
    <noscript>
    <a href="http://s41.sitemeter.com/stats.asp?site=s41ajaykumarmeher" target="_top">
    <img src="http://s41.sitemeter.com/meter.asp?site=s41ajaykumarmeher" alt="Site Meter" border="0"/></a>
    </noscript>
    <!-- Copyright (c)2006 Site Meter -->
    
    <a href="http://whos.amung.us/show/z890lvgq"><img src="http://whos.amung.us/swidget/z890lvgq.gif" alt="counter" width="80" height="15" border="0" /></a> 
    
    <a href="http://www.mybloglog.com/buzz/community/techiezone/" title="Join My Community at MyBloglog!"><img src="http://www.mybloglog.com/buzz/images/buttons/btn_c31.png" style="border: 0px none;" alt="Join My Community at MyBloglog!"></a>
    
    <script type='text/javascript' src='http://track2.mybloglog.com/js/jsserv.php?mblID=2006120410305255'></script>
    
    <a href="http://www.blogcatalog.com/directory/computers/software/programming" title="Programming Blogs - BlogCatalog Blog Directory"><img src="http://www.blogcatalog.com/images/buttons/blogcatalog5.gif" alt="Programming Blogs - BlogCatalog Blog Directory" style="border: 0;" /></a>
    
    <script type="text/javascript">
    digg_bgcolor = '#ff9900';
    digg_skin = 'compact';
    digg_window = 'new';
    </script>
    <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> 
    
    </div>
    <script type="text/javascript">new Control.Tabs('tab_group_one');</script>	
    <script type="text/javascript">new Control.Tabs('tab_group_two');</script>
    
    <!-- Kontera ContentLink(TM);-->
    <script type='text/javascript'>
    var dc_AdLinkColor = '#0D6AA6' ;
    var dc_UnitID = 14 ;
    var dc_PublisherID = 9705 ;
    var dc_adprod = 'ADL' ;
    </script>
    <script type='text/javascript' src='http://kona.kontera.com/javascript/lib/KonaLibInline.js'>
    </script>
    <!-- Kontera ContentLink(TM) -->
    
    </body>
    </html>
    Code (markup):
    And the header.php file is as follows:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="verify-v1" content="CXFtHTQc+xhxq9kPsoa7J2UZxqierzRshXv3IUW1kQ0=" />
    <title>Techie Zone - Life is all about Computer, Internet, Gadgets and Fun</title>
    <style type="text/css" media="screen">@import url( http://blog.techiezone.in/wp-content/themes/Gabfire-Newspro/style.css );</style>
    	
    <script type="text/javascript" src="http://blog.techiezone.in/wp-content/themes/Gabfire-Newspro/javascript/prototype.js"></script>
    <script type="text/javascript" src="http://blog.techiezone.in/wp-content/themes/Gabfire-Newspro/javascript/control.tabs.2.1.1.js"></script>
    <script type="text/javascript" src="http://blog.techiezone.in/wp-content/themes/Gabfire-Newspro/javascript/dropdown.js"></script>
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://blog.techiezone.in/feed/" />
    </head>
    <body>
    <div id="wrapper">
    
    <!-- Header -->
    <div id="header">
    
    <div id="navpages">
    <ul id="navpagelist">
    
    <li><a href="http://www.techiezone.in">Home</a></li>
    <li><a href="http://blog.techiezone.in">Blog</a></li>
    <li><a href="http://blog.techiezone.in/advertise">Advertise</a></li>
    <li><a href="http://techiezone.tradepub.com">Free Magazine</a></li>
    </ul>
    <ul id="feeds">
    <li><a href="http://blog.techiezone.in/feed/">Entries <span class="rss">(RSS)</span></a></li>
    <li><a href="http://blog.techiezone.in/comments/feed/">Comments <span class="rss">(RSS)</span></a></li>
    </ul>
    <div style="clear:both"></div>
    </div>
    <div id="headerleft">
    <h1><a href="http://blog.techiezone.in/" title="Life is all about Computer, Internet, Gadgets and Fun">Techie Zone</a></h1>
    </div>
    
    <!-- Searchbox and date -->
    
    		<div id="headerright">
    <div style="float:left; margin-top:20px;">
    <IFRAME src="http://www.google.com/talk/service/badge/Show?tk=z01q6amlqaidiho9lhrffbhern6372i7mnbgu565bossaguqfonubbbph2aio4ibiecf1ivgshv9h3viuj3dhqpl9c1okc5jsahl4qhpo5b4pg8g5vvbboub0uhqfmg5f0oc57l0va0l9mh06v4lf301cs4eqbb9c7fjmcp66&amp;w=200&amp;h=60" frameBorder=0 width=200 height=60 allowTransparency></IFRAME> </div>
    			<script src="http://blog.techiezone.in/wp-content/themes/Gabfire-Newspro/javascript/date.js" type="text/javascript"></script>
    			<form action="http://www.google.com/cse" id="cse-search-box">
      <div>
        <input type="hidden" name="cx" value="partner-pub-5461509808035482:8n03jo5x4t3" />
        <input type="text" name="q" size="25" />
        <input type="submit" name="sa" value="Search" />
      </div>
    </form>
    
    <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
    </div>
    
    <div style="clear:both"></div>
    
    <!-- Header Navigation -->
                          
    
    			<div id="navcats">
    			<ul id="navcatlist">
    				<li><a href="http://www.techiezone.in">Home</a></li>
    			</ul>
    			<div style="clear:both"></div>
    		</div>
    		
    	</div>
    	<!-- /Header -->
    Code (markup):
    Any help in this regard will be appreciated.
     
    haxor1980, Jul 17, 2008 IP
  2. WCMU101

    WCMU101 Peon

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not a guru or anything, but an error in that code wouldn't cause the error you're getting. Are there any other pages that are working?
     
    WCMU101, Jul 17, 2008 IP
  3. haxor1980

    haxor1980 Banned

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I do not hv any other page set up ...
     
    haxor1980, Jul 17, 2008 IP
  4. WCMU101

    WCMU101 Peon

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    k, well you should try put up just an empty index.html file, see how that goes. Apart from that i could only think you are doing something wrong with ur directories or something like that.
     
    WCMU101, Jul 17, 2008 IP
  5. haxor1980

    haxor1980 Banned

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Dear WCMU101 when I put index.html that work perfectly fine. But I want the page to be in php that is I want ito be index.php and not index.html.
     
    haxor1980, Jul 17, 2008 IP
  6. WCMU101

    WCMU101 Peon

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Who are you hosting with? Do they support PHP?
     
    WCMU101, Jul 17, 2008 IP
  7. haxor1980

    haxor1980 Banned

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Is ther any body esle who can assit me with the issue.

    @WCm Yes they do support.
     
    haxor1980, Jul 17, 2008 IP
  8. kumbhdesign

    kumbhdesign Banned

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    pm me your budget so we analyse and get back to you
     
    kumbhdesign, Jul 18, 2008 IP
  9. haxor1980

    haxor1980 Banned

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Y@ Kumbhdesign up, wot budget dude. I have resolved it on my own. Thanks for giving me sucha lame answer.
     
    haxor1980, Jul 18, 2008 IP
  10. alcoholic12345

    alcoholic12345 Banned

    Messages:
    183
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Wat was the problem ? ... Must have been in the code
     
    alcoholic12345, Jul 18, 2008 IP
  11. haxor1980

    haxor1980 Banned

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I went through a different way, Instead of making tht page php i mean index.php, I made that index.htmla dn caleld php code using SSI.
     
    haxor1980, Jul 18, 2008 IP