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 »</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 © 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&w=200&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&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.
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?
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.
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.
Y@ Kumbhdesign up, wot budget dude. I have resolved it on my own. Thanks for giving me sucha lame answer.
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.