Jump to content

link advice via php


redarrow

Recommended Posts

advance thank you.

 

i am currently creating a add url/directory web site, the links need be are 6000 links,i have created the links with in a array, and then name it via a function name, so i can understand what what.

 

have you got any suggestions please.

 

 

example of the arts link.

<?php


// get the link names within a array.
$links=array(

"ARTS"=>
     "Animation,
     Antiques@,
     Architecture,
     Art History,
     Bodyart,
     Classical Studies,
     Comics,
     Costumes,
     Crafts,
     Dance@,
     Design,
     Digital,
     Entertainment,
     Graphic Design,
     Humanities,
     Illustration,
     Literature,
     Movies,
     Music,
     Myths and Folktales@,
     Native and Tribal@,
     Online Writing,
     Performing Arts,
     Photography,
     Radio,
     Rhetoric@ ,
     Television,
     Theatre@,
     Typography@,
     Video,
     Visual Arts,
     Writers Resources,
     Archives@,
     Awards,
     Book Shopping@,
     Chats and Forums,
     Contests,
     Cultures and Groups,
     Directories,
     Education,
     Events,
     Genres,
     Libraries@,
     Magazines and E-zines,
     Museums@,
     News and Media,
     Organizations,
     People,
     Periods and Movements,
     Publishers@,
     Regional,
     Web Rings,
     Weblogs,
     Business: Arts and Entertainment,
     Kids and Teens: Arts ");

     
     // create a function to get the links array.
     function arts_link($links){
     $res=explode(',',$links['ARTS']);
     foreach($res as $key=>$val){
  	 echo " <a href='$val' title'what ever'>$val</a><br>";}}
     
  	 //echo the links via the function.
     echo arts_link($links);
?>

 

Link to comment
https://forums.phpfreaks.com/topic/158474-link-advice-via-php/
Share on other sites

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.