Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
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
-
It's because IE is broken ;)
-
[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]
-
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.
-
getcwd shows that php thinks its in the wrong folder...
Daniel0 replied to eirinikos's topic in PHP Coding Help
Is it the you using PHP as an Apache module, or are you using the CGI version? -
[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.
-
a bunch of quick questions - delete and edit
Daniel0 replied to localhost's topic in PHP Coding Help
[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. -
Possible to have htmlfreaks.com ?
Daniel0 replied to hackerkts's topic in PHPFreaks.com Website Feedback
[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] -
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.
-
[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.
-
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."
-
How to delete $_POST variables without deleting the session?
Daniel0 replied to dantalion's topic in PHP Coding Help
[code]unset($_POST['what_ever']);[/code] Should do it. -
What exactly are you trying to do then?
-
Go for the meta tag approach, that way the user will get an updated chat history often instead of only when he says something.
-
You can also use the id tag along with the javascript function getelementbyid()
-
Try [url=http://www.google.com/search?q=magic.mime]searching on Google for 'magic.mime'[/url].
-
[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).
-
[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... ;)
-
Should be the correct file. I have no idea why this don't work.
-
exec and the other functions that allows you to send commands to the server would be just fine.
-
Need a Break? Lets Play Battlefiled 2
Daniel0 replied to phpfreak's topic in PHPFreaks.com Website Feedback
I agree that some are, but we could make a 'kids yelling at each other'-free server -
You'd probably wan't to check for http:// too
-
Need a Break? Lets Play Battlefiled 2
Daniel0 replied to phpfreak's topic in PHPFreaks.com Website Feedback
Awww man, create a Counter-Strike: Source server too. That would be awesome!!