This module has no external dependencies. Needs allow_url_fopen set to true in php.ini or code.
We recommend installing this package with Composer.
To download Composer, run in the root directory of your project:
curl -sS https://getcomposer.org/installer | php
You should now have the file composer.phar
in your project directory.
Run in your project root:
php composer.phar require sunnydrake/serverip-get-datetime
You should now have the files composer.json
and composer.lock
as well as
the directory vendor
in your project directory. If you use a version control
system, composer.json
should be added to it.
After installing the dependencies, you need to require the Composer autoloader from your code:
require 'vendor/autoload.php';
Place the 'ServerGetDateTime.php' file in the include_path
as specified in your
php.ini
file or place it in the same directory as your PHP scripts.
Gets DateTime for current IP :
<?php
require 'vendor/autoload.php';
var_dump (\Sunnydrake\Serverip\ServerGetDateTime::getDateTime());
This software is Copyright (c) 2021 by Oleh Marychev.
This is free software, licensed under the GNU Lesser General Public License version 3 or later.
Thanks to Oleksandr Roslov oleksandr.roslov@1648factory.com for task.