Warning: Cannot modify header information - headers already sent by (output started at /home/geforce/public_html/index.php:1) in /home/geforce/public_html/wp-includes/feed-rss2-comments.php on line 2
Comments for PDStudios http://pdstudios.net Web Building Resources Sat, 04 Jul 2009 02:13:46 +0000 http://wordpress.org/?v=2.2 Comment on HTML Validation by Nick Tompson http://pdstudios.net/2008/05/12/html-validation/#comment-27 Nick Tompson Mon, 22 Dec 2008 13:21:26 +0000 http://pdstudios.net/2008/05/12/html-validation/#comment-27 Should also be noted, tag MUST supply the alt attribute to be XHTML valid. Should also be noted, tag MUST supply the alt attribute to be XHTML valid.

]]>
Comment on Getting User’s IP in PHP by Nick Tompson http://pdstudios.net/2008/05/17/getting-users-ip-in-php/#comment-26 Nick Tompson Mon, 22 Dec 2008 13:16:03 +0000 http://pdstudios.net/2008/05/17/getting-users-ip-in-php/#comment-26 You could also more accurately obtain the IP address using the following, which can attempt to get proxy's etc. <pre> // Setup from env $requestIP = $_SERVER[ "REMOTE_ADDR" ]; if ( $_SERVER[ "HTTP_CLIENT_IP" ] ) { $requestIP = $_SERVER[ "HTTP_CLIENT_IP" ]; } else if ($_SERVER[ 'HTTP_X_FORWARDED_FOR' ] AND preg_match_all( "#\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}#s", $_SERVER[ 'HTTP_X_FORWARDED_FOR' ], $matches ) ) { foreach ( $matches[0] as $IP ) { // Chuck out RFC1918 IP if ( !preg_match( "#^(10|172\.16|192\.168)\.#", $IP ) ) { $requestIP = $IP; break; } } } else if ( $_SERVER[ "HTTP_FROM" ] ) { $requestIP = $_SERVER[ "HTTP_FROM" ]; } else if ( $_SERVER[ "HTTP_PROXY_USER" ] ) { $requestIP = $_SERVER[ "HTTP_PROXY_USER" ]; } </pre> You could also more accurately obtain the IP address using the following, which can attempt to get proxy’s etc.

// Setup from env
$requestIP = $_SERVER[ "REMOTE_ADDR" ];

if ( $_SERVER[ "HTTP_CLIENT_IP" ] )
{
	$requestIP = $_SERVER[ "HTTP_CLIENT_IP" ];
}
else if ($_SERVER[ 'HTTP_X_FORWARDED_FOR' ] AND preg_match_all( "#d{1,3}.d{1,3}.d{1,3}.d{1,3}#s", $_SERVER[ 'HTTP_X_FORWARDED_FOR' ], $matches ) )
{
	foreach ( $matches[0] as $IP )
	{
		// Chuck out RFC1918 IP
		if ( !preg_match( "#^(10|172.16|192.168).#", $IP ) )
		{
			$requestIP = $IP; break;
		}
	}
}
else if ( $_SERVER[  "HTTP_FROM" ] )
{
	$requestIP = $_SERVER[ "HTTP_FROM" ];
}
else if ( $_SERVER[ "HTTP_PROXY_USER" ] )
{
	$requestIP = $_SERVER[ "HTTP_PROXY_USER" ];
}
]]>
Comment on Visitor Statistics Revised by The Ultimate Entrepreneur Club http://pdstudios.net/2007/12/26/visitor-statistics-revised/#comment-20 The Ultimate Entrepreneur Club Fri, 19 Sep 2008 08:06:00 +0000 http://pdstudios.net/2007/12/26/visitor-statistics-revised/#comment-20 <strong>The Ultimate Entrepreneur Club...</strong> Nobody can do everything. As your business grows you will need to outsource some of the work. You could hire employees but those ongoing costs can eat up a lot of capital. What if you need a certain task this employee does not know how to do? Do it you... The Ultimate Entrepreneur Club…

Nobody can do everything. As your business grows you will need to outsource some of the work. You could hire employees but those ongoing costs can eat up a lot of capital. What if you need a certain task this employee does not know how to do? Do it you…

]]>
Comment on PHP Classes by Wondering Soul http://pdstudios.net/2008/09/14/php-classes/#comment-19 Wondering Soul Tue, 16 Sep 2008 17:31:54 +0000 http://pdstudios.net/2008/09/14/php-classes/#comment-19 Good tutorial. However, with the mass use of PHP 5, I believe it would be better practice to make use of Public, Private and Protected methods and variable definitions. Although that may have been outside the scope of this tutorial. Great read though, very well explained :) Good tutorial.

