Ad block is installed and active. Please support us by disabling it.
HomeSaturday, October 21, 2017, 10:36:13
9

Bookmark Current Page - PHP Tutorial

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

View content in a zip file with PHP

List all files in a zip archive with PHP

Timed Redirect JavaScript

Timed redirect javaScript/PHP example

Adsense crawler errors and robots.txt

How to fix Google AdSense crawler errors in robots.txt

MySQL Tutorials

MySQL tutorials, MySQL training, learn MySQL, MySQL Tutorial with practical examples.

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.

Inserting form data in MySql table

Inserting form data in MySql table with PHP

PHP Date Examples

Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given.

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.

How to check checkbox checked

Checking if checkbox is checked with jQuery

PHP Redirect

Header (location) redirect must be processed before any output to the browser.
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.