Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


php_tricks

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
php_tricks [2016/07/20 16:57] juckinsphp_tricks [2018/11/01 21:32] (current) juckins
Line 1: Line 1:
 +==== PHP Tips ====
 +
 +Code tips:
 +
 <code> <code>
 $actual_link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; $actual_link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
Line 22: Line 26:
 More info on parsing the URL: http://php.net/manual/en/function.parse-url.php  More info on parsing the URL: http://php.net/manual/en/function.parse-url.php 
  
 +Showing errors:
 +<code>
 +<?php
 +ini_set('display_errors', 1);
 +ini_set('display_startup_errors', 1);
 +error_reporting(E_ALL);
 +?>
 +
 +test
 +
 +<?php
 +echo "test<br>\n";
 +$file=fopen("welcome.txt","r");
 +?>
 +</code>
php_tricks.1469048273.txt.gz · Last modified: 2016/07/20 16:57 by juckins