AlfieWebDevTips Homefor new and experienced developers
[Home Home] [Web Development Web Development ] [Code Generators Code Generators ] [Resources Resources ] [Forums Forum ] [Contact Us Contact ] |WebDevTips Privacy Privacy |

WebDevTips Pick Of The Day : ".$todaytip[$today]." |

"; ?>
Print This Page



 


You are here : Home - Web Development - ASP

Active Server Pages


setSearchType("lite"); $xml = $amazonAPI->browseNodeSearch($input,$mode); $amazon = new AmazonLiteXMLParser($xml); $x=0; if(!is_array($amazon->records)) { 'Error!'; exit; } if(isset($amazon->errorMsg)) { echo "
{$amazon->errorMsg}
"; exit; } $cachedir = "cache/"; $cachetime = 30; $thefilename = $todayday.".xml"; $cachepath="store/"; $thefile=$cachepath.$thefilename; //$thefile= $cachedir.$cachefile; if($mode == "ebooks"){$mode="books";$newmode="ebooks";} $page=1; $amazonAPI->setSearchType("lite"); if(file_exists($thefile) && time()-filemtime($thefile)<$cachetime*60){ $xml = implode('', file($thefile)); } else {$savetocache=1;} if($savetocache){ $xml = $amazonAPI->browseNodeSearch($input,$mode); $cf = fopen($thefile,"w+"); fwrite($cf,$xml); fclose($cf); } $amazon = new AmazonLiteXMLParser($xml); $x=0; if(!is_array($amazon->records)) { 'Error!'; exit; } if(isset($amazon->errorMsg)) { echo "
{$amazon->errorMsg}
"; exit; } ?> records as $ind => $arr) { $arr['productname'] = preg_replace("/(.*\/sup>)/","TM",$arr['productname']); $x++; if ($x <= 5){ //if($x==1 || $x==4){echo "";} ?> ";} } } ?>

Cover

 

Active Server Pages (ASP) is a powerful and easy-to-learn server-side scripting environment which runs on Microsoft® IIS servers.

  • Other online resources - visit other asp developer sites or add your own site to the WebDevTips resource directory.

Have you got any ASP tips or guides you'd like to share with others? Find out how you can help.






Google
 

[back to top of page]   

[labelled with icra -  - this link will open in a new window] [RSS Content]

[Copyright © WebDevTips]