Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8915461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:58:51+00:00 2026-06-15T04:58:51+00:00

This a problem I already had twice while deploying an application online and that

  • 0

This a problem I already had twice while deploying an application online and that I’ve solved twice by chance still without understanding what caused the issue. This is the third time and it’s still bugging me.

  1. I work locally with PHP files and Notepad++ (files are encoded in UTF-8 without BOM encoded btw). Everything works great here (config: easyPHP) without PHP errors.

  2. After uploading the files to a server, some files give me basic PHP errors like *unexpected T_FUNCTION in line 1* although there is no error in my code.

  3. I luckily happened to open the file with windows Notepad which gave me a hint: there are no spaces or line breaks between characters (this is why PHP gives me errors). To sum up:

File opened with Notepad++:

<?php
// Comment
function() { etc... (rest of the file)...

File opened with windows notepad:

<?php//comment function(){ ... which causes error online (but not on EasyPHP)

I’ve looked everywhere and done everything i could (adding line breaks in notepad++, converting to ANSI/UTF8, etc, but the file seems like corrupted or something). It is not a script I’ve copy pasted or anything, I create all my files by adding a new *.txt document in windows and renaming it *.php.

My questions:

  • Why would Notepad++ and windows notepad show me different line breaks ? Is it encoding issues ? Windows/UNIX interpreting files differently ?
  • Why would this work on my computer with easy PHP and not online ?

Thanks you in advance for any answer, if not, hint.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:58:52+00:00Added an answer on June 15, 2026 at 4:58 am

    If you are transfering your files via FTP to production server then the problem could be some ftp clients do automatic newline conversion.. check out transfering files with different ftp client or tweak it’s settings to disable automatic ascii text new lines conversion .

    UPDATE:
    Yes it’s probably your files are being transferred in ascii mode rather than binary, so the solution is to set Filezilla to transferred your files in binary mode, see here the actual settings https://stackoverflow.com/a/555003/352672

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have had this problem for a while, still trying to work on a
I already had this problem multiple times, that I couldn't find a good solution
Need some help with this problem in implementing with XSLT, I had already implemented
I read through many of solutions of this problem already, but I still can't
I've been into this problem for a while already, and have asked some questions
I've seen that a few instances of this problem have been raised already. However,
Similar to this question: link However I have already mastered that. My problem is
Many people had this problem already, but there was no fitting solution in other
I am trying to use (and this may be my problem already) e.Graphics.CopyFromScreen() in
Apologize if this particular problem has been answered already (a search didn't turn anything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.