• 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

Laravel csrf token mismatch for ajax POST Request

Laravel Pagination links() not working

PHP usort() order in case of equality

Input and output values for php into the browser?

How to send parameters in soap request in php in __soapcall() function

Convert PHP array into HTML tag attributes separated by spaces

How to get Laravel's CSRF Token from Another Website?

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

Querying only one row from a one to many relationship laravel

Laravel Unresolvable dependency resolving [Parameter #0 [ <required> $method ]] in class GuzzleHttpPsr7Request

Laravel websockets AWS EC2 - Connection failed

How to add a custom field to all Woocommerce attribute terms using add_action

Add New Parameter to Existing URL using htaccess

PHP AWS Cognito 'Error executing "SignUp" : ResourceNotFoundException : User pool client XXXX does not exist

CSS file not imported in laravel blade view

About Contact Privacy policy Terms and conditions