hi people
this is very urgent
ive written a php script on ubuntu and it works fine on it
but when i try to put the files on windows apache server i get parse error
when i open the file i find it pretty missed up with alot of lines in the same line
please anyone help me!!
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
www.amrosama.com | the unholy methods of javascriptCode:eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
Sounds like you're running afoul of the difference between how the two platforms save newline characters: x0A vs x0Ax0D. Try opening it in wordpad, jedit, or crimsoneditor.
i did that shortly after the first post, i used a small application to convert it. now the file looks normal with lines and correct format..but i have the same errorarse error at the final linePosted via CodeCall Mobile
This question is impossible to answer. Either post the code, or the kind of parse error you are getting, or if you want the correct answer, post both.
unexpected T_STRING? unexpected T_VARIABLE? unexpected T_CONST? unexpected END? unexpected T_IF? The list of parse errors goes on...
You could use this:
thenCode:sudo apt-get install tofrodos
You can also do "dos2unix". At work on our Redhat machines I have to convert all of my PHP code because of this.Code:unix2dos <phpfile>.php
tried that still doesnt work
but i used todos.exe from windows ill try this one from ubuntu and see what happens
thnx
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
www.amrosama.com | the unholy methods of javascriptCode:eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
Odd error, if it works in one it should work in the other. Are they different PHP versions?
nonetheless, in regards to a syntax error, it should work on both the same.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks