Ask a Question related to PHP Development, Design and Development.
-
Jethro #1
Echo a directory name and not the path
For a first creation I made a default index page for all the
tutorials/test PHP stuff (tables, links, etc). Now I want each index
to be named the same as their respective directory but I can't seem to
find a way to do this without including the path.
Can somebody please point me in the right direction
Jethro Guest
-
cfindex using recursive directory query and type=path
Using ColdFusion 6. I generated a query containing a list of the directories I want to index (www.cflib.org has a cfdirectory UDF). I now have a... -
CLI - Directory path from $_SERVER
I need the path of the script that is running. Unfortunately it is not in the $_SERVER array when running a script through the CLI. Through a... -
Can you turn off safe_mode for a global alias path or directory?
Hi, I'm using the FreeBSD Port mod_php4-4.3.1 I have lots of name-based virtual sites which all have: php_admin_value open_basedir... -
OS X Directory Path (k)
I'm trying to write the correct Lingo to access the QuickTime.pkg installer on the CD I'm working on. on mouseDown me open... -
linking with home directory path
I have a script that contains style sheets and I can't seem to link it on my Windows 2000 IIS server. It works perfectly fine on my Windows XP IIS... -
Virgil Green #2
Re: Echo a directory name and not the path
"Jethro" <none@here.com> wrote in message
news:gtosj0lh61bvbffp2j4s1m80kt83rv0f0b@4ax.com...For starters, try producing a clearer explanation, perhaps with some> For a first creation I made a default index page for all the
> tutorials/test PHP stuff (tables, links, etc). Now I want each index
> to be named the same as their respective directory but I can't seem to
> find a way to do this without including the path.
>
> Can somebody please point me in the right direction
examples. I, for one, have no idea what you are trying to convey.
- Virgil
Virgil Green Guest
-
Rocky #3
Re: Echo a directory name and not the path
In article <30D%c.17868$T44.7109@newssvr22.news.prodigy.com >,
[email]vjg@DESPAMobsydian.com[/email] says...The way I read it ...> "Jethro" <none@here.com> wrote in message
> news:gtosj0lh61bvbffp2j4s1m80kt83rv0f0b@4ax.com...>> > For a first creation I made a default index page for all the
> > tutorials/test PHP stuff (tables, links, etc). Now I want each index
> > to be named the same as their respective directory but I can't seem to
> > find a way to do this without including the path.
> >
> > Can somebody please point me in the right direction
> For starters, try producing a clearer explanation, perhaps with some
> examples. I, for one, have no idea what you are trying to convey.
>
> - Virgil
>
>
tutorials/tables/index.php
tutorials/links/index.php
tutorials/etc/index.php
.... and wants ...
tutorials/tables/tables.php
tutorials/links/links.php
tutorials/etc/etc.php
Solution : name the folders and files as you go along.
Rocky
Rocky Guest
-
Jethro #4
Re: Echo a directory name and not the path
On Wed, 08 Sep 2004 12:35:11 GMT, "Virgil Green"
<vjg@DESPAMobsydian.com> wrote:
Sorry to both of you for being unclear.>"Jethro" <none@here.com> wrote in message
>news:gtosj0lh61bvbffp2j4s1m80kt83rv0f0b@4ax.com.. .>>> For a first creation I made a default index page for all the
>> tutorials/test PHP stuff (tables, links, etc). Now I want each index
>> to be named the same as their respective directory but I can't seem to
>> find a way to do this without including the path.
>>
>> Can somebody please point me in the right direction
>For starters, try producing a clearer explanation, perhaps with some
>examples. I, for one, have no idea what you are trying to convey.
>
> - Virgil
>
I made a PHP script that'll generate and link the contents of a
directory with an output of HTML (organized in a tidy fashion,
filtered/etc). I'll name the script index.php and drop it in every
directory that has a lot of odds and ends
What I'm looking to do is to automatically display the name of the
directory as the title of the page (not <title>*</title> but maybe)
but just some fill to give the page a more balanced and complete look
echo getcwd() . "\n"; ----will give me /var/www/html/stuff/Forms and I
want to look from the right for the first / and use everything from
the right of that. Unless there's a better way.
Sorry again for being unclear
Jethro Guest
-
Charles Pelkey #5
Re: Echo a directory name and not the path
try this:
dirname(__FILE__)
"Jethro" <none@here.com> wrote in message
news:5i5uj0h23a6gn14917j1n9mvhqmv028sjj@4ax.com...> On Wed, 08 Sep 2004 12:35:11 GMT, "Virgil Green"
> <vjg@DESPAMobsydian.com> wrote:
>> Sorry to both of you for being unclear.> >"Jethro" <none@here.com> wrote in message
> >news:gtosj0lh61bvbffp2j4s1m80kt83rv0f0b@4ax.com.. .> >> >> For a first creation I made a default index page for all the
> >> tutorials/test PHP stuff (tables, links, etc). Now I want each index
> >> to be named the same as their respective directory but I can't seem to
> >> find a way to do this without including the path.
> >>
> >> Can somebody please point me in the right direction
> >For starters, try producing a clearer explanation, perhaps with some
> >examples. I, for one, have no idea what you are trying to convey.
> >
> > - Virgil
> >
>
> I made a PHP script that'll generate and link the contents of a
> directory with an output of HTML (organized in a tidy fashion,
> filtered/etc). I'll name the script index.php and drop it in every
> directory that has a lot of odds and ends
>
> What I'm looking to do is to automatically display the name of the
> directory as the title of the page (not <title>*</title> but maybe)
> but just some fill to give the page a more balanced and complete look
>
> echo getcwd() . "\n"; ----will give me /var/www/html/stuff/Forms and I
> want to look from the right for the first / and use everything from
> the right of that. Unless there's a better way.
>
>
> Sorry again for being unclear
>
Charles Pelkey Guest
-
Jethro #6
Re: Echo a directory name and not the path
Got it with your info...
Thanks
On Wed, 08 Sep 2004 22:29:32 GMT, "Charles Pelkey"
<c.e.pelkey@sbcglobal.net> wrote:
>try this:
>
>dirname(__FILE__)
>
>"Jethro" <none@here.com> wrote in message
>news:5i5uj0h23a6gn14917j1n9mvhqmv028sjj@4ax.com.. .>>> On Wed, 08 Sep 2004 12:35:11 GMT, "Virgil Green"
>> <vjg@DESPAMobsydian.com> wrote:
>>>> Sorry to both of you for being unclear.>> >"Jethro" <none@here.com> wrote in message
>> >news:gtosj0lh61bvbffp2j4s1m80kt83rv0f0b@4ax.com.. .
>> >> For a first creation I made a default index page for all the
>> >> tutorials/test PHP stuff (tables, links, etc). Now I want each index
>> >> to be named the same as their respective directory but I can't seem to
>> >> find a way to do this without including the path.
>> >>
>> >> Can somebody please point me in the right direction
>> >
>> >For starters, try producing a clearer explanation, perhaps with some
>> >examples. I, for one, have no idea what you are trying to convey.
>> >
>> > - Virgil
>> >
>>
>> I made a PHP script that'll generate and link the contents of a
>> directory with an output of HTML (organized in a tidy fashion,
>> filtered/etc). I'll name the script index.php and drop it in every
>> directory that has a lot of odds and ends
>>
>> What I'm looking to do is to automatically display the name of the
>> directory as the title of the page (not <title>*</title> but maybe)
>> but just some fill to give the page a more balanced and complete look
>>
>> echo getcwd() . "\n"; ----will give me /var/www/html/stuff/Forms and I
>> want to look from the right for the first / and use everything from
>> the right of that. Unless there's a better way.
>>
>>
>> Sorry again for being unclear
>>Jethro Guest



Reply With Quote

