<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>PHP Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/Tag/1703/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to PHP.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 17:06:59 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Installing and Running Apache Server and PHP Script Pages - 14 Tutorials</title>
      <link>http://www.programmersheaven.com/link/16123-Installing+and+Running+Apache+Server+and+PHP+Script+Pages+-+14+Tutorials/info.aspx</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/karl_vi/"&gt;karl_vi&lt;/a&gt; submitted a new &lt;a href="http://www.programmersheaven.com/link/16123-Installing+and+Running+Apache+Server+and+PHP+Script+Pages+-+14+Tutorials/info.aspx"&gt;link&lt;/a&gt;.&lt;/p&gt;A collection of 14 tutorials on Apache and PHP installation and configuration covering: How to download and install Apache 2.x and PHP 5; How to start Apache server; How to publish HTML documents; How to set PATH variable for PHP; How to create php.ini; How to configure Apache to use PHP as CGI; etc</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/link/16123-Installing+and+Running+Apache+Server+and+PHP+Script+Pages+-+14+Tutorials/info.aspx</guid>
      <pubDate>Thu, 11 Aug 2011 19:37:52 -0700</pubDate>
    </item>
    <item>
      <title>Re: postal/zip codes to latitude/longitude?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/422214/422505/ReadMessage.aspx#422505</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/pseudocoder/"&gt;pseudocoder&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/422214/422505/ReadMessage.aspx#422505"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;You might try &lt;a href="http://www.boutell.com/zipcodes/"&gt;http://www.boutell.com/zipcodes/&lt;/a&gt; and download the data file, add it to a database, and then pull the lat/long when you query a zipcode.  If you don't have a db, you could probably do the same with a flat file.&lt;br /&gt;
&lt;br /&gt;
HTH&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/422214/422505/ReadMessage.aspx#422505</guid>
      <pubDate>Wed, 16 Mar 2011 23:44:52 -0700</pubDate>
    </item>
    <item>
      <title>Re: If condition for moving to another page</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/422318/422504/ReadMessage.aspx#422504</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/pseudocoder/"&gt;pseudocoder&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/422318/422504/ReadMessage.aspx#422504"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;header() is a really picky function; if you have any browser output at all before calling it, you won't get anything - that includes any files that you "require" or "include".  Check that first.&lt;br /&gt;
&lt;br /&gt;
Another thing to try is the identity operator.  if($call_type === 'Incoming') { ... }&lt;br /&gt;
&lt;br /&gt;
One last thing is try outputting a string of some kind from within your if/else if/else structure. If you see your output, then header() is *probably* not liking something - browser output, stray new line at the end of a file, etc. &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/422318/422504/ReadMessage.aspx#422504</guid>
      <pubDate>Wed, 16 Mar 2011 23:40:13 -0700</pubDate>
    </item>
    <item>
      <title>Re: How to create listview in a web page?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/422205/422502/ReadMessage.aspx#422502</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/pseudocoder/"&gt;pseudocoder&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/422205/422502/ReadMessage.aspx#422502"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
One thing you might try is using a scrolling div within a table&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;table&amp;gt;
   &amp;lt;th&amp;gt;ID&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Age&amp;lt;/th&amp;gt;
   &amp;lt;tr&amp;gt;
      &amp;lt;td&amp;gt;
         &amp;lt;div style="height: 110px; overflow: auto"&amp;gt;
            &amp;lt;table&amp;gt;
               &amp;lt;?php
                  $res = mysql_query("select * from Student_Info");
                  if(mysql_num_rows($res) &amp;gt; 0) {
                     while($row = mysql_fetch_assoc($res)) {
                        echo "&amp;lt;tr&amp;gt;" .
                             "&amp;lt;td&amp;gt;" . $row['id'] . "&amp;lt;/td&amp;gt;" .
                             "&amp;lt;td&amp;gt;" . $row['name'] . "&amp;lt;/td&amp;gt;" .
                             "&amp;lt;td&amp;gt;" . $row['age'] . "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;";
                     }
                  }
               ?&amp;gt;
            &amp;lt;/table&amp;gt;
         &amp;lt;/div&amp;gt;
      &amp;lt;/td&amp;gt;
   &amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
It's super late for me, but hopefully it's valid code... my eyeballs are blurry.  :D  I didn't do any formatting of the table(s), but maybe something like that.                  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/422205/422502/ReadMessage.aspx#422502</guid>
      <pubDate>Wed, 16 Mar 2011 23:32:35 -0700</pubDate>
    </item>
    <item>
      <title>postal/zip codes to latitude/longitude?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/422214/422214/ReadMessage.aspx#422214</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/422214/422214/ReadMessage.aspx#422214"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
How would you use PHP to convert a given postal code or zip code to latitude and longitude?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/422214/422214/ReadMessage.aspx#422214</guid>
      <pubDate>Sun, 06 Mar 2011 22:59:03 -0700</pubDate>
    </item>
    <item>
      <title>PHP and Database Question</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/421771/421771/ReadMessage.aspx#421771</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Codeisle/"&gt;Codeisle&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/421771/421771/ReadMessage.aspx#421771"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I'm working on this PHP script and I have a problem I'm trying to avoid: keeping database record accuracy, especially on a website with many active users. For example, keeping the number of entries into a newsletter database limited to 100 emails.&lt;br /&gt;
