Chroder · Senior Member

About

Username
Chroder
Joined
Visits
0
Last Active
Roles
Registered Users
Thanked
0
Badges
0

Comments

  • Didn't you already post this? Ah, here.
  • vBulletin provides built in feeds if you activate them (look in vB Options, "External Data Provider"). http://www.devdreams.com/forum/external.php?type=js http://www.devdreams.com/forum/external.php?type=rss http://www.devdreams.com/forum…
    in RSS Feeds Comment by Chroder July 2005
  • Use some Javascript. Here's a 'navToLink' function that would suit you nicely, I think. It will direct the user to the location contained in the first link of the cell. /** * Navigate to the first link contained with the object * @param object The o…
  • I blogged about this a while ago, that might be useful. The example there is quite messy, but it seems to work ;) Basically, you use sessions or cookies to store a validation code. Then you use the same validation code in your image (creating image…
  • I'd check out Advanced PHP Programming. I was searching for a while, too, about advanced topics. But after you know the "how" of PHP, there isn't much more to learn. Instead, you should go into how to design your applications. Programming…
    in PHP Book Comment by Chroder July 2005
  • (Quote) It's something your host will have to do. What I mean is that, if your host has it enabled now then it is likely they will keep it enabled when they upgrade to PHP5 (which will probably be a long way off anyway). But that doesn't mean you s…
  • For the record, the varnames without using superglobals ($_POST, $_GET etc) will still work as long as register_globals is enabled in php.ini. It has been off by default since 4.3.0, I believe, so it's nothing new in PHP5. A lot of hosts re-enable i…
  • It's fairly easy. $_FILES is an array that holds any uploaded files. Each item in $_FILES has:* name - The name of the file * type - The mime type * size - The filesize in bytes * tmp_name - The path to the temp location it was uploaded to Basical…
  • I use echo because, well, it is faster, even if it is literally unnoticeable, even in large amounts. But on top of that, it sounds better then print ;) The only time I ever use print is when I need to use it as a function.
  • I would always choose OOP over simple algorithmic programming. The reason: it's easier. Using OOP, you can develop and maintain applications easier, while gaining a whole new set of tools to work with (more tools = more control = better apps). On t…
  • http://www.cplusplus.com/ is a good place to start.
  • In this case, the function is a closure (aka 'inline function' aka 'anonymous function'). A function in Javascript is just another type of value. The parenthesis just make the function act as a value, which is then executed (as per the familiar '()…
  • MD5 is still good yet. The only way someone would be able to get a password hash is if they have access to your database, and in that case, you have other problems ;) If you are still uneasy about MD5 being "broken", then try mixing two d…
  • Just do a query to fetch the settings, then loop through the results and built a new array as you go along. [php]$res = mysql_query("SELECT * FROM config"); $settings = array(); // our new array //// Build array //while($item = mysql_f…
  • You are forgetting about variable scope. $result only exists locally to the sql_query function, once the function ends, so does the $result. You can make it apply to the global scope: [php]$GLOBALS = mysql_query($sql);[/php] And it will be availabl…
  • Not necessarily. An error with your SQL would not generate a PHP error, it would simply return false. Try adding some error printing to your code. [php]$regnum2 = mysql_query($regnum) or die(mysql_error());[/php] Also, you should always check the …
  • Using PHP5 right now would break a whole truck load of premade scripts. Any host should be staying away from PHP5 for a while.
  • Have the validation function return false on error, then put in the "return" keyword when calling the function. For example: <form action="someaction.php" method="post" onsubmit="[color=blue][b]return[/b][/color…
  • Javascript treats input as strings, so thats why it treating it as a string ;) You can convert strings to integers/floats with the parseInt and parseFloat functions, respectively. var mystring = "100.98"; // "100.98"var myint = …
    in java math Comment by Chroder March 2005
  • CGI is an interface for Perl. Perl is a programming language, and to send content to your browser (for example), you need the CGI gateway. CGI is just a set of rules that says how one piece of software communicates with another piece of software, w…
  • mod_rewrite allows you to rewrite URL's. It's an Apache module. One of it's uses, as tntcheats pointed out, is to make SEF URL's. But it can be used for a lot of things.
    in Blog Comment by Chroder August 2004
  • Don't use any flash.
    in Redesign Comment by Chroder August 2004
  • I own 2, and help develop and maintain about 7.
  • Google.
  • <20, <50, <100, <300, <500 and <1000 are all the same thing... If you visit under 20 sites, you still visit under 1000. :p
  • Just turn 'short_tags' on in php.ini.
  • Most broadband ISP's do renew your IP address once in a while anyway. If you want a truly static IP address (for websites or gaming servers etc) then you will need to look for it specifically advertised -- usually with the 'business' plans.
    in DinanM3 Comment by Chroder August 2004
  • There are other methods to circumvent IP blocking other then relying on a dynamic IP address from your ISP. On the internet, if someone wants to piss you off badly enough -- there's not much you can do other then trying to get their ISP (granted tha…
    in DinanM3 Comment by Chroder August 2004
  • B2 and Wordpress (same thing) have their look crammed into their files. So if you want to edit the look of it, you need to work around the PHP in the files. Plog actually has a template engine, so if your not confortable hacking around PHP code then…
    in Blog Comment by Chroder August 2004
  • What do you mean tutorials? You install, login, and write your entries :?:
    in Blog Comment by Chroder August 2004