PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 12-10-2004, 08:41 AM   #1
Zee
Green Mole
 
Join Date: Dec 2004
Posts: 1
Dynamic Link Bug with Short Tags (and solution)

Hey, just ran into this issue and thought I'd post it, as I couldn't find it listed anywhere else (although this thread looked like it might have been about the same issue). Please move it to the appropriate forum if this isn't the right place.

PHPDig seems to have a bit of difficulty crawling links that are dynamically generated using short tags.

For instance:
Code:
while ($moreRows) {
...
?>
<a href="my_page.php?ID=<?=$row[pageID]?>">link</a>
<? } ?>
will result in a link that the PHPDig spider does not seem to crawl.

If you ouptut it this way instead:
Code:
while ($moreRows) {
...
echo '<a href="my_page.php?ID=' . $row[pageID] . '">link</a>';
}
the PHPDig spider finds the link and indexes the linked page properly.

This was an issue for me, as I have a ton of dynamically generated links, and I tend to use short tags rather than echo. Normally, the server has no problem with short tags - it was only with PHPDig that I encountered it as an issue. I was using PHPDig 1.8.3 as well, so it's entirely possible that this behaviour has been fixed in 1.8.4 (but I haven't yet upgraded).


Anyway, YMMV. Keep up the good work - it's an excellent tool.
Zee is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove PHP short tags (patch) blueyed Mod Submissions 0 11-22-2006 06:29 AM
pdftotext no solution Art External Binaries 7 04-11-2005 05:39 AM
Problem for short words infoland Troubleshooting 8 02-23-2005 09:10 AM
No short description from .doc? Spider External Binaries 1 09-06-2004 03:25 AM
Need Solution Please rwh Troubleshooting 24 12-26-2003 01:16 PM


All times are GMT -8. The time now is 09:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.