Find + replace helps to simplify the variable names so you can see what you're doing;
Variables have to be declared first, and can't change type part-way through. The only one which seemed to change type was related to the regexp match on the current file contents, which I simply removed;
You can't write to a string as if it's an array, so I had to replace one of the variables with a List<char>;
You can't poke characters into a List<T> outside of the current range, so I had to add some code to populate the list with spaces when that happened;
Some of the code tries to read characters from out-of-bounds indexes, so I had to add some code to return a space when than happened;
conststring input = @"...";
// This should be the long string from the "eval(T7FC56270E7A70FA81A5935B72EACBE29(" line of your original post.
staticstring Decode(string input)
input = base64_decode(input);
int a = 0;
int b = 0;
int c = 0;
int d = (ord(input) << 8) + ord(input);
int e = 3;
int f = 0;
int g = 16;
int length = input.Length;
var result = new List<char>(length << 2);
$TFF44570ACA8241914870AFBC310CDB85 = __FILE__;
$TFF44570ACA8241914870AFBC310CDB85 = file_get_contents($TFF44570ACA8241914870AFBC310CDB85);
$TA5F3C6A11B03839D46AF9FB43C97C188 = 0;
preg_match(base64_decode("LyhwcmludHxzcHJpbnR8ZWNobykv"), $TFF44570ACA8241914870AFBC310CDB85, $TA5F3C6A11B03839D46AF9FB43C97C188);
*/for (; e < length; )
// if (count($TA5F3C6A11B03839D46AF9FB43C97C188)) exit;if (g == 0)
d = (ord(input[e++]) << 8);
d += ord(input[e++]);
g = 16;
if ((d & 0x8000) != 0)
a = (ord(input[e++]) << 4);
a += (ord(input[e]) >> 4);
if (a != 0)
b = (ord(input[e++]) & 0x0F) + 3;
for (c = 0; c < b; c++)
Set(result, f+c, Get(result, f-a+c));
f += b;
b = (ord(input[e++]) << 8);
b += ord(input[e++]) + 16;
for (c = 0; c < b; Set(result, f+c++, input[e]));
f += b;
Set(result, f++, input[e++]);
d <<= 1;
if (e == length)
// Needed because the compiler doesn't think the loop ever exits:returnnull;
staticint ord(char c)
static T Get<T>(IList<T> list, int index)
if (index < 0 || index >= list.Count) returndefault(T);
staticvoid Set<T>(IList<T> list, int index, T value)
while (list.Count <= index) list.Add(default(T));
list[index] = value;
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
My company is planning to make a new kind of messaging application and I'm trying to decide what technology to use on the back-end. We're thinking of the client-server model. Where client can be a web-app, native mobile or even a desktop application. As a developer, to me this means that the back-end server better be darn good and stable.
The current proposal is to use PHP. Is this really a good idea? Sure, wordpress proves that you can build really complicated things with PHP, but I'm not working with veterans. The programmers would have at best 1 or 2 years of experience. My concern is on extending the backend when requirements change as well as debugging errors.
For a new team, what technology would be easier to use? Can Java be used for this purpose? Will it be easy to debug? What about .NET ?
Stability of your base technologies isn't really a factor. If you're building on top of another framework or library, then you can consider stability and performance. For example a good PHP framework will probably do just as well as out of the box ASP.Net.
I would just pick some technologies that me and my team were familiar with.
You could pick your target based on things like licensing costs, but unless you've got someone with some server administration know-how you'll probably be better off paying a little bit extra for hosting where your stack is set up for you; in which case your licensing is probably part of your monthly fee.
yes i am trying .i followed w3schools.but I observed most people save image name in database not the image can you guide me if we will save a image name in database than how will we retrieve those images?
0) File system - Store image location in database, image in server. Later, load image from server using the path stored in database.
1) Database - Store image as blob in database. Later, load blob as image in page.
Check the advantages & disadvantages of these two ways here. Clickety[^]
I didn't understood it.
Are you expecting someone to come forward and teach you over this forum (or over the proper forum) about PHP, MySQL and what in-between?
It's unlikely to happen - you are in a site for those who code, not for those who not...Until know you are not!
If you have a task, first learn, than make an attempt, than come to us here - with! your attempt...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
I have a normal HTML/CSS w/some JScript thrown-in webpage, with > 50 individual blog pages that are indexed from the main index.html file.
On my wishlist are two things:
-would like to add a Search Box. Not one that depends on an external search engine. I want to roll my own, so to speak. I want to have all my pages accessible - so that I can search through the pages and then display the results to a user after a search. I'm thinking that the pages need to be put into a database for this(?)
-Would like to add a 'prev' and a 'next' function to the bottom of each sub-webpage. The user should not always have to navigate back to the index to see another page. Would like one function that takes an argument - prev or next. Or two separate functions are ok. What I want to avoid is having to hardcode "num of next page", and "num of prev page" on every subpage. Can be very error-prone.
What language(s), DBs would be best for this? I worked as a professional programmer in the past, so complexity of code is not a problem.
A language that works good with a DB (if needed), and one where the functions work in Windows and in Linux is important. Also, a great debugger is paramount, as I anticipate using it a lot when first starting out.
God Bless... Feedscrn
| The screen is hungry, Feed It! |
Last Visit: 31-Dec-99 19:00 Last Update: 9-Dec-23 4:42