View Full Version : Resolved My php menu now validates and my index does not, why?
robin9000
03-06-2009, 10:39 PM
New problem go to the last post on here to see my latest problem I am facing trying to resolve this issue.
I have just found out that I need to re-due my whole site because it's my menu links are not viewable to search engines.:(
Not very happy about that but I have gone ahead and done a php index page up with a php menu linking everything up.
the test page is www.robinsden.110mb.com/index.php
My question is why dose my menu links still not show up if I view them in Linux?
Here is a page I got to be able to view the page.
http://www.yellowpipe.com/yis/tools/lynx/lynx_viewer.php
You'll notice if you view my page it shows links that go no where and dose not show up any of my menu links. Why not?
I get an error. Can I see your code?
robin9000
03-06-2009, 10:45 PM
I get an error. Can I see your code?
The following is what I get:
As you can see below the links at the bottom most of them are meaningless and there are none of my menu links.
Warning: include() [[1]function.include]: URL file-access is disabled
in the server configuration in
/www/110mb.com/r/o/b/i/n/s/d/e/robinsden/htdocs/index.php on line 28
Warning: include(http://www.robinsden.110mb.com/menu.php)
[[2]function.include]: failed to open stream: no suitable wrapper
could be found in
/www/110mb.com/r/o/b/i/n/s/d/e/robinsden/htdocs/index.php on line 28
Warning: include() [[3]function.include]: Failed opening
'http://www.robinsden.110mb.com/menu.php' for inclusion
(include_path='.:/usr/share/php') in
/www/110mb.com/r/o/b/i/n/s/d/e/robinsden/htdocs/index.php on line 28
Welcome to Robin's Den
The reason for Robin's Den
I have posted this site to give people a place where they can come to
obtain different services I have to offer and for a place to have some
fun.
About Robin's Den
I have been a certified computer technician since 2003 and take pride
in the services I provide to people. I look forward to continuing to
do so with excellent service at very reasonable rates and provide same
day or next day service. Feed back
Please fell free to send us any comments or suggestions you might have
on our site. We are as well interested in any jokes or other content
you think we might find of interest to post. All email is read on a
day to day basis. Thank you and please enjoy your visit here at
Robin's Den.
[4]counters for myspace
References
1. http://www.robinsden.110mb.com/function.include
2. http://www.robinsden.110mb.com/function.include
3. http://www.robinsden.110mb.com/function.include
4. http://www.statcounter.com/myspace/
robin9000
03-06-2009, 10:50 PM
I just re-checked and there is something very wrong
I get the following error message.
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /www/110mb.com/r/o/b/i/n/s/d/e/robinsden/htdocs/index.php on line 28
Warning: include(http://www.robinsden.110mb.com/menu.php) [function.include]: failed to open stream: no suitable wrapper could be found in /www/110mb.com/r/o/b/i/n/s/d/e/robinsden/htdocs/index.php on line 28
Warning: include() [function.include]: Failed opening 'http://www.robinsden.110mb.com/menu.php' for inclusion (include_path='.:/usr/share/php') in /www/110mb.com/r/o/b/i/n/s/d/e/robinsden/htdocs/index.php on line 28
Welcome to Robin's Den
I think maybe I need to talk to my hosting company.
I know, I need to see the code.
robin9000
03-06-2009, 10:56 PM
Here is the top bit of code before my hosting company makes a mess of it.
You'll notice towards the bottom here is where I include the file.
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Robins Den has web design, pomes, jokes, ways to save money, a home business and more." /> <meta name="keywords" content="web, site, design, free, advertising, cooking, tech, help, home, business" />
<title>Robins Den</title>
<script type="text/javascript" src="menuscripts/jquery.min.js"> </script>
<script type="text/javascript" src="menuscripts/jqueryslidemenu.js"></script>
<link href="menuscripts/jqueryslidemenu.css" rel="stylesheet" type="text/css" />
<link href="Scripts/all.css" rel="stylesheet" type="text/css" />
<link rel="canonical" href="http://www.robinsden.110mb.com" />
</head>
<body>
<!--Banner starts here-->
<div class="wrapper">
<div id="A1000">
<div id="A1001">
</div>
<div id="A1002">
</div>
</div>
<!--Banner ends here-->
<!--Menu starts here-->
<div id="myslidemenu" class="jqueryslidemenu">
<?php include("http://www.robinsden.110mb.com/menu.php"); ?>
</span></div>
<!--Menu ends here-->
Change:
<?php include("http://www.robinsden.110mb.com/menu.php"); ?>
To:
<?php include("./menu.php"); ?>
robin9000
03-06-2009, 11:18 PM
Change:
<?php include("http://www.robinsden.110mb.com/menu.php"); ?>
To:
<?php include("./menu.php"); ?>
Thanks that worked but for some reason my menu dose not display right, any idea what is going on?
Your code isn't valid mark up.
http://validator.w3.org/check?uri=http://www.robinsden.110mb.com/index.php&charset=(detect+automatically)&doctype=Inline&group=0
robin9000
03-06-2009, 11:56 PM
New issue:
Index.php dose not validate. menu.php validates after adding in header and body information. Very confused as to what the problem now is?
Index page is: www.robinsden.110mb.com/index.php
and the validated menu page is:
www.robinsden.110mb.com/menu.php
robin9000
03-07-2009, 11:04 PM
As far as I know it's not so much that the page was not valid markup but that my menu that I am trying to refer to had the header and other information in it, so I have removed all that information from my menu.php file and now my index.php page validates fine but my menu.php dose not obviously.
I am really getting stump on how to resolve my issue? Just can't seem to get my menu to display correctly. Why?
Snookerman
03-08-2009, 06:35 AM
The code is written so it works with anchor tags, change:
My Hobbies
to
<a href="#">My Hobbies</a>
and
Services
to
<a href="#">Services</a>
Good luck!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.