php-Data Types

Data Types

PHP provides four primitive data types: integers, floating point numbers, strings, and booleans. In addition, there are two compound data types: arrays and objects.

 Integers

Integers are whole numbers. The range of integers in PHP is equivalent to the range of the long data type in C. On 32-bit platforms, integer values range from -2,147,483,648 to +2,147,483,647. PHP automatically converts larger values to floating point numbers if you happen to overflow the range. An integer can be expressed in decimal (base-10), hexadecimal (base-16), or octal (base-8). For example:
$decimal=16;
$hex=0x10;
$octal=020;

 Floating Point Numbers

Floating point numbers represent decimal values. The range of floating point numbers in PHP is equivalent to the range of the double type in C. On most platforms, a double can be between 1.7E-308 to 1.7E+308. A double may be expressed either as a regular number with a decimal point or in scientific notation. For example:
$var=0.017;
$var=17.0E-3
PHP also has two sets of functions that let you manipulate numbers with arbitrary precision. These two sets are known as the BC and the GMP functions. See http://www.php.net/bc and http://www.php.net/gmp for more information. 

Strings

A string is a sequence of characters. A string can be delimited by single quotes or double quotes:
'PHP is cool'
"Hello, World!"
Double-quoted strings are subject to variable substitution and escape sequence handling, while single quotes are not. For example:
$a="World";
echo "Hello\t$a\n";
This displays "Hello" followed by a tab and then "World" followed by a newline. In other words, variable substitution is performed on the variable $a and the escape sequences are converted to their corresponding characters. Contrast that with:
echo 'Hello\t$a\n';
In this case, the output is exactly "Hello\t$a\n". There is no variable substitution or handling of escape sequences.
Another way to assign a string is to use what is known as

Arrays

An array is a compound data type that can contain multiple data values, indexed either numerically or with strings. For example, an array of strings can be written like this:
$var[0]="Hello";
$var[1]="World";
Note that when you assign array elements like this, you do not have to use consecutive numbers to index the elements.
As a shortcut, PHP allows you to add an element onto the end of an array without specifying an index. For example:
$var[ ] ="Test";
PHP picks the next logical numerical index. In this case, the "Test" element is given the index 2 in our $var array: if the array has nonconsecutive elements, PHP selects the index value that is one greater than the current highest index value. This autoindexing feature is most useful when dealing with multiple-choice HTML <select> form elements, as we'll see in a later example.


Open Directory-SEO

Submit to Directories

Getting listed in human-edited directories is one of those incremental SEO tasks that can
make a difference in the aggregate. It’s relatively easy to find directories with categories
that match your organization, and they represent a chance to build a link to your site
using your own well-researched, well-targeted words. Think of a directory listing as just
another inbound link with a slightly different link-request process usually there’s a submittal
 form to fill out, and specific editorial guidelines to follow, instead of a free-form
e-mail correspondence. 

If you happen to have a nonprofit or noncommercial website,
you have greatly increased potential for free links on directories.
Your directory requests will be accepted or rejected based on the judgment of
human editors, and part of what they judge is whether your suggested title and 
description match your site’s content. So if you have substantial optimization that needs to
take place before this is the case, use today’s task just to gather submittal information.
You can perform the actual submittal when your site is ready.


Open Directory

There are some big, well-established directories such as the Yahoo! Directory (http://
dir.yahoo.com) and the Open Directory www.dmoz.org, which survived extinction when
the Age of Directories in the ’90s made way for the Age of Algorithmic Search that came
after. Submitting your site to Yahoo! and the Open Directory, while no longer crucial
to a site’s visibility, is a fine thing to do. They have specific categories that might describe
your organization perfectly, such as Health: Alternative: Practitioners: Wellness Centers:
North America: United States: Michigan. If the category fits, you may as well submit.
But the majority of today’s directories, the ones you’ll be spending most of your
time on, are little guys with niche traffic. Niche directoriesare small, but they can be powerhouses for targeted traffic. You know your company, and you know your niche. Now
it’s time for you to find directories that speak to it.

