Hi Peeps

I've just found this really cool script that I've been looking for for ages, and all is well while reading the install instructions.

This is easy I'm saying as i read it through...

It tells me to edit a admin/land-english.php file and copy some lines to it, no probs, done it 1000 times before, easy!

So off I go to start the install, and I download my current admin/lang-english.php file from my server to my local hard drive.

I add the extra lines required, and click save.

BANG

Upon saving the script to my hard drive, the entire script gets turned to garbage.

What the foook!

Tried it on all 3 computers here, same result, garbage... its only a few extra lines for god's sake! Whats happening?

I even saved the current admin/lang-english.php file to floppy and took it to a computer where it does not associate php files with notpad. Same result.

Did a full virus scan, (after updating it), same result...

CAN ANY ONE TELL ME WHAT THE FOOOK IS GOING ON HERE?

I'm lost, never before has this happened, every other .php file I edit and save just edits and saves as normal, EXCEPT this one! the one I really need to edit!

Talk about a BAD day!

Any ideas VERY welcome!

Cheers
Alec.

    how about some details? I let you decide what you feel is important before asking for more... the effort will make you more effective at asking questions here in the future 😉

      I know what you mean, but there is no other way to tell it than I alredy have! I've edited notepad php scripts 1000 times, I do it everyday, this is one of those things that you need to see to beleive!... I just showed it to my bird, and even she was taken aback!

      I've zipped the file in question, and have placed it here ... www.djalecc.com/lang-english.zip

      You dont need to edit anything, just open the file in notepad then save it again. Watch as it strips the spaces from the file and makes most of it garbage.

      I have just found a work around, I copied the file using 'copy and paste' then pasted the code in to my forum, I previewd the forum post, then copied what was in there, I then opened a blank notepad and pasted the file in there, saved it as test.php, this worked, I then added the extra lines as required by the new script, bingo, it worked!

      But I have not tested it yet, just sorted this out!... Need bed here, been a long day.

      The fact remains that this did happen and I'm not loosing it! lol !!!

      Please try it, I'm curious to see if it happens to anyone else.

        I downloaded it
        and extracted

        looks like normal PHP NUke php to me.
        now I am on Linux and can not open it with notepad and then save it

        but I have a similiar editor for linux NEdit
        but I doubt I will have any problems with your lang file

        Have to be some rare exception, using windows

        /halojoy - gets flatter and flatter day by day
        flat file data base storage - that's the THING :o

          djalecc wrote:

          I know what you mean, but there is no other way to tell it than I alredy have! I've edited notepad php scripts 1000 times, I do it everyday, this is one of those things that you need to see to beleive!... I just showed it to my bird, and even she was taken aback!

          I've zipped the file in question, and have placed it here ... www.djalecc.com/lang-english.zip

          You dont need to edit anything, just open the file in notepad then save it again. Watch as it strips the spaces from the file and makes most of it garbage.

          I have just found a work around, I copied the file using 'copy and paste' then pasted the code in to my forum, I previewd the forum post, then copied what was in there, I then opened a blank notepad and pasted the file in there, saved it as test.php, this worked, I then added the extra lines as required by the new script, bingo, it worked!

          But I have not tested it yet, just sorted this out!... Need bed here, been a long day.

          The fact remains that this did happen and I'm not loosing it! lol !!!

          Please try it, I'm curious to see if it happens to anyone else.

          Simple fix....

          http://download.textpad.com/download/v47/txpeng473.exe

          use a real text editor 😉 notepad sucks big ones! :evilgrin:

          Opening your file up in textpad (which is quite a nice program) it looks normal... opening it in even wordpad gives me a single line file.... + text pad can save/read from unix format to windows format to dos format and vice versa easily.... 🙂

            Try opening the PHP file with WORDPAD.EXE, instead of notepad, etc. This is caused by Linux's new lines (\n) in which notepad does not output correctly. Hope this kind of helps, -Rob

              robert_w_ark wrote:

              Try opening the PHP file with WORDPAD.EXE, instead of notepad, etc. This is caused by Linux's new lines (\n) in which notepad does not output correctly. Hope this kind of helps, -Rob

              wordpad didnt open it right either, I tried

                tekky wrote:

                use a real text editor 😉 notepad sucks big ones! :evilgrin:

                Don't knock Notepad...it was the first program I used when I first learned HTML almost 10 years ago. I still use it for quick-n-dirty edits of PHP scripts (although I do the majority of my coding in Dreamweaver - support for line numbers and color-coding syntax).

                But, I will admit, Notepad sucks when it comes to deciphering Linux or Mac linebreaks...I've been looking for something that can read both "\n" and "\r\n" linebreaks for a while; I'll take a look at the proggy you linked to.

                But don't knock Notepad 😉

                  I do too, infact I have an instance of it open right now, but I am capable of admitting the truth :evilgrin:

                  In any case, textpad has been often, it does hiliting too (for many file types) and it only costs $20 I think if you get annoyed by the "evaluation" message every few saves once its eval period is up.

                  LoganK wrote:

                  Don't knock Notepad...it was the first program I used when I first learned HTML almost 10 years ago. I still use it for quick-n-dirty edits of PHP scripts (although I do the majority of my coding in Dreamweaver - support for line numbers and color-coding syntax).

                  But, I will admit, Notepad sucks when it comes to deciphering Linux or Mac linebreaks...I've been looking for something that can read both "\n" and "\r\n" linebreaks for a while; I'll take a look at the proggy you linked to.

                  But don't knock Notepad 😉

                    In any case, textpad has been often,

                    ?? What does that mean?

                    I d/l it and took a look at it; it sems pretty good, although I'm confused about that "Convert to DOS" option. The only think that sucks is that it's not freeware...I've gotta find a free editor, or get some of my :ahem: friends to :ahem: "fix" the program for me :evilgrin:

                    Of course, the adage "the simplest is the best" can hold true here - the good old "edit" program that comes with DOS can decipher and display correctly every type of linebreak. Perhaps I should revert to DOS...

                    This is an interesting debate; I think I'll start a thread in the Echo Lounge about this 😉

                      woops, it was meant to read "in any case, textpad has been tested" basically, not sure what happened ot my train of thought there

                      and textpad will continue to be fully functional after its trial period also

                        Thank for all the help... I have downloaded textpad, and it seems to do the trick... With line numbers! lol, much easier now (no more counting!)

                        Thanks Again.

                          You're welcome. Post any other issues here; we love to help (legitimate) requests!

                          And tekky - I lose my train of thought sometimes too, but not on that magnitude. I never knew "often" was an adjective 😃

                            LoganK wrote:

                            You're welcome. Post any other issues here; we love to help (legitimate) requests!

                            And tekky - I lose my train of thought sometimes too, but not on that magnitude. I never knew "often" was an adjective 😃

                            Bleh, live my life for a day and you'd understand :eek:

                              If you say so 😃

                              (although I would like to walk a mile in your shoes - I've always wanted to be a forum mod! [or if you're not, at least someone with +2,000 posts!])

                                LoganK wrote:

                                If you say so 😃

                                (although I would like to walk a mile in your shoes - I've always wanted to be a forum mod! [or if you're not, at least someone with +2,000 posts!])

                                Hehe that sir, I am certainly not... but feel free to vote for me if they take votes :evilgrin:

                                  I will if that's how they decide...I made a thread asking how they decide earlier today but JPnyc deleted it, saying another thread existed. Let me know if you have a "moderator exam/review/poll/vote" and I'll vote/review/poll/etc.

                                    Write a Reply...