HomeTuesday, May 23, 2017, 20:32:45
9

Bookmark Current Page - PHP Tutorial

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

Timed Redirect JavaScript

Timed redirect javaScript/PHP example

PHP Form Basic

PHP Form - PHP form basic, Requirement(s): PHP Server

Adsense crawler errors and htaccess

How to fix Google AdSense crawler errors in htaccess file.

PHP explode

Explode — Split a string by string.

Show / Hide Div with CSS

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

PHP $_GET Function

Get function in PHP

Link Base L.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.

FeedBack Form with Captcha

It allows your visitors to send you an email directly from your website.

Imageline

Draws a line between the two given points.

php Array

These functions allow you to interact with and manipulate arrays in various ways. Arrays are essential for storing, managing, and operating on sets of variables.
About Author

wain

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