| Article Code Help | |||
There are two ways given for displaying article codes in your web pages
JavaScript Usage<SCRIPT LANGUAGE=javascript src="http://www.scriptswarehouse.co.uk/article/displayarticle.php?ano=5"> </SCRIPT> Step 1: Copy the desired JavaScript code from Scripts Warehouse. Step 2: Paste in the HTML file anywhere you want it to display the article(s) between the <body> tags. Step 3: Test by displaying your HTML file in the browser.
PHP UsageFor Advanced Users$articleURL = "http://www.scriptswarehouse.co.uk/article/article_manger.php?d=r"; $handle = fopen($articleURL,"rb"); $contents = ''; while (!feof($handle)) { $contents .= fread($handle, 8192); } print $contents; //$contents holds the article contents Step 1: Copy the desired PHP code from Scripts Warehouse. Step 2: Paste in the PHP file anywhere. Step 3: The variable $contents contains the HTML code generated by Scripts Warehouse. Step 4: Use variable $contents to populate your web page.
|