Welcome Guest, Not a member yet? Register   Sign In
wirte permission
#1

[eluser]Shahgeb[/eluser]
<?php
function createdirectory($date_dir, $city_dir){

locally
$root = 'E_Paper';
if(!is_dir($root.'/'.$date_dir))
mkdir("$root.'/'.$date_dir", 0777); <==== works fine
if(!is_dir($root.'/'.$date_dir.'/'.$city_dir))
mkdir($root.'/'.$date_dir.'/'.$city_dir, 0777); <==== works fine
?&gt;

live at server
&lt;?php
mkdir("/var/www/html/dotproject/$root.'/'.$date_dir", 0777", 0777); <===== fails
mkdir("/var/www/html/dotproject/$root.'/'.$date_dir.'/'.$city_dir", 0777); <===== fails
?&gt;
}
Is there any issue at server end?
any help appreciated
#2

[eluser]brianw1975[/eluser]
any error messages?

is the server running php in safe mode?

does the server daemon (apache/httpd/etc) have permission on /var/www/html/dotproject to write?
#3

[eluser]Shahgeb[/eluser]
mkdir(”/var/www/html/dotproject/$root.’/’.$date_dir, 0777)

actually first directory create successfully,
i am facing error on second internal directory

like it will be like this

E_Paper/date works at live but
E_Paper/date/ should be city inside the date folder which creating dynamically
#4

[eluser]Shahgeb[/eluser]
thanks
yes safe mode on
#5

[eluser]TheFuzzy0ne[/eluser]
I've already answered the same question [url="http://ellislab.com/forums/viewthread/105878/"]here[/url]. Please try to avoid double-posting.




Theme © iAndrew 2016 - Forum software by © MyBB