Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. [quote author=Danny Beckett link=topic=118865.msg486094#msg486094 date=1166276091] That cannot be changed using HTML, it is built into Windows and is called AutoComplete. [/quote] It's built into the browser not the OS!
  2. Then you'll need to add this to your .htaccess/httpd.conf file: [code]AddType application/x-httpd-php .htm AddType application/x-httpd-php .html[/code]
  3. In my opinion you should always use one as it will not be valid without one.
  4. I didn't read the entire topic, but if you instead of $_SESSION['total']++ you could use $_SESSION['total']+1. That will not change the variable, but still output it one higher than $_SESSION['total'].
  5. I am not quite sure I get what you mean.
  6. To extend what 448191 (get an easier username to remember :P so I don't have to look every time): You need the DOCTYPE so the parser will know how to parse it. Each DOCTYPE describes what the tags are, what attributes they have and so on (I think), just take a look at this one: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd (it is the one for XHTML Strict). In fact you can create your own DOCTYPEs as well (see: http://w3schools.com/dtd/default.asp). DOCTYPE means Document Type Declaration and declares what type it is. There are good reasons to use standards and use valid (X)HTML documents (and that includes using the correct DOCTYPE): [o]It makes it easier for the browser developers. [o]It will not cause extra overhead to the browsers as they will not have to figure out themselves what the developer meant because he did not care about standards. I think this is what is called "quirks mode". [o]It makes it easier for web developers. If all follow the same standards it would be much easier. [o]Users with mobile devices such as cell phones have limited processing power and is therefor unable to have things as quirks mode. They rely on valid documents that follow the standards, but if somebody somewhere did not care about it, they cannot read it as it cannot be parsed. Take as an example keyboards: There are certain standards of how the keys are positioned. The keyboard manufacturers don't just put the keys at a random place because there are STANDARDS they follow which will make it easier for the user. How would you ever learn to type fast if you cannot possible learn where the keys are as it is random?
  7. Perhaps you should include that information here: http://www.phpfreaks.com/chat2/chat.php I think people often ask for the server and channel information.
  8. [quote author=Ben Phelps link=topic=118139.msg489012#msg489012 date=1166634533] I am currently switching from IPB to SMF, IPB has no spam protection.  Even after captcha and email verification where on it didn't help, I still got about 15 spam posts a day. [/quote] You never considered that the Completely Automated Public Turing test to tell Computers and Humans Apart (CAPTHA), will not work on human spammers?
  9. The URL you'll use in the DOCTYPE you posted would be [tt][nobbc]http://www.w3.org/TR/html4/loose.dtd[/nobbc][/tt]. That would make it: [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">[/code]
  10. Why did you bump a topic that is over two months old?
  11. http://www.myfoxchicago.com/myfox/pages/Home/Detail?contentId=1823428&version=1&locale=EN-US&layoutCode=VSTY&pageId=1.1.1
  12. I guess so. Not exactly what I was thinking about, but since it converts it must be okay.
  13. [quote author=Orio link=topic=119299.msg488528#msg488528 date=1166568757] [b]Write a function that inverts the letters of a string.[/b] (a becomes z, b becomes y, c becomes x... DONT use 13/26 ifs/replace etc', do it with a bit of math/logic and ASCII) [/quote] That's known as the atbash cipher: [code]<?php function atbash($plaintext) { $ciphertext = ''; for($i=0; $i<strlen($plaintext); $i++) { $ciphertext .= chr(155-ord(strtoupper(substr($plaintext,$i,1)))); } return $ciphertext; } echo atbash("test"); ?>[/code] [b]Next challenge:[/b] [s]I'll stick with cryptography... make a function that uses the substitution cipher Vigenère (look it up).[/s] Edit: I'm afraid it might be too difficult and if it is that it would ruin the game. So here is a new one: Make an ASCII <--> Binary convertor If anybody should have solved my original challenge I guess it will be accepted as well.
  14. Ok it works now. [quote author=wildteen88 link=topic=119281.msg488405#msg488405 date=1166554242] What is the size of the file you are uploading? [/quote] 14 KB.
  15. More info here: http://php.net/features.commandline
  16. When trying to attach a file to a post I got this error: [quote]The upload folder is full. Please try a smaller file and/or contact an administrator.[/quote]
  17. MODS/ADMINS: DELETE - double post
  18. Here's the sources: http://xaos-ia.com/daniel/non_javascript_slideshow.zip [quote author=DeathStar link=topic=117999.msg488146#msg488146 date=1166536980] http://www.xaos-ia.com/daniel/non_javascript_slideshow/?picture=3 I was almost blinded  :o :o :o lol [/quote] It's Web0.5 ;) Edit: teting attachments [attachment deleted by admin]
  19. mithu_sree: When you're told it is not possible, then why do you ask if it can be done again? o_O
  20. I think this topic will help out: http://www.phpfreaks.com/forums/index.php/topic,113143.0.html
  21. Yeah well, it depends on what he means. I read it as he wants to eg use bbcode in the textarea I'm using now. Here he couldn't just make a bbcode or hijack it with javascript. But if it is one in his application he can of course.
  22. It looks overall pretty nice. Just a little detail: When clicking on the logo you should make people go to the front page.
  23. Couldn't you have created your own instead of just taking it from Google?
  24. I think he means in all textareas.
  25. Wouldn't the batch script then end causing the problem still to end? I don't think what you try to do is possible if you do not want it open all the time. Why not use VNC or another remote desktop solution instead?
×
×
  • 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.