Ad block is installed and active. Please support us by disabling it.
HomeFriday, April 20, 2018, 19:44:39
9

Bookmark Current Page - PHP Tutorial

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

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

Link Base 2.0.

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.

Random MySQL Query

Random MySQL query, requirement(s): PHP Server, MySQL

Adsense crawler errors and robots.txt

How to fix Google AdSense crawler errors in robots.txt

Show / Hide Div with CSS

CSS Display and Visibility:The visibility property specifies whether or not an element is visible.

Email to Friend - PHP Script

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

Creating a Math CAPTCHA with PHP - PHP Tutorial

This tutorial will show you how to create a form with Math Captcha.

Contact Us 2.0. :: PHP Form

Version 2.0. - A contact us form with email and form field validation. It allows your visitors to send you an email directly from your website.

Sitemap

phpForm.net Website Sitemap

Create dynamic Web Pages with PHP & MySQL

Create dynamic Web Pages with PHP & MySQL, Requirement(s): PHP Server, MySQL
About Author

wain

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