t; $viewcode = explode('/', $PATH_INFO);
> > >$num = count($viewcode);
> > >if($num % 2 == 0) {
> > >$viewcode[] = '';
> > > $num++;
> > >}
> > >for($i = 1; $i < $num; $i += 2) {
> > &g
ATH_INFO);
> >$num = count($viewcode);
> >if($num % 2 == 0) {
> >$viewcode[] = '';
> >$num++;
> >}
> >for($i = 1; $i < $num; $i += 2) {
> >
> > $$viewcode[$i] =
ewcode[$i+1];
>
> }
>}
>
> Luis
> - Original Message ----- From: "Gabriel_k" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 17, 2003 11:03 PM
> Subject: Re: [PHP-WIN] Re: Newbie Q
>
>
> > Hey man, I t
; <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 17, 2003 11:03 PM
Subject: Re: [PHP-WIN] Re: Newbie Q
> Hey man, I tried using PHP_SELF and PATH_INFO, but they both got this
error
> message:
>
> Notice: Use of undefined constant PHP_INFO - assumed 'PH
>
> This will set $title to
> /files/uploads/here
>
> $title = getcwd();
> ?>
>
> This will set $title to
> D:\wwwroot\files\uploads\here
>
> Depends on what value you actually want to use.
>
> (V)
>
> - Original Message -----
> From: "Gabri
lt;[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 8:18 AM
Subject: Re: [PHP-WIN] Re: Newbie Q
> Well, I want my php script to put the TITLE of a html page to the name of
> the directory the script is in.
>
> /Gabbah
>
> "H Marc Bower" <[EMAIL PROTECTED]> skr
Well, I want my php script to put the TITLE of a html page to the name of
the directory the script is in.
/Gabbah
"H Marc Bower" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Um... the file in which you put that command should be there... :)
>
> What is the purpose for knowing
Um... the file in which you put that command should be there... :)
What is the purpose for knowing the directory name? Maybe there is
something else you can tell us that will get you the answer you're looking
for.
(V)
- Original Message -
From: "Gabriel_k" <[EMAIL PROTECTED]>
> What if