http://seo-tips-tech.blogspot.com/2014/06/free-windows-drivers-downloads.html
http://seo-tips-tech.blogspot.com/2014/06/ipod-touch-magic.html
http://seo-tips-tech.blogspot.com/2014/06/goal-line-technology-world-cup.html
http://seo-tips-tech.blogspot.com/2014/06/how-to-responsive-web-design.html
http://seo-tips-tech.blogspot.com/2014/06/open-directory-seo.html
http://seo-tips-tech.blogspot.com/2014/06/how-to-get-free-online-traffic.html
http://seo-tips-tech.blogspot.com/2014/06/that-ipad-split-screen.html
http://seo-tips-tech.blogspot.com/2014/06/ongc-jobs-at-delhi.html
http://seo-tips-tech.blogspot.com/2014/06/it-engineer-posts-in-cris.html
http://seo-tips-tech.blogspot.com/2014/06/app-downloads-on-itunes.html
http://seo-tips-tech.blogspot.com/2014/06/javascript-calendar-script.html
http://seo-tips-tech.blogspot.com/2014/06/php-online-resources.html
http://seo-tips-tech.blogspot.com/2014/06/php-mail-functions.html
http://seo-tips-tech.blogspot.com/2014/06/networking-functions-php.html
http://seo-tips-tech.blogspot.com/2014/06/php-maxexecutiontime.html
http://seo-tips-tech.blogspot.com/2014/06/how-to-find-broken-links-of-your-website.html
http://seo-tips-tech.blogspot.com/2014/06/whst-is-digital-marketing.html
http://seo-tips-tech.blogspot.com/2014/06/seo-fire-web-analytics.html
http://seo-tips-tech.blogspot.com/2014/06/make-php-session-code.html
http://seo-tips-tech.blogspot.com/2014/06/how-to-facebook-privacy-info-set.html
http://seo-tips-tech.blogspot.com/2014/06/canons-big-high-quality-cameras.html
http://seo-tips-tech.blogspot.com/2014/06/what-is-ajax-request.html
http://seo-tips-tech.blogspot.com/2013/01/php-functions.html
http://seo-tips-tech.blogspot.com/2013/11/php-tutorial-imagemagick.html
http://seo-tips-tech.blogspot.com/2013/01/phpini-basics.html
http://seo-tips-tech.blogspot.com/2013/01/php-sessions.html
http://seo-tips-tech.blogspot.com/2013/01/cookies-versus-sessions.html
http://seo-tips-tech.blogspot.com/2013/01/php-web-related-variables.html
http://seo-tips-tech.blogspot.com/2013/01/the-different-types-of-errors-in-php.html
http://seo-tips-tech.blogspot.com/2013/01/what-is-maximum-size-of-file-that-can.html
http://seo-tips-tech.blogspot.com/2013/01/php-mysql-image-upload.html
http://seo-tips-tech.blogspot.com/2013/01/php-filegetcontents.html
http://seo-tips-tech.blogspot.com/2013/01/mysql-data-on-web.html
http://seo-tips-tech.blogspot.com/2013/01/what-are-get-and-post.html
http://seo-tips-tech.blogspot.com/2013/01/php-and-pdf.html
http://seo-tips-tech.blogspot.com/2013/01/env-and-server.html
http://seo-tips-tech.blogspot.com/2013/01/what-is-use-of-pear-in-php.html
http://seo-tips-tech.blogspot.com/2013/01/selecting-data-in-php.html
http://seo-tips-tech.blogspot.com/2013/01/how-to-prevent-hijacking-in-php.html
http://seo-tips-tech.blogspot.com/2013/01/what-is-lamp.html
http://seo-tips-tech.blogspot.com/2013/01/php-mysql-functions.html
http://seo-tips-tech.blogspot.com/2013/01/php-zip-file-functions.html
http://seo-tips-tech.blogspot.com/2013/01/substrings-php.html
http://seo-tips-tech.blogspot.com/2013/01/php-variable-names.html
http://seo-tips-tech.blogspot.com/2013/01/magic-methods.html
http://seo-tips-tech.blogspot.com/2013/01/how-get-value-of-current-session-id.html
http://seo-tips-tech.blogspot.com/2013/01/how-register-variables-into-session.html
http://seo-tips-tech.blogspot.com/2013/01/get-postcookie.html
http://seo-tips-tech.blogspot.com/2013/01/what-are-different-tables-present-in.html
http://seo-tips-tech.blogspot.com/2013/01/what-is-curl.html
http://seo-tips-tech.blogspot.com/2013/09/php-sessions-page.html
http://seo-tips-tech.blogspot.com/2013/01/sorting-array.html
http://seo-tips-tech.blogspot.com/2013/01/count-elements-of-array.html
http://seo-tips-tech.blogspot.com/2013/01/comparison-operators-for-ifelse.html
http://seo-tips-tech.blogspot.com/2014/01/php-file-uploading-code.html
http://seo-tips-tech.blogspot.com/2014/01/php-global-variables.html
http://seo-tips-tech.blogspot.com/2013/07/testing-working-using-phpinfo.html
http://seo-tips-tech.blogspot.com/2014/01/php-code-for-valid-number.html
http://seo-tips-tech.blogspot.com/2013/12/php-associative-arrays.html
http://seo-tips-tech.blogspot.com/2013/09/php-mvc-tutorial-for-beginners-model.html
http://seo-tips-tech.blogspot.com/2013/02/php-getmetatags-extracts-all-meta-tag.html
http://seo-tips-tech.blogspot.com/2013/09/difference-between-print-and-echo-php.html
http://seo-tips-tech.blogspot.com/2013/08/php-best-tutorial-php-variables.html
http://seo-tips-tech.blogspot.com/2013/02/reading-doc-file-in-php.html
http://seo-tips-tech.blogspot.com/2013/02/php-interview-questions.html
http://seo-tips-tech.blogspot.com/2013/02/convert-time-in-php.html
http://seo-tips-tech.blogspot.com/2013/09/php-implode-array-elements.html
http://seo-tips-tech.blogspot.com/2013/09/php-use-header-function-php.html
http://seo-tips-tech.blogspot.com/2013/09/php-renaming-files-and-directories.html
http://seo-tips-tech.blogspot.com/2013/02/php-classes.html
http://seo-tips-tech.blogspot.com/2013/02/inarray-function-in-php.html
http://seo-tips-tech.blogspot.com/2013/02/keep-your-session-secure-php.html
http://seo-tips-tech.blogspot.com/2012/09/web-application-with-php.html
http://seo-tips-tech.blogspot.com/2013/02/what-is-sql-injection.html
http://seo-tips-tech.blogspot.com/2013/02/you-want-to-extract-part-of-string.html
http://seo-tips-tech.blogspot.com/2013/09/php-urlencode-make-strong-get-query.html
http://seo-tips-tech.blogspot.com/2013/02/how-we-know-browser-properties.html
http://seo-tips-tech.blogspot.com/2013/02/extracting-substrings.html
http://seo-tips-tech.blogspot.com/2013/02/checking-variable-values-and-types.html
http://seo-tips-tech.blogspot.com/2013/09/php-best-top-20-open-source-content.html
http://seo-tips-tech.blogspot.com/2013/12/showing-browser-and-ip-address-php.html
http://seo-tips-tech.blogspot.com/2013/02/scope-resolution-operator.html
http://seo-tips-tech.blogspot.com/2013/02/how-create-new-instance-of-object.html
http://seo-tips-tech.blogspot.com/2013/02/how-eliminate-object.html
http://seo-tips-tech.blogspot.com/2013/02/what-is-obstart.html
http://seo-tips-tech.blogspot.com/2013/02/xml-file-using-dom-api.html
http://seo-tips-tech.blogspot.com/2013/02/what-is-mvc.html
http://seo-tips-tech.blogspot.com/2013/02/what-is-captcha.html
http://seo-tips-tech.blogspot.com/2013/02/finding-position-of-value-in-array.html
http://seo-tips-tech.blogspot.com/2013/09/php-mail-functions.html
http://seo-tips-tech.blogspot.com/2013/02/difference-between-include-and-require.html
http://seo-tips-tech.blogspot.com/2013/02/calculate-sum-of-values-in-array.html
http://seo-tips-tech.blogspot.com/2013/02/total-number-of-rows.html
http://seo-tips-tech.blogspot.com/2013/02/show-unique-records-mysql.html
http://seo-tips-tech.blogspot.com/2013/02/mysql-triggers.html
http://seo-tips-tech.blogspot.com/2013/02/mysql-data-directory.html
http://seo-tips-tech.blogspot.com/2013/02/mysql-subqueries.html
http://seo-tips-tech.blogspot.com/2013/08/php-networking-functions.html
http://seo-tips-tech.blogspot.com/2013/08/php-operators.html
http://seo-tips-tech.blogspot.com/2013/02/restore-database-or-database-table-from.html
http://seo-tips-tech.blogspot.com/2013/02/conditional-functions-mysql.html
http://seo-tips-tech.blogspot.com/2013/02/function-overloading.html
http://seo-tips-tech.blogspot.com/2013/02/friend-function.html
http://seo-tips-tech.blogspot.com/2013/02/difference-between-mysqlconnect-and.html
http://seo-tips-tech.blogspot.com/2013/08/php-error-control-operators.html
http://seo-tips-tech.blogspot.com/2014/01/what-is-imap.html
http://seo-tips-tech.blogspot.com/2013/03/apache-specific-functions.html
http://seo-tips-tech.blogspot.com/2012/11/send-email-from-php-script.html
http://seo-tips-tech.blogspot.com/2013/09/sql-inherently.html
http://seo-tips-tech.blogspot.com/2013/07/what-is-wamp-mamp-or-lamp.html
http://seo-tips-tech.blogspot.com/2013/07/php-tutorial-symbols.html
http://seo-tips-tech.blogspot.com/2014/01/table-types-mysql.html
http://seo-tips-tech.blogspot.com/2013/12/encryption-data-management.html
http://seo-tips-tech.blogspot.com/2012/11/php-array.html
http://seo-tips-tech.blogspot.com/2014/01/running-mysql-on-windows.html
http://seo-tips-tech.blogspot.com/2013/09/maximum-performance-from-mysql.html
http://seo-tips-tech.blogspot.com/2013/08/xml-rpc.html
http://seo-tips-tech.blogspot.com/2013/08/php-static-variables.html
http://seo-tips-tech.blogspot.com/2013/08/advanced-database-techniques.html
http://seo-tips-tech.blogspot.com/search/label/FTP
http://seo-tips-tech.blogspot.com/search/label/Codeigniter
http://seo-tips-tech.blogspot.com/2013/08/apache-pool-size.html
http://seo-tips-tech.blogspot.com/2013/08/why-nosql.html
http://seo-tips-tech.blogspot.com/2013/08/mysql-server-performance.html
http://seo-tips-tech.blogspot.com/2013/10/database-software.html
http://seo-tips-tech.blogspot.com/2013/03/sql-interview-answers.html
http://seo-tips-tech.blogspot.com/2013/02/php-redirect-redirect-script.html
http://seo-tips-tech.blogspot.com/2014/01/php-interview-questions-with-answers.html
http://seo-tips-tech.blogspot.com/2014/01/advanced-php.html
http://seo-tips-tech.blogspot.com/2014/06/how-to-create-thumbnail-php-code.html
http://seo-tips-tech.blogspot.com/2011/09/seo-tips.html
http://seo-tips-tech.blogspot.com/2012/06/analytics-and-tracking.html
http://seo-tips-tech.blogspot.com/2012/07/advanced-techniques-for-seo.html
http://seo-tips-tech.blogspot.com/2012/07/create-seo-friendly-urls.html
http://seo-tips-tech.blogspot.com/2012/07/html-intro.html
http://seo-tips-tech.blogspot.com/2012/07/html-tags_11.html
http://seo-tips-tech.blogspot.com/2012/07/html.html
http://seo-tips-tech.blogspot.com/2012/07/off-page-seo-strategies.html
http://seo-tips-tech.blogspot.com/2012/07/seo-articles-targeted-clients.html
http://seo-tips-tech.blogspot.com/2012/07/seo-tips-for-google.html
http://seo-tips-tech.blogspot.com/2012/07/use-email-newsletters-for-traffic.html
http://seo-tips-tech.blogspot.com/2012/09/character-entities.html
http://seo-tips-tech.blogspot.com/2012/09/improve-structure-of-your-urls.html
http://seo-tips-tech.blogspot.com/2012/09/key-factors-effecting-link-quality.html
http://seo-tips-tech.blogspot.com/2012/09/picking-right-keywords.html
http://seo-tips-tech.blogspot.com/2012/09/sectioning-html5-elements.html
http://seo-tips-tech.blogspot.com/2012/09/to-include-inline-javascript-code-place.html
http://seo-tips-tech.blogspot.com/2012/10/search-ranking-algorithm-social-sharing.html
http://seo-tips-tech.blogspot.com/2012/10/seo-research-and-analysis.html
http://seo-tips-tech.blogspot.com/2012/10/seoo-traffic-sources.html
http://seo-tips-tech.blogspot.com/2012/10/top-search-engine-ranking-factors.html
http://seo-tips-tech.blogspot.com/2013/01/search-engine-indexing.html
http://seo-tips-tech.blogspot.com/2013/01/seo-companies-india.html
http://seo-tips-tech.blogspot.com/2013/01/seo-companies-new-york.html
http://seo-tips-tech.blogspot.com/2013/01/seo-companies-united-states.html
http://seo-tips-tech.blogspot.com/2013/03/blog-marketing.html
http://seo-tips-tech.blogspot.com/2013/03/business-with-seo.html
http://seo-tips-tech.blogspot.com/2013/06/advanced-seo-interview-questions.html
http://seo-tips-tech.blogspot.com/2013/06/article-submission-site-list.html
http://seo-tips-tech.blogspot.com/2013/06/enabled-seo-in-opencart.html
http://seo-tips-tech.blogspot.com/2013/06/how-disallow-sub-domain-using-robotstxt.html
http://seo-tips-tech.blogspot.com/2013/06/plan-out-your-seo-strategies.html
http://seo-tips-tech.blogspot.com/2013/06/seo-tips-for-wordpress.html
http://seo-tips-tech.blogspot.com/2013/06/server-side-includes.html
http://seo-tips-tech.blogspot.com/2013/06/site-indexation-tool.html

