Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
That is because the div has a width of 100%, meaning that even though there is no text it is still inside the div. A better way do this would be to use [code]<div style='cursor:hand;'>cursor test</div>[/code], by the way. If you only want it on the text you could use the span tag instead.
-
I don't think you can do that inside PHP, but you can do this: [code]<?php if(get_magic_quotes_gpc() == true) { foreach(array("_POST","_GET","_COOKIE","_SESSION","_REQUEST") as $var) { $GLOBALS[$var] = array_map("stripslashes",$GLOBALS[$var]); } } ?>[/code]
-
Try to read my tutorial on [url=http://www.phpfreaks.com/tutorials/145/0.php]multipage forms[/url]. That should give you an idea of how to do it.
-
It don't really clear the form, it resets the form to the value specified by the value attribute. So if value is "something" then it will be changed back to "something" if the reset button is clicked, but if you do not use the value attribute then this is not a problem.
-
Try to put this in your .htaccess file: [code]php_value magic_quotes_gpc off[/code]
-
Storing Checkbox & other text data into MYSQL Database
Daniel0 replied to callingrohit's topic in PHP Coding Help
You could store it as a serialized array: [code]<?php $values = array( 'checkbox1' => $_POST['checkbox1'], 'checkbox2' => $_POST['checkbox2'], 'checkbox3' => $_POST['checkbox3'], ); $values = serialize($values); ?>[/code] -
[quote author=alpine link=topic=113485.msg461201#msg461201 date=1162400934] But note, on mondays this will get the previous monday [/quote] This will solve that problem: [code]<?php $begin_week = date('D')=="Mon" ? gmtime(0,0,0,date('m'),date('d'),date('Y') : strtotime('last Monday'); ?>[/code]
-
Try this: [code]<?php $url = "http://blabla.com"; $proxies = @file("zz.txt"); foreach($proxies as $v) { list($ip, $port) = explode(':', trim($v)); $fp = fsockopen($ip,$port); fputs($fp,"GET $url HTTP/1.0\r\nHost: $ip\r\n\r\n"); while(!feof($fp)) { echo fgets($fp, 4000); } fclose($fp); } ?>[/code]
-
Well ok... they could still be deleted now...
-
We would need the source in order to tell you how to make it safe.
-
Try this [code]<?php $url = "http://blabla.com"; $proxies = @file("zz.txt"); foreach($proxies as $proxy) { list($ip,$port) = explode(':',$v); $fp = fsockopen($ip,$port); fputs($fp,"GET $url HTTP/1.0\r\nHost: $ip\r\n\r\n"); while(!feof($fp)) { echo fgets($fp, 4000); } fclose($fp); } ?>[/code] And quit spamming.
-
You can't position the text over the image without setting, well, a position.
-
Here is some corrections to your code: It is E_STRICT and not 'E_STRICT' as E_STRICT is a constant and not a string. When each case "ends" you will have to use [url=http://php.net/break]break[/url].
-
CSS files, images and javascript files can't be protected from being viewed. The browser needs them to parse/show then so it has to be downloaded to the user's computer.
-
Try to use robots.txt to disallow indexing of /members/.
-
This will turn the directory listing off.
-
In your httpd.conf: [code]<Directory "/var/www/something"> Options -Indexes </Directory>[/code] If you put it in a .htaccess file, then just remove the Directory tags.
-
Yeah, but since all my console games are for PS2 I would have to keep my PS2 as well if I bought another one, but with PS3 I can still play my PS2 games.
-
Great...... It natively supports high definition, but you just need to purchase something extra. How lame <_<
-
Yeah. It would require a ****load of satellites.
-
[quote author=wildteen88 link=topic=112251.msg455499#msg455499 date=1161454122] It is really kool stuff. [/quote] "Google Earth Real-time" would be cooler :D
-
My Linux has Times New Roman as a mono-spaced font. Kind of annoying...
-
[quote author=AndyB link=topic=112142.msg455855#msg455855 date=1161536975] IE7 :o Our corporate IT people has issued a warning to all users (many thousands, worldwide) that IE7 [b]must not[/b] be installed on workstations. XP SP2 users got the special warning to [i]refuse all automatic updates[/i]. [/quote] IMO IE6 shouldn't be installed either...
-
Is this for real or is it a joke article?