Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2007-05-09 09:34
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();
?>