A
A
AndWEB2019-01-09 17:47:20
PHP
AndWEB, 2019-01-09 17:47:20

PHP script not uploading files to server?

PHP 7.1 complies with the requirements of the script. The script works fine on the local server. When uploading to the hosting and opening the page HTTP ERROR 500. And in the logs that the files cannot be uploaded failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden.

Log

FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: PHP message: PHP Warning: copy(https://phar.madelineproto.xyz/madeline.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: in /home/site.ru/sendToTelegram/index.php on line 4
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: PHP message: PHP Warning: include(madeline.php): failed to open stream: No such file or directory in /home/site.ru/sendToTelegram/index.php on line 6
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: PHP message: PHP Warning: include(): Failed opening 'madeline.php' for inclusion (include_path='.:/opt/php71f/share/pear:/opt/php71f/share/php:/usr/share/pear:/usr/share/php') in /home/srv109579/bahtiiar.com/sendToTelegram/index.php on line 6
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: PHP message: PHP Fatal error: Uncaught Error: Class 'danog\\MadelineProto\\API' not found in /home/srv109579/bahtiiar.com/sendToTelegram/index.php:8
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: Stack trace:
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: #0 {main}
FastCGI: server "/usr/lib/cgi-bin/php71-fcgi" stderr: thrown in /home/srv109579/bahtiiar.com/sendToTelegram/index.php on line 8

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Softer, 2019-01-10
@Softer

View paths in scripts. Especially relative ones. For

PHP Warning: include(): Failed opening 'madeline.php' for inclusion

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question