&lt;br /&gt;
I assume that, theoretically, several 1000 people could enter their email and press submit on a form at around the same time, so doing a check for entry count in the database may be inaccurate. The check may be untrue, because someone else (user b) could be added to the database after a check (for user count) and before an update (adding user a). I thought of using optimistic locking as a solution. But the way I understand it, with optimistic locking, I may have to display an error if the data was previously updated by another user submission (checking the timestamp). An error message is not very desirable for the end user, so I thought of this pseudocode using the idea of optimistic locking but without an error message everytime the timestamp has changed:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
sub adduser(tries) {

if all tries are exhausted {

display error 

} else {

check if entries are less than the max defined in the database

if max was reached {

display a message to user informing them no more entries may be submitted

} else {

get current timestamp

...do stuff

check timestamp with one stored in the database

If timestamp was changed by another submission before the update { 

call adduser(tries-1) (recursively, to hopefully get a timestamp that is unaltered)

} else {

add user's email to list in db

update timestamp in the database

display a message telling the user that the submission was successful
}
}
}
&lt;/pre&gt;&lt;br /&gt;
This is just a basic idea I had (I know a lot is missing from the code, but my only concern is keeping the count under control). &lt;br /&gt;
&lt;br /&gt;
Does anyone think this is a solid solution (or that I'm at least on the right track), or is there a better way to deal with this?</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/421771/421771/ReadMessage.aspx#421771</guid>
      <pubDate>Tue, 15 Feb 2011 15:59:27 -0700</pubDate>
    </item>
    <item>
      <title>Re: I need help on getting my PHP Login/SignUp script to my website</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/421510/421534/ReadMessage.aspx#421534</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/stephen_sween/"&gt;stephen_sween&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/421510/421534/ReadMessage.aspx#421534"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Its sounds like you havent put any connection to the database code on the page! or its wrong! If you have no connection code reply back and will be able to help!&lt;br /&gt;
&lt;br /&gt;
Stephen&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/421510/421534/ReadMessage.aspx#421534</guid>
      <pubDate>Sun, 06 Feb 2011 12:21:08 -0700</pubDate>
    </item>
    <item>
      <title>Re: Add code for decimal places</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/419859/421479/ReadMessage.aspx#421479</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/stephen_sween/"&gt;stephen_sween&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/419859/421479/ReadMessage.aspx#421479"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hi your almost there!&lt;br /&gt;
&lt;br /&gt;
number_format($num,'2','.'.'');&lt;br /&gt;
&lt;br /&gt;
This will print out the result you want!&lt;br /&gt;
&lt;br /&gt;
Stephen&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/419859/421479/ReadMessage.aspx#421479</guid>
      <pubDate>Thu, 03 Feb 2011 18:07:15 -0700</pubDate>
    </item>
    <item>
      <title>Re: Making a URL Redirect</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/419955/421478/ReadMessage.aspx#421478</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/stephen_sween/"&gt;stephen_sween&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/419955/421478/ReadMessage.aspx#421478"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hello&lt;br /&gt;
 Not sure what you mean but if your talking about a log in then when the login is correct you can us this to redirect to a page.&lt;br /&gt;
&lt;br /&gt;
header("Location: myaccount.php");&lt;br /&gt;
 &lt;br /&gt;
Then use cookies or sessions to find who it is!&lt;br /&gt;
&lt;br /&gt;
Just dont put it after &amp;lt;html&amp;gt; otherwise it want redirect! Better on a empty php page with no html!&lt;br /&gt;
&lt;br /&gt;
Hope this helps!&lt;br /&gt;
&lt;br /&gt;
Stephen&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/419955/421478/ReadMessage.aspx#421478</guid>
      <pubDate>Thu, 03 Feb 2011 18:03:45 -0700</pubDate>
    </item>
    <item>
      <title>I have a set of mysql results I want to create a new table row with!</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/421443/421443/ReadMessage.aspx#421443</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/stephen_sween/"&gt;stephen_sween&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/421443/421443/ReadMessage.aspx#421443"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;This is probely a realy easy answer but i have been serching for a few days for an answer but unsucessfuly so I have posted for an answer! The quicker the better and thanks for any reading!&lt;br /&gt;
 &lt;br /&gt;
 Problem! I have a while loop that loops through mysql database table and i have a list of numbers and for every say 5 or so results I want to put them on a new line on a table!&lt;br /&gt;
 &lt;br /&gt;
 Code so far:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;table&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;?
  $q4 = "SELECT * FROM tblnewgameitem WHERE game_id = $row2[game_id] ORDER BY 'game_number' ";
       $r4 = mysql_query($q4);
	
         while($row3 = mysql_fetch_array($r4))
	   {
	      
	   ?&amp;gt;
	     &amp;lt;td&amp;gt;
	     &amp;lt;?
	       if($row3['user_email'] == "")
	       { 
	       ?&amp;gt; 
	        
	          
	           &amp;lt;form action="" method="POST"&amp;gt;
	          &amp;lt;input type="hidden" name="game_id" value="&amp;lt;?echo $row2['game_id'];?&amp;gt;"&amp;gt;
	          &amp;lt;input type="hidden" name="num" value="&amp;lt;? echo $row3['game_number']; ?&amp;gt;"&amp;gt;
                    &amp;lt;input type="submit" value="&amp;lt;?echo $row3['game_number'];?&amp;gt;" name="submit"&amp;gt;
		&amp;lt;/form&amp;gt;
	        
	      
	      
                   		      
	       &amp;lt;?
	  }
	       else
	       {
	      echo " ".$row3['game_number']." ";
	       }
	
	
	       ?&amp;gt;
	       &amp;lt;/td&amp;gt;
	       &amp;lt;?
	   }
	
	   ?&amp;gt;
	   &amp;lt;/tr&amp;gt;
	   &amp;lt;/table&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
It prints out in one row but i want ever so many rows to print out on a new row!&lt;br /&gt;
&lt;br /&gt;
I have tryed for loops etc and nothing works I came close onece but the top line the last number was put on the next line which is no good for me!&lt;br /&gt;
&lt;br /&gt;
Example print out:&lt;br /&gt;
&lt;br /&gt;
1 2 3 4 5 6 7 8 9 10&lt;br /&gt;
&lt;br /&gt;
Example of what I want it to do:&lt;br /&gt;
&lt;br /&gt;
1 2 3 4 5&lt;br /&gt;
6 7 8 9 10&lt;br /&gt;
&lt;br /&gt;
Like i say its probly somthing realy simple iam missing but please help me!&lt;br /&gt;
&lt;br /&gt;
Thank You!&lt;br /&gt;
&lt;br /&gt;
Stephen&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/421443/421443/ReadMessage.aspx#421443</guid>
      <pubDate>Wed, 02 Feb 2011 12:50:49 -0700</pubDate>
    </item>
    <item>
      <title>Re: General</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/421030/421043/ReadMessage.aspx#421043</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/pseudocoder/"&gt;pseudocoder&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/421030/421043/ReadMessage.aspx#421043"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Dunno, but they can be downloaded from php.net&lt;br /&gt;
&lt;a href="http://php.net/downloads.php"&gt;http://php.net/downloads.php&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/421030/421043/ReadMessage.aspx#421043</guid>
      <pubDate>Tue, 18 Jan 2011 14:02:20 -0700</pubDate>
    </item>
    <item>
      <title>Sessions in regard to domain</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/420479/420479/ReadMessage.aspx#420479</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Cvele/"&gt;Cvele&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/420479/420479/ReadMessage.aspx#420479"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hi!&lt;br /&gt;
&lt;br /&gt;
I got following problem.&lt;br /&gt;
My PHP session is not the same for &lt;strong&gt;mysite.com&lt;/strong&gt; and &lt;strong&gt;www.mysite.com&lt;/strong&gt;. Ie, when user logs in to &lt;strong&gt;www.mysite.com&lt;/strong&gt;, he is not automatically logged in to &lt;strong&gt;mysite.com&lt;/strong&gt; and vice-versa.&lt;br /&gt;
&lt;br /&gt;
I've tried using following code without any success:&lt;br /&gt;
&lt;hr /&gt;&lt;br /&gt;
&lt;em&gt;session_set_cookie_params(0 , '/', '.mysite.com');&lt;br /&gt;
session_start();&lt;/em&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;br /&gt;
&lt;br /&gt;
... as well as:&lt;br /&gt;
&lt;hr /&gt;&lt;br /&gt;
&lt;em&gt;ini_set('session.cookie_domain', '.mysite.com');&lt;br /&gt;
session_start();&lt;/em&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;br /&gt;
&lt;br /&gt;
... and as well as:&lt;br /&gt;
&lt;hr /&gt;&lt;br /&gt;
&lt;em&gt;ini_set('session.cookie_domain', (strpos($_SERVER['HTTP_HOST'],'.') !== false) ? $_SERVER['HTTP_HOST'] : '');&lt;br /&gt;
session_start();&lt;/em&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;br /&gt;
&lt;br /&gt;
So, after trying to convince my host company to deal with this in &lt;em&gt;php.ini&lt;/em&gt;, I am left without options known to me.&lt;br /&gt;
&lt;br /&gt;
How do I deal with this?</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/420479/420479/ReadMessage.aspx#420479</guid>
      <pubDate>Fri, 24 Dec 2010 05:55:40 -0700</pubDate>
    </item>
    <item>
      <title>Super Gallery Script</title>
      <link>http://www.programmersheaven.com/download/56538/download.aspx</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/softbiz/"&gt;softbiz&lt;/a&gt; submitted a new &lt;a href="http://www.programmersheaven.com/download/56538/download.aspx"&gt;file&lt;/a&gt;.&lt;/p&gt;SUPER Gallery Script (SEO + Designer will sell images option) is a wonderful platform for your dynamic image gallery. SUPER Image gallery not just creates an image gallery dynamically but also provides keyword/category search options, sorting options, image rating, multi-lingual support etc. In addition to this, it also gives you option to sell your images online (with different prices for different resolutions) and get paid via paypal.  It is user friendly and has a good looking professional design, 3 beautiful themes,  quick installation, Full web based admin panel, Quick  Multiple Image Uploading using comma separated file, Full control over content, Quick stats,  SPAM protection, Sell your images, 8 FREE machine translated language files, FREE Technical Support  and lots more. And additional features to save bandwidth costs, get free MAX search engine traffic, image hierarchy, know your site popularity, Smart Bar, Enhanced security, clean up routines and lots more.All this makes our gallery script a special photo gallery script. A perfect tool. Check Full Free online demo now! Do not settle for anything less than the best.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/download/56538/download.aspx</guid>
      <pubDate>Sat, 04 Dec 2010 14:11:40 -0700</pubDate>
    </item>
    <item>
      <title>Re: Programmers training</title>
      <link>http://www.programmersheaven.com/mb/internet/396638/420030/ReadMessage.aspx#420030</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/internet/396638/420030/ReadMessage.aspx#420030"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/internet/Board.aspx"&gt;Internet Development&lt;/a&gt; forum.&lt;/p&gt;I assume you know how to write your own HTML.  If not, you have to learn that first.  CSS and a little JavaScript would be helpful eventually but not needed to move on to the next learning steps.&lt;br /&gt;
&lt;br /&gt;
Use PHP and MySQL because they are free and widely available.&lt;br /&gt;
&lt;br /&gt;
Follow through some w3schools.com tutorials to study PHP, MySQL, and get that stuff installed on your computer.  Get Apache HTTP Server installed on your computer along with PHP and MySQL.  This will help you test and debug your practice projects as you learn.&lt;br /&gt;
&lt;br /&gt;
Learning PHP and MySQL can take a while but nothing worth having comes without hard work.&lt;br /&gt;
&lt;br /&gt;
Eventually, publish them to a free or paid web hosting service so they can be shown to potential employers and made available to the general public.&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/internet/396638/420030/ReadMessage.aspx#420030</guid>
      <pubDate>Wed, 01 Dec 2010 12:53:07 -0700</pubDate>
    </item>
    <item>
      <title>Search Users from Twitter using PHP</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/419879/419879/ReadMessage.aspx#419879</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/G.Manivannan/"&gt;G.Manivannan&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/419879/419879/ReadMessage.aspx#419879"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hai,&lt;br /&gt;
I am doing application where I have to search the users from twitter using PHP. I have already done the search for searching in tweets. For example click the following link &lt;br /&gt;
&lt;a href="http://search.twitter.com/search.atom?q=harish"&gt;http://search.twitter.com/search.atom?q=harish&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The above link is to search the word "harish" in all tweets and display top 15 tweets.&lt;br /&gt;
&lt;br /&gt;
Like this I want an API which will search the given keyword in usernames only. for Example, If the search keyword is "harish" then the result should be the usernames with harish and its latest tweet. Can anybody help to solve this issue?. Thanks in advance &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
G.Manivannan, M.Sc.,[IT],&lt;br /&gt;
Programmer,&lt;br /&gt;
Bangalore.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/419879/419879/ReadMessage.aspx#419879</guid>
      <pubDate>Tue, 23 Nov 2010 05:59:03 -0700</pubDate>
    </item>
    <item>
      <title>Re: add code for font size under php echo code</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/419636/419649/ReadMessage.aspx#419649</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/pseudocoder/"&gt;pseudocoder&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/419636/419649/ReadMessage.aspx#419649"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;&lt;pre class="sourcecode"&gt;
&amp;lt;table&amp;gt;
&amp;lt;tbody&amp;gt;
&amp;lt;th style="font-family: arial; font-size: 18pt"&amp;gt;header text&amp;lt;/th&amp;gt;
...
&amp;lt;/tbody&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Have you tried something like that?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/419636/419649/ReadMessage.aspx#419649</guid>
      <pubDate>Thu, 11 Nov 2010 11:08:58 -0700</pubDate>
    </item>
    <item>
      <title>Re: Class calling itself?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/418699/418950/ReadMessage.aspx#418950</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mac_doggie/"&gt;mac_doggie&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/418699/418950/ReadMessage.aspx#418950"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;sizeof($tags &amp;gt; 1) should be: sizeof($tags) &amp;gt; 1&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
-mac-&lt;br /&gt;
mailto:mac_doggie@hotmail.com&lt;br /&gt;
the Netherlands...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/418699/418950/ReadMessage.aspx#418950</guid>
      <pubDate>Mon, 04 Oct 2010 14:51:08 -0700</pubDate>
    </item>
    <item>
      <title>Re: getdate() always returning 0 for the day?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/418872/418949/ReadMessage.aspx#418949</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mac_doggie/"&gt;mac_doggie&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/418872/418949/ReadMessage.aspx#418949"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;To get the weekday of the first of the moth you could also use: &lt;br /&gt;
&lt;pre class="sourcecode"&gt;
$startday = date("w", strtotime("01-".date("m-Y")));
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Don't need to make a timestamp with mktime this way... Very handy function strtotime() it converts a string to a timestamp...&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
-mac-&lt;br /&gt;
mailto:mac_doggie@hotmail.com&lt;br /&gt;
the Netherlands...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/418872/418949/ReadMessage.aspx#418949</guid>
      <pubDate>Mon, 04 Oct 2010 13:54:50 -0700</pubDate>
    </item>
    <item>
      <title>Re: how to view files uploaded in mysql?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/418803/418897/ReadMessage.aspx#418897</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/418803/418897/ReadMessage.aspx#418897"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/418803/418897/ReadMessage.aspx#418897</guid>
      <pubDate>Thu, 30 Sep 2010 00:46:18 -0700</pubDate>
    </item>
    <item>
      <title>getdate() always returning 0 for the day?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/418872/418872/ReadMessage.aspx#418872</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Sephiroth/"&gt;Sephiroth&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/418872/418872/ReadMessage.aspx#418872"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Alright, I am trying to get the day of the week that the month started on so I can produce a PHP-based calendar for a site I am developing. For some reason however, "getdate()" is always forcing "wday" to zero. It's driving me insane because after hours of searching, I have come across several other calendars that use the exact same code that I use and they work. I don't get why this is happening, could somebody explain this, or is it another PHP anomaly?&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
$CurMonth = (date("n") - 1);
$CurYear = date("Y");
$Timestamp = mktime(0, 0, 0, $CurMonth, 1, $CurYear);
$MaxDay = date("t", $Timestamp);
$ThisMonth = getdate($Timestamp);
$StartDay = $ThisMonth['wday'];
&lt;/pre&gt;&lt;br /&gt;
Thanks for any help offered.&lt;br /&gt;
&lt;br /&gt;
*EDIT*&lt;br /&gt;
&lt;br /&gt;
I figured it out. Apparently the "mktime()" function in PHP doesn't adhere to regular coding practices, and the month range is 1-12, not 0-11. I modified the code as shown below and it works properly now.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
$Timestamp = mktime(0, 0, 0, ($CurMonth + 1), 1, $CurYear);
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
-&lt;em&gt;&lt;strong&gt;&lt;span style="color: Red;"&gt;S&lt;/span&gt;&lt;span style="color: Purple;"&gt;e&lt;/span&gt;&lt;span style="color: Blue;"&gt;p&lt;/span&gt;&lt;span style="color: Green;"&gt;h&lt;/span&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;&lt;span style="color: Purple;"&gt;r&lt;/span&gt;&lt;span style="color: Blue;"&gt;o&lt;/span&gt;&lt;span style="color: Green;"&gt;t&lt;/span&gt;&lt;span style="color: Red;"&gt;h&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/418872/418872/ReadMessage.aspx#418872</guid>
      <pubDate>Tue, 28 Sep 2010 09:01:45 -0700</pubDate>
    </item>
    <item>
      <title>Class calling itself?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/418699/418699/ReadMessage.aspx#418699</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Sephiroth/"&gt;Sephiroth&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/418699/418699/ReadMessage.aspx#418699"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Alright, I'm developing an ultra-lightweight PHP class to parse basic XHTML templates and have hit a snag. Some of my templates include other templates to reduce file-size and repetitive code, as well as allowing things like menus to be modified by editing one single file instead of a menu on every page.&lt;br /&gt;
&lt;br /&gt;
What happens is when my template-parser attempts to replace tags in a sub-template, the page never loads at all. It just completely stops working. I get nothing from the server, even if I wrap every line with "echo" statements.&lt;br /&gt;
&lt;br /&gt;
Here is the function in question:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
  //Public method to replace all tags on the page with their respective data
  public function ReplaceTags($Tags = array())
  {
    $SubPage = new Page(NULL);

    if(sizeof($Tags &amp;gt; 0))
    {
      foreach($Tags as $Tag =&amp;gt; $Data)
      {
        //$Data = (file_exists($Data)) ? $this-&amp;gt;Parse($Data) : $Data;
        if(file_exists($Data))
        {
          if($SubPage-&amp;gt;LoadTemplate($Data))
          {
            if($SubPage-&amp;gt;ReplaceTags($Tags))
              $Data = $SubPage-&amp;gt;OutputBuffer($Data);
            else
              $Data = "&amp;lt;p&amp;gt;Failed to replace tags in template: " . $Data . "&amp;lt;/p&amp;gt;";
          }
          else
            $Data = "&amp;lt;p&amp;gt;Failed to load sub-template: " . $Data . "&amp;lt;/p&amp;gt;";
        } 

        $this-&amp;gt;TempPage = eregi_replace("{" . $Tag . "}", $Data, $this-&amp;gt;TempPage);
      }
    }
    else
      return false;

    return true;
  }
&lt;/pre&gt;&lt;br /&gt;
If I comment out the stuff after checking to see whether or not the file exists, everything works except sub-templates don't get parsed and as such, display funky tags instead of data. The class is called "Page".&lt;br /&gt;
-&lt;em&gt;&lt;strong&gt;&lt;span style="color: Red;"&gt;S&lt;/span&gt;&lt;span style="color: Purple;"&gt;e&lt;/span&gt;&lt;span style="color: Blue;"&gt;p&lt;/span&gt;&lt;span style="color: Green;"&gt;h&lt;/span&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;&lt;span style="color: Purple;"&gt;r&lt;/span&gt;&lt;span style="color: Blue;"&gt;o&lt;/span&gt;&lt;span style="color: Green;"&gt;t&lt;/span&gt;&lt;span style="color: Red;"&gt;h&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/418699/418699/ReadMessage.aspx#418699</guid>
      <pubDate>Mon, 13 Sep 2010 13:18:46 -0700</pubDate>
    </item>
    <item>
      <title>Re: HELP php - pdf</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/418472/418672/ReadMessage.aspx#418672</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/CJNimes/"&gt;CJNimes&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/418472/418672/ReadMessage.aspx#418672"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I use the FPDF class: www.fpdf.org&lt;br /&gt;
There are many tutorials on that site to get started easily.&lt;br /&gt;
&lt;a href="http://www.nexar.com.ar"&gt;Nexar&lt;/a&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/418472/418672/ReadMessage.aspx#418672</guid>
      <pubDate>Sun, 12 Sep 2010 08:17:43 -0700</pubDate>
    </item>
    <item>
      <title>nuevoMailer - Newsletter Manager</title>
      <link>http://www.programmersheaven.com/download/38192/download.aspx</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/cpano/"&gt;cpano&lt;/a&gt; submitted a new &lt;a href="http://www.programmersheaven.com/download/38192/download.aspx"&gt;file&lt;/a&gt;.&lt;/p&gt;A server-based, e-newsletter and mailing list management software in PHP for Linux and Windows servers. Rich Ajax-powered interface. Intuitive, fast and easy to use. Loaded with advanced features such as an html editor with automatic newsletter saving and sound alert, high-end newsletter personalization, html-text-multipart newsletters, attachments, one-click follow-up campaigns, URL sending, real-time clicks and views reports of several levels, double opt-in subscriber verification, opt-in forms wizard, mailing filters, export reports to spreadsheets, send birthday newsletters and more. nuevoMailer also gives emphasis to the subscriber experience with fully customizable landing pages and emails. Friendly for beginners and powerful for professional users who want to run their own in-house, e-mail marketing campaigns. Works with all modern browsers. Multi-language administration panel. Compliant with anti-spam laws. For shared and dedicated hosting.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/download/38192/download.aspx</guid>
      <pubDate>Thu, 09 Sep 2010 01:47:19 -0700</pubDate>
    </item>
    <item>
      <title>DesignerFreeSolutions.com</title>
      <link>http://www.programmersheaven.com/link/12952-DesignerFreeSolutions.com/info.aspx</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/cpano/"&gt;cpano&lt;/a&gt; submitted a new &lt;a href="http://www.programmersheaven.com/link/12952-DesignerFreeSolutions.com/info.aspx"&gt;link&lt;/a&gt;.&lt;/p&gt;Server-based newsletter software and mailing list tools for designing and sending newsletters, collecting and analyzing views and clicks statistics on the effectiveness of your email marketing campaigns. For Windows and Linux servers, all major databases supported. Bounce processing, campaign scheduling utilities.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/link/12952-DesignerFreeSolutions.com/info.aspx</guid>
      <pubDate>Thu, 09 Sep 2010 01:39:06 -0700</pubDate>
    </item>
    <item>
      <title>Re: Need help sending email with PHP script</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/417004/417970/ReadMessage.aspx#417970</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/CJNimes/"&gt;CJNimes&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/417004/417970/ReadMessage.aspx#417970"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Try the PHPMailer class, very complete and easy to use, you can configurate the SMTP values that you need.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/417004/417970/ReadMessage.aspx#417970</guid>
      <pubDate>Sun, 18 Jul 2010 15:07:16 -0700</pubDate>
    </item>
    <item>
      <title>Re: limit rows in a mysql table and create new table when rows fill up</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/417801/417969/ReadMessage.aspx#417969</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/CJNimes/"&gt;CJNimes&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/417801/417969/ReadMessage.aspx#417969"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I'm not sure I understand what you want to do, and may be I have missed something...&lt;br /&gt;
Why create a new table every 20 registers? I think you have to save all your data into one single table, and then get your info executing a SQL select with a limit of 20.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/417801/417969/ReadMessage.aspx#417969</guid>
      <pubDate>Sun, 18 Jul 2010 14:57:29 -0700</pubDate>
    </item>
    <item>
      <title>Re: Error on code</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/417487/417776/ReadMessage.aspx#417776</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/CJNimes/"&gt;CJNimes&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/417487/417776/ReadMessage.aspx#417776"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;In your login form you have this fields:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;input type="text" name="1" id="1" accesskey="u" tabindex="1" /&amp;gt;&lt;br /&gt;
&amp;lt;input type="password" name="2" id="2" accesskey="p" tabindex="2" /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But in signin.php you are reading this:&lt;br /&gt;
$username = $_POST['username'];&lt;br /&gt;
$password = $_POST['password'];&lt;br /&gt;
&lt;br /&gt;
You have to correct the form using the names expected in signin.php:&lt;br /&gt;
&amp;lt;input type="text" name="username" id="username" accesskey="u" tabindex="1" /&amp;gt;&lt;br /&gt;
&amp;lt;input type="password" name="password" id="password" accesskey="p" tabindex="2" /&amp;gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/417487/417776/ReadMessage.aspx#417776</guid>
      <pubDate>Sat, 10 Jul 2010 19:32:52 -0700</pubDate>
    </item>
    <item>
      <title>Re: Clean-up a long string contents ...</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416875/417436/ReadMessage.aspx#417436</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/CJNimes/"&gt;CJNimes&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/416875/417436/ReadMessage.aspx#417436"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I think he wants to clean styles also and strip_tags don't work for that.&lt;br /&gt;
&lt;br /&gt;
If you have something like "&amp;lt;td style='xxx'&amp;gt;&amp;lt;font&amp;gt;hello&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;" with strip_tags will result "&amp;lt;td style='xxx'&amp;gt;hello&amp;lt;/td&amp;gt;" and I guess he wants to get "&amp;lt;td&amp;gt;hello&amp;lt;/td&amp;gt;".</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416875/417436/ReadMessage.aspx#417436</guid>
      <pubDate>Thu, 24 Jun 2010 06:03:26 -0700</pubDate>
    </item>
    <item>
      <title>Re: to set a font style in writing a txt file using php?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416623/417124/ReadMessage.aspx#417124</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Josh+Code/"&gt;Josh Code&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/416623/417124/ReadMessage.aspx#417124"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;no.  not possible.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416623/417124/ReadMessage.aspx#417124</guid>
      <pubDate>Wed, 09 Jun 2010 14:36:40 -0700</pubDate>
    </item>
    <item>
      <title>Re: 7 number combiantions from an array</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416634/417100/ReadMessage.aspx#417100</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/CJNimes/"&gt;CJNimes&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/416634/417100/ReadMessage.aspx#417100"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I missed a few more changes you have to do:&lt;br /&gt;
&lt;br /&gt;
$combination = array();&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
function getNextCombination&lt;br /&gt;
global $combination; &amp;lt;------------ add this as function first line&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function showNext&lt;br /&gt;
global $combination, $n, $r; &amp;lt;-------- add this line&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace this:&lt;br /&gt;
for(i in combination)&lt;br /&gt;
txt+=combination[i]+", ";&lt;br /&gt;
window.status = txt;&lt;br /&gt;
&lt;br /&gt;
With this:&lt;br /&gt;
foreach ($combination as $c)&lt;br /&gt;
$txt.=$c.", ";&lt;br /&gt;
echo $txt."&amp;lt;br&amp;gt;";&lt;br /&gt;
&lt;br /&gt;
Delete all html code, and the last line shoud be:&lt;br /&gt;
init();&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I thinks now you can get it!</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416634/417100/ReadMessage.aspx#417100</guid>
      <pubDate>Tue, 08 Jun 2010 17:00:04 -0700</pubDate>
    </item>
    <item>
      <title>Re: 7 number combiantions from an array</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416634/417048/ReadMessage.aspx#417048</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/CJNimes/"&gt;CJNimes&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/416634/417048/ReadMessage.aspx#417048"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Well, replace "&amp;lt;script&amp;gt;" for "&amp;lt;?php", "&amp;lt;/script&amp;gt;" for "?&amp;gt;", delete the "var" word and add a "$" sign on each variable and you will get your php code ;)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416634/417048/ReadMessage.aspx#417048</guid>
      <pubDate>Sun, 06 Jun 2010 18:26:29 -0700</pubDate>
    </item>
    <item>
      <title>Re: Clean-up a long string contents ...</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416875/417046/ReadMessage.aspx#417046</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/CJNimes/"&gt;CJNimes&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/416875/417046/ReadMessage.aspx#417046"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Maybe this works:&lt;br /&gt;
&lt;br /&gt;
$search = "%(&amp;lt;[A-Za-z]+)(.*?)(&amp;gt;)%is";&lt;br /&gt;
$replace = "\\1\\3";&lt;br /&gt;
$newString = preg_replace($search,$replace, $oldString);</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416875/417046/ReadMessage.aspx#417046</guid>
      <pubDate>Sun, 06 Jun 2010 17:55:31 -0700</pubDate>
    </item>
    <item>
      <title>Re: Foreach &amp; Associative Array Problem</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416973/417045/ReadMessage.aspx#417045</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/CJNimes/"&gt;CJNimes&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/416973/417045/ReadMessage.aspx#417045"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I think you have an error in your query:&lt;br /&gt;
&lt;br /&gt;
foreach($sizes as $size){&lt;br /&gt;
$prod = mysql_query("...... AND size_id='$size'");&lt;br /&gt;
...&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
I guess this should be:&lt;br /&gt;
foreach($sizes as $size_id =&amp;gt; $size){&lt;br /&gt;
$prod = mysql_query("...... AND size_id='$size_id'");&lt;br /&gt;
...&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Hope this works :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416973/417045/ReadMessage.aspx#417045</guid>
      <pubDate>Sun, 06 Jun 2010 17:35:23 -0700</pubDate>
    </item>
    <item>
      <title>Re: phpMyAdmin and APC</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416859/416860/ReadMessage.aspx#416860</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Homerun31/"&gt;Homerun31&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/416859/416860/ReadMessage.aspx#416860"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;figured it out.  for those who want to know, add this line to your httpd.conf file.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;Directory "path/to/phpMyAdmin"&amp;gt;
php_admin_flag apc.enabled Off
&amp;lt;/Directory&amp;gt;&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416859/416860/ReadMessage.aspx#416860</guid>
      <pubDate>Sun, 30 May 2010 12:53:47 -0700</pubDate>
    </item>
    <item>
      <title>phpMyAdmin and APC</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416859/416859/ReadMessage.aspx#416859</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Homerun31/"&gt;Homerun31&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/416859/416859/ReadMessage.aspx#416859"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hey,&lt;br /&gt;
&lt;br /&gt;
After some searching I have found that phpMyAdmin doesn't work with the APC extension.  It keeps shutting down my Apache server.  Does anyone know how to disable a php extension in a .htaccess file or is there something I could add to the apache config file that can set a different location to a custom php.ini to be used in the directory that phpMyAdmin is in?  I have tried looking around for this and have been unable to find anything helpful.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416859/416859/ReadMessage.aspx#416859</guid>
      <pubDate>Sun, 30 May 2010 12:25:01 -0700</pubDate>
    </item>
    <item>
      <title>Help required on php logic hook or similar function</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/416247/416247/ReadMessage.aspx#416247</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/popovich/"&gt;popovich&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/416247/416247/ReadMessage.aspx#416247"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hello,&lt;br /&gt;
&lt;br /&gt;
I have started a project and I ran into a brick wall as I don’t know enough coding. The first thing I need&lt;br /&gt;
Help on is, I need to create a logic hook or similar that will calculate some data before saving.&lt;br /&gt;
&lt;br /&gt;
I have 2 tables in mysql:&lt;br /&gt;
1.	Stat_daily, &lt;br /&gt;
This table contains the following fields:&lt;br /&gt;
a.	date: this is the date representing the day for which this value belongs to.&lt;br /&gt;
b.	Value: this represent a numerical value.&lt;br /&gt;
c.	Stat_Code: This code represent and ID for the statistical entry for that week.&lt;br /&gt;
&lt;br /&gt;
2.	Weekly:&lt;br /&gt;
This table contain the following fields:&lt;br /&gt;
a.	Ween_ending_date: this is the date representing the end of the working week, usually a Thursday&lt;br /&gt;
b.	Value: this represent a numerical value.&lt;br /&gt;
c.	Stat_Code: This code represent and ID for the statistical entry for that week.&lt;br /&gt;
d.	Automatic_Calculation: yes/no&lt;br /&gt;
&lt;br /&gt;
I need a logic hook or similar that will do the following when the Automatic_Calculation field is set to” yes”.&lt;br /&gt;
When I entered the date, Value and stat_code in the Stat_daily table and save the date i want the system to automatically add this&lt;br /&gt;
Values and save the data in the weekly table:&lt;br /&gt;
&lt;br /&gt;
Lets say I entered on stats_daily for Friday, the first day of the working week.&lt;br /&gt;
Date: 07/05/2010 Value: 55 stat_code:DP1&lt;br /&gt;
Click save:&lt;br /&gt;
&lt;br /&gt;
The code will automatically take that value and added to the weekly table that contains the week _ending_date: 13/05/2010 because Friday 7/05/2010 is consider to be the first day of the week into the stat_code DP1&lt;br /&gt;
&lt;br /&gt;
Then when I enter the send day of the week which is Monday &lt;br /&gt;
Date:10/05/2010 Value: 75 stat_code DP1&lt;br /&gt;
The code will then take the value 75 and added to the weekly table containing week_edning_date: 13/05/20110 under the stat_code:DP1, so the new value will be 130.&lt;br /&gt;
And repeat the same operation when I entered Tuesday, Wednesday and Thursday. So at the end of the week Thursday I will have all the individual values added up together and saved in the table weekly for the stat_code DP1&lt;br /&gt;
&lt;br /&gt;
When the new week starts again on Friday, the system will start again from "0", for the new weekly values based on the new week ending date which should be 20/05/2010 .&lt;br /&gt;
&lt;br /&gt;
If the automatic-Calculation field is set to “no” nothings happend and the values in Weekly table have to be entered manually once a week as we do not have stat_code link in the Stat_daily that will represent that code on the weekly table.&lt;br /&gt;
&lt;br /&gt;
Is there anyone in this forum skill enough to help with this code?&lt;br /&gt;
&lt;br /&gt;
Sincerely,&lt;br /&gt;
Derek P&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/416247/416247/ReadMessage.aspx#416247</guid>
      <pubDate>Fri, 07 May 2010 16:20:17 -0700</pubDate>
    </item>
    <item>
      <title>Max execution time on a function</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/415994/415994/ReadMessage.aspx#415994</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mac_doggie/"&gt;mac_doggie&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/415994/415994/ReadMessage.aspx#415994"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
Does anyone know of a way to place a maximum amount of time on a function?&lt;br /&gt;
&lt;br /&gt;
Let's say I have a function called Foo() and a lot is happening in that function. I want to be able to say to PHP run this function, but if it takes more then let's say 5 seconds I want it to trigger an Exception or something...&lt;br /&gt;
&lt;br /&gt;
Or if that would be possible just use some sort of TimeOut like javascript has so that I could trigger that after 5 seconds&lt;br /&gt;
&lt;br /&gt;
I don't think there is such functionality in PHP but if anyone knows how to do somethink like this I'd be glad if you told me...&lt;br /&gt;
&lt;br /&gt;
-MAC-&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
-mac-&lt;br /&gt;
mailto:mac_doggie@hotmail.com&lt;br /&gt;
the Netherlands...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/415994/415994/ReadMessage.aspx#415994</guid>
      <pubDate>Thu, 29 Apr 2010 03:32:31 -0700</pubDate>
    </item>
    <item>
      <title>Re: HI, ALL: If you were to build eBay today from scratch...</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/415865/415992/ReadMessage.aspx#415992</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mac_doggie/"&gt;mac_doggie&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/415865/415992/ReadMessage.aspx#415992"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;I would...&lt;br /&gt;
I don't know a lot of other webbases languages, so for me to build it would be the easiest in PHP and MySql. I don't know if it's more relyable then any other language, but I think it's more up to you what you like best.&lt;br /&gt;
&lt;br /&gt;
-MAC-&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
-mac-&lt;br /&gt;
mailto:mac_doggie@hotmail.com&lt;br /&gt;
the Netherlands...&lt;br /&gt;
&lt;br /&gt;
oops posted it twice... sorry for that... Can't seem to delete it myself...</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/415865/415992/ReadMessage.aspx#415992</guid>
      <pubDate>Thu, 29 Apr 2010 02:26:19 -0700</pubDate>
    </item>
    <item>
      <title>CouchDB basics for PHP developers</title>
      <link>http://www.programmersheaven.com/article/105251-CouchDB+basics+for+PHP+developers/info.aspx</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Solrac/"&gt;Solrac&lt;/a&gt; submitted a new &lt;a href="http://www.programmersheaven.com/article/105251-CouchDB+basics+for+PHP+developers/info.aspx"&gt;article&lt;/a&gt;.&lt;/p&gt;Take a look at CouchDB from a PHP developer's point of view, and learn how CouchDB gives you a document-based, schema-free, ad-hoc database with a flat address space. Learn how you can add CouchDB to your technical toolboxes to create and delete databases, work with CouchDB views, and more.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/article/105251-CouchDB+basics+for+PHP+developers/info.aspx</guid>
      <pubDate>Tue, 06 Apr 2010 12:38:22 -0700</pubDate>
    </item>
    <item>
      <title>Re: How to handle data from different html lists?</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/414805/414833/ReadMessage.aspx#414833</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mac_doggie/"&gt;mac_doggie&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/414805/414833/ReadMessage.aspx#414833"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;What a bunch of code you posted there... :-P&lt;br /&gt;
&lt;br /&gt;
Most is Javascript though...&lt;br /&gt;
It's not really clear what you want, but I guess you want to be able to know from witch ul list your data came...?&lt;br /&gt;
&lt;br /&gt;
like:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;input name="person1_name" /&amp;gt;
&amp;lt;input name="person1_address" /&amp;gt;
&amp;lt;input name="person1_age" /&amp;gt;

&amp;lt;input name="person2_name" /&amp;gt;
&amp;lt;input name="person2_address" /&amp;gt;
&amp;lt;input name="person2_age" /&amp;gt;

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
in your php you would then want to save the data from person1 and person2 seperately. is this what you mean?&lt;br /&gt;
&lt;br /&gt;
you could simply do it by naming your varialble a certain way so you can split the data easily, like I did in the above example. I can now do the following:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
foreach($_POST as $field=&amp;gt;$value) {
  list($person,$variable) = explode("_", $field);

  switch($person) {
    case "person1":
      $person1[$variable] = $value;
      break;
    case "person2":
      $person1[$variable] = $value;
      break;
    default:
      echo "this is not personal info...".$person."&amp;lt;br /&amp;gt;";
  }
}

// now save your person1 and person2... their data is in seperate arrays now...
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
I hope this was helpfull, if not you'd better rephrase your question...&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
-mac-&lt;br /&gt;
mailto:mac_doggie@hotmail.com&lt;br /&gt;
the Netherlands...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/414805/414833/ReadMessage.aspx#414833</guid>
      <pubDate>Tue, 23 Mar 2010 15:16:33 -0700</pubDate>
    </item>
    <item>
      <title>Re: translating code from C/C++ to PHP or Javascript</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/410338/413803/ReadMessage.aspx#413803</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Agbagbara/"&gt;Agbagbara&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/410338/413803/ReadMessage.aspx#413803"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hi.&lt;br /&gt;
&lt;br /&gt;
if you could give us a pseudocode of the functions, or explain what each line does, then we could help better.&lt;br /&gt;
&lt;br /&gt;
There are some similarities in the syntax with php and c. but the other function calls are quite confusing</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/410338/413803/ReadMessage.aspx#413803</guid>
      <pubDate>Tue, 23 Feb 2010 16:34:50 -0700</pubDate>
    </item>
    <item>
      <title>Re: I'm a newbie</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/412058/413802/ReadMessage.aspx#413802</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Agbagbara/"&gt;Agbagbara&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/412058/413802/ReadMessage.aspx#413802"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;The best way to learn. is &lt;br /&gt;
&lt;br /&gt;
1. Get all the tools required, server, editor, database etc.&lt;br /&gt;
2. read some books or online tutorial.&lt;br /&gt;
3. do some samples and walkthroughs..&lt;br /&gt;
4. create your own samples.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/412058/413802/ReadMessage.aspx#413802</guid>
      <pubDate>Tue, 23 Feb 2010 16:30:21 -0700</pubDate>
    </item>
    <item>
      <title>Re: Single drop down using MySQL with text input field</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/413711/413801/ReadMessage.aspx#413801</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Agbagbara/"&gt;Agbagbara&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/413711/413801/ReadMessage.aspx#413801"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hi.&lt;br /&gt;
&lt;br /&gt;
How far have you gone with a solution.&lt;br /&gt;
&lt;br /&gt;
I think you would have to do the first insert, get the id from the first insert and then use it as an id in the second table.&lt;br /&gt;
&lt;br /&gt;
Let us know what you table structure is.&lt;br /&gt;
&lt;br /&gt;
so we can help better</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/413711/413801/ReadMessage.aspx#413801</guid>
      <pubDate>Tue, 23 Feb 2010 16:27:28 -0700</pubDate>
    </item>
    <item>
      <title>Re: websites background color changes</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/412709/413800/ReadMessage.aspx#413800</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Agbagbara/"&gt;Agbagbara&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/412709/413800/ReadMessage.aspx#413800"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;To do a background change you need to use javascript.&lt;br /&gt;
&lt;br /&gt;
this is the function which I use on my site &lt;br /&gt;
&lt;br /&gt;
write_background(m_string){&lt;br /&gt;
	var t_string = "url('"+m_string+"')";	&lt;br /&gt;
	document.body.style.backgroundImage = t_string; &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
and then you just call the function in the on the page.&lt;br /&gt;
&lt;br /&gt;
write_background('url to image');&lt;br /&gt;
&lt;br /&gt;
Dont forget to embed the function call in a script tag. also I think that you may want to use the full path "http:\\url " to the image file rather that a relative path &lt;br /&gt;
&lt;br /&gt;
Steps.&lt;br /&gt;
1. using php or javascript, determine which image you want to set as the background.&lt;br /&gt;
2. pass the url string to the write_background function. &lt;br /&gt;
&lt;br /&gt;
Hope this helps.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/412709/413800/ReadMessage.aspx#413800</guid>
      <pubDate>Tue, 23 Feb 2010 16:18:06 -0700</pubDate>
    </item>
    <item>
      <title>Re: websites background color changes</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/412709/413799/ReadMessage.aspx#413799</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/Agbagbara/"&gt;Agbagbara&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/412709/413799/ReadMessage.aspx#413799"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hi.&lt;br /&gt;
&lt;br /&gt;
dont know if you have fixed this.&lt;br /&gt;
&lt;br /&gt;
But note that if the site is going to be global , the time on the php will only reflect the time on the server.&lt;br /&gt;
&lt;br /&gt;
To get the users client time you would have to use javascript instead.&lt;br /&gt;
&lt;br /&gt;
Unless you assume that all the users of the site will be at one location.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/412709/413799/ReadMessage.aspx#413799</guid>
      <pubDate>Tue, 23 Feb 2010 16:09:34 -0700</pubDate>
    </item>
    <item>
      <title>Need some advices on RSS reader</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/413159/413159/ReadMessage.aspx#413159</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/silvercover/"&gt;silvercover&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/413159/413159/ReadMessage.aspx#413159"&gt;new message&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hi Guys  :),&lt;br /&gt;
&lt;br /&gt;
I need to make desktop based RSS reader (in desktop RAD tools). I know how to fetch RSS feeds and load headlines and contents into my application. Obviously we can ping remote site once in a while to check for new entries in its RSS, but I prefer not doing this and have my server side application be notified about new entries and send notification to my client application for making it ready parse new entries.&lt;br /&gt;
&lt;br /&gt;
I think server side application could be written in PHP and can have some sort of TCP/IP connection (Socket) to desktop application. first of all I need your advices and tips on this theory and if possible, please guide me to the right direction.&lt;br /&gt;
&lt;br /&gt;
What should I do? &lt;br /&gt;
What's the best way?&lt;br /&gt;
&lt;br /&gt;
Thanks in Advance.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/413159/413159/ReadMessage.aspx#413159</guid>
      <pubDate>Sat, 06 Feb 2010 08:32:01 -0700</pubDate>
    </item>
    <item>
      <title>STIVA Shopping Cart</title>
      <link>http://www.programmersheaven.com/download/56205/download.aspx</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/phpjabbers/"&gt;phpjabbers&lt;/a&gt; submitted a new &lt;a href="http://www.programmersheaven.com/download/56205/download.aspx"&gt;file&lt;/a&gt;.&lt;/p&gt;STIVA Shopping Cart is a PHP/MySQL based product that can be used on any website requiring online product orders and payments. Using a password protected administration page you can manage all products, set different options, keep track of all orders. Within few minutes you can have a Shopping Cart on your website. Use any of the available payment processing companies to accept payments. With Developer Licence you receive full PHP SOURCE  CODES. Your hosting account needs to support PHP 4.0 or more and MySQL 4.0 or more.  We do all kind of custom modifications to the script and install it on your hosting account for FREE.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/download/56205/download.aspx</guid>
      <pubDate>Fri, 22 Jan 2010 04:14:48 -0700</pubDate>
    </item>
    <item>
      <title>Re: document.getElementById(' ') is null error</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/410232/410419/ReadMessage.aspx#410419</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/anthrax11/"&gt;anthrax11&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/410232/410419/ReadMessage.aspx#410419"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;The code is ran before countbox is initialized. You need to run it after the page has loaded.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;script type="text/javascript" &amp;gt;
function DoGetCount()
{
  GetCount('&amp;lt;?php echo $year; ?&amp;gt;','&amp;lt;?php echo $month; ?&amp;gt;','&amp;lt;?php echo $day; ?&amp;gt;');
}
window.onload=DoGetCount;
&amp;lt;/script&amp;gt;
&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/410232/410419/ReadMessage.aspx#410419</guid>
      <pubDate>Sun, 06 Dec 2009 12:19:22 -0700</pubDate>
    </item>
    <item>
      <title>Re: Session array not updating</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/410182/410231/ReadMessage.aspx#410231</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/ejay56/"&gt;ejay56&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/410182/410231/ReadMessage.aspx#410231"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;Hi Mac,&lt;br /&gt;
&lt;br /&gt;
ahh..&lt;br /&gt;
&lt;br /&gt;
Thank you so much! its working perfectly fine now! Wasted the whole of yesterday trying to figure out this.&lt;br /&gt;
&lt;br /&gt;
-ejay56</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/410182/410231/ReadMessage.aspx#410231</guid>
      <pubDate>Thu, 03 Dec 2009 00:41:30 -0700</pubDate>
    </item>
    <item>
      <title>Re: JavaScript function call</title>
      <link>http://www.programmersheaven.com/mb/phpstuff/409283/410203/ReadMessage.aspx#410203</link>
      <description>&lt;p&gt;&lt;a href="http://www.programmersheaven.com/user/mac_doggie/"&gt;mac_doggie&lt;/a&gt; posted a &lt;a href="http://www.programmersheaven.com/mb/phpstuff/409283/410203/ReadMessage.aspx#410203"&gt;reply&lt;/a&gt; on the &lt;a href="http://www.programmersheaven.com/mb/phpstuff/Board.aspx"&gt;PHP&lt;/a&gt; forum.&lt;/p&gt;var = count is the error...&lt;br /&gt;
&lt;br /&gt;
change it to var count and the problem is solved&lt;br /&gt;
&lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
-mac-&lt;br /&gt;
mailto:mac_doggie@hotmail.com&lt;br /&gt;
the Netherlands...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/phpstuff/409283/410203/ReadMessage.aspx#410203</guid>
      <pubDate>Wed, 02 Dec 2009 13:07:49 -0700</pubDate>
    </item>
  </channel>
</rss>