Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. I'm not sure what you are trying to do. Why wouldn't the code you already have not work? Note: Use the -tag for your code snippets another time Example: [code]code here
  2. You could use mod_rewrite or let PHP do the job. To let PHP do it, see this: http://www.phpfreaks.com/tutorials/149/0.php - if you wish to get rid of the index.php part in the URL, then you'd have to place something like <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] </IfModule> in a .htaccess file and then generate it from $_GET['url'] instead of $_SERVER['PATH_INFO'].
  3. Another simple, yet useful, function would be a combination of the fetch and query function. I don't know how to explain it, so I'll give you the code: <?php // inside the class: function fetch_result($query, $assoc=false) { $this->sqlQuery($query); return $this->fetch($assoc); } ?> In addition to sql::sqlQuery() setting the last result in a variable, make it return it as well. (Then let sql::fetch() take it as well, and if not supplied then take the last result) Edit: Oh, and you should make fetching to an associative array default instead, as that is probably what you'd be using most times.
  4. Something that would be nice for yourself to do is to make functions called update and insert that will take the name of the table and an array of the data. So you could do something like this: $db->update("articles", array("title"=>"New title", "last_view"=>time()), "WHERE id='5'"): // Syntax: update(str $table, array $data[, str $extra]);
  5. ... and then run nothing else on it, else it wouldn't be a dedicated to something. So if he hasn't got a spare computer he would have to purchase a new one.
  6. You should probably pass the errors to an error handler instead of directly outputting it.
  7. How can this be solved? What if people have more suggestions. For example: validate your CSS.
  8. I think a 403 error would do so as well, so if that is an issue, then an index file would be the only solution.
  9. Well, there is the disadvantage that people will know the locations of your folders and files. I don't think it is a major security issue though, unless of course there is some sensitive information there that can directly be viewed, but if there is, then you should either protect the file or place it outside of document root. If you just want to be sure, then place an index.html file or a .htaccess file that disables directory listing.
  10. You could make it go through PHP and use the header function. I haven't heard about a way to do it directly from the document either.
  11. Basically, put all of it in the mysql class.
  12. [quote author=akitchin link=topic=119164.msg552970#msg552970 date=1173982453] it should be mentioned that it also depends on your area of study.  i myself have learned a crapload in chemistry, but i think that's mainly because chemistry (and science in general) isn't generally something you can pick up off of tutorials.  and even if it is, it certainly doesn't have the sheer number of tutorials online that programming does. [/quote] Same thing goes for languages. I'd rather not attempt to learn a language from online tutorials.
  13. Daniel0

    No ADSL!

    Man... that really sucks! How are you connected now then? Or are you using a computer outside of your home?
  14. Daniel0

    No ADSL!

    How about a connection through the TV signal cable? We've got that. Or maybe fiber optics?
  15. Heh, I could get to the other end of the country (Denmark) within 3 hours... I consider 3 (and 2) hours of driving loooooooooong, and certainly not local. But I also live in a small country (only 42,394 sq km).
  16. Do you mean like the one I have attached here? You can do that with Pearl Crescent Page Saver (Firefox extension). [attachment deleted by admin]
  17. [quote author=businessman332211 link=topic=123688.msg552106#msg552106 date=1173897987] Yes, I also found a database of cracked versions (the hashes).  You can enter a has into it to see if a collision is present. http://www.stachliu.com/md5coll.c http://en.wikipedia.org/wiki/MD5 Here you can see they already have a majority of it's "Algorithm" figured out. I don't understand what about it can't be cracked, but for some reason it can't. [/quote] http://gdataonline.com/seekhash.php
  18. Oh, and let the user choose if they want it to "steal" the file associations before doing so. It is a bit annoying to find out that your file associations have suddenly been altered.
  19. I like that one better, it also helped to realize that it is a mouse when you turned it around.
  20. Too long URL. You need some padding on the text. The gradients are horrible, as jcombs said, they need better quality. You should separate the content into multiple pages. The "Contact Me"-link at the bottom is broken.
  21. http://bancomicsans.com/
  22. Just curious... how can your site be "BETA final"?
  23. Works for me on Windows XP MCE 2005 SP2. -- You might want to change the default file content to <?php // Your code here ?> instead of <?php // Your code here php?>
  24. Here is a good link as well: http://www.search-this.com/2007/03/12/no-margin-for-error/
  25. Java tends to take up a lot of memory on Windows platforms.
×
×
  • 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.