PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Muhammad Arfeen   Shorten URL in a text using   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example script
Class: Shorten URL in a text using
Convert URLs in text to links using
Author: By
Last change:
Date: 13 years ago
Size: 371 bytes


Class file image Download

// example

include_once "";

$ECLObj = new ExtConvLinks("_your_bitly_login","_your_bitly_apikey");

$Text = "This is a text with some links like and";

"text before conversion: <p>$Text";

$Text = $ECLObj->ExtractAndConvert($Text);

"<p>text after conversion: <p>$Text";