Create sitemap with PHP #16

From: http://sitestree.com/?p=5331
Categories:16
Tags:
Post Data:2011-07-05 06:10:13

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

Code Example: Utilizing Web Services in PHP #16

PHP code to grab the best provincial mortgage rate:function find_mortgaze_rate($url){ // create a new cURL resource   $ch = curl_init();  // set URL and other appropriate options    curl_setopt($ch, CURLOPT_URL, $url);    curl_setopt($ch, CURLOPT_USERPWD, "username:password"); curl_setopt($ch, CURLOPT_HEADER, 0);    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);        // grab URL and pass it to the browser  $result = curl_exec($ch);   $bestRates = json_decode($result, true);    return $bestRates[1][5][0]['rate']; // close cURL resource, and free up system resources    curl_close($ch);    return $bestMortgaze;    }//supply URL to ProvidingMortgazeRatesForEachProvinceForDifferentYearsAndType$bestMortgaze = find_mortgaze_rate($urlToTheWebService);
Sample JavaScript Function to calculate the monthly mortgaze paymentfunction calculate(){    var rate = document.getElementById('txtRate').value;    var homePrice = document.getElementById('txtHomePrice').value;  var percentDown = document.getElementById('txtDownpaymentPercent').value;   var amortization = document.getElementById('amortization').value;   var monthlyPayment = can_mortgage_payment_purchase(homePrice, percentDown/100,  rate/100, amortization, 12, 1); document.getElementById('monthlyPayment').value = '$'+monthlyPayment.toFixed(2);}
Calculator Form Code       
Best 5 Year Fixed Rate:
Home Price:
Downpayment Percentage:
Amortization: 25 Years 30 Years
Mortgage Payment:

From: http://sitestree.com/?p=5302
Categories:16
Tags:
Post Data:2009-11-03 18:40:09

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

PHP Network Programming Related Functions #16

What can you do with them? For example 1.

  • Asterisk (http://www.asterisk.org/) is a telephony/telecommunication/PBX system management software – itr must be using many of these functions.
  • An ISP (like shaw, mts) may write applications to monitor your modem/router activities, your bandwidth, or the activities in the wireless access points – all these will use a lot of PHP network functions
  • On the server side, for the ISPs, they may have software to control/operate/interact with the routers, collecting and displaying usage statistics, network statistics – all these applications can be written in PHP. These applications will also use a lot of PHP related network functions.

From: http://sitestree.com/?p=5274
Categories:16
Tags:
Post Data:2010-02-03 12:11:09

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

Stored Procedure: PHP & MySQL #16

Stored Procedure: PHP & MySQL. Stored Procedures are new additions to MySQL 5. PHP has supports for Store Procedure as well (with some limitations).

From: http://sitestree.com/?p=5263
Categories:16
Tags:
Post Data:2009-10-27 05:05:14

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

PHP String Related Built in Functions #16

Check the following string manipulation related functions in PHP. String manipulation is pretty common in Software Development (esp. in high level, even in low level applications say you are working with network protocols – you need to interpret/parse the protocol language). Memorizing library functions is always a good thing – it’s a matter of productivity. However, knowing more functions does not guarantee that you will be able to solve a programming problem. However, if you are good at solving problems in general (in programming in general), knowing functions will improve your productivity (may also help to maintain/improve quality of software indirectly).

You will find many string related functions very useful such as:

  • trim, rtrim, ltrip, chop, and similar: You may use these functions on user inputs, on data from databases, on data to insert into databases, while comparing two strings.
  • Wordwrap: To wrap words to create consistent user interfaces
  • substr_ compare, substr_ count, substr_ replace, substr, strstr, strchr: You will find these functions very usefull. Mostly substring related.
  • htmlspecialchars, addslashes, stripslashes, stripcslashes, html_ entity_ decode, htmlentities, htmlspecialchars_ decode,htmlspecialchars: For storing/retrieving HTML data into/from databases.
  • echo, print, fprintf, sprintf, vprintf, vfprintf: To output string. Formatted, non-formatted.
  • strtok, split, implode, explode, chunk_split : These are for dividing and merging strings.
  • money_format, number_format: To output string in money or number format.
  • strnatcasecmp, strnatcmp, strncasecmp, strncmp, similar_text : String comparison related functions.
  • strtolower, strtoupper, ucfirst, ucwords, lcfirst: the names tell it all. Case conversion related.
  • md5_ file, md5, sha1_ file, sha1, crc32, crypt: encryption & related
  • sscanf: formatted input
  • addcslashes
  • addslashes
  • bin2hex
  • chop
  • chr
  • chunk_ split
  • convert_ cyr_ string
  • convert_ uudecode
  • convert_ uuencode
  • count_ chars
  • crc32
  • crypt
  • echo
  • explode
  • fprintf
  • get_ html_ translation_ table
  • hebrev
  • hebrevc
  • html_ entity_ decode
  • htmlentities
  • htmlspecialchars_ decode
  • htmlspecialchars
  • implode
  • join
  • lcfirst
  • levenshtein
  • localeconv
  • ltrim
  • md5_ file
  • md5
  • metaphone
  • money_ format
  • nl_ langinfo
  • nl2br
  • number_ format
  • ord
  • parse_ str
  • print
  • printf
  • quoted_ printable_ decode
  • quoted_ printable_ encode
  • quotemeta
  • rtrim
  • setlocale
  • sha1_ file
  • sha1
  • similar_ text
  • soundex
  • sprintf
  • sscanf
  • str_ getcsv
  • str_ ireplace
  • str_ pad
  • str_ repeat
  • str_ replace
  • str_ rot13
  • str_ shuffle
  • str_ split
  • str_ word_ count
  • strcasecmp
  • strchr
  • strcmp
  • strcoll
  • strcspn
  • strip_ tags
  • stripcslashes
  • stripos
  • stripslashes
  • stristr
  • strlen
  • strnatcasecmp
  • strnatcmp
  • strncasecmp
  • strncmp
  • strpbrk
  • strpos
  • strrchr
  • strrev
  • strripos
  • strrpos
  • strspn
  • strstr
  • strtok
  • strtolower
  • strtoupper
  • strtr
  • substr_ compare
  • substr_ count
  • substr_ replace
  • substr
  • trim
  • ucfirst
  • ucwords
  • vfprintf
  • vprintf
  • vsprintf
  • wordwrap

From: http://sitestree.com/?p=5261
Categories:16
Tags:
Post Data:2006-08-01 21:49:26

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

Debugging PHP code under Eclipse PDT #16

Click Here to Download: This is a great manual to understand clearly how to debug PHP code under eclipse PDT. However, remember that you need to install XDebugger or Zend Debugger along with Eclipse PDT. One option is, you download and install the right package with all components. Download the Eclipse PDT from my site at eclipse_with_php_ide_and_zend_debugger_just_unzip_win32.zip. You will be fine – debugging will work accordingly.

From: http://sitestree.com/?p=5259
Categories:16
Tags:
Post Data:2011-06-10 01:42:23

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

PHP SQL Server Stored Procedure #16

/* prepare the statement resource */
$stmt=mssql_init("your_stored_procedure", $conn);

/* now bind the parameters to it */
mssql_bind($stmt, "@id", $id, SQLINT4, FALSE);
mssql_bind($stmt, "@name", $name, SQLVARCHAR, FALSE);
mssql_bind($stmt, "@email", $email, SQLVARCHAR, FALSE);

/* now execute the procedure */
$result = mssql_execute($stmt);

Another Example

$conn = mssql_connect($db_host,$db_user,$db_password);if ($conn===false){	
echo 'Cannot connect.';
exit;
}

if (mssql_select_db("YourDatabase",$conn) === false) {
echo 'no database';
exit;
}

$proc = mssql_init('YourStoredProcedure',$conn);
mssql_bind($proc,'@ParameterOne',$ParameterOne,SQLVARCHAR);
mssql_bind($proc,'@ParameterTwo',$ParameterTwo,SQLVARCHAR);
mssql_bind($proc,'@ParameterThree',$ParameterThree,SQLVARCHAR);
if ($result = mssql_execute($proc)) {
if ($row = mssql_fetch_row($result)){
// process results
}
}
From: http://sitestree.com/?p=5256
Categories:16
Tags:
Post Data:2011-08-31 17:44:38
Shop Online: https://www.ShopForSoul.com/ (Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com In Bengali: http://Bangla.SaLearningSchool.com http://SitesTree.com 8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) Shop Online: https://www.ShopForSoul.com/ Medium: https://medium.com/@SayedAhmedCanada

PHP Functions for SQL Server #16

The name of the functions may closely resemble the functionality.

# mssql_ bind
# mssql_ close
# mssql_ connect
# mssql_ data_ seek
# mssql_ execute
# mssql_ fetch_ array
# mssql_ fetch_ assoc
# mssql_ fetch_ batch
# mssql_ fetch_ field
# mssql_ fetch_ object
# mssql_ fetch_ row
# mssql_ field_ length
# mssql_ field_ name
# mssql_ field_ seek
# mssql_ field_ type
# mssql_ free_ result
# mssql_ free_ statement
# mssql_ get_ last_ message
# mssql_ guid_ string
# mssql_ init
# mssql_ min_ error_ severity
# mssql_ min_ message_ severity
# mssql_ next_ result
# mssql_ num_ fields
# mssql_ num_ rows
# mssql_ pconnect
# mssql_ query
# mssql_ result
# mssql_ rows_ affected
# mssql_ select_ db

For details on the functions, please check:

http://ca.php.net/manual/en/ref.mssql.php

From: http://sitestree.com/?p=5255
Categories:16
Tags:
Post Data:2007-01-03 13:49:48

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

Providing Single Sign on using Google and OpenID. #16

From: http://sitestree.com/?p=5181
Categories:16
Tags:
Post Data:2013-03-21 20:07:20

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

Software/Packages for Creating PHP Development Platform #16

From: http://sitestree.com/?p=5171
Categories:16
Tags:
Post Data:2011-05-06 14:48:51

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>