Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. I don't think you can use double-quotes in SQL. So try changing the query to: [code]select * from the_table where 1st_field like '%$trimmed%' order by 1st_field[/code]
  2. As far as I understand you wan't to download two files in one request. That is unfortunately not possible, then you will need to put the files in an archive (e.g. zip).
  3. Daniel0

    robots.txt

    If nothing is in robots.txt it's like having none (= it indexes everything). Everything that the search-engines may not see should be as disallow in robots.txt
  4. [code]<?php //... $query = mysql_query("SELECT * FROM bookings WHERE booking_date='{$requested_date}'"); if(mysql_num_rows($query) > 0) { echo "Sorry, that date is already booked"; } else { // do stuff } ?>[/code]
  5. When I used Windows I once had something called [url=http://apache2triad.net]Apache2Triad[/url] installed. From it's control center I could restart Apache. You might wan't to check the source of that out.
  6. Is it the you using PHP as an Apache module, or are you using the CGI version?
  7. [code]<?php header("Content-type: text/plain"); function parse_dir($dir) { if(substr($dir,-1) != '/') { $dir .= "/"; } $contents = scandir($dir); unset($contents[0]); unset($contents[1]); foreach($contents as $content) { echo "{$dir}{$content}\n"; if(is_dir($content)) { parse_dir("{$dir}{$content}/"); } } } parse_dir("/var/www/"); ?>[/code] You need recursion, this would do it.
  8. [quote author=keeB link=topic=100274.msg395578#msg395578 date=1152683332] 2 options: JavaScript way: [code=php:0]<body onLoad="me.location("logout.php");">[/code] [/quote] Then you are breaking the back button. When/if people click on the back button, then they will immediately get forward again. The header way is to prefer, since the page don't finish loading, but go to the new location as soon as it meets the Location header.
  9. [quote author=Daniel0 link=topic=99939.msg395171#msg395171 date=1152628413] If you need help on learning HTML then check http://www.w3schools.com out. [/quote]
  10. Yeah, these are the so-called search engine friendly URLs, so they should be better if you want to be higher ranked at search engines.
  11. [quote author=neylitalo link=topic=100080.msg395464#msg395464 date=1152659742] Daniel0: the GUI installer for Gentoo just came out, and is extremely buggy - I'm not even sure why they included it in the 2006.1 release. You should have no trouble at all if you do everything by hand. Just be ready to do a lot of typing. [/quote] At that time I did not have internet, so I had to download the LiveCD. Now I connect to the internet via a wireless connection, and I have no idea how to get that to work via command-line, actually it still don't work perfectly.
  12. Hey, check out these links. http://digg.com/tech_news/Computer_Error_Messages_Gone_Wrong (http://thedailywtf.com/forums/thread/80731.aspx) http://www.cnn.com/TECH/computing/9810/06/errormess.idg/ I think some of the funniest are: "Internal Error! Driver NOT Loaded yet. Contact Henrik." "The command has been aborted. An internal error occured in Pro/DESKTOP. It is most likely that doing the same thing again will produce the same error." "Some random data is needed to generate a cryptographic identity for you. Please bang on the keyboard like a monkey."
  13. [code]unset($_POST['what_ever']);[/code] Should do it.
  14. What exactly are you trying to do then?
  15. Daniel0

    On submit

    Go for the meta tag approach, that way the user will get an updated chat history often instead of only when he says something.
  16. You can also use the id tag along with the javascript function getelementbyid()
  17. Try [url=http://www.google.com/search?q=magic.mime]searching on Google for 'magic.mime'[/url].
  18. [quote author=steelmanronald06 link=topic=100080.msg395220#msg395220 date=1152632202] GENTOO! I love it...It makes a perfect OS if you are going for X Server and all that jazz. If your installing it on a machine that you plan on accessing remotly and not using any GUI, go with CentOS [/quote] Heh, I tried both of these. The installer for Gentoo did not work (just kept saying 'Setting root password' for hours) and CentOS's updater didn't work properly (it is quite some time since I tried CentOS though, like two years - but it kept me away).
  19. Daniel0

    Class vs. ID

    [quote author=WendyLady link=topic=99592.msg394734#msg394734 date=1152565680] Hmmmm -- I'm surprised no one has said this before [/quote] Look at the post above yours... ;)
  20. Should be the correct file. I have no idea why this don't work.
  21. exec and the other functions that allows you to send commands to the server would be just fine.
  22. I agree that some are, but we could make a 'kids yelling at each other'-free server
  23. You'd probably wan't to check for http:// too
  24. [quote author=micah1701 link=topic=100196.msg395174#msg395174 date=1152628516] I echo Daniel's comments. it doesn't HAVE to be AJAX [/quote] Never said he had to :P I said he could use a timer 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.