Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Link Checker

Posted on 2001-07-04
3
Medium Priority
?
335 Views
Last Modified: 2008-03-06
Hi

I need a program that runs through all the links on my website (it would be nice if it could automatically open subdirs etc.) and check if they still work ok.

However, this program must have one very important feature.  The website I wish to check uses PHP.  It contains many pages, but all of them use the index.php file as "base file" (the content changes via include(), based on the URL (via GET)).  For example: "www.site.com?blah=first" will open index.php and include the contents of the file that is referred to by "first".

Link checkers seem to grab the targeted pages from the server they're housed on.  Of course, this poses a problem if those pages are built with PHP (all links are constructed via a PHP function, so there is not really a <A HREF="blah.html"> tag to be found on the site.)  Of course, once the PHP is parsed and sent to the browser, this will translate into "ordinary" hyperlinks.  But the link checker doesn't act as a browser and checks before the code is parsed (grabs from server).

Any idea if a program exists that can circumvent this problem?

Thanks!
0
Comment
Question by:IconMan7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
aryumin earned 200 total points
ID: 6259189
Try the Xenu's Link Sleuth (http://home.snafu.de/tilman/xenulink.html) - it may work as a browser.
0
 
LVL 3

Author Comment

by:IconMan7
ID: 6259376
I found out why the link checker doesn't see the hyperlinks.  It's not the PHP, it's the fact that I had a PHP password on the site :-(  Stupid of me.  It works now.  I'll give you the points anyway, for the answer.

Greetz
0
 
LVL 5

Expert Comment

by:aryumin
ID: 6263860
Thank you & good luck :)
0

Featured Post

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question