This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2006 > Dynamic Link in PHP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Dynamic Link in PHP
Kevin Kashou

2006-02-12, 6:43 pm

Hello,

I want to make my main navigation link in PHP like this:

A dynamic link: http://yoursite.com/tutorials/php/1/

Not like this: (This is what I have as of right now) I use a query.php and
put all of those id in there)
Regular link: http://mysite/tutorials.php?cat=php&id=1

I found this tutorials, But it did not explain really well, so is there a
tutorial that explains it better?

http://zulumonkey.org/?id=tutorials&page=comment&oid=75

Thanks

SnakEyez

2006-02-12, 6:43 pm

Yea that is a pretty bad tutorial. What it says in a nutshell is to check your
PHP installation. This can be done by creating a PHP document with the
following in it:

phpinfo();

That will show you the PHP information you need. Then if the RewriteEngine
value is on you can use that trick, if not you can't. If it is turned on you
would need to create an htaccess file. If you do not know what this file is
read up on it here:

http://www.javascriptkit.com/howto/htaccess.shtml

That will give you an overview of the htaccess file, its purpose, and its
uses. Keep in mind this trick only works on Apache web servers and will not
run if you have a Windows web host. Then you can go back to that tutorial link
you posted and read the instructions as to what to put into the htacess file
you made.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews