PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Ö. Karatag   karatag Sozial Bookmark   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example File
Class: karatag Sozial Bookmark
Display buttons to add pages to bookmark sites
Author: By
Last change:
Date: 16 years ago
Size: 806 bytes
 

Contents

Class file image Download
<?php
// Include the bookmarks class
include_once('./bookmarks.class.php');

$YourDomain = 'http://www.karatag.de';
$YourTitle = 'Object oriented PHP programming';
$YourKeywords = 'Object oriented, PHP, programming, software, Germany';


$sb = new sozialBookmarks($YourDomain, $YourTitle, $YourKeywords);

// if you want to change the target of the links
$sb->setVar('target', '_self');

// if you want to change the folder of the images
$sb->setVar('imagesFolder', 'images');

// if you want to change the width of the images
$sb->setVar('imageWidth', 20);

// if you want to change the height of the images
$sb->setVar('imageHeight', 20);

$result = $sb->GetCode();


// Now you can use the result
echo '<br /><h1>Sozial Bookmarks:</h1>';
echo
'<br />'.$result;
exit();
?>