How to Get Free Online Traffic

 How to Get Free Online Traffic

Getting traffic online is very easy to do. The most important part about being successful online
is getting your website noticed. You should be spending most of your days promoting your site over
anything else in order to make money off of it.

I was once clueless about how to even create traffic online let alone even knowing what traffic meant.
Well, it has been about a year since I have been inthis online marketing business and has really
become my second nature.

You have to stay devoted and on task when you are promoting your sites. Promotion is
the most important part about making money online. You can have the nicest website in the world but
it will never see the time of day if you never get the word out there that you are in business.

Here I would like to share with you the simplest ways in which you can drive traffic to your site
immediately. Just remember the more things that youdo on the list below the better results you will
have with the traffic to your website. Hopefully after you are done reading threw this article you can
get busy on the promotion of your website.


Here are the few best ways to get traffic to your landing pages:
- Forum Participation
-  Article Marketing
-  Social Bookmarking
-  Myspace
-  Press Releases
-  Classified Ads
-  Viral Marketing




All of these forms of traffic combined can explode your sites traffic within days. When choosing the
proper sites in which you want to work with to create your traffic, make sure you choose the ones that
are highly ranked within Google. That way you can easily get first page results for your website.

That iPad split-screen

Split-screen functionality may soon be heading to an iPad near you.
One developer spotted a piece of iOS 8 code that would allow users to
 open two apps side-by-side, at the same time.

