简体   繁体   中英

How to copy PHP files from windows to ubuntu?

How to copy PHP files from windows to ubuntu without causing problems ?(because of \\r and \\n) as when enter code here I have copied them directly , and trying to browse the files , nothing response on ubuntu !

The question is:

why when I am copying files from windows to ubuntu and trying to browse the php files , I don't get any result in the page despite it shows result when browsing them on windows ?!

Edit :

now I have more information after using

// Enable error reporting
ini_set('display_errors', 1);
ini_set('display_startup_error', 1);
error_reporting(E_ALL | E_STRICT);

I got this error ..

Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.' in /var/www/yajoop/facebook/src/base_facebook.php:19 ..

I don't think your problems are due to differences of EOL (End Of Line) characters between different operating systems.

Instead, check your PHP error log or enable "display_startup_errors" .

The PHP error log file is usually located at: /var/www/apache2/error.log

To see the errors directly in the web page, add the follow code to the top of your PHP file.

// Enable error reporting
ini_set('display_errors', 1);
ini_set('display_startup_error', 1);
error_reporting(E_ALL | E_STRICT);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM