<?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>Techstroke - Technology Gadgets  Blogging Softwares &#187; PHP</title>
	<atom:link href="http://www.techstroke.com/coding/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techstroke.com</link>
	<description>Technology News Tips &#38; Tricks Social Media Blogging Wordpress</description>
	<lastBuildDate>Sat, 31 Jul 2010 17:17:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Code for Tracing IP of Email in PHP</title>
		<link>http://www.techstroke.com/code-for-tracing-ip-in-php.html</link>
		<comments>http://www.techstroke.com/code-for-tracing-ip-in-php.html#comments</comments>
		<pubDate>Tue, 13 Jul 2010 20:25:56 +0000</pubDate>
		<dc:creator>ankit</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[hacking tips]]></category>
		<category><![CDATA[php coding]]></category>
		<category><![CDATA[trace email]]></category>
		<category><![CDATA[trace ip address]]></category>
		<category><![CDATA[tracert]]></category>
		<category><![CDATA[web tricks]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/code-for-tracing-ip-in-php.html</guid>
		<description><![CDATA[The Code for Tracing IP in PHP is as follows. &#60;?php $image =imagecreate(1,1); $colorblack=imagecolorallocate($image,0,0,0); $colorwhite=imagecolorallocate($image,255,255,255); imagefill($image,0,0,$colorwhite); imagechar($image,1,0,0,&#8221;.&#8221;,$colorblack); header(&#8220;content-type: image/jpeg&#8221;); imagejpeg($image); $to      = &#8216;me11@mailinator.com&#8217;; $subject = &#8220;Email opened &#8220;; $body = $_SERVER['REMOTE_ADDR'].&#8217; &#8216;.$_SERVER['HTTP_USER_AGENT'].&#8217; &#8216;.date(&#8220;M/d/Y_H:i:s&#8221;); $content = &#8220;IP = &#8220;.$body.&#8221; \n &#8220;.$subject.&#8221;\n\n&#8221;; $headers = &#8216;From: admin@mail.com&#8217; . &#8220;\r\n&#8221; . &#8216;Reply-To: admin@mail.com&#8217; . &#8220;\r\n&#8221; . &#8216;X-Mailer: PHP/&#8217; . [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fcode-for-tracing-ip-in-php.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fcode-for-tracing-ip-in-php.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>The Code for Tracing IP in PHP is as follows.</p>
<p><span id="more-1970"></span></p>
<p>&lt;?php</p>
<p>$image =imagecreate(1,1);<br />
$colorblack=imagecolorallocate($image,0,0,0);<br />
$colorwhite=imagecolorallocate($image,255,255,255);<br />
imagefill($image,0,0,$colorwhite);</p>
<p>imagechar($image,1,0,0,&#8221;.&#8221;,$colorblack);<br />
header(&#8220;content-type: image/jpeg&#8221;);<br />
imagejpeg($image);</p>
<p>$to      = &#8216;me11@mailinator.com&#8217;;</p>
<p>$subject = &#8220;Email opened &#8220;;</p>
<p>$body = $_SERVER['REMOTE_ADDR'].&#8217; &#8216;.$_SERVER['HTTP_USER_AGENT'].&#8217; &#8216;.date(&#8220;M/d/Y_H:i:s&#8221;);</p>
<p>$content = &#8220;IP = &#8220;.$body.&#8221; \n &#8220;.$subject.&#8221;\n\n&#8221;;<br />
$headers = &#8216;From: admin@mail.com&#8217; . &#8220;\r\n&#8221; .<br />
&#8216;Reply-To: admin@mail.com&#8217; . &#8220;\r\n&#8221; .<br />
&#8216;X-Mailer: PHP/&#8217; . phpversion();</p>
<p>mail($to, $subject, $content, $headers);</p>
<p>?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/code-for-tracing-ip-in-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fake mail coding in PHP-Send a Fakemail to any person</title>
		<link>http://www.techstroke.com/fake-mail-coding-in-php-send-a-fakemail-to-any-person.html</link>
		<comments>http://www.techstroke.com/fake-mail-coding-in-php-send-a-fakemail-to-any-person.html#comments</comments>
		<pubDate>Thu, 08 Jul 2010 20:48:00 +0000</pubDate>
		<dc:creator>ankit</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Techie Fun]]></category>
		<category><![CDATA[Tips&Tricks]]></category>
		<category><![CDATA[Fake mail coding in PHP]]></category>
		<category><![CDATA[hacking tips]]></category>
		<category><![CDATA[php tricks-php tips]]></category>
		<category><![CDATA[Send a Fakemail to any person]]></category>
		<category><![CDATA[web hacking]]></category>
		<category><![CDATA[windows tip and trick]]></category>
		<category><![CDATA[windows tweaks]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/fake-mail-coding-in-php-send-a-fakemail-to-any-person.html</guid>
		<description><![CDATA[This is the coding for Fake mail in PHP by which you can send a fake mail to any person with any email address. Like as Example: Sender name=Bill Clinton Email = microsoftowner@gmail.com To = yourmail@gmail.com Body = Matter to be Type Subject = Name of the mail like “you win $10000000” &#160; So,you can [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Ffake-mail-coding-in-php-send-a-fakemail-to-any-person.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Ffake-mail-coding-in-php-send-a-fakemail-to-any-person.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>This is the coding for Fake mail in PHP by which you can send a fake mail to any person with any email address.</p>
<p> <span id="more-1888"></span>
<p> Like as Example:</p>
<blockquote><p>Sender name=Bill Clinton</p>
<p>Email = <a href="mailto:microsoftowner@gmail.com">microsoftowner@gmail.com</a></p>
<p>To = <a href="mailto:yourmail@gmail.com">yourmail@gmail.com</a></p>
<p>Body = Matter to be Type</p>
<p>Subject = Name of the mail like “you win $10000000”</p>
</blockquote>
<p>&#160;</p>
<p>So,you can send any fake mail to any person from some other person’s mail.</p>
<p><strong>Coding is:</strong></p>
<p>&lt;?php </p>
<p>$Name = &quot;Fake Sender&quot;; //senders name    <br />$email = &quot;fakesender@anysite.com&quot;; //senders e-mail adress     <br />$recipient = &quot;me11@mailinator.com&quot;; //recipient     <br />$mail_body = &quot;This is a Test mail&#8230;&quot;; //mail body     <br />$subject = &quot;This is the Subject of the Email&quot;; //subject     <br />$header = &quot;From: &quot;. $Name . &quot; &lt;&quot; . $email . &quot;&gt;\r\n&quot;; //optional headerfields     <br />&#160;&#160;&#160; &#8216;Reply-To: webmaster@example.com&#8217; . &quot;\r\n&quot; .     <br />&#160;&#160;&#160; &#8216;X-Mailer: PHP/&#8217; . phpversion(); </p>
<p>mail($recipient, $subject, $mail_body, $header); //mail command <img src='http://www.techstroke.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />     <br />print &quot;The mail has been sent successfully&quot;;     <br />?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/fake-mail-coding-in-php-send-a-fakemail-to-any-person.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Automatically Use Resized Images Instead of Originals Using PHP Script in WordPress</title>
		<link>http://www.techstroke.com/how-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html</link>
		<comments>http://www.techstroke.com/how-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html#comments</comments>
		<pubDate>Tue, 09 Feb 2010 06:42:45 +0000</pubDate>
		<dc:creator>binesh</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress Hacks]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[image metadata]]></category>
		<category><![CDATA[image Resize]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[uploaded image]]></category>
		<category><![CDATA[width image]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/how-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html</guid>
		<description><![CDATA[This script will replace the uploaded image (if bigger than the larger size defined in your settings) by the large image generated by WordPress to save space in your server, and save bandwidth if you link a thumbnail to the original image, like when a lightbox plugin is used. &#160; &#160; &#160; &#160; &#160; Simply [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fhow-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fhow-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.techstroke.com/wp-content/uploads/2010/02/image11.png" ><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="image" border="0" alt="image" align="left" src="http://www.techstroke.com/wp-content/uploads/2010/02/image_thumb11.png" width="208" height="208" /></a></p>
<p><em>This script will replace the uploaded image (if bigger than the larger size defined in your settings) by the large image generated by WordPress to save space in your server, and save bandwidth if you link a thumbnail to the original image, like when a lightbox plugin is used.</em></p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p> <span id="more-1065"></span>
<p>Simply paste the following code on your <em>functions.php</em> file and save it. No other action is needed!</p>
<pre>function replace_uploaded_image($image_data) {
    // if there is no large image : return
    if (!isset($image_data['sizes']['large'])) return $image_data;

    // paths to the uploaded image and the large image
    $upload_dir = wp_upload_dir();
    $uploaded_image_location = $upload_dir['basedir'] . </pre>
<pre>    '/' .$image_data['file'];
    $large_image_location = $upload_dir['path'] .</pre>
<pre>    '/'.$image_data['sizes']['large']['file'];

    // delete the uploaded image
    unlink($uploaded_image_location);

    // rename the large image
    rename($large_image_location,$uploaded_image_location);

    // update image metadata and return them
    $image_data['width'] = $image_data['sizes']['large']['width'];
    $image_data['height'] = $image_data['sizes']['large']['height'];
    unset($image_data['sizes']['large']);

    return $image_data;
}
add_filter('wp_generate_attachment_metadata','replace_uploaded_image');</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/how-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
