Giter VIP home page Giter VIP logo

paystack-php-sample's People

Contributors

ibrahimlawal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wdev-bit

paystack-php-sample's Issues

using a function with the same name as the class name to declare a constructor is now deprecated in PHP 7

using the method below to declare constructors is now deprecated in PHP 7 and it requires the __construct() method . Just thought you might wanna update it ๐Ÿ˜„

`
class VirtualDirectory
{
var $protocol;
var $site;
var $thisfile;
var $real_directories;
var $num_of_real_directories;
var $virtual_directories = array();
var $num_of_virtual_directories = array();
var $baseURL;
var $thisURL;

function VirtualDirectory()
{
    $this->protocol = (array_key_exists('HTTPS', $_SERVER) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
    $this->site = $this->protocol . '://' . $_SERVER['HTTP_HOST'];
    $this->thisfile = basename($_SERVER['SCRIPT_FILENAME']);
    $this->real_directories = $this->cleanUp(explode("/", str_replace($this->thisfile, "", $_SERVER['PHP_SELF'])));
    $this->num_of_real_directories = count($this->real_directories);
    $this->virtual_directories = array_diff($this->cleanUp(explode("/", str_replace($this->thisfile, "", $_SERVER['REQUEST_URI']))),$this->real_directories);
    $this->num_of_virtual_directories = count($this->virtual_directories);
    $this->baseURL = $this->site . "/" . implode("/", $this->real_directories) . "/";
    $this->thisURL = $this->baseURL . implode("/", $this->virtual_directories) . "/";
}`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.