[olug] PHP / getcwd() problem

Brian Roberson roberson at olug.org
Wed Nov 26 04:40:57 UTC 2003


Is the output of this snippit blank:

<? print getcwd(); ?>





----- Original Message ----- 
From: "Eric Pierce" <eric_olug at yahoo.com>
To: <olug at olug.org>
Sent: Tuesday, November 25, 2003 10:18 PM
Subject: [olug] PHP / getcwd() problem


> Hi ho,
>
> I'm writing a PHP script so I can upload files to my webspace.
>
> I'm trying to grab the full local path of the current directory.
>
> $local_path = getcwd();
> This (above) correctly gives me the full path on my local machine
(Linux/PHP
> 4.2.2).  However, it produces nothing when I upload it to my web server
(Net
> BSD/PHP 4.3.3).
>
> Is there something or someway to get around this?  Or is my web server's
> php.ini set somehow to prevent me from doing this? (I don't control it the
web
> server.)
>
> Thanks,
> Eric Pierce
>
>
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>



More information about the OLUG mailing list