HomeMonday, June 18, 2018, 15:24:14
9

Bookmark Current Page - PHP Tutorial

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

Password Protect With PHP

Password protect tith PHP - tutorial

Jquery - Formatting International Phone Numbers

How to format international telephone numbers with jquery

PHP Fwrite : fwrite

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

Upload Image With PHP

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

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.

Smarty - Create dynamic Web Pages with PHP & MySQL

Creating Dynamic Web Pages Using Smarty and MySQL - Requirement(s): PHP Server, MySQL

Timed Redirect JavaScript

Timed redirect javaScript/PHP example

Stack Overflow Clone Script - Ja2BU

Open source question and answer script written in PHP, MySQL and jQuery. Main features are: SEO friendly url's, private message system, rating system, comments system.

Math Captcha V6

PHP Math Captcha Image Version 6

Inserting form data in MySql table

Inserting form data in MySql table with PHP
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.