Ask a Question related to PHP Development, Design and Development.
-
advertis #1
finding the physical path of an include file when parsing
How do I find the path to an include file from inside the file when loaded?
The file is located above the doc root. The script which includes the file
is located in the doc root. The included file needs to include additional
files located in the same directory as itself. I am trying not to have to
edit the php.ini include_path or to set it at run-time using set_ini().
Any help would be appreciated. thanks
Patrick
advertis Guest
-
Retrieving physical path on the server
Hi everyone, this is my first message on a macromedia forum, so I hope I've choosen the right forum... if not, please tell me :) My problem is... -
ASP File Include Path
Hi I have a #Include statement in an Asp page. I want to find the path of the included file at runtime. How can I do that? Please Help! -... -
finding subdirectories without parsing every file
Hi Is there any way to get the subdirectories of a directory without having to sort through all the files in a directory? I'm actually... -
parsing verilog files to finding the various module definations in the file
I need to parse a large verilog file and get the various modules in the file. A simple example of the module is as shown below. I need help to... -
Convert Physical path to Virtual path?
We have a field that gets filled into a database that our ASP website pulls from. What we would like to be able to do is to take that path and... -
Chris Hope #2
Re: finding the physical path of an include file when parsing
advertis wrote:
realpath(__FILE__) will give you the full real path name to the current> How do I find the path to an include file from inside the file when
> loaded? The file is located above the doc root. The script which includes
> the file is located in the doc root. The included file needs to include
> additional files located in the same directory as itself. I am trying not
> to have to edit the php.ini include_path or to set it at run-time using
> set_ini().
>
> Any help would be appreciated. thanks
file.
[url]http://www.php.net/realpath[/url]
--
Chris Hope - The Electric Toolbox - [url]http://www.electrictoolbox.com/[/url]
Chris Hope Guest
-
advertis #3
Re: finding the physical path of an include file when parsing
Works Great! thanks
"Chris Hope" <blackhole@electrictoolbox.com> wrote in message
news:1098485052_35193@216.128.74.129...includes> advertis wrote:
>> > How do I find the path to an include file from inside the file when
> > loaded? The file is located above the doc root. The script whichnot> > the file is located in the doc root. The included file needs to include
> > additional files located in the same directory as itself. I am trying>> > to have to edit the php.ini include_path or to set it at run-time using
> > set_ini().
> >
> > Any help would be appreciated. thanks
> realpath(__FILE__) will give you the full real path name to the current
> file.
>
> [url]http://www.php.net/realpath[/url]
>
> --
> Chris Hope - The Electric Toolbox - [url]http://www.electrictoolbox.com/[/url]
advertis Guest



Reply With Quote

