• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Find out the name of the last script that included the current one

phpserverincludephp-7php-8


PHP Snippet 1:

$files = get_included_files();
list($parent) = array_slice($files, -2, 1);
echo $parent;

Related Snippets

How to MODIFY a Google Docs document via API using search-and-replace?

Composer Script echo

Laravel 5.2: Unable to locate factory with name [default]

Applying programmatically a coupon to an Order in WooCommerce3

Return multiple values from a function using mysqli_fetch_assoc [closed]

Merge key and value of array index [duplicate]

Required field only if another field has a value, must be empty otherwise

How To Access A Column In M-M Relationship Table In Laravel

How can I make good efficent AJAX live forms with just jQuery and

Cannot connect to own websocket server when on secured domain

enroll_table three field fetch to payment form to create payment field in laravel 5.5

WooCommerce Subscriptions: Remove role on cancelled subscription

Vimeo API: how to save a vimeo into a subfolder?

Handling expired token in Laravel

PHP error: "The zip extension and unzip command are both missing, skipping."

About Contact Privacy policy Terms and conditions