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
According to the PHP Manual:
11. Where can I find a complete list of pre-set variables available to
me, and why are these not documented in the PHP documentation?
The best way is to stick a part on a page and load
it up. This will show you all sorts of information about your PHP setup,
includ
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
What if there is no file?
/Gabbah
"Heyz" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> It's simple.
>
> dirname(__FILE__)
>
>
> "Gabriel_k" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > How can I find out (as a string) in what dir my php script is run?
> >
>
It's simple.
dirname(__FILE__)
"Gabriel_k" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How can I find out (as a string) in what dir my php script is run?
>
> /Gabbah
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It's simple.
dirname(__FILE__);
"Gabriel_k" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How can I find out (as a string) in what dir my php script is run?
>
> /Gabbah
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
12 matches
Mail list logo