Re: [PHP-WIN] Re: Newbie Q

2003-07-19 Thread Gabriel_k
t; $viewcode = explode('/', $PATH_INFO); > > >$num = count($viewcode); > > >if($num % 2 == 0) { > > >$viewcode[] = ''; > > > $num++; > > >} > > >for($i = 1; $i < $num; $i += 2) { > > &g

Re: [PHP-WIN] Re: Newbie Q

2003-07-18 Thread Mike Jenck
ATH_INFO); > >$num = count($viewcode); > >if($num % 2 == 0) { > >$viewcode[] = ''; > >$num++; > >} > >for($i = 1; $i < $num; $i += 2) { > > > > $$viewcode[$i] =

Re: [PHP-WIN] Re: Newbie Q

2003-07-18 Thread Gabriel_k
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

Re: [PHP-WIN] Re: Newbie Q

2003-07-18 Thread Luis Moreira
; <[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

Re: [PHP-WIN] Re: Newbie Q

2003-07-17 Thread Gabriel_k
> > 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

[PHP-WIN] Re: Newbie Q

2003-07-16 Thread Dick Kurtz
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

Re: [PHP-WIN] Re: Newbie Q

2003-07-16 Thread H Marc Bower
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

Re: [PHP-WIN] Re: Newbie Q

2003-07-16 Thread Gabriel_k
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

Re: [PHP-WIN] Re: Newbie Q

2003-07-16 Thread H Marc Bower
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

[PHP-WIN] Re: Newbie Q

2003-07-16 Thread Gabriel_k
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? > > >

[PHP-WIN] Re: Newbie Q

2003-07-15 Thread Heyz
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

[PHP-WIN] Re: Newbie Q

2003-07-15 Thread Heyz
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