Ad block is installed and active. Please support us by disabling it.
HomeSunday, December 17, 2017, 04:25:31
9

Bookmark Current Page - PHP Tutorial

Tuesday, February 10, 15, 15:24:04, 3 Yaers Ago Via wain, Hits: 3584
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

Upload Image With PHP

[Example3] Tutorial - How to upload image in php.

PHP Trim

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

Email Link

HTML email link example

How to set up password for phpMyAdmin in Wamp Server

Password for phpMyAdmin in Wamp

MySQL – Select from two tables

Select data from two tables, PHP MySQL

Smarty Paginate Example - Smarty Pagination with PHP

Smarty Paginate Example, Smarty Pagination with PHP. SmartyPaginate: a class/plugin for data set pagination within the Smarty template environment

PHP highlight_string - PHP Tutorial

Outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP. Requirement(s): PHP Server.

Sitemap

phpForm.net Website Sitemap

Captcha V1 - Free PHP Script

An anti-spam form protection image written in PHP, Version: 1.1.

Creating a Math CAPTCHA with PHP - PHP Tutorial

This tutorial will show you how to create a form with Math Captcha.
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.