Jump to content

Want to create PHP.ini file


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

Archived

This topic is now archived and is closed to further replies.

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