<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Free script resoure online - WP theme - Joomla theme - VBB theme - Graphic theme &#187; PHP script</title>
	<atom:link href="http://www.w3code.net/tag/php-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.w3code.net</link>
	<description>WP theme - Joomla theme - VBB theme - Graphic theme</description>
	<lastBuildDate>Wed, 01 Feb 2012 08:55:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>AlstraSoft EPal Pro (Send Money Orders Using Paypal) 1.0</title>
		<link>http://www.w3code.net/alstrasoft-epal-pro-send-money-orders-paypal-10/</link>
		<comments>http://www.w3code.net/alstrasoft-epal-pro-send-money-orders-paypal-10/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 09:14:44 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[PHP script]]></category>
		<category><![CDATA[AlstraSoft EPal Pro]]></category>
		<category><![CDATA[Donate Script]]></category>
		<category><![CDATA[Donation]]></category>
		<category><![CDATA[Donation Bar]]></category>
		<category><![CDATA[Paypal]]></category>
		<category><![CDATA[PayPal Donate Script]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=2349</guid>
		<description><![CDATA[AlstraSoft EPal Pro (Send Money Orders Using Paypal) is Unix compatible. EPal Pro is a full featured software which rides on the widely adopted e-payment facility &#8211; Paypal. Currently Paypal takes care of payment transactions on an account-to-account basis only. EPal Pro complements Paypal by extending the payment service from e-payment to &#8216;physical&#8217; money delivery. [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://blizsoft.com/epay/index.php"></a><a href="http://www.w3code.net/wp-content/uploads//2011/08/AlstraSoft-EPal-Pro.png"><img class="alignleft size-medium wp-image-2350" title="AlstraSoft EPal Pro" src="http://www.w3code.net/wp-content/uploads//2011/08/AlstraSoft-EPal-Pro-300x147.png" alt="" width="300" height="147" /></a>AlstraSoft EPal Pro (Send Money Orders Using Paypal) is Unix compatible. EPal Pro is a full featured software  which rides on the widely adopted e-payment facility &#8211; Paypal.</p>
<p>Currently Paypal takes care of payment transactions on an  account-to-account basis only. EPal Pro complements Paypal by extending  the payment service from e-payment to &#8216;physical&#8217; money delivery.</p>
<p>This  happens when your users want to send &#8216;physical money&#8217; such as MONEY ORDERS, CHECKS DELIVERY, BANK TO BANK TRANSFERS OR ANY OTHER PAYMENTS to their designated recipients who do not own a Paypal account. With EPal Pro, you start your own online business allowing you to charge your users a service fee for the payment services you offer just like Payko.com.</p>
<p><strong> <span style="font-family: &quot;Tahoma&quot;; font-size: x-small;"> <a target="_blank" name="1"> </a></span></strong><span style="font-family: &quot;Verdana&quot;;"><strong>How                           would you like to own your very own payment processing                           website </strong>and                           business built with security minded programming? </span> <strong> <span style="font-family: &quot;Verdana&quot;;">EPay Pro</span><span style="font-family: &quot;Tahoma&quot;;"><a href="http://www.alstrasoft.com/epay.htm"><span style="font-family: &quot;Verdana&quot;;"> </span> </a> </span></strong> <span style="font-family: &quot;Verdana&quot;;">is the                         ultimate software solution for those who wish to run                         their own <strong> <span style="text-decoration: underline;">Paypal, Stormpay, or e-gold type of online                         business</span>. </strong> Epay Pro comes with a ready                         out of the box website with all the features you need to                         run your own payment gateway system.</span></p>
<div>
<p><span style="font-family: &quot;Verdana&quot;;">It doesn&#8217;t take a genius                           to figure out this type of website is a sound business                           investment. If advertised right this type of website                           can make you $1,000 &#8211; $10,000 a week! $4,000 &#8211; $40,000                           a month! $52,000 &#8211; $520,000 a year!</span></p>
<p><span style="font-family: &quot;Verdana&quot;;">A peer to peer payment                           system like this one will build a good customer base                           quickly using simple viral marketing techniques                           allowing its users to pay for auctions, services and                           goods. You can charge from 2.5% &#8211; 7% per transaction!                           You get 100% of those profits as you will completely                           own the website.</span></p>
<p><span style="font-family: &quot;Verdana&quot;;">EPay Pro is completely                           secure and is based on the power of PHP and MySQL with                           encryption techniques installed on the authorization                           modules of the site for complete security of the funds                           of the users. The extensive admin panel offers an                           absolute control over the whole website and provides                           the administrators with complete stats of the activity                           of the site.</span></p>
</div>
<p><span style="font-family: &quot;Verdana&quot;;"><strong><span style="text-decoration: underline;">Run your own Paypal</span></strong> type of online payment gateway system with AlstraSoft                         EPay Pro today! </span></p>
<p><strong><span style="font-family: &quot;Verdana&quot;; color: #000000;">What  can EPay Pro exactly do?</span></strong></p>
<ul> <span style="font-family: &quot;Verdana&quot;;"></p>
<li>Works just like the popular PayPal payment processing network but with    added features.</li>
<li>Fully supports automated recurring billing</li>
<li>Allows you to completely customize all colors and logos, for a completely    brandable site.</li>
<li>Easily ban/block users/IP&#8217;s</li>
<li>Designed for growth, allowing you to place different parts of the program    on different servers with near instant synchronization.</li>
<li>Allows for more customer funding options than the competitors. You can    even allow customers to fund their account WITH the competitors    (PayPal, E-Gold, NetPay, Evocash, Qchex).</li>
<p></span></p>
<li><span style="font-family: &quot;Verdana&quot;;"><strong>And many more</strong>! Refer </span> <span style="font-family: &quot;Tahoma&quot;; font-size: x-small;"> <a target="_blank" href="http://www.alstrasoft.com/epay.htm#3"> <span style="font-family: &quot;Verdana&quot;;">below</span></a></span><span style="font-family: &quot;Verdana&quot;;"> for more details about    EPay Pro now.</span></li>
</ul>
<p><strong><span style="font-family: &quot;Verdana&quot;;">Member Functions</span></strong></p>
<ul>
<li><strong><span style="font-family: &quot;Verdana&quot;;">Members Login System</span></strong>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">Username for login (email of client used)</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Access code (randomly generated using      letters and digits)</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Error messages on unsuccessful login tries</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Auto session expiry with no activity on                        account during logged in</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">SSL supported</span></li>
</ul>
</li>
<li><strong><span style="font-family: &quot;Verdana&quot;;">Transfer Funds</span></strong>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">Transfer funds to another user or email      address</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Ability to add payment description</span></li>
</ul>
</li>
<li><strong><span style="font-family: &quot;Verdana&quot;;">Withdraw Funds</span></strong>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">Set withdraw amount</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Funds can be withdraw using the following      payment processors: Paypal, E-Gold, Bank Transfer or Postal Cheque</span></li>
</ul>
</li>
<li><strong><span style="font-family: &quot;Verdana&quot;;">Merchant Tools</span></strong>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">Setup and manage subscription programs</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Setup and manage single items (sell your      own goods or services)</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Setup and manage donation programs</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Built-in HTML code generator for      subscription/single items/donations</span></li>
</ul>
</li>
<li><strong><span style="font-family: &quot;Verdana&quot;;">Edit Profile</span></strong>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">Change password</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Edit member&#8217;s personal info</span></li>
</ul>
</li>
<li><strong><span style="font-family: &quot;Verdana&quot;;">Request Money</span></strong>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">Request money from people even if they do      not have a member account </span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Ability to add request payment description</span></li>
</ul>
</li>
<li><strong><span style="font-family: &quot;Verdana&quot;;">Referral Program</span></strong>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">View number of referrals </span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Get HTML codes for referral programs</span></li>
</ul>
</li>
<li><strong><span style="font-family: &quot;Verdana&quot;;">Deposit Funds</span></strong>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">Members can get money using the following      methods: Paypal, E-Gold, Credit Card, Online Cheque Using Qchex,      Evocash or NetPay</span></li>
</ul>
</li>
<li><strong><span style="font-family: &quot;Verdana&quot;;">Account Summary</span></strong>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">View transaction history (including      time/date and status)</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Verify account</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Manage email addresses</span></li>
</ul>
</li>
<li><strong><span style="font-family: &quot;Verdana&quot;;">And many more!</span></strong></li>
</ul>
<p><strong><span style="font-family: &quot;Verdana&quot;;">Admin Functions</span></strong></p>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">Ability to set the system configurations</span>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">Edit admin username/password</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Settings for the payment gateway</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Referrer earning</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Edit variables</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Set minimum transfer/deposit/withdraw      amount</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Signup bonus</span></li>
</ul>
</li>
<li><span style="font-family: &quot;Verdana&quot;;">View/Edit member info and admin has the    ability to suspend accounts and block member&#8217;s IP </span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Ability to set % commission for sending and    receiving money</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">View pending deposits. Admin can also    approve/deny deposits</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">View pending withdrawals. Admin can also    approve/deny withdrawals</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">View today&#8217;s earnings</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Detail transaction report</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Add/deduct funds from user</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Advanced member search tool</span>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">Search by username</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Search by email address</span></li>
</ul>
</li>
<li><span style="font-family: &quot;Verdana&quot;;">Detail member report</span>
<ul>
<li><span style="font-family: &quot;Verdana&quot;;">View members that signup today</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">View card validation awaiting members</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">View suspended members</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Show non-us accounts</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Show accounts with same passwords</span></li>
</ul>
</li>
<li><span style="font-family: &quot;Verdana&quot;;"> Admin can email members</span></li>
<li><span style="font-family: &quot;Verdana&quot;;">Edit      email templates</span></li>
</ul>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/alstrasoft-epal-pro-send-money-orders-paypal-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PayPal Donate Script 2.0</title>
		<link>http://www.w3code.net/paypal-donate-script-20/</link>
		<comments>http://www.w3code.net/paypal-donate-script-20/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 08:49:15 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[PHP script]]></category>
		<category><![CDATA[Donate Script]]></category>
		<category><![CDATA[Donation]]></category>
		<category><![CDATA[Donation Bar]]></category>
		<category><![CDATA[Paypal]]></category>
		<category><![CDATA[PayPal Donate Script]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=2317</guid>
		<description><![CDATA[The PayPal Donate Script is an easy to use PHP based script that can be easily integrated into any website. Use on WordPress, Joomla, oSCommerce or other template based websites. A nice progress bar shows the percentage of raised amount. Fully customize the front-end look &#8211; goal description, change paypal button, progress bar with custom [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.w3code.net/wp-content/uploads//2011/08/PayPal-Donate-Script.png"><img class="alignleft size-medium wp-image-2318" title="PayPal Donate Script" src="http://www.w3code.net/wp-content/uploads//2011/08/PayPal-Donate-Script-300x151.png" alt="" width="300" height="151" /></a>The <a href="http://www.phpjabbers.com/paypal-donate-script/demo/">PayPal Donate Script</a> is an easy to use PHP based script that can be  easily integrated into any website. Use on WordPress, Joomla, oSCommerce  or other template based websites. A nice progress bar shows the  percentage of raised amount. Fully customize the front-end look &#8211; goal  description, change paypal button, progress bar with custom colors and  size. Unlimited domain usage &amp; free installation support.</p>
<ul>
<li>Use PayPal Donate Script on all your websites</li>
<li>Use on WordPress, Joomla, oSCommerce or other template based websites.</li>
<li>Easy to install &#8211; installation file will set up the script for you. Upon request we can install it for free!</li>
<li>Multiple donation goals &#8211; with just a single installation you can create different donation goals</li>
<li>Password protected administration page &#8211; easily manage goals and their options. Changes apply immediately on your website without web page updates.</li>
<li>Fully customize the look of the goals &#8211; put goal description, paypal button, progress bar with custom colors</li>
<li>Rich text content usage &#8211; using HTML tags you can use bold, italic,  underline font, change font family and size, put images and links (URLs)  in goals descriptions.</li>
<li>Simple copy/paste to place donation buttons on your web pages &#8211; a  simple HTML code is being generated in your administration area. All you  need to do is to put that code into any valid web page &#8211; PHP, ASP, JSP,  HTML, HTM, etc. and the donation button will appear on it</li>
<li>NO annual or monthly payments!</li>
<li>Custom modifications &#8211; we do ALL kind of modifications to the script. Let us know what you need and you will have it !</li>
</ul>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/paypal-donate-script-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to redirect IP addresses to different page</title>
		<link>http://www.w3code.net/how-to-redirect-ip-addresses-to-different-page/</link>
		<comments>http://www.w3code.net/how-to-redirect-ip-addresses-to-different-page/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 21:36:38 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[Wordpress template]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[How to redirect IP addresses]]></category>
		<category><![CDATA[PHP script]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=1684</guid>
		<description><![CDATA[If you would like to redirect browsers based on their IP the following method can be used to handle multiple IP’s.  You can choose to redirect entire networks or a single ip. Its working well. Done &#8230;!]]></description>
			<content:encoded><![CDATA[<p>If you would like to redirect browsers based on their IP the following method can be used to handle multiple IP’s.  You can choose to redirect entire networks or a single ip.</p>
<p>
<div class="codesnip-container" ><?php<br />
//array of ip&#8217;s you wish to block.  Note that you can block an<br />
//entire class by replacing it with 0, so to block a class c<br />
//(254 computers) use something like 123.123.123.0<br />
$blockIP = array(&#8217;123.123.123.0&#8242;,&#8217;100.100.100.101&#8242;);</div>
</p>
<p>$remote = explode(&#8216;.&#8217;,$_SERVER['REMOTE_ADDR']);<br />
foreach($blockIP as $ip) {<br />
  $goodIP = false;<br />
	for($i=0;$i&lt;4;$i++) {<br />
    $ipSeg = explode(&#8216;.&#8217;,$ip);<br />
    if($remote[$i] == $ipSeg[$i] || $ipSeg[$i] == &#8217;0&#8242;) {<br />
      //segment qualifies<br />
      $goodIP = true;<br />
    } else {<br />
      //ip no good so move to the next<br />
      $goodIP = false;<br />
      continue 2;<br />
    }<br />
  }<br />
  if($goodIP) {<br />
    //ip passes so no need to check the rest<br />
    $blockThisIP = $ip;<br />
    break;<br />
  }</p>
<p>}<br />
//for convenience test $blockThisIP and process here<br />
//replace www.crayola.com with the place you wish to<br />
//send ip&#8217;s too<br />
if($blockThisIP) {<br />
  //php header method &#8211; can only use this if the page<br />
  //has not begin to display in the browser<br />
  header(&#8216;Location: http://www.crayola.com&#8217;);</p>
<p>  //javascript redirection &#8211; use this method if browser has<br />
  //begun to display page<br />
  echo &#8220;<script type="text/javascript">
  window.location = "http://www.crayola.com";</script>&#8220;;<br />
}<br />
?></p>
<p>Its working well. Done &#8230;!</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/how-to-redirect-ip-addresses-to-different-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Different ways to redirect visitors to any URL</title>
		<link>http://www.w3code.net/different-ways-to-redirect-visitors-to-any-url/</link>
		<comments>http://www.w3code.net/different-ways-to-redirect-visitors-to-any-url/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 21:30:14 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[PHP script]]></category>
		<category><![CDATA[Redirect URL]]></category>
		<category><![CDATA[Redirect visitors]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=1682</guid>
		<description><![CDATA[URL redirection can be used for many purposes. Maybe you have just moved the content of a webpage to another webpage or domain and you want to redirect the frequent visitors of your website to the new webpage automatically. The knowledge of technique of redirecting URL is also useful if you want to shorten a [...]]]></description>
			<content:encoded><![CDATA[<p>URL redirection can be used for many purposes. Maybe you have just moved the content of a webpage to another webpage or domain and you want to redirect the frequent visitors of your website to the new webpage automatically. The knowledge of technique of redirecting URL is also useful if you want to shorten a long affiliate URL.</p>
<p>Below are several ways you can use to redirect visitors to any URL you want:</p>
<p>- Using Meta Tag &#8212; The tag for doing it is:</p>
<div class="codesnip-container" ></div>
<div class="codesnip-container" >Just put the tag above between the HEAD and /HEAD tags in a webpage. That way, when someone visits the webpage that contains the tag, he will be redirected to destination.html automatically. Don&#8217;t forget to include the &#8220;http&#8221; protocol which has been omitted.</p>
<p>In order to find out how many visitors have been redirected you may try to replace the destination URL with a tracking URL.</p>
<p>- Using PHP code &#8212; In PHP, &#8220;Header&#8221; is a built-in function that is often used to accomplish this task. This function can be used to redirect visitors depending on a specific condition. For instance, you can use this function to redirect someone to a webpage after submitting his correct username and password.</p>
<p>Here is the code:</p></div>
<div class="codesnip-container" >header(&#8220;Location: http://www.w3code.net/destination.php&#8221;);</div>
<p>Keep in mind that you have to save the file with .php extension in order to make it works.</p>
<p>- Using the redirect URL facility from your hosting service<br />
Many web hosting services provide a facility that you can use to redirect pages of your site to any url you want. This way, you only have to fill the source and the destination URL in a blank form and hit the submit button.</p>
<p>- .htaccess &#8212; You can also use your .htaccess file for this purpose as long as the hosting company you are using allows you to access this file. The code below will redirect visitors from oldpage.html to newpage.html.</p>
<div class="codesnip-container" >Redirect /var/www/w3code.net/newpage.php</div>
<p>Just put the code in your .htaccess file.</p>
<p>Now, how if you want to display a URL without using .html or .php extension? First, put the Meta Tag or the PHP code above in a file and name it as index.html or index.php. Then create a subdomain and upload the file into it. When someone visits the subdomain, he will be redirected to the destination URL.</p>
<p>There are actually other techniques of redirecting URL with different advantages and disadvantages. For instance, with Domain Forwarding you can forward your domain name to a URL. Domain Masking that looks similar with Domain Forwarding can hide a URL with your own domain name so the real URL will not be displayed in the address bar of your visitor&#8217;s browser.</p>
<p>Whatever technique of url redirect you intend to use, always choose the one that would best fit your needs.</p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/different-ways-to-redirect-visitors-to-any-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multi-User File Manager &amp; Uploader with Progress Bar</title>
		<link>http://www.w3code.net/multiuser-file-manager-uploader-progress-bar/</link>
		<comments>http://www.w3code.net/multiuser-file-manager-uploader-progress-bar/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 17:53:41 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[Java script]]></category>
		<category><![CDATA[PHP script]]></category>
		<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Review script PHP]]></category>
		<category><![CDATA[Script code]]></category>
		<category><![CDATA[Source code]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=1068</guid>
		<description><![CDATA[FileChucker is an AJAX-based web application that lets you accept file uploads on your own website. It&#8217;s simple to install (just one file), packed with features, fully configurable, nice looking, and very handy for when you want to share files with anyone. And during uploads FileChucker shows a progress bar &#38; table, so the user [...]]]></description>
			<content:encoded><![CDATA[<p>FileChucker is an AJAX-based web application that lets you accept file uploads on your own website. It&#8217;s simple to install (just one file), packed with features, fully configurable, nice looking, and very handy for when you want to share files with anyone. And during uploads FileChucker shows a progress bar &amp; table, so the user knows how much time is left before the upload is complete.</p>
<p>FileChucker can also function as a full-fledged online file manager for your server: it can allow moving/renaming/deleting of uploaded files &amp; folders right in the browser. Of course these features are configurable and password-protectable so you can customize FileChucker however you&#8217;d like.</p>
<p>To top it all off, FileChucker works in all major browsers (Moz/FF, IE, Opera, Safari), and runs on virtually any server, with no programming required! It&#8217;s a single Perl script, and most servers support Perl CGI scripts automatically; for the rare server that doesn&#8217;t, Perl can usually be easily added. If your site is more of a PHP site, don&#8217;t worry: FileChucker will run just fine alongside your PHP scripts, and you can even integrate it into your existing framework with a PHP virtual() call, if you want to!</p>

<a href='http://www.w3code.net/multiuser-file-manager-uploader-progress-bar/screenshot-step3-e21/' title='screenshot-step3-e21'><img width="150" height="150" src="http://www.w3code.net/wp-content/uploads//2009/09/screenshot-step3-e21-150x150.png" class="attachment-thumbnail" alt="screenshot-step3-e21" title="screenshot-step3-e21" /></a>
<a href='http://www.w3code.net/multiuser-file-manager-uploader-progress-bar/screenshot-step2-e21/' title='screenshot-step2-e21'><img width="150" height="150" src="http://www.w3code.net/wp-content/uploads//2009/09/screenshot-step2-e21-150x150.png" class="attachment-thumbnail" alt="screenshot-step2-e21" title="screenshot-step2-e21" /></a>
<a href='http://www.w3code.net/multiuser-file-manager-uploader-progress-bar/screenshot-step1-e21/' title='screenshot-step1-e21'><img width="150" height="150" src="http://www.w3code.net/wp-content/uploads//2009/09/screenshot-step1-e21-150x150.png" class="attachment-thumbnail" alt="screenshot-step1-e21" title="screenshot-step1-e21" /></a>

<p style="text-align: center;"><a target="_blank" href="http://rapidshare.com/files/26380344/FileChucker.rar">Download now </a></p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/multiuser-file-manager-uploader-progress-bar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Firewall Script 2009</title>
		<link>http://www.w3code.net/php-firewall-script-2009/</link>
		<comments>http://www.w3code.net/php-firewall-script-2009/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 17:47:13 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[PHP script]]></category>
		<category><![CDATA[PHP code]]></category>
		<category><![CDATA[PHP Firewall Script]]></category>
		<category><![CDATA[Review script PHP]]></category>
		<category><![CDATA[Script code]]></category>
		<category><![CDATA[Source code]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=1062</guid>
		<description><![CDATA[Do you worry about your site&#8217;s security? Has your site ever been hacked? Worry no more! FireWall Script is a PHP-based configurable firewall. Once installed, you can configure what mischievous things you want to be on the lookout for and let FireWall Script do the rest. With the logging functionality included, you can also go [...]]]></description>
			<content:encoded><![CDATA[<p>Do you worry about your site&#8217;s security? Has your site ever been hacked? Worry no more! FireWall Script is a PHP-based configurable firewall. Once installed, you can configure what mischievous things you want to be on the lookout for and let FireWall Script do the rest. With the logging functionality included, you can also go back and see if anyone is attempting to sidestep your rules and stay ahead of the game. Install FireWall Script, stop worrying about your site&#8217;s security, and start worrying about your site. Our software now has premade rule packs for most popular pieces of software available.</p>
<p style="text-align: left;"><a href="http://www.w3code.net/wp-content/uploads/2009/09/firewall-script.png"><img class="aligncenter size-large wp-image-1063" title="firewall-script" src="http://www.w3code.net/wp-content/uploads/2009/09/firewall-script-669x1024.png" alt="firewall-script" width="468" height="717" /></a></p>
<ol>
<li style="text-align: left;">It supports every PHP/MySQL script in existence<br />
That means all forums, Blogs, Custom Scripts or anything else you can think of is covered.</li>
<li style="text-align: left;">Only one edit required to install.<br />
You can install by performing just one file edit. Or if you prefer, use a .htaccess file to automatically load FWS on every page and forget file edits altogether!</li>
<li style="text-align: left;">100% protection guaranteed<br />
When properly configured, FWS can block any attacks on your site, guaranteed.</li>
</ol>
<p style="text-align: center;"><a target="_blank" href="http://rapidshare.com/files/135865030/sitefirewall_2008.rar">Download now</a></p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/php-firewall-script-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php youtube grabber</title>
		<link>http://www.w3code.net/php-youtube-grabber/</link>
		<comments>http://www.w3code.net/php-youtube-grabber/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 17:42:57 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[PHP script]]></category>
		<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Php youtube grabber]]></category>
		<category><![CDATA[Review script PHP]]></category>
		<category><![CDATA[Script code]]></category>
		<category><![CDATA[Source code]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=1060</guid>
		<description><![CDATA[Create a file index.php and upload it on your server. Run it for testing ). &#60;html&#62; &#60;head&#62; &#60;title&#62;YouTube Ripper&#60;/title&#62; &#60;style&#62; body, a, a:link, a:visited, a:hover, td { font-family: verdana, sans-serif; font-size: 8pt; color: black; } a { font-weight: bold; } input { font-family: verdana, sans-serif; font-size: 8pt; border: black 2px solid; padding: 2px; } #vid [...]]]></description>
			<content:encoded><![CDATA[<p>Create a file index.php and upload it on your server. Run it for testing <img src='http://www.w3code.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).</p>
<blockquote><p><strong>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;YouTube Ripper&lt;/title&gt;<br />
&lt;style&gt;<br />
body, a, a:link, a:visited, a:hover, td {<br />
font-family: verdana, sans-serif;<br />
font-size: 8pt;<br />
color: black;<br />
}<br />
a { font-weight: bold; }<br />
input {<br />
font-family: verdana, sans-serif;<br />
font-size: 8pt;<br />
border: black 2px solid;<br />
padding: 2px;<br />
}<br />
#vid {<br />
width: 500px;<br />
}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;center&gt;<br />
&lt;h1&gt;Youtube ripper&lt;/h1&gt;<br />
&lt;a href=&#8217;index.php&#8217;&gt;Home&lt;/a&gt;<br />
&lt;form action=&#8221;get.php&#8221; method=&#8221;get&#8221; target=&#8221;ifr&#8221;&gt;<br />
Video URL : &lt;input id=&#8221;vid&#8221; type=&#8221;text&#8221; name=&#8221;vid&#8221; /&gt;<br />
&lt;select name=&#8221;mode&#8221;&gt;<br />
&lt;option value=&#8221;1&#8243;&gt;Just Give link&lt;/option&gt;<br />
&lt;option value=&#8221;2&#8243;&gt;Mirror and give link&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;Go!&#8221; /&gt;<br />
&lt;/form&gt;<br />
&lt;table width=&#8221;500&#8243;&gt;&lt;tr&gt;&lt;td&gt;TOS: &lt;br /&gt;Please do not use this to obtain illegal files hosted on youtube. &lt;br /&gt;Mirrors are automatically cleared by the webmaster<br />
frequently, so be sure to download before this happens. &lt;br /&gt;The webmaster has the right to ban you from this server via I.P. address,<br />
ISP, or anything else. &lt;br /&gt;This is provided As-is, so if there are any bugs, or it doesn&#8217;t work for you, live with it, we will<br />
try to fix any bugs so email us. &lt;br /&gt;We are in no way affiliated with YouTube or any of their affiliates.&lt;br /&gt;By using our<br />
service you must agree to these terms.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;<br />
&lt;iframe width=&#8221;500&#8243; frameborder=0 name=&#8221;ifr&#8221; id=&#8221;ifr&#8221;&gt;&lt;/iframe&gt;<br />
&lt;/center&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>create a file get.php</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;YouTube Ripper&lt;/title&gt;<br />
&lt;style&gt;<br />
body, a, a:link, a:visited, a:hover {<br />
font-family: verdana, sans-serif;<br />
font-size: 8pt;<br />
}<br />
input {<br />
font-family: verdana, sans-serif;<br />
font-size: 8pt;<br />
border: black 2px solid;<br />
padding: 2px;<br />
}<br />
#vid {<br />
width: 500px;<br />
}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;?php</p>
<p>set_time_limit(&#8217;31337&#8242;);</p>
<p>// gettube youtube leecher</p>
<p>$regExpPattern = &#8216;/\&#8221;t\&#8221;\: \&#8221;([^\"\s]+)\&#8221;/i&#8217;;</p>
<p>$fData = file_get_contents($_GET['vid']);</p>
<p>preg_match($regExpPattern, $fData, $Params);</p>
<p>//print_r($Params);</p>
<p>$tID = $Params[1];</p>
<p>$vIDS = explode(&#8216;?v=&#8217;,$_GET['vid']);</p>
<p>$vID = $vIDS[1];</p>
<p>echo &#8220;&lt;a href=&#8217;http://www.youtube.com/get_video?video_id=$vID&amp;t=$tID&#8217;&gt;Download Video&lt;/a&gt; &lt;br /&gt;This is a FLV file, so rename it to whatever.flv, and open with an FLV player.&#8221;;</p>
<p>if($_GET['mode']==2) {</p>
<p>$regExpPattern = &#8216;/content\=\&#8221;([^\"\']+)\&#8221;/i&#8217;;</p>
<p>preg_match($regExpPattern, $fData, $Params);</p>
<p>$flName = $Params[1];</p>
<p>$flName = preg_replace(&#8220;/[^a-zA-Z0-9s]/&#8221;, &#8220;_&#8221;, $flName);</p>
<p>srand((double)microtime()*1000000);<br />
$flName = rand(0,100).$flName;</p>
<p>//die($flName);</p>
<p>$flData = file_get_contents(&#8220;http://www.youtube.com/get_video?video_id=$vID&amp;t=$tID&#8221;);</p>
<p>$fp = fopen(&#8220;$flName.flv&#8221;,&#8221;w&#8221;);<br />
fwrite($fp,$flData);<br />
fclose($fp);</p>
<p>echo &#8220;&lt;br /&gt;&lt;a href=&#8217;$flName.flv&#8217;&gt;Download (mirror)&lt;/a&gt;&#8221;;</p>
<p>}</p>
<p>?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt; </strong></p></blockquote>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/php-youtube-grabber/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Scraping websites with PHP cURL under proxy</title>
		<link>http://www.w3code.net/scraping-websites-php-curl-proxy/</link>
		<comments>http://www.w3code.net/scraping-websites-php-curl-proxy/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 21:50:08 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[PHP script]]></category>
		<category><![CDATA[PHP code]]></category>
		<category><![CDATA[PHP cURL]]></category>
		<category><![CDATA[Review script PHP]]></category>
		<category><![CDATA[Script code]]></category>
		<category><![CDATA[Source code]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=1049</guid>
		<description><![CDATA[Scraping websites with PHP cURL is damn easy. Just do it the right way – use a proxy. Here is a simple function that does the job. Simple PHP cURL scraper: &#38;lt;?php function getPage&#40;$proxy, $url, $referer, $agent, $header, $timeout&#41; &#123;$ch = curl_init&#40;&#41;; &#160; curl_setopt&#40;$ch, CURLOPT_URL, $url&#41;; &#160; curl_setopt&#40;$ch, CURLOPT_HEADER, $header&#41;; &#160; curl_setopt&#40;$ch, CURLOPT_RETURNTRANSFER, 1&#41;; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Scraping websites with <a target="_blank" href="http://www.php.net/curl">PHP cURL</a> is damn easy. Just do it the right way – use a proxy. Here is a simple function that does the job.</p>
<p><strong>Simple PHP cURL scraper:</strong></p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="sy0">&amp;</span>lt<span class="sy0">;</span>?php <span class="kw2">function</span> getPage<span class="br0">&#40;</span><span class="re0">$proxy</span><span class="sy0">,</span> <span class="re0">$url</span><span class="sy0">,</span> <span class="re0">$referer</span><span class="sy0">,</span> <span class="re0">$agent</span><span class="sy0">,</span> <span class="re0">$header</span><span class="sy0">,</span> <span class="re0">$timeout</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><span class="re0">$ch</span> <span class="sy0">=</span> <a target="_blank" href="http://www.php.net/curl_init"><span class="kw3">curl_init</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/curl_setopt"><span class="kw3">curl_setopt</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="sy0">,</span> CURLOPT_URL<span class="sy0">,</span> <span class="re0">$url</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/curl_setopt"><span class="kw3">curl_setopt</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="sy0">,</span> CURLOPT_HEADER<span class="sy0">,</span> <span class="re0">$header</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/curl_setopt"><span class="kw3">curl_setopt</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="sy0">,</span> CURLOPT_RETURNTRANSFER<span class="sy0">,</span> 1<span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/curl_setopt"><span class="kw3">curl_setopt</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="sy0">,</span> CURLOPT_PROXY<span class="sy0">,</span> <span class="re0">$proxy</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/curl_setopt"><span class="kw3">curl_setopt</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="sy0">,</span> CURLOPT_HTTPPROXYTUNNEL<span class="sy0">,</span> 1<span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/curl_setopt"><span class="kw3">curl_setopt</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="sy0">,</span> CURLOPT_CONNECTTIMEOUT<span class="sy0">,</span> <span class="re0">$timeout</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/curl_setopt"><span class="kw3">curl_setopt</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="sy0">,</span> CURLOPT_REFERER<span class="sy0">,</span> <span class="re0">$referer</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/curl_setopt"><span class="kw3">curl_setopt</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="sy0">,</span> CURLOPT_USERAGENT<span class="sy0">,</span> <span class="re0">$agent</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$result</span><span class="br0">&#91;</span><span class="st_h">&#8216;EXE&#8217;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <a target="_blank" href="http://www.php.net/curl_exec"><span class="kw3">curl_exec</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$result</span><span class="br0">&#91;</span><span class="st_h">&#8216;INF&#8217;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <a target="_blank" href="http://www.php.net/curl_getinfo"><span class="kw3">curl_getinfo</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$result</span><span class="br0">&#91;</span><span class="st_h">&#8216;ERR&#8217;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <a target="_blank" href="http://www.php.net/curl_error"><span class="kw3">curl_error</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/curl_close"><span class="kw3">curl_close</span></a><span class="br0">&#40;</span><span class="re0">$ch</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">return</span> <span class="re0">$result</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">?<span class="sy0">&amp;</span>gt<span class="sy0">;</span></div>
</li>
</ol>
</div>
</div>
<p><strong>PHP cURL functions used:</strong></p>
<ul>
<li>curl_init – initializes a cURL session.</li>
<li>curl_setopt – sets and option for a cURL transfer.</li>
<li>curl_exec – performs a cURL session.</li>
<li>curl_getinfo – gets information about the last transfer.</li>
<li>curl_error – returns a string containing the last error for the current session.</li>
<li>curl_close – close a cURL session.</li>
</ul>
<p><strong>curl_setopt options used:</strong></p>
<ul>
<li>CURLOPT_URL – the URL to scrap.</li>
<li>CURLOPT_HEADER – inlude/exclude the header?</li>
<li>CURLOPT_RETURNTRANSFER – return the transfer as a string or output it out directly? Use 1, i.e. return.</li>
<li>CURLOPT_PROXY – the HTTP proxy to tunnel request through.</li>
<li>CURLOPT_HTTPPROXYTUNNEL – tunnel through a given HTTP proxy? Use 1, i.e. tunnel.</li>
<li>CURLOPT_CONNECTTIMEOUT – it’s obvious.</li>
<li>CURLOPT_REFERER – header to be used in a HTTP request.</li>
<li>CURLOPT_USERAGENT – “User Agent:” to be used in a HTTP request.</li>
</ul>
<p><strong>Scraper usage: </strong></p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="sy0">&amp;</span>lt<span class="sy0">;</span> ?php</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$result</span> <span class="sy0">=</span> getPage<span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st_h">&#8216;[proxy IP]:[port]&#8216;</span><span class="sy0">,</span> <span class="co1">// use valid proxy</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st_h">&#8216;http://www.google.com/search?q=twitter&#8217;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st_h">&#8216;http://www.google.com/&#8217;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st_h">&#8216;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8&#8242;</span><span class="sy0">,</span>1<span class="sy0">,</span>5<span class="br0">&#41;</span><span class="sy0">;</span>if <span class="br0">&#40;</span><a target="_blank" href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$result</span><span class="br0">&#91;</span><span class="st_h">&#8216;ERR&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Job&#8217;s done! Parse, save, etc.</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// &#8230;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// WTF? Captcha or network problems?</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// &#8230;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">?<span class="sy0">&amp;</span>gt<span class="sy0">;</span></div>
</li>
</ol>
</div>
</div>
<p>Note: <strong>Activate cURL in php.ini if required. </strong></p>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/scraping-websites-php-curl-proxy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Checking proxy script</title>
		<link>http://www.w3code.net/checking-proxy-script/</link>
		<comments>http://www.w3code.net/checking-proxy-script/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 20:43:54 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[PHP script]]></category>
		<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Review script PHP]]></category>
		<category><![CDATA[Script code]]></category>
		<category><![CDATA[Source code]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=1037</guid>
		<description><![CDATA[Finally, the last part of the post. Get ready for some “serious” programming. Include whatismyip.php. Don’t forget to specify URL. Copy getPage function to proxychecker.php or include it as a file. Specify a time limit. Write getProxies() function. Write deleteProxy($proxy) function. Specify badvars.php URL. Specify sleep intervals. Test and fix proxychecker.php. You don’t need to [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, the last part of the post. Get ready for some “serious” programming.</p>
<ol>
<li>Include whatismyip.php. Don’t forget to specify URL.</li>
<li>Copy getPage function to proxychecker.php or include it as a file.</li>
<li>Specify a time limit.</li>
<li>Write getProxies() function.</li>
<li>Write deleteProxy($proxy) function.</li>
<li>Specify badvars.php URL.</li>
<li>Specify sleep intervals.</li>
<li>Test and fix proxychecker.php. You don’t need to upload the script to a server. You can use your PC for testing.</li>
<li>Deploy the script. Don’t use the same host for badvars.php and proxychecker.php.</li>
</ol>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="sy0">&amp;</span>lt<span class="sy0">;</span>?php</div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">/*</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* TODO 1</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* Include whatismyip.php. Don’t forget to specify URL.</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">*/</span><span class="coMULTI">/*</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* TODO 2</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* Copy getPage (http://www.fromzerotoseo.com/scraping-websites-php-curl-proxy/)</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* here or include it as a file.</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">*/</span><a target="_blank" href="http://www.php.net/set_time_limit"><span class="kw3">set_time_limit</span></a><span class="br0">&#40;</span><span class="coMULTI">/* TODO 3 specify a time limit */</span><span class="br0">&#41;</span><span class="sy0">;</span>function getProxies<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">/*</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* TODO 4</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* Load proxies from a file or database.</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* Return array of [IP]:[port] proxies or NULL.</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">*/</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span><span class="kw2">function</span> deleteProxy<span class="br0">&#40;</span><span class="re0">$proxy</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">/*</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* TODO 5</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* Delete $proxy from file/database or</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* mark as &#8216;bad&#8217;.</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">*/</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$whatIsMyIp</span> <span class="sy0">=</span> <span class="kw2">new</span> WhatIsMyIp<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$myIpAddress</span> <span class="sy0">=</span> <span class="re0">$whatIsMyIp</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>getServerIpAddress<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span><a target="_blank" href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$myIpAddress</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">echo</span><span class="br0">&#40;</span><span class="st0">&quot;Can&#8217;t obtain IP address<span class="es1">\n</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/exit"><span class="kw3">exit</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$proxies</span> <span class="sy0">=</span> getProxies<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span><a target="_blank" href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$proxies</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">echo</span><span class="br0">&#40;</span><span class="st0">&quot;Can&#8217;t load proxies<span class="es1">\n</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/exit"><span class="kw3">exit</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">foreach</span> <span class="br0">&#40;</span><span class="re0">$proxies</span> <span class="kw1">as</span> <span class="re0">$proxy</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$result</span> <span class="sy0">=</span> getPage<span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$proxy</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">/*</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* TODO 6</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* Specify badvars.php URL</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">*/</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st_h">&#8216;http://www.google.com/&#8217;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st_h">&#8216;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8&#8242;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">1<span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1">5<span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span><a target="_blank" href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$result</span><span class="br0">&#91;</span><span class="st_h">&#8216;ERR&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span><a target="_blank" href="http://www.php.net/preg_match"><span class="kw3">preg_match</span></a><span class="br0">&#40;</span><span class="st0">&quot;/&quot;</span> <span class="sy0">.</span> <span class="re0">$myIpAddress</span> <span class="sy0">.</span> <span class="st0">&quot;/&quot;</span><span class="sy0">,</span> <span class="re0">$result</span><span class="br0">&#91;</span><span class="st_h">&#8216;EXE&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">deleteProxy<span class="br0">&#40;</span><span class="re0">$proxy</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">/*</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">* Good proxy!</span></div>
</li>
<li class="li1">
<div class="de1"><span class="coMULTI">*/</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">echo</span><span class="br0">&#40;</span><span class="re0">$result</span><span class="br0">&#91;</span><span class="st_h">&#8216;ERR&#8217;</span><span class="br0">&#93;</span> <span class="sy0">.</span> <span class="st_h">&#8216;\n&#8217;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">deleteProxy<span class="br0">&#40;</span><span class="re0">$proxy</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><a target="_blank" href="http://www.php.net/sleep"><span class="kw3">sleep</span></a><span class="br0">&#40;</span><a target="_blank" href="http://www.php.net/rand"><span class="kw3">rand</span></a><span class="br0">&#40;</span><span class="coMULTI">/* TODO 7 [int] */</span><span class="sy0">,</span> <span class="coMULTI">/* [int] */</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">?<span class="sy0">&amp;</span>gt<span class="sy0">;</span></div>
</li>
</ol>
</div>
</div>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/checking-proxy-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IP address checker script</title>
		<link>http://www.w3code.net/ip-address-checker-script/</link>
		<comments>http://www.w3code.net/ip-address-checker-script/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 20:38:53 +0000</pubDate>
		<dc:creator>Script</dc:creator>
				<category><![CDATA[PHP script]]></category>
		<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Review script PHP]]></category>
		<category><![CDATA[Script code]]></category>
		<category><![CDATA[Source code]]></category>

		<guid isPermaLink="false">http://www.w3code.net/?p=1035</guid>
		<description><![CDATA[You need to know your IP address before checking anonymity. If you have only one server it’s not a problem. Hardcode and forget. But what if you have several servers? As I said before, automation is the king. Say thank you to people who cares about us. Grab URL(s) you like, extract IP and be [...]]]></description>
			<content:encoded><![CDATA[<p>You need to know your IP address before checking anonymity. If you have only one server it’s not a problem. Hardcode and forget. But what if you have several servers? As I said before, automation is the king.</p>
<p>Say thank you to people who cares about us. Grab URL(s) you like, extract IP and be happy. The WhatIsMyIp class (whatismyip.php) will help you in the beginning.</p>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="sy0">&amp;</span>lt<span class="sy0">;</span>?php</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">class</span> WhatIsMyIp <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">private</span> <span class="kw2">function</span> extractIpAddress<span class="br0">&#40;</span><span class="re0">$text</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$ip</span> <span class="sy0">=</span> <span class="kw4">NULL</span><span class="sy0">;</span>if <span class="br0">&#40;</span><a target="_blank" href="http://www.php.net/preg_match"><span class="kw3">preg_match</span></a><span class="br0">&#40;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="st0">&quot;/(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/&quot;</span><span class="sy0">,</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$text</span><span class="sy0">,</span> <span class="re0">$matches</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$ip</span> <span class="sy0">=</span> <span class="re0">$matches</span><span class="br0">&#91;</span>0<span class="br0">&#93;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">return</span> <span class="re0">$ip</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">public</span> <span class="kw2">function</span> getServerIpAddress<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$file</span> <span class="sy0">=</span> <a target="_blank" href="http://www.php.net/file_get_contents"><span class="kw3">file_get_contents</span></a><span class="br0">&#40;</span><span class="coMULTI">/*[URL YOU LIKE]*/</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">return</span> <span class="re0">$this</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>extractIpAddress<span class="br0">&#40;</span><span class="re0">$file</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">?<span class="sy0">&amp;</span>gt<span class="sy0">;</span></div>
</li>
</ol>
</div>
</div>
  ]]></content:encoded>
			<wfw:commentRss>http://www.w3code.net/ip-address-checker-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

