HomeMonday, June 26, 2017, 10:21:39
9

Bookmark Current Page - PHP Tutorial

Tuesday, February 10, 15, 15:24:04, 2 Yaers Ago Via wain, Hits: 2614
Bookmark current page with PHP example.
Example:
Code:
<?php
function get_url() {
if($_SERVER['HTTPS']) {
$linkurl = 'https://';
} else {
$linkurl = 'http://';
}
$linkurl .= $_SERVER['HTTP_HOST'];
if($show_port) {
$my_url .= ':'.$_SERVER['SERVER_PORT'];
}
$linkurl .= $_SERVER['SCRIPT_NAME'];
if($_SERVER['QUERY_STRING'] != null) {
$linkurl .= '?'.$_SERVER['QUERY_STRING'];
}
return $linkurl;
}
$myurl = get_url();
?>
///////////////////////////////////////////////////////////////////////////
<a href="javascript:window.external.AddFavorite('
<?php echo $myurl ?>', 'Example.com')">
<img src="http://www.example.com/images/example.gif"
border="0"></a>

Sign In

Sponsor

Related

PHP Trim

trim() Strip whitespace (or other characters) from the beginning and end of a string.

PHP Links Script 1.1.

This script allows you to manage your links using a MySQL database. It features easy install, user submission, and an admin panel to add, edit and remove categories and links. The script is easy to customize to suit your needs.

Bookmark Script

Allow your users to easily bookmark your site, by clicking on a link on the page.

PHP Fwrite : fwrite

php write to file - how to write data to a file using the php frwite function

PHP filesize

The filesize function returns the size of the specified file.

Meta Tags Generator 1.1. PHP Script

This script will allow your visitors to create meta tags online.

E-Cards 1.1. PHP Script

This script will allow your visitors to send e-cards to their friends. It features admin notification and HTML output.To use the "e-cards" script completely free , the "powered by" link at the bottom of the pages must stay intact.

Filter Words in PHP - PHP Tutorial

Filter bad words in PHP, requirement(s): PHP server

Tell A Friend with Captcha

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.

MySQL – Select from two tables

Select data from two tables, PHP MySQL
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Thu, Jun 15, 17
So far has created 115 entries.
wain
This author has not yet filled in any details.