chanchelkumar Posted November 11, 2009 Share Posted November 11, 2009 Hi all, AM trying to upload a site to a widows server. But all my files are working there.. But some file upload is not working.. I tried to contact the hosting support they said that create a php.ini file in the root folder.. How can i create one.. Does it affect the other settings.. My php version php5 BUt this file is working fine in my local windows machine with php 5 and another linux server.. please help me.. it shows me the warning.. "Warning: chmod() [function.chmod]: Permission denied in D:\Hosting\4770399\html\admin\doupload.php on line 49" Please help me... Quote Link to comment https://forums.phpfreaks.com/topic/181080-want-to-create-phpini-file/ Share on other sites More sharing options...
trq Posted November 11, 2009 Share Posted November 11, 2009 How can i create one.. Theres nothing special about it, its just like any other file. Does it affect the other settings Only write the configuration options you wish to override. Quote Link to comment https://forums.phpfreaks.com/topic/181080-want-to-create-phpini-file/#findComment-955456 Share on other sites More sharing options...
chanchelkumar Posted November 11, 2009 Author Share Posted November 11, 2009 Thanks thorpe .. But my hosting server have already one .ini file.. Is there any problem if i create a php.ini file in my folder.. and can u tell me why this error is showing "Warning: chmod() [function.chmod]: Permission denied in D:\Hosting\4770399\html\admin\doupload.php on line 49" thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/181080-want-to-create-phpini-file/#findComment-955470 Share on other sites More sharing options...
trq Posted November 11, 2009 Share Posted November 11, 2009 But my hosting server have already one .ini file.. Is there any problem if i create a php.ini file in my folder.. No, no problem. You rlocal ini will only override the values you set within it. can u tell me why this error is showing "Warning: chmod() [function.chmod]: Permission denied in D:\Hosting\4770399\html\admin\doupload.php on line 49" Likely nothing to do with any ini setting. You don't have permission to chmod the file you are trying to chmod. Post the few lines surrounding and including line 49 of doupload.php Quote Link to comment https://forums.phpfreaks.com/topic/181080-want-to-create-phpini-file/#findComment-955486 Share on other sites More sharing options...
chanchelkumar Posted November 11, 2009 Author Share Posted November 11, 2009 Thanks thorpe.. this is the code there in line 49 $up_fldr="uploadedimages"; if(is_dir($up_fldr)){ chmod($up_fldr,777); } else{ mkdir($up_fldr,777); } But i can't change the folder permission through FTP.. it denies me.. Quote Link to comment https://forums.phpfreaks.com/topic/181080-want-to-create-phpini-file/#findComment-955492 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.