<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Webmaster Forum</title>
		<description>Webmaster discussion on numerous topics including Website design, programming, scripting, hosting, server administration, search engines, and operating systems</description>
		<link>http://www.ozzu.com</link>
		<lastBuildDate>Sat, 04 Jul 2009 21:03:02 -0700</lastBuildDate>
				<item>
			<dc:creator>mindfullsilence</dc:creator>
			<pubDate>Fri, 03 Jul 2009 20:17:50 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/like-the-selected-tab-stay-rasied-t98743.html</guid>
			<link>http://www.ozzu.com/programming-forum/like-the-selected-tab-stay-rasied-t98743.html</link>
			<title>I'd like the selected tab to stay rasied</title>
			<description><![CDATA[So I have a navigation bar with an animation. When a user clicks on a navigation item, I want it to stay raised. <br /><br />Heres the navigation bar:<br /><a class="postlink" href="http://xaetrex.net/voltecdesign/ctdrums/navbar.html" rel="nofollow" target="_blank">http://xaetrex.net/voltecdesign/ctdrums/navbar.html</a><br /><br />this is the javascript for the raise effect:<br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb5325" style="font-family: monospace;">&nbsp;<br />$(document).ready(function(){<br />&nbsp;<br />$(&quot;li.navitem&quot;).hover(<br />&nbsp; function () {<br />&nbsp; &nbsp; $(this).animate({ <br />&nbsp; &nbsp; &nbsp; &nbsp; top: &quot;0px&quot;<br />&nbsp; &nbsp; &nbsp; }, 150 );<br />&nbsp; &nbsp; $(this).animate({ <br />&nbsp; &nbsp; &nbsp; &nbsp; top: &quot;10px&quot;<br />&nbsp; &nbsp; &nbsp; }, 50 );<br />&nbsp; }, <br />&nbsp; <br />&nbsp; function () {<br />&nbsp; &nbsp; $(this).animate({ <br />&nbsp; &nbsp; &nbsp; &nbsp; top: &quot;20px&quot;<br />&nbsp; &nbsp; &nbsp; }, 100 );<br />&nbsp; }<br />);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />});<br />&nbsp;<br /></div></p></blockquote><br />when a user clicks on a navbar item, I need it to stick at &quot;top:10px;&quot;<br /><br />How would I implement this?]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 2</description>
		</item>
				<item>
			<dc:creator>CStrauss</dc:creator>
			<pubDate>Fri, 03 Jul 2009 15:01:47 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/like-know-how-this-effect-any-seen-know-t98739.html</guid>
			<link>http://www.ozzu.com/programming-forum/like-know-how-this-effect-any-seen-know-t98739.html</link>
			<title>I like to know how to do this effect any seen or know it?</title>
			<description><![CDATA[I saw this effect on this web site<br /><br /><a class="postlink" href="http://www.videocopilot.net/tutorials/" rel="nofollow" target="_blank">http://www.videocopilot.net/tutorials/</a><br /><br />Where they mouse over the thumbnail and it shows the video clip. Obviously its reading and flv or more likely and swf file and javascript anyone see any tuts or know how to do this they can show me?<br /><br />Thanks]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 1</description>
		</item>
				<item>
			<dc:creator>artcoder</dc:creator>
			<pubDate>Fri, 03 Jul 2009 10:25:41 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-write-longblob-file-t98734.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-write-longblob-file-t98734.html</link>
			<title>PHP to write longblob to file</title>
			<description><![CDATA[I have an image stored in a MySQL table as a &quot;longblob&quot;.  How can I write PHP code to write this data to an image file?]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 2</description>
		</item>
				<item>
			<dc:creator>crazzyDemon</dc:creator>
			<pubDate>Fri, 03 Jul 2009 09:08:26 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/perl-template-toolkit-plugin-for-eclipse-t98733.html</guid>
			<link>http://www.ozzu.com/programming-forum/perl-template-toolkit-plugin-for-eclipse-t98733.html</link>
			<title>perl template toolkit plugin for eclipse</title>
			<description><![CDATA[Hello,<br /><br />who knows is a plugin for eclipse to work with Template-Toolkit?]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 0</description>
		</item>
				<item>
			<dc:creator>gromituk2k</dc:creator>
			<pubDate>Fri, 03 Jul 2009 01:54:03 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/uploading-images-database-help-needed-t98728.html</guid>
			<link>http://www.ozzu.com/programming-forum/uploading-images-database-help-needed-t98728.html</link>
			<title>Uploading images to a database - help needed</title>
			<description><![CDATA[I am trying to upload images to a MySQL database, along with some other data.<br /><br />The HTML page, containing the upload from looks like this:<br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb57254" style="font-family: monospace;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />&lt;title&gt;Untitled Document&lt;/title&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />&lt;form method=&quot;post&quot; action=&quot;insert.php&quot; enctype=&quot;multipart/form-data&quot;&gt;<br />  &lt;p&gt;Your name:&lt;br&gt;<br />  &lt;input type=&quot;text&quot; name=&quot;form_visitor&quot; size=&quot;40&quot;&gt;<br />  &lt;br&gt;Loved ones name:&lt;br&gt;<br />  &lt;input type=&quot;text&quot; name=&quot;form_lovedone&quot; size=&quot;40&quot;&gt;<br />  &lt;input type=&quot;hidden&quot; name=&quot;MAX_FILE_SIZE&quot; value=&quot;1000000&quot;&gt;<br />  &lt;br&gt;File to upload/store in database:&lt;br&gt;<br />  &lt;input type=&quot;file&quot; name=&quot;form_data&quot; size=&quot;40&quot;&gt;<br />  &lt;br&gt;Comments:&lt;br&gt;<br />  &lt;input type=&quot;text&quot; name=&quot;form_comment&quot; size=&quot;50&quot;&gt;<br />  &lt;/p&gt;<br />  &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;submit&quot;&gt;<br />&lt;/form&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /><br /></div></p></blockquote><br /><br />And the PHP file for adding the data is like it:<br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb53315" style="font-family: monospace;">&lt;?php<br />$con = mysql_connect(&quot;localhost&quot;,&quot;user&quot;,&quot;pass&quot;);<br />if (!$con)<br /> {<br /> die(Could not connect:  . mysql_error());<br /> }<br /><br />mysql_select_db(&quot;database_name&quot;, $con);<br /><br />if(!$data = addslashes(@fread(@fopen($dir./.$file, &quot;r&quot;), @filesize($dir./.$file)))){<br /> die(Cannot create $data);<br />}<br /><br />@fclose($dir./.$file); <br /><br />$sql=&quot;INSERT INTO commentbook (visitor , lovedone, bin_data, filename, filesize, filetype, comment, id)<br />VALUES<br />($_POST[form_visitor],$_POST[form_lovedone],$_POST[data],$_POST[form_data_name],$_POST[form_data_size],$_POST[form_data_type],$_POST[form_comment],)&quot;;<br /><br />if (!mysql_query($sql,$con))<br /> {<br /> die(Error:  . mysql_error());<br /> }<br />echo &quot;1 record added&quot;;<br /><br />mysql_close($con)<br />?&gt; <br /></div></p></blockquote><br /><br />I have had the form uploading all data except the image, but currently it is not uploading anything  <img src="http://www.ozzu.com/images/smilies/icon_sad.gif" alt=":(" title="Sad"> <br /><br />Any ideas?]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 1</description>
		</item>
				<item>
			<dc:creator>mindfullsilence</dc:creator>
			<pubDate>Fri, 03 Jul 2009 01:23:24 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/always-wondered-t98727.html</guid>
			<link>http://www.ozzu.com/programming-forum/always-wondered-t98727.html</link>
			<title>always wondered</title>
			<description><![CDATA[What sort of scripting language or database would you use to create login info and website member profiles and whatnot. Not for a forum, but for, say, a gaming site or a <span style="font-style: italic">hosting site</span>  <img src="http://www.ozzu.com/images/smilies/icon_wink.gif" alt=":wink:" title="Wink">]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 2</description>
		</item>
				<item>
			<dc:creator>joebert</dc:creator>
			<pubDate>Thu, 02 Jul 2009 22:52:41 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/replacing-words-with-numbers-t98725.html</guid>
			<link>http://www.ozzu.com/programming-forum/replacing-words-with-numbers-t98725.html</link>
			<title>Replacing Words With Numbers</title>
			<description><![CDATA[Basically it should take &quot;<span style="font-style: italic">tom has twenty-three thousand, one hundred and twelve cats</span>&quot; and give back &quot;<span style="font-style: italic">tom has 23,112 cats</span>&quot;<br /><br />It appears to work with what Ive used to test it, can anyone break it ? <img src="http://www.ozzu.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy"><br /><br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb26601" style="font-family: monospace;">&lt;?php<br />&nbsp;<br />$str = twelve billion people know iPhone has two hundred and thirty thousand, seven hundred and eighty-three apps as well as over one million units sold;<br />&nbsp;<br />function strlen_sort($a, $b)<br />{<br />&nbsp; &nbsp; if(strlen($a) &gt; strlen($b))<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; return -1;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; else if(strlen($a) &lt; strlen($b))<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; return 1;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; return 0;<br />}<br />&nbsp;<br />$keys = array(<br />&nbsp; &nbsp; one =&gt; 1, two =&gt; 2, three =&gt; 3, four =&gt; 4, five =&gt; 5, six =&gt; 6, seven =&gt; 7, eight =&gt; 8, nine =&gt; 9,<br />&nbsp; &nbsp; ten =&gt; 10, eleven =&gt; 11, twelve =&gt; 12, thirteen =&gt; 13, fourteen =&gt; 14, fifteen =&gt; 15, sixteen =&gt; 16, seventeen =&gt; 17, eighteen =&gt; 18, nineteen =&gt; 19,<br />&nbsp; &nbsp; twenty =&gt; 20, thirty =&gt; 30, forty =&gt; 40, fifty =&gt; 50, sixty =&gt; 60, seventy =&gt; 70, eighty =&gt; 80, ninety =&gt; 90,<br />&nbsp; &nbsp; hundred =&gt; 100, thousand =&gt; 1000, million =&gt; 1000000, billion =&gt; 1000000000<br />);<br />&nbsp;<br />&nbsp;<br />preg_match_all(#((?:^|and|,| |-)*(b . implode(b|b, array_keys($keys)) . b))+#i, $str, $tokens);<br />//print_r($tokens); exit;<br />$tokens = $tokens[0];<br />usort($tokens, strlen_sort);<br />&nbsp;<br />foreach($tokens as $token)<br />{<br />&nbsp; &nbsp; $token = trim(strtolower($token));<br />&nbsp; &nbsp; preg_match_all(#(?:(?:and|,| |-)*b . implode(b|b, array_keys($keys)) . b)+#, $token, $words);<br />&nbsp; &nbsp; $words = $words[0];<br />&nbsp; &nbsp; //print_r($words);<br />&nbsp; &nbsp; $num = 0; $total = 0;<br />&nbsp; &nbsp; foreach($words as $word)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; $word = trim($word);<br />&nbsp; &nbsp; &nbsp; &nbsp; $val = $keys[$word];<br />&nbsp; &nbsp; &nbsp; &nbsp; //echo &quot;$valn&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; if(bccomp($val, 100) == -1)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $num = bcadd($num, $val);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; else if(bccomp($val, 100) == 0)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $num = bcmul($num, $val);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; $num = bcmul($num, $val);<br />&nbsp; &nbsp; &nbsp; &nbsp; $total = bcadd($total, $num);<br />&nbsp; &nbsp; &nbsp; &nbsp; $num = 0;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; $total = bcadd($total, $num);<br />&nbsp; &nbsp; echo &quot;$total:$tokenn&quot;;<br />&nbsp; &nbsp; $str = preg_replace(&quot;#b$tokenb#i&quot;, number_format($total), $str);<br />}<br />echo &quot;n$strn&quot;;<br />&nbsp;<br />?&gt;<br /></div></p></blockquote>]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 8</description>
		</item>
				<item>
			<dc:creator>dhoyin</dc:creator>
			<pubDate>Thu, 02 Jul 2009 07:03:41 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/using-php-create-pdf-files-t98712.html</guid>
			<link>http://www.ozzu.com/programming-forum/using-php-create-pdf-files-t98712.html</link>
			<title>Using PHP to create PDF files</title>
			<description><![CDATA[Please can anyone help me with a php script that creates pdf. The pdf content would be based on the input of the user and also the pdf would contain pictures. Please i would be glad to get one like that. Thanks]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 2</description>
		</item>
				<item>
			<dc:creator>satya-prakash</dc:creator>
			<pubDate>Thu, 02 Jul 2009 06:31:40 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/open-source-search-tool-can-work-window-t98706.html</guid>
			<link>http://www.ozzu.com/programming-forum/open-source-search-tool-can-work-window-t98706.html</link>
			<title>Open source search tool, can work on window</title>
			<description><![CDATA[Hi dear<br /><br />I am looking for a search tool for searching in my folders. I tried Editplus search and window search. Editplus search support regex. <br />I need to search for something like this <br />$this-&gt;dataObj-&gt;setValue(currency, ...);<br />or $this-&gt;dataObj-&gt;setCriterion(currency, ..);<br /><br />I tried regular expression search in Editplus. but could not find the result. I am not sure that my search result is not available or expression I have made is incorrect. My be what I am looking for is not there or available in different form.<br /><br />But I thought to <span style="font-weight: bold">find an open source search tool</span>, which can work on window and have some easy to use functionality. I am looking for search within search and OR , AND operator search.<br /><br />Thanks for you reply.]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 2</description>
		</item>
				<item>
			<dc:creator>mindfullsilence</dc:creator>
			<pubDate>Wed, 01 Jul 2009 19:03:51 -0700</pubDate>
			<guid>http://www.ozzu.com/programming-forum/parse-error-t98691.html</guid>
			<link>http://www.ozzu.com/programming-forum/parse-error-t98691.html</link>
			<title>parse error?</title>
			<description><![CDATA[I am receiving this error on a php script&#058;<br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb40247" style="font-family: monospace;">&nbsp;<br />Parse error: parse error in C:USRbinwampdirexample.php on line 11<br />&nbsp;<br /></div></p></blockquote><br /><br />this is line 11:<br /><p>CODE:</p><blockquote style="border:1px solid #000000; padding:5px; background-color:#eeeeee;"><p><div id="cb12101" style="font-family: monospace;">&nbsp;<br />$mail_prefix = A quote request was sent to you from  . $_POST[firstname] .   . $_POST[lastname] . rn &lt;hr /&gt;;<br />&nbsp;<br /></div></p></blockquote><br /><br />Anyone know what this is all about?]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 12</description>
		</item>
			</channel>
</rss>