the iPod Touch-inspired iPhone, but given Mr. Lin's track record these images are some of the more credible ones. Lin confirms the 4.7" screen for the Apple iPhone 6 and notes that the antennas are still external. The new rounded corners improve the grip but the matte aluminum finish may be slippery. Jimmy Lin holding up the Apple iPhone 6 To compensate for the taller device, the Power key has been moved on the right side. Also, it seems that Apple will be abandoning its dual-LED flash. Unfortunately, there are no technical details about the phone so we still don't know the resolution of the 4.7" screen.

ONGC jobs at Delhi

Oil and Natural Gas Corporation Ltd

ONGC invites application for the following posts from the candidates registered with Employment Exchanges in Delhi and Uttarakhand :

  • Posts for Delhi
    1. Technical Assistant Gr.III (Geophysics - Surface) : 02 posts
    2. Technical Assistant Gr.III (Chemistry) : 02 posts
    3. Assistant Rigman (Drilling) : 04 posts
    4. Assistant Technician (Electrical) : 02 posts
    5. Assistant Gr. III (Transport) : 01 post
    6. Assistant Gr. III (Materials Management) : 02 posts
    7. Assistant Gr. III (Accounts) : 03 posts
    8. Assistant Technician (Electronics) : 06 posts
    9. Junior Assistant Technician (Electronics) : 05 posts
    10. Junior Technical Assistant (Chemistry) : 19 posts
    11. Junior Technical Assistant (Geology) : 12 posts
    12. Junior Fire Supervisor : 01 post
    13. Junior Fireman : 02 posts
  •  Posts for Dehradun
    1. Assistant Gr.III (P&A) : 10 posts
    2. Assistant Gr.III (Materials Management) : 02 posts
    3. Assistant Gr.III (Transport) : 01 post
    4. Assistant  Gr.III (Accounts) : 07 posts
    5. Junior Assistant (Steno-Typist) : 24 posts
