• 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

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

Apply session id from request header

Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::fetch_assoc() [duplicate]

php script to delete files older than 24 hrs, deletes all files

Attempt to read property "view" on null when sending password reset email

Custom API and cunsuming in php?

how do i retrieve and display the alt text of an image in wordpress?

Laravel dosen't connect with Oracle

How to remove from a multidimensional array all duplicate elements including the original?

PHP 8 - libxml_disable_entity_loader() has been deprecated. How do I replace the functionality it provides?

Why is this PHP array not the same?

Can I write PHP code across multiple lines per statement?

How to debug in WooCommerce 3+

How to create a video stream from a single dynamic image in PHP

selected value from the listbox in php

About Contact Privacy policy Terms and conditions