Encerrado

Mkdir with php on CentOS not working

I have a whmcs module and part of the module creates a directory for the user. But the directory is not being created.

This is the code -

$rootdir = dirname(dirname(dirname(dirname(__FILE__))));

$dir = $rootdir.'/attachments/'.$userid;

if(!is_dir($dir)){

mkdir("$rootdir.'/attachments/'.$userid", 0777, true);

}

______________________________

Server = CentOS 6.5 server running WHMCS

Habilidades: Linux, PHP, WHMCS

Ver mais: centos 6, whmcs centos, linux whmcs, php mail working centos, server centos, whmcs server module, attachments module, php attached file mail, working time php

Acerca do Empregador:
( 10 comentários ) denia, Spain

ID do Projeto: #6814450

15 freelancers estão ofertando em média $60 para este trabalho

scriptphp87

Hello, I'm a professional programmer for web programming with php language to build the system website, Besides, I'm also expert in MySQL , HTML,HTML5,CSS, JS I'm always top in Vietnam freelancer https://www.freela Mais

$105 USD em 1 dia
(134 Comentários)
7.3
usuf001

A proposal has not yet been provided

$105 USD em 1 dia
(244 Comentários)
6.2
soumyadeb

I am a 12 years experienced php developer. Can you please share your ftp and I can work into it. I can't speculate the exact problem from here. Please let me know if you can share it and know me where from you are call Mais

$166 USD in 3 dias
(43 Comentários)
6.2
herpay

Hello, I'm an experienced linux/php developer and I'm also familiar with whmcs and so I can fix it within max a day after you accept my bid. Regards, Tamas

$45 USD em 1 dia
(140 Comentários)
5.6
odessky

Hi I know this error and can fix it SSH root access is requied **************************************************

$55 USD in 3 dias
(49 Comentários)
5.3
kimit1234

A proposal has not yet been provided

$50 USD em 1 dia
(43 Comentários)
4.9
tanujchugh

Hi, We are growing IT Company in India Having expertise in setup and management of different Linux web hosting servers like CentOS, RedHat, Ubuntu, Debian etc. We have expert level knowledge in web hosting panel Mais

$98 USD em 1 dia
(12 Comentários)
4.9
rxhector2k5

10+ years custom php data-minig/scraping //this sucks - i prefer to always set $rootdir vars manually //i.e. $rootdir = "/var/www/some/root/dir"; $rootdir = dirname(dirname(dirname(dirname(__FILE__)))); //old s Mais

$35 USD in 0 dias
(57 Comentários)
4.5
derek8691

Hi, It sounds like you either have a permissions issue or mkdir may be getting disabled somehow. Send me the login info for your server and I'll fix it right away. Please let me know if you have any questions. Th Mais

$35 USD in 3 dias
(15 Comentários)
4.3
mbs1092

Hi, I am currently looking for work and I would like to do this project for you, and help you figure out why the php code is not creating the folder as it should. I think I might know what the problem is. I can de Mais

$40 USD in 2 dias
(29 Comentários)
4.2
mahander2012

Dear Hiring Manager, I have 4 years of experience in web development and web designing using php and java technology and expertise in WHMCS,Linux Server Administration, eCommerce using magento, wordpress and prestas Mais

$55 USD in 3 dias
(16 Comentários)
4.0
razakelvw

Hi, This isn't a complicated project - it sounds like a simple permissions problem. I can have it fixed by tonight for you. I look forward to working with you. Regards, Andrew

$35 USD em 1 dia
(17 Comentários)
4.0
gomcodoctor

I am well expert in php and owner of dedicated server with whmcs, I can solve your problem within 1 hour

$30 USD em 1 dia
(4 Comentários)
2.8
gourisharma

I am PHP professional with 7 years of experience. My areas of expertise includes web design and development; PHP core programming, Joomla custom components, modules, PSD to Joomla/Drupal/Wordpress theme conversion, Dru Mais

$61 USD in 3 dias
(1 Comentário)
2.2
uneekin

hi sir, i am expert in linux, linode and whmcs,pls reply me then we can discuss about ur issues \regards

$39 USD in 3 dias
(3 Comentários)
2.2
openox

Hi there, I am an experienced Unix admin. Ready to help you with the issue on your server. Thanks.

$45 USD em 1 dia
(3 Comentários)
2.0