On my site, you see a block called NAVIGATION. Its simple HTML at present. What I would like is to show links programatically only if the document is available. Also to have no link for the focus document.
See my site, if you want to see the layout.
Thoughts?
Smarter Menu
Moderator: General Moderators
Smarter Menu
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
My site is powered by LAMP
Re: Smarter Menu
so uhmm did you start coding it in php?
like
if(there is content)
{
echo "<a href='#'>Whatever Link</a>";
}
else
{
echo "Whatever Link";
}
like
if(there is content)
{
echo "<a href='#'>Whatever Link</a>";
}
else
{
echo "Whatever Link";
}
Re: Smarter Menu
Yes, I first started with an ad tool, so the next idea was to mechanize the menu. May as well figure out PHP better.
So what is the best conditional test for a file existence?
So what is the best conditional test for a file existence?
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
My site is powered by LAMP
Re: Smarter Menu
If you reference a site in your post, please provide a link. Some people have signatures disabled (me) and you might change your signature someday.
Further, some people don't want to follow off-site links (me again), so take some time to post some code (only the relevant parts).
Edit: This post was recovered from search engine cache.
Further, some people don't want to follow off-site links (me again), so take some time to post some code (only the relevant parts).
PHP Manual: file_exists()Vegan wrote:So what is the best conditional test for a file existence?
Edit: This post was recovered from search engine cache.