'."\r \r"; echo "\r ".$basehref."\r 0.9\r"; echo " ".date('Y-m-d', (filemtime($baselocdir.'index.html')))."T".date('H:i:s', (filemtime($baselocdir.'index.html')))."-07:00\r"; echo "\r"; foreach ($allowedrecordnames as $recordrequestedname) { echo "\r ".$basehref.str_replace(' ', '-',str_replace('-', '_',$recordrequestedname))."/\r 0.7\r"; if (($workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["ModDate"])!="") { echo " ".date('Y-m-d', strtotime(($workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["ModDate"])))."T".date('H:i:s', (filemtime($baselocdir."test-data.csv")))."-07:00\r"; } else { echo " ".date('Y-m-d', (filemtime($baselocdir."test-data.csv")))."T".date('H:i:s', (filemtime($baselocdir."test-data.csv")))."-07:00\r";} echo "\r"; } echo ""; return; } // google sitemap code ends // yahoo sitemap code begins if ($recordrequestedname=="urllist.txt") { echo $basehref."\r"; foreach ($allowedrecordnames as $recordrequestedname) { echo $basehref.str_replace(' ', '-',$recordrequestedname)."/\r"; } return; } // yahoo sitemap code ends // 404 code begins if (!(in_array($recordrequestedname, $allowedrecordnames)||($recordrequestedname==""))) { // echo "the 404"; //debugging code header ("HTTP/1.1 404 Not Found"); include $baselocdir.'../missing.html'; return; } // 404 code ends ?> \r"; ?> \r"; echo "\r"; echo ""; echo $recordrequestedname; echo " - Commercial Casting Director in Los Angeles (Hollywood)\r"; } else { // display index code echo "\r"; echo "\r"; echo "Los Angeles Commercial Casting Directory - Hollywood Commercial Casting Directors\r"; } ?> Los Angeles Commercial Casting Directors: ".$workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["Company"]."
\rBrought to you by David August \r

\r\r"; //debugging code block start /* echo "

\$recordrequestedname: ".$recordrequestedname; echo "\r
".$allowedrecordnames[array_search($recordrequestedname, $allowedrecordnames)]; echo "\r
".(array_search($recordrequestedname, $allowedrecordnames)+1); echo $workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)][1]; echo "

"; */ //debugging code block end /* //general display code start echo "

"; for($x=0;$x++<(count($headingsasarray));) { // iterates through x axis, i.e. all columns of $recordrequestedname's record/row echo $headingsasarray[$x-1].": ".$workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)][$headingsasarray[$x-1]]."
\r"; } echo "back to list"; echo "

"; // general display code end */ // commercial casting director display start //Name,Company,Address,City,State,,Twitter,ModDate Zip omitted from display echo "
"; echo "
Casting Director:
".$workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["Name"]."
\r"; echo "
Casting Company:
"; if (($workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["Company"])!="") { echo $workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["Company"]; } else {echo "unknown";} echo "
\r"; echo "
Address:
"; if (($workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["Address"])!="") { echo $workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["Address"]; } else {echo "unknown";} echo "
\r"; echo "
City:
"; if (($workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["City"])!="") { echo $workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["City"]; } else {echo "unknown";} echo "
\r"; echo "
State:
"; if (($workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["State"])!="") { echo $workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["State"]; } else {echo "unknown";} echo "
\r"; echo "
Twitter:
"; if (($workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["Twitter"])!="") { echo "".$workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["Twitter"].""; } else {echo "unknown";} echo "
\r"; echo "
as of:
"; if (($workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["ModDate"])!="") { echo $workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["ModDate"]; } else {echo "unknown";} echo "
\r"; echo "
"; // address with "+" for spaces for map integration str_replace(' ', '+',$workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["Address"])."+".str_replace(' ', '+',$workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["City"])."+".str_replace(' ', '+',$workingarray[(array_search($recordrequestedname, $allowedrecordnames)+1)]["State"]) echo "

Make a suggestion or addition and make this list more complete.

\r"; echo "\r"; echo "

Los Angeles Commercial Casting Directors
go back to the LA Commercial Casting Director home page"; echo "

"; // record lable display end } else { // display index code echo "

Los Angeles Commercial Casting Directors
\rBrought to you by David August \r

\r\r"; echo "\r"; echo ""; } ?> "; for($x=0;$x++<(count($workingarray[1]));) { // iterates through x axis echo "".($workingarray[$y][$x]).""; } echo "\r"; } // display a 2D array "$workingarray" as html table rows end */ /* var_dump ($workingarray); exit; */ ?> \r

"; ?>

by theyact.com