Page 1 of 1

getcwd() returns nothing !?

Posted: Sun May 18, 2003 12:07 pm
by horgh
example:

Code: Select all

<?
echo "This is a test. below you should see the current working directory:<br>";
echo getcwd();
?>
hi folks,

i just updated my mod_php to 4.3.1 and discovered one of my scripts totally messed up because the function getcwd() seems to return nothing anymore. WTF ??!?!!11 8O
Any suggestions ?

Posted: Tue May 20, 2003 3:11 am
by horgh
nobody's got an idea ?! :cry:

Re: getcwd() returns nothing !?

Posted: Tue May 20, 2003 3:44 am
by Kim
what is your "getcwd()"?

use $_POST[""]; to get the variable,do you know?

Posted: Tue May 20, 2003 6:58 am
by mikusan
getcwd() or get working directory does exist in php, i almost never use it because i dun want to show people my directories as i know where my files are... i am not sure what your problem is but by default when i write code I sometimes write it redundantly to keep up good habits for example that function i would make it

Code: Select all

<?
echo(getcwd());
?>
I am not sure if that is the problem but worth a try.