
Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
It would seem so: http://www.phpfreaks.com/forums/index.php/topic,276596.0.html
-
I'd say it depends on what you're going to use it for. If it's for displaying on e.g. your website, I think it's perfectly legitimate making it span over many pages. If you're applying for a job that isn't listed anywhere, I don't think size matters so much either. Of course still while omitting irrelevant shit like "When I was 10 years old I mowed my neighbor's lawn every Saturday".
-
Won't work if the user leaves the page before a minute has passed.
-
You can use at on Linux. It's essentially a one-time cronjob.
-
Remind me not to sign up on any web site you created.
-
I've noticed turning off JScript has some notable benefits.
Daniel0 replied to PugJr's topic in Miscellaneous
No, but you can on Linux/BSD. Simply don't start X when booting, so just remove it from /etc/init.d or wherever your boot scripts are. -
You have two options: 1) Reset the internal cursor: mysql_data_seek 2) Copy the results to an array. You possibly also have a third option: 3) Refactor your code to do it in one run. If at all possible, use #3.
-
This is a non-deterministic problem. How is the computer supposed to know if Denial is a mis-spelling Daniel? It sounds like your database is poorly designed if it allows for insertion and update anomalies and if it allows for multiple values to be stored in the same field.
-
Hashing functions do not have an inverse because they're not bijections. It should be quite obvious why for instance MD5 isn't invertible. Its output is always 32-bit, so if you give it 33-bit input (or n-bit input for n > 32) you've lost information. How would you figure out what the last bit(s) should be? Please not that you cannot "reverse" it by brute-force either. You can find input that has the same hash though. Kind of like n^2 = (-n)^2 but -n != n where n is a positive real number.
-
It depends on how you use it.
-
It means what it says: You cannot modify headers when output has been sent. That's just the way HTTP works. Headers are at the top (hence the name "header"). The solution: Don't output anything before you're certain you don't need to send any more headers.
-
As far as I know, C++ doesn't support regular expressions natively. You can just use any regex library, e.g. the ones in Boost/qt/.NET or you could use PCRE. You could possibly also use regex.h from C.
-
I've noticed turning off JScript has some notable benefits.
Daniel0 replied to PugJr's topic in Miscellaneous
Of course it'll be faster when you disable things. I'll also use less system resources if I boot into a terminal and don't start any graphical environment on my computer. -
It's your encoding that's messed up. You'll have to ensure that you use the same encoding throughout the entire process (in the database, when you connect to the database, strings that are hard coded into your files, on the HTML page, etc.).
-
[SOLVED] [b]How To Send Email From Local Wamp To Internet [/b]
Daniel0 replied to Gomesh's topic in PHP Coding Help
You need to either a) Install a mail server on your computer. Search for one. There are plenty of free ones available. b) If you have access to an SMTP server you can modify the SMTP settings in php.ini. -
You can increase the maximum allowed memory usage in php.ini. It might be smarter working with chunks of data at a time instead of loading everything immediately.
-
If you want advanced stuff, you have to move away from PHP book and buy books that deal with general programming stuff. Programming is not just "programming" though. There are many different things you might want to focus on. You could read about algorithms and make your stuff run fast. You could read about things like semantics and lambda calculus to get a better idea of what exactly a programming language is. Maybe things like computability would be interesting, i.e. what is it possible to compute, and can it be done within reasonable time (has a lot to do with algorithms as well). Maybe you would find concurrency and making things run in parallel interesting. Or you might be interested in how to make well designed applications, or how to manage programming projects. There are so many things to programming that it's difficult suggesting an "advanced" book. I might suggest Introduction to Algorithms, but if algorithms aren't really your thing, you might find The Pragmatic Programmer more interesting. Both books can be said to be related to programming, but they are very different books.
-
We would encourage everybody to introduce themselves here so we might get to know you and "old" members are very welcome to introduce themselves as well.
-
I've got a VPS. A dedicated server would be overkill for my needs.
-
That's quite a surprise to me. As I said, it is something I would expect from any web host. Then again, I've never purchased shared hosting.
-
I would expect all webhosts to have that.
-
That doesn't necessarily mean you cannot write a TDD primer.
-
What do you mean with "doing .htaccess on a folder"? .htaccess files just contain Apache configuration directives. Not only does it have nothing to do with PHP whatsoever, but it can all be looked up in the Apache documentation.
-
Here is yet another alternative: http://devzone.zend.com/article/4571-Fetching-multiple-random-rows-from-a-database