getcwd() returns nothing !?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
horgh
Forum Newbie
Posts: 23
Joined: Mon Oct 21, 2002 9:50 am
Location: GER
Contact:

getcwd() returns nothing !?

Post 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 ?
User avatar
horgh
Forum Newbie
Posts: 23
Joined: Mon Oct 21, 2002 9:50 am
Location: GER
Contact:

Post by horgh »

nobody's got an idea ?! :cry:
User avatar
Kim
Forum Newbie
Posts: 6
Joined: Sun May 18, 2003 9:36 pm

Re: getcwd() returns nothing !?

Post by Kim »

what is your "getcwd()"?

use $_POST[""]; to get the variable,do you know?
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post 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.
Post Reply