PHP code example of neooblaster / prepends

1. Go to this page and download the library: Download neooblaster/prepends library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

neooblaster / prepends example snippets


auto_prepend_file string
    Spécifie le nom d'un fichier qui sera automatiquement parcouru avant le fichier principal. 
    Ce fichier est inclus comme s'il l'avait été avec la fonction 

auto_append_file string
    Spécifie le nom du fichier qui sera automatiquement parcouru après le fichier principal.
    Ce fichier est inclus comme s'il l'avait été avec la fonction 
bash
sudo nano /etc/php5/fpm/php.ini

; Automatically add files before PHP document.
; http://php.net/auto-prepend-file
auto_prepend_file = auto_prepend_files.php

; UNIX : "/path1:/path2

                                 +-----------------------+
                                 |          SAPI         |
+--------------------------------+-------+-------+-------+-------------------------------------------
|           NAME OF KEY          | APACH | NGINX |  CLI  | DESCRIPTION (Value sample)
+--------------------------------+-------+-------+-------+-------------------------------------------
|                           USER |       |   X   |   X   | www-data
+--------------------------------+-------+-------+-------+-------------------------------------------
|                           HOME |       |   X   |   X   | /var/www
+--------------------------------+-------+-------+-------+-------------------------------------------
|                      FCGI_ROLE |       |   X   |       | RESPONDER
+--------------------------------+-------+-------+-------+-------------------------------------------
|                      PATH_INFO |       |   X   |       |
+--------------------------------+-------+-------+-------+-------------------------------------------
|                SCRIPT_FILENAME |       |   X   |   X   | /var/www/browse.php
+--------------------------------+-------+-------+-------+-------------------------------------------
|                   QUERY_STRING |       |   X   |       |
+--------------------------------+-------+-------+-------+-------------------------------------------
|                 REQUEST_METHOD |       |   X   |       | GET
+--------------------------------+-------+-------+-------+-------------------------------------------
|                   CONTENT_TYPE |       |   X   |       |
+--------------------------------+-------+-------+-------+-------------------------------------------
|                 CONTENT_LENGTH |       |   X   |       |
+--------------------------------+-------+-------+-------+-------------------------------------------
|                    SCRIPT_NAME |       |   X   |   X   | /browse.php
+--------------------------------+-------+-------+-------+-------------------------------------------
|                    REQUEST_URI |       |   X   |       | /PHP.Classes/SYSLang.V.1.0/
+--------------------------------+-------+-------+-------+-------------------------------------------
|                   DOCUMENT_URI |       |   X   |       | /browse.php
+--------------------------------+-------+-------+-------+-------------------------------------------
|                  DOCUMENT_ROOT |       |   X   |   X   | /var/www
+--------------------------------+-------+-------+-------+-------------------------------------------
|                SERVER_PROTOCOL |       |   X   |       | HTTP/1.1
+--------------------------------+-------+-------+-------+-------------------------------------------
|              GATEWAY_INTERFACE |       |   X   |       | CGI/1.1
+--------------------------------+-------+-------+-------+-------------------------------------------
|                SERVER_SOFTWARE |       |   X   |       | nginx/1.6.2
+--------------------------------+-------+-------+-------+-------------------------------------------
|                    REMOTE_ADDR |       |   X   |       | 74.123.43.22
+--------------------------------+-------+-------+-------+-------------------------------------------
|                    REMOTE_PORT |       |   X   |       | 53211
+--------------------------------+-------+-------+-------+-------------------------------------------
|                    SERVER_ADDR |       |   X   |       | 192.168.1.253
+--------------------------------+-------+-------+-------+-------------------------------------------
|                    SERVER_PORT |       |   X   |       | 80
+--------------------------------+-------+-------+-------+-------------------------------------------
|                    SERVER_NAME |       |   X   |       | neoblaster.fr
+--------------------------------+-------+-------+-------+-------------------------------------------
|                REDIRECT_STATUS |       |   X   |       | 200
+--------------------------------+-------+-------+-------+-------------------------------------------
|                            CWD |       |   X   |       | Custom server param sent by FAST_PARAM
+--------------------------------+-------+-------+-------+-------------------------------------------
|                      HTTP_HOST |       |   X   |       | neoblaster.fr
+--------------------------------+-------+-------+-------+-------------------------------------------
|                HTTP_CONNECTION |       |   X   |       | keep-alive
+--------------------------------+-------+-------+-------+-------------------------------------------
| HTTP_UPGRADE_INSECURE_REQUESTS |       |   X   |       | 1
+--------------------------------+-------+-------+-------+-------------------------------------------
|                HTTP_USER_AGENT |       |   X   |       | Mozilla/5.0 (Windows NT 6.1; WOW64) (...)
+--------------------------------+-------+-------+-------+-------------------------------------------
|                    HTTP_ACCEPT |       |   X   |       |
+--------------------------------+-------+-------+-------+-------------------------------------------
|                       HTTP_DNT |       |   X   |       | 1
+--------------------------------+-------+-------+-------+-------------------------------------------
|           HTTP_ACCEPT_ENCODING |       |   X   |       | gzip, deflate, sdch
+--------------------------------+-------+-------+-------+-------------------------------------------
|           HTTP_ACCEPT_LANGUAGE |       |   X   |       | fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4
+--------------------------------+-------+-------+-------+-------------------------------------------
|                    HTTP_COOKIE |       |   X   |       | SYSLang_LANG=fr-FR
+--------------------------------+-------+-------+-------+-------------------------------------------
|                       PHP_SELF |       |   X   |   X   | /browse.php
+--------------------------------+-------+-------+-------+-------------------------------------------
|             REQUEST_TIME_FLOAT |       |   X   |   X   | 1485468784.8032
+--------------------------------+-------+-------+-------+-------------------------------------------
|                   REQUEST_TIME |       |   X   |   X   | 1485468784
+--------------------------------+-------+-------+-------+-------------------------------------------
|                 XDG_SESSION_ID |       |       |   X   | c2
+--------------------------------+-------+-------+-------+-------------------------------------------
|                           TERM |       |       |   X   | xterm
+--------------------------------+-------+-------+-------+-------------------------------------------
|                          SHELL |       |       |   X   | /bin/bash
+--------------------------------+-------+-------+-------+-------------------------------------------
|                     SSH_CLIENT |       |       |   X   | 74.123.43.22 50163 22
+--------------------------------+-------+-------+-------+-------------------------------------------
|                        SSH_TTY |       |       |   X   | /dev/pts/0
+--------------------------------+-------+-------+-------+-------------------------------------------
|                      LS_COLORS |       |       |   X   | rs=0:di=01;34:ln=01;36:mh=00:pi=40; (...)
+--------------------------------+-------+-------+-------+-------------------------------------------
|                           MAIL |       |       |   X   | /var/mail/pi
+--------------------------------+-------+-------+-------+-------------------------------------------
|                           PATH |       |       |   X   | /usr/local/sbin:/usr/local/bin:/usr/sbin
+--------------------------------+-------+-------+-------+-------------------------------------------
|                            PWD |       |       |   X   | /var/www/Prepends
+--------------------------------+-------+-------+-------+-------------------------------------------
|                           LANG |       |       |   X   | en_GB.UTF-8
+--------------------------------+-------+-------+-------+-------------------------------------------
|                          SHLVL |       |       |   X   | 1
+--------------------------------+-------+-------+-------+-------------------------------------------
|                        LOGNAME |       |       |   X   | pi
+--------------------------------+-------+-------+-------+-------------------------------------------
|                 SSH_CONNECTION |       |       |   X   | 74.123.43.22 50163 192.168.1.253 22
+--------------------------------+-------+-------+-------+-------------------------------------------
|                XDG_RUNTIME_DIR |       |       |   X   | /run/user/1000
+--------------------------------+-------+-------+-------+-------------------------------------------
|                         OLDPWD |       |       |   X   | /var/www
+--------------------------------+-------+-------+-------+-------------------------------------------
|                              _ |       |       |   X   | /usr/bin/php
+--------------------------------+-------+-------+-------+-------------------------------------------
|                PATH_TRANSLATED |       |       |   X   | auto_prepend_files.php
+--------------------------------+-------+-------+-------+-------------------------------------------
|                           argv |       |       |   X   | ARRAY
+--------------------------------+-------+-------+-------+-------------------------------------------
|                           argc |       |       |   X   | 1
+--------------------------------+-------+-------+-------+-------------------------------------------