• 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

Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: ) in Unknown on line 0

Wordpress 'post_type_link' hides permalink

I want a way to give path to my files which are outside of public folder in laravel

Apply filter array/return terms

Facebook SDK error: Cross-site request forgery validation failed. Required param "state" missing from persistent data

carbon generated datetime not stored correctly into the database

Symfony Mercure "Failed to send an update"

Respond with status code 401 on authentication failure using Laravel and Passport?

woocommerce change position of price

How to change 'users' auth table and use another instead Laravel

Sum array values

Laravel Delete and Update

PHP contact form configuration [duplicate]

Laravel: Create morphs() relationship nullable

How to disable widget block editor of WordPress?

About Contact Privacy policy Terms and conditions