User Tools

Site Tools


php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
php [2010/10/08 17:51] – created tkbletscphp [2010/10/08 17:54] tkbletsc
Line 6: Line 6:
 function current_url() { function current_url() {
  $pageURL = 'http';  $pageURL = 'http';
- if ($_SERVER["HTTPS"] == "on") $pageURL .= "s";+ if (@$_SERVER["HTTPS"] == "on") $pageURL .= "s";
  $pageURL .= "://";  $pageURL .= "://";
  if ($_SERVER["SERVER_PORT"] != "80") {  if ($_SERVER["SERVER_PORT"] != "80") {
Line 19: Line 19:
 function script_url() { function script_url() {
  $pageURL = 'http';  $pageURL = 'http';
- if ($_SERVER["HTTPS"] == "on") $pageURL .= "s";+ if (@$_SERVER["HTTPS"] == "on") $pageURL .= "s";
  $pageURL .= "://";  $pageURL .= "://";
  if ($_SERVER["SERVER_PORT"] != "80") {  if ($_SERVER["SERVER_PORT"] != "80") {
Line 44: Line 44:
 function script_url() { function script_url() {
  $pageURL = 'http';  $pageURL = 'http';
- if ($_SERVER["HTTPS"] == "on") $pageURL .= "s";+ if (@$_SERVER["HTTPS"] == "on") $pageURL .= "s";
  $pageURL .= "://";  $pageURL .= "://";
  if ($_SERVER["SERVER_PORT"] != "80") {  if ($_SERVER["SERVER_PORT"] != "80") {
php.txt · Last modified: 2010/10/08 18:58 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki