Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/181080-want-to-create-phpini-file/
Share on other sites

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

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

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.