Application fee  : Rs 300/- (Rs.100/- for SC/ST/PWD candidates) to be paid by payment challan to be deposited in SBI only.

How to Apply : Apply Online at ONGC website from 07/06/2014 to 27/06/2014 only.
View Details: http://eapplynew.com/ongcrec/pages/ongcindex.aspx

IT Engineer posts in CRIS

Centre For Railway Information Systems

Recruitment of Assistant Software Engineers (ASE) and Assistant Network Engineers  (ANE)

Centre For Railway Information Systems (CRIS) invites applications for following 55 posts for its ongoing projects for which selection will based on marks obtained in GATE-2014  :


  1. Assistant Software Engineer (ASE) : 40 posts (UR-20, OBC-11, SC-6, ST-3) 
  2. Assistant Network Engineer (ASE) : 15 posts (UR-8, OBC-4, SC-2, ST-1) 
Age :  22-27 years

Pay Scale : Rs. 9300-34800 grade pay Rs.4200/-.


How to Apply : Apply online at CRIS website from 16/06/2014 to 06/07/2014 only.

View details: http://www.crisrecruitment2014.org.in.


App - Downloads on iTunes

Looking for iTunes for Mac or PC? Return to this page on your Mac or PC for
 the free download of iTunes. Email yourself a link to the download page
