Problem With RemoteUpload In DirectAdmin

m4hdi

Verified User
Joined
May 22, 2014
Messages
10
Hello , Good Time

I Have Problem With Remote Upload In DirectAdmin !

When I Use Php Script For Remote Upload I see Errors :

Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/****/domains/****/public_html/***.php on line 33 Warning: fclose() expects parameter 1 to be resource, boolean given in /home/*****/domains/*****/public_html/***.php on line 34
Warning: fopen(/home/****/domains/****/public_html/**.zip): failed to open stream: Permission denied in /home/****/domains/*****/public_html/*.php on line 27
 
change the code to better code or ask your hosting provider for help
 
please give me a good code !

i sure this problem not from code ! - because this code work in cpanel server's !!!!!

please help me :X
 
We might be able to help, if we actually saw the /home/*****/domains/*****/public_html/***.php script. Your description is so vague that all anyone can do is guess. Just because something worked on a cPanel server doesn't mean it will work unchanged on a DA/Plesk/Webmin/Newer cPanel/... server. There is a lot more to a hosting server than just the control panel, even within a specific control panel, you may have the choice of 5 different php versions that all behave differently. You failed to give us the previous version of php, the current php version your current php configs in use. Most likely you have a few issues, bad code (the parameter issue) and configuration issues (permission denied). I suggest you do the following google searches to help you:
"Warning: fwrite() expects parameter 1 to be resource"
"php upload permission denied"
Both of those will render tons of pages that describe your issues and what to look for.
 
I strongly suggest that if php code which works elsewhere doesn't work on your account you should open a discussion with your hosting provider. It could be PHP version specific, and only your provider wold be in a position to know all the details about how he provisions php.

I've moved this thread; it's not a DirectAdmin issue, but it could be a User issue. However if it becomes a discussion on how to write/rewrite php, then it will be moveed again, as for our forums that's likely best categorized as Off-topic.

Jeff
 
Back
Top