Jump to content

Php Linking help needed


raadeekaa

Recommended Posts

Hi All,

 

Iam designing a forum page, which has discussion forums like accounting,management etc. In accounting, we have some links like Financial Accounting, Cost Accounting etc.,

 

Now, i want the website like this..

 

When the user comes to forum page(forum.php), he can see menus with links to sub forums like financial accounting. The hyper link to the financial accounting should be like forum.php/accounting/financial_accounting. Likewise, for cost accounting the hyper link should be like forum.php/accounting/cost-accounting.

 

The management forum will have hyperlinks something like forum.php/management/mgmt_accounting.

 

Now, can i write the script for the subforums (mgmt and accounting forums) in the main forum(forum.php) itself? If so, how can i link them?

 

Thanks in advance

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/126535-php-linking-help-needed/
Share on other sites

Mod_rewrite won't be the only thing you will need.  You will also need some type of mechanism (PATH_INFO) or something else to determine were the files really are versus what the links are.  .htaccess is only going to rewrite the url, your code will have to manage the rest.  Wordpress achieves this marriage very well take a look at how it runs.

Mod_rewrite won't be the only thing you will need.  You will also need some type of mechanism (PATH_INFO) or something else to determine were the files really are versus what the links are.  .htaccess is only going to rewrite the url, your code will have to manage the rest.  Wordpress achieves this marriage very well take a look at how it runs.

 

 

Hi,

Thanks for the reply.. I did not get it exactly. Can you suggest me some good tutorials on this and also the link for wordpress..

 

Thanks in advance

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.