However, with the mass use of PHP 5, I believe it would be better practice to make use of Public, Private and Protected methods and variable definitions. Although that may have been outside the scope of this tutorial.

Great read though, very well explained :)

]]>
Comment on Simple Uploader by The Ultimate Entrepreneur Club http://pdstudios.net/2007/06/26/simple-uploader/#comment-18 The Ultimate Entrepreneur Club Mon, 08 Sep 2008 21:23:20 +0000 http://pdstudios.net/2007/06/26/simple-uploader/#comment-18 <strong>The Ultimate Entrepreneur Club...</strong> Years ago, when our oldest was a baby, we started a network marketing business. As you do, when you have a network marketing business, we used to play tapes in the car. As the kids got older, we had to negotiate alternating nursery rhyme tapes with the... The Ultimate Entrepreneur Club…

Years ago, when our oldest was a baby, we started a network marketing business. As you do, when you have a network marketing business, we used to play tapes in the car. As the kids got older, we had to negotiate alternating nursery rhyme tapes with the…

]]>
Comment on CAPTCHA Verification by PHP: Simple Image Verification - MyGamingServers.com - Gaming News, BF2,BF3,Cod4,FPS,Console,GameServers,Hosting http://pdstudios.net/2007/06/26/captcha-verification/#comment-16 PHP: Simple Image Verification - MyGamingServers.com - Gaming News, BF2,BF3,Cod4,FPS,Console,GameServers,Hosting Sat, 02 Aug 2008 07:41:44 +0000 http://pdstudios.net/2007/06/26/captcha-verification/#comment-16 [...] PHP: Simple Image Verification Hey here is a nice simple to use CAPTCHA verification script to use on forms or other things to stop spamming on your website. PDStudios Blog Archive CAPTCHA Verification [...] […] PHP: Simple Image Verification Hey here is a nice simple to use CAPTCHA verification script to use on forms or other things to stop spamming on your website. PDStudios Blog Archive CAPTCHA Verification […]

]]>
Comment on Visitor Statistics Revised by Anonymous http://pdstudios.net/2007/12/26/visitor-statistics-revised/#comment-15 Anonymous Sat, 26 Jul 2008 22:51:27 +0000 http://pdstudios.net/2007/12/26/visitor-statistics-revised/#comment-15 <strong>...</strong> ” If you work hard on your job, you could make a living. If you work hard on yourself, you could make a fortune. Your income is primarily determined by your philosophy, not the economy. Success is something you attract by becoming an attractive perso...

” If you work hard on your job, you could make a living. If you work hard on yourself, you could make a fortune. Your income is primarily determined by your philosophy, not the economy. Success is something you attract by becoming an attractive perso…

]]>
Comment on Simple Uploader by Anonymous http://pdstudios.net/2007/06/26/simple-uploader/#comment-13 Anonymous Mon, 23 Jun 2008 13:17:37 +0000 http://pdstudios.net/2007/06/26/simple-uploader/#comment-13 <strong>...</strong> ISP’ s should not over sell capacity. Pulling the old‘ victim of our own success’ is a crock of shit. If you are going to sell an unlimited bandwidth high speed service, then the network should be able to cope with more than 5% of its users using...

ISP’ s should not over sell capacity. Pulling the old‘ victim of our own success’ is a crock of shit. If you are going to sell an unlimited bandwidth high speed service, then the network should be able to cope with more than 5% of its users using…

]]>
Comment on PHP Sessions by PDStudios » Blog Archive » PHP Global Variables http://pdstudios.net/2007/06/20/php-sessions/#comment-9 PDStudios » Blog Archive » PHP Global Variables Mon, 31 Dec 2007 11:31:20 +0000 http://pdstudios.net/2007/06/20/php-sessions/#comment-9 [...] more complex to use. This global variable uses sessions to function. Recommend you read up on the PHP Sessions tutorial before [...] […] more complex to use. This global variable uses sessions to function. Recommend you read up on the PHP Sessions tutorial before […]

]]>
Comment on Free Shopping Cart by Free Shopping Cart http://pdstudios.net/2007/08/29/free-shopping-cart/#comment-8 Free Shopping Cart Sun, 30 Dec 2007 08:00:57 +0000 http://pdstudios.net/2007/08/29/free-shopping-cart/#comment-8 [...] Free Shopping Cart [...] […] Free Shopping Cart […]

]]>