All pastes #429047 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-08 00:35 UTC
rendered paste body

file /abc/x.php:
<php

getcwd(); //will return path of y.php 
//but i want to get the file of x.php not y.php 

?>


file /y.php:

<php
includes 'abc/x.php';
?>