Getting Error: "Wrong parameter count" when using

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
eyal
Forum Newbie
Posts: 19
Joined: Mon Jun 19, 2006 11:03 am

Getting Error: "Wrong parameter count" when using

Post by eyal »

Hello,
I'm getting the following error:

Code: Select all

Warning: Wrong parameter count for mkdir() in c:\apache\htdocs\direct_site\try3\mail_get.php on line 2
when I'm writing the following code:
<?
mkdir("aaa");
?>

How can I solve that?

Thank you.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

what does

Code: Select all

<?php phpinfo(INFO_GENERAL); ?>
print?
eyal
Forum Newbie
Posts: 19
Joined: Mon Jun 19, 2006 11:03 am

Post by eyal »

Already solved. I didn't wrote "777" next to the folder's name. Thank you anyway.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

strange
http://de2.php.net/mkdir wrote:bool mkdir ( string pathname [, int mode [, bool recursive [, resource context]]] )
the second parameter is marked as optional
Post Reply