smith.james0 Posted February 27, 2006 Share Posted February 27, 2006 I need to create a dir www/images/visitor but my script is in www/data, how do i get it to create a dir there. I have tried [code]mkdir ("../images/visitors/$name", 0755);[/code]but i getPHP Parse error: parse error, unexpected '.', expecting ')'Thanks James Quote Link to comment https://forums.phpfreaks.com/topic/3702-creating-a-dir-problems/ Share on other sites More sharing options...
lpxxfaintxx Posted February 27, 2006 Share Posted February 27, 2006 Try this[code]mkdir ("/images/visitors/$name", 0755);[/code] Quote Link to comment https://forums.phpfreaks.com/topic/3702-creating-a-dir-problems/#findComment-12830 Share on other sites More sharing options...
smith.james0 Posted February 27, 2006 Author Share Posted February 27, 2006 It doesn't like the /PHP Warning: mkdir(/images/visitors/dave): No such file or directory Quote Link to comment https://forums.phpfreaks.com/topic/3702-creating-a-dir-problems/#findComment-12842 Share on other sites More sharing options...
smith.james0 Posted February 27, 2006 Author Share Posted February 27, 2006 By trial and error i found it[code]mkdir ("/../images/visitors/$name", 0755);[/code] Quote Link to comment https://forums.phpfreaks.com/topic/3702-creating-a-dir-problems/#findComment-12859 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.