Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. If you don't need a GUI, virtually any Linux distro should be able to run with those specs.
  2. It's the same thing. Really you could inject any HTML to an XSS vulnerable page, but injecting Javascript is the by far most common attack vector. Say for instance a login page was vulnerable. You could use XSS to harvest credentials by adding an onsubmit event to the form that submits the form data to an external script that logs it. You could also steal people's cookies unless they're set to HTTP only.
  3. Essentially XSS involves injecting arbitrary Javascript that can be executed on the client into a webpage. This allows you to make requests pretending to be the client.
  4. The right-most will override the others. Edit: That is for array_merge(). When using + it'll be like MrAdam said.
  5. I think there might be something you've fundamentally misunderstood. Advertisements are typically not used for decoration. In fact, many people find them really annoying, hence the reason why ad blockers exist. Having annoying elements on a web page is counter-productive when trying to attract new members to an otherwise entirely empty website.
  6. If I were to make a guess, I would say it's because it's never the case that both $req == '1' and $value == '' evaluate to true at the same time. Without proving more info, it's difficult making a better guess than that.
  7. I know this doesn't solve your problem, but why do you want to display ads if you have no users? I'll guarantee you won't get any profit.
  8. It's funny, I keep hearing things like that, but never in my life have I experienced an ISP here with dynamic IP address allocation if we disregard the dial up era.
  9. In this case, you can change eregi_replace('<br[[:space:]]*/?[[:space:]]*>', "\n", $messageText); to preg_replace('#<br\s*/?\s*>#', "\n", $messageText);
  10. You might also want to read Migrating from PHP 5.2.x to PHP 5.3.x in the manual.
  11. 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.
  12. 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.
  13. I've got a VPS. A dedicated server would be overkill for my needs.
  14. 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.
  15. I would expect all webhosts to have that.
  16. That doesn't necessarily mean you cannot write a TDD primer.
  17. 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.
  18. Here is yet another alternative: http://devzone.zend.com/article/4571-Fetching-multiple-random-rows-from-a-database
  19. A sub query returns a result, like all queries do, and you can use that result as a variable in your query. That's it, essentially.
  20. http://web.archive.org/web/20080209154336/http://www.phpit.net/article/simple-mvc-php5/
  21. A login script is essentially so simple that it's not even worth dedicating a tutorial for that. Stuff involved is essentially form processing, database access and sessions/cookies. We have a tutorial for sessions and cookies and we have one for database access and another one focusing on joins and unions. Then you have form processing, but that's fairly straightforward. You simply read from the $_GET or $_POST superglobal. You might also be interested in this blog post that talks about breaking a script/application down into logical elements the same way I just did.
  22. You mean like this? http://www.phpfreaks.com/tutorial/debugging-a-beginners-guide
  23. Please do not post links to download copyrighted material that you do not have the right to redistribute yourself.
  24. I'll sticky this for further reference and in case other people might know books that people might find useful.
  25. I can't remember when I've last used FTP. I always use SSH, SCP and SVN.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.