Skip to main content
GrN.dk

Main navigation

  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

php

By Greg Nowak, 1 October, 2021

Check defined constants - PHP Code Snippet

<?php 

define('DISALLOW_FILE_EDIT', true);

echo "\n DISALLOW_FILE_EDIT is: " . constant('DISALLOW_FILE_EDIT') . "\n";

//$constants = get_defined_constants();
//var_dump($constants); // pretty large list
?>

Key words: define defined constant constants

Tags

  • Script
  • php
  • Linux
  • server
By Greg Nowak, 6 November, 2020

PHP test if front page

$currentpage = $_SERVER['REQUEST_URI'];
if( $currentpage == "/" ) {

}

Tags

  • php
  • programming
  • Web
By Greg Nowak, 13 August, 2020

CodeIgniter Tips And Tricks

CodeIgniter is a PHP framework that will help you create web applications and web sites faster than writing code from scratch.

Login system

http://mfikri.com/en/blog/codeigniter-login

https://www.codexworld.com/codeigniter-user-registration-login-system/

Tags

  • programming
  • php
php

Review Greg on Google

Greg Nowak Google Reviews

 

  • Portfolio
  • About Greg Nowak
  • Gregs IT and Logistics Optimization
  • Shrink PDF In Linux
  • Running Linux on T450s T495s T14, Thinkpads and Others
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.