<?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>Evil Science &#187; PHP/MySQL/HTML/CSS</title>
	<atom:link href="http://www.evilscience.org/category/php-mysql-html-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.evilscience.org</link>
	<description>Internet, technology, seo, design and general IT things...</description>
	<lastBuildDate>Thu, 24 Dec 2009 11:21:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Database guides and tutorials</title>
		<link>http://www.evilscience.org/database-guides-and-tutorials/</link>
		<comments>http://www.evilscience.org/database-guides-and-tutorials/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 09:34:47 +0000</pubDate>
		<dc:creator>Hellas</dc:creator>
				<category><![CDATA[PHP/MySQL/HTML/CSS]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.evilscience.org/?p=257</guid>
		<description><![CDATA[It looks time is come to start learning about databases. Since my number of sites is starting to grow, I am experiencing oftenly lack of knowledge about databases. I can create mysql databases, make import, export and backups. I can make simple queries from PHP, basically simple stuff, but I want to know more. Detailed [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.evilscience.org/wp-content/uploads/2009/06/database.jpg"><img class="size-thumbnail wp-image-258 alignleft" style="margin-left: 8px; margin-right: 8px;" title="database" src="http://www.evilscience.org/wp-content/uploads/2009/06/database-150x150.jpg" alt="database 150x150 Database guides and tutorials" width="150" height="150" /></a>It looks time is come to start learning about databases. Since my number of sites is starting to grow, I am experiencing oftenly lack of knowledge about databases. I can create mysql databases, make import, export and backups. I can make simple queries from PHP, basically simple stuff, but I want to know more. Detailed information about them, differences, good and bad things between database types, how do they function and work. More details about database architectures, fixing broken databases and why databases even get broken. Currently, I found just a few worthy sites about databases, <a title="database guides" href="http://www.databaseguides.com" target="_blank">database guides</a> is jumping to my eyes, so as <a title="database" href="http://en.wikipedia.org/wiki/Databases" target="_blank">wikipedia database articles</a>. After finishing reading all their articles will start with some practical tutorials. Maybe I should buy some database bible book.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.evilscience.org/database-guides-and-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faux Columns</title>
		<link>http://www.evilscience.org/faux-columns/</link>
		<comments>http://www.evilscience.org/faux-columns/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 13:27:12 +0000</pubDate>
		<dc:creator>Hellas</dc:creator>
				<category><![CDATA[PHP/MySQL/HTML/CSS]]></category>
		<category><![CDATA[cheat]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[faux columns]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[same heigh columns]]></category>
		<category><![CDATA[trick]]></category>

		<guid isPermaLink="false">http://www.evilscience.org/?p=118</guid>
		<description><![CDATA[Many webmasters are finding themself in problem while working
with css that columns in their design are not stretching until bottom.
It basicaly means that if you have 2 columns and one is shorter for example 300 px and second 800 then this first one will not be streched to appropriate height and you will have another [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Many webmasters are finding themself in problem while working<br />
with css that columns in their design are not stretching until bottom.<br />
It basicaly means that if you have 2 columns and one is shorter for example 300 px and second 800 then this first one will not be streched to appropriate height and you will have another color on rest of 500 px in first columns.</p>
<p>However there is simple cheat that overcome this problem.<br />
Cheat is called Faux columns. You will basicly create appropriate image<br />
and tile it verticaly behind your div you want to stretch and behind body.<span id="more-118"></span>Detailed text about faux columns you can find well explained here:<br />
<a href="http://www.alistapart.com/articles/fauxcolumns/" target="_blank">http://www.alistapart.com/articles/fauxcolumns/</a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.evilscience.org/faux-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Watermarking Script in PHP</title>
		<link>http://www.evilscience.org/simple-watermarking-script-in-php/</link>
		<comments>http://www.evilscience.org/simple-watermarking-script-in-php/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 15:06:45 +0000</pubDate>
		<dc:creator>Hellas</dc:creator>
				<category><![CDATA[PHP/MySQL/HTML/CSS]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[watermark]]></category>

		<guid isPermaLink="false">http://www.evilscience.org/?p=48</guid>
		<description><![CDATA[Recently i needed to modify some script and add watermark functionality. I googled and found few solutions, but this was most easiest for me to implement. Here is the simple php script for watermarking images.  You will need to create watermark.gif transparent image in photoshop.
&#60;br /&#62;
&#60;?php&#60;br /&#62;
// this script creates a watermarked image from [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Recently i needed to modify some script and add watermark functionality. I googled and found few solutions, but this was most easiest for me to implement. Here is the simple php script for watermarking images.  You will need to create watermark.gif transparent image in photoshop.<span id="more-48"></span></p>
<pre class="brush: php">&lt;br /&gt;
&lt;?php&lt;br /&gt;
// this script creates a watermarked image from an image file - can be a .jpg .gif or .png file&lt;br /&gt;
// where watermark.gif is a mostly transparent gif image with the watermark - goes in the same directory as this script&lt;br /&gt;
// where this script is named watermark.php&lt;br /&gt;
// call this script with an image tag&lt;br /&gt;
// &lt;img src=&quot;watermark.php?path=imagepath&quot;&gt; where path is a relative path such as subdirectory/image.jpg&lt;br /&gt;
$imagesource =  $_GET[&#039;path&#039;];&lt;br /&gt;
$watermarkPath = $_GET[&#039;watermark&#039;];&lt;br /&gt;
$filetype = substr($imagesource,strlen($imagesource)-4,4);&lt;br /&gt;
$filetype = strtolower($filetype);&lt;br /&gt;
$watermarkType = substr($watermarkPath,strlen($watermarkPath)-4,4);&lt;br /&gt;
$watermarkType = strtolower($watermarkType);&lt;/p&gt;
&lt;p&gt;    if($filetype == &quot;.gif&quot;)&lt;br /&gt;
$image = @imagecreatefromgif($imagesource);&lt;br /&gt;
else&lt;br /&gt;
if($filetype == &quot;.jpg&quot; || $filetype == &quot;jpeg&quot;)&lt;br /&gt;
$image = @imagecreatefromjpeg($imagesource);&lt;br /&gt;
else&lt;br /&gt;
if($filetype == &quot;.png&quot;)&lt;br /&gt;
$image = @imagecreatefrompng($imagesource);&lt;br /&gt;
else&lt;br /&gt;
die();  &lt;/p&gt;
&lt;p&gt;    if(!$image)&lt;br /&gt;
die();&lt;/p&gt;
&lt;p&gt;    if($watermarkType == &quot;.gif&quot;)&lt;br /&gt;
$watermark = @imagecreatefromgif($watermarkPath);&lt;br /&gt;
else&lt;br /&gt;
if($watermarkType == &quot;.png&quot;)&lt;br /&gt;
$watermark = @imagecreatefrompng($watermarkPath);&lt;br /&gt;
else&lt;br /&gt;
die();&lt;/p&gt;
&lt;p&gt;    if(!$watermark)&lt;br /&gt;
die();&lt;/p&gt;
&lt;p&gt;    $imagewidth = imagesx($image);&lt;br /&gt;
$imageheight = imagesy($image);&lt;br /&gt;
$watermarkwidth =  imagesx($watermark);&lt;br /&gt;
$watermarkheight =  imagesy($watermark);&lt;br /&gt;
$startwidth = (($imagewidth - $watermarkwidth)/2);&lt;br /&gt;
$startheight = (($imageheight - $watermarkheight)/2);&lt;br /&gt;
imagecopy($image, $watermark,  $startwidth, $startheight, 0, 0, $watermarkwidth, $watermarkheight);&lt;br /&gt;
imagejpeg($image);&lt;br /&gt;
imagedestroy($image);&lt;br /&gt;
imagedestroy($watermark);&lt;br /&gt;
?&gt;&lt;br /&gt;
</pre>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.evilscience.org/simple-watermarking-script-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upload from URL &#8211; Copy From URL &#8211; Transload &#8211; Script</title>
		<link>http://www.evilscience.org/upload-from-url-copy-from-url-transload-script/</link>
		<comments>http://www.evilscience.org/upload-from-url-copy-from-url-transload-script/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 12:22:01 +0000</pubDate>
		<dc:creator>Hellas</dc:creator>
				<category><![CDATA[PHP/MySQL/HTML/CSS]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[copy from link]]></category>
		<category><![CDATA[copy from url]]></category>
		<category><![CDATA[transload]]></category>

		<guid isPermaLink="false">http://www.evilscience.org/?p=12</guid>
		<description><![CDATA[Well, beacuse my upload speed is to slow i tried to find solution how to copy files from some url to my server, or another words from one server on internet to space on my server. I found this php script which works fine and i am going to copy some favorite mp3&#8217;s to my [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Well, beacuse my upload speed is to slow i tried to find solution how to copy files from some url to my server, or another words from one server on internet to space on my server. I found this php script which works fine and i am going to copy some favorite mp3&#8217;s to my reseller host</p>
<p>Feel free to use this code (i cant credit it because i dont know who is owner and also think that someone who know php can easy write this):<span id="more-12"></span></p>
<p>note: this would be probably big security risk on your server.<br />
in the first text box paste complete url of wished file and in second only name of file with extension. your file will be saved in script folder under chosen name&#8230;</p>
<p>Imageshack call this transload.</p>
<p>Here is the code. </p>
<pre class="brush: php">
&lt;?php
if ($_GET[xfer]) {
if ($_POST[from] == &quot;&quot;) {
print &quot;You forgot to enter a url.&quot;;
} else {
copy(&quot;$_POST[from]&quot;, &quot;$_POST[to]&quot;);
$size = round((filesize($_POST[to])/1000000), 3);
print &quot;transfer complete.&lt;br&gt;
&lt;a&gt;&lt;a href=\&quot;$_POST[from]\&quot;&gt;$_POST[from]&lt;/a&gt;&lt;br&gt;
&lt;a&gt;&lt;a href=\&quot;$_POST[to]\&quot;&gt;$_POST[to]&lt;/a&gt; : $size MB&quot;;
}
} else {
print &quot;&lt;form action=\&quot;$PHP_SELF?xfer=true\&quot; method=post&gt;
from(http://): &lt;input name=from&gt;&lt;br&gt;
to(filename): &lt;input name=to&gt;&lt;br&gt;
&lt;input type=submit value=\&quot;transload\&quot;&gt;&quot;;
}
?&gt;
</pre>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.evilscience.org/upload-from-url-copy-from-url-transload-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