http://www.apple.com/itunes/download

How to Download an App From iTunes

How to Download an App From iTunes. Apple's iPhone, iPod Touch and iPad connect wirelessly to the Internet. Whenever you are in an area with Wi-Fi, you can download ...
http://www.ehow.com/how_4818925_download-app-itunes.html

WhatsApp Messenger on the App Store on iTunes

 iTunes is the world's easiest way to organize and add to your digital media collection. We are unable to find iTunes on your computer.
https://itunes.apple.com/us/app/whatsapp-messenger/id310633997?mt=8

iTunes is the world's easiest way to organize and add to your digital media collection. We are unable to find iTunes on your computer.
https://itunes.apple.com/us/app/twitter/id333903271?mt=8

Javascript Calendar script


Javascript Calendar script


<style type="text/css">

.main {
width:200px;
border:1px solid black;
}

.month {
background-color:black;
font:bold 12px verdana;
color:white;
}

.daysofweek {
background-color:gray;
font:bold 12px verdana;
color:white;
}

.days {
font-size: 12px;
font-family:verdana;
color:black;
background-color: lightyellow;
padding: 2px;
}

.days #today{
font-weight: bold;
color: red;
}

</style>
<script type="text/javascript">
function buildCal(m, y, cM, cH, cDW, cD, brdr){
var mn=['January','February','March','April','May','June','July','August','September','October','November','December'];
var dim=[31,0,31,30,31,30,31,31,30,31,30,31];

var oD = new Date(y, m-1, 1); //DD replaced line to fix date bug when current day is 31st
oD.od=oD.getDay()+1; //DD replaced line to fix date bug when current day is 31st

var todaydate=new Date() //DD added
var scanfortoday=(y==todaydate.getFullYear() && m==todaydate.getMonth()+1)? todaydate.getDate() : 0 //DD added

dim[1]=(((oD.getFullYear()%100!=0)&&(oD.getFullYear()%4==0))||(oD.getFullYear()%400==0))?29:28;
var t='<div class="'+cM+'"><table class="'+cM+'" cols="7" cellpadding="0" border="'+brdr+'" cellspacing="0"><tr align="center">';
t+='<td colspan="7" align="center" class="'+cH+'">'+mn[m-1]+' - '+y+'</td></tr><tr align="center">';
for(s=0;s<7;s++)t+='<td class="'+cDW+'">'+"SMTWTFS".substr(s,1)+'</td>';
t+='</tr><tr align="center">';
for(i=1;i<=42;i++){
var x=((i-oD.od>=0)&&(i-oD.od<dim[m-1]))? i-oD.od+1 : '&nbsp;';
if (x==scanfortoday) //DD added
x='<span id="today">'+x+'</span>' //DD added
t+='<td class="'+cD+'">'+x+'</td>';
if(((i)%7==0)&&(i<36))t+='</tr><tr align="center">';
}
return t+='</tr></table></div>';
}

