Yeah that worked fine :)
Thank you all!
/Gabbah
"Mike Jenck" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> try
> $_SERVER["PHP_SELF"]
>
>
>
> Mike
>
> "Gabriel_k" <[EMAIL PROTECTED]> wrote in message
> news
{
> $viewcode = explode('/', $PATH_INFO);
>$num = count($viewcode);
>if($num % 2 == 0) {
>$viewcode[] = '';
>$num++;
>}
>for($i = 1; $i < $num; $i += 2) {
>
> $$viewcode[$i] = $vi
>
> 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
; 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 there
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]
> > H
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