Search notes:

PHP code snippets: __FILE__

__FILE__ expands to the absolute path of the file where this identifier occurs.
<!DOCTYPE html>
<html>
<head>
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  <title>__FILE__</title>
</head>
<body>

<?php
  print "__FILE__ is: <code>" . __FILE__ ."</code>";
?>

</body>
</html>
Github repository about-php, path: /__FILE__.html

See also

$_SERVER['SCRIPT_FILENAME']
Other PHP snippets.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745911703, '18.216.82.12', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/web/php/snippets/__FILE__(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78