</script>

<script type="text/javascript">

var todaydate=new Date()
var curmonth=todaydate.getMonth()+1 //get current month (1-12)
var curyear=todaydate.getFullYear() //get current year

document.write(buildCal(curmonth ,curyear, "main", "month", "daysofweek", "days", 1));
</script>

buildCal(4, 2003, "main", "month", "daysofweek", "days", 0)

PHP Online Resources

The major sites that use PHP, and a listing of all the books written on PHP. Not only does this site contain a plethora of resources, it also contains links to the other PHP sites, the latest news about all things PHP

The Official PHP Web Site





The Zend Web Site

The Zend engine is the engine that powers PHP. The Zend Web site is the site of the company that puts out the Zend engine, as well as many other tools. For example, at this site you can also download the Zend Optimizer, which gives your PHP scripts a 40-100% increase in speed on average.




PHPBuilder

The documentation on PHP is an awesome reference, but some of the more abstract concepts of PHP can't be covered by a simple function reference; they need to be explained by experts who have been there and done that. PHPBuilder offers an impressive set of tutorials ranging in level from beginner to advanced.




PHPWizard.net

This site contains an excellent repository of daily tips and tricks. In addition to the daily tips, this Web site contains high-quality programs such as an online quiz system and an online chat program.




The PHP Class Repository

This Web site in search of classes that will make  life easier. 



DevShed

DevShed is an excellent resource for all things open source including Perl, Python, Jserv, Zope, and, of course, PHP. It contains a nice repository of introductory PHP tutorials and an active message board.




PHP-Mail Functions

PHP contains two dedicated mail functions, which are built into PHP by default. The mail() function allows for the sending of email directly from a script, and ezmlm_hash() provides a hash calculation useful for interfacing a script to an  mailing list system.
The mail() function requires an installed and working email subsystem for sending mail. The program to be used is defined by configuration directives in the php.ini file. A common pitfall is that these are not set up correctly, rendering mail() inoperable. Note that the first two directives are for use only on Windows systems; the third is for use only on Unix-type systems.
  • SMTP: The host to which to connect to send mail. Can be either a fully qualified hostname or an IP address. Used only on Windows systems.
  • sendmail_from: The email address from which sent mail should appear to have been sent. Used only on Windows systems.
  • sendmail_path: Full pathname of the mail executable to run when sending mail. This can also include command-line arguments. The default is created during the precompilation configuration: For example, if a sendmail executable is found in /usr/sbin, the default will be usr/sbin/sendmail -t -i. If no sendmail executable is found, one must be specified here. Used only on Unix-type systems.

    mail

    bool mail(string recipient, string subject, string message, 
     [string extra_headers], [string extra_arguments]) 
    recipient
    Address of the recipient
    subject
    Message subject
    message
    Body of the message
    extra
    Extra headers for the message
    extra_arguments
    Extra arguments for the underlying mail program (PHP 4.0.5 and later)
    Sends a message via email.
    Returns:
    TRUE on success; FALSE on failure
    Description:
    mail() allows you to send email directly from a PHP script. recipient can be either a single email address or a comma-delimited list of addresses. If you want to set extra headers—for instance, in order to use Cc: or Bcc:—these may be placed in a newline-delimited string in the extra_headers parameter. As of PHP 4.0.5, you can also specify extra arguments to the system mail program in the extra_arguments parameter. For example, this is useful if you want to set the envelope From: header so that it doesn't look like email is coming from your web server daemon. If you do this, however, you may want to add your daemon process to the trusted users list in your sendmail configuration (if using sendmail); otherwise, sendmail will add an X-Authentication-Warning: header to the email, indicating that an untrusted user has modified the envelope.

    Send email from a PHP script

    /* When the following code was executed, I received this email: 
     * 
     * From: Apache httpd <www@pinc.com> 
     * To: torben@php.net 
     * Subject: This is a test 
     * Date: Mon, 20 Aug 2001 16:33:17 -0700 
     * 
     * Hi there, 
     * 
     * This is a test message. Please disregard. 
     */ 
    $address = 'torben@php.net'; 
    $subject = 'This is a test'; 
    $message = 'Hi there, 
    
    This is a test message. Please disregard. 
    '; 
    mail($address, $subject, $message); 
    
    /* Now, tell it that I want it to look like it's from me, using 
     * the extra_arguments parameter. 
     * The email I got back from this one was as follows. However, 
     * because this was run on a web page and the httpd is not a 
     * sendmail-trusted user, the resulting email also included this 
     
     * Subject: This is a test 
     * Date: Mon, 20 Aug 2001 16:47:56 -0700 
     * 
     * 
     * Hi there, 
     * 
     * This is a test message. Please disregard. 
     * 
     */ 
    mail($address, $subject, $message, '', 'ftorpden@php.net'); 
    
    /* Send the same message, but to a blind carbon-copy list. */ 
    mail($address, $subject, $message, 'Bcc: fif@bar.brz, king.ttrfgrut@abc.com');