Home
About Us
Store
Web Templates
Add Ons
Products
Scarton
Foodzat
Grocarto
Services
Portfolio
FAQ
Careers
Blog
Contacts
App development
CMS
Drupal
Joomla
Wordpress
Company news
E-commerce solutions
Cs-Cart
Magento
Online Store
OpenCart
OsCommerce
Prestashop
Shopping Cart
TomatoCart
ZenCart
Internet
Browser
Google
Social Media
SEO
Google
Tutorials
SMO
Tutorials
Technology
Business Technology
Computer
Gadgets
Templates
Cs-Cart Templates
Magento Templates
OpenCart Templates
Web Design
E-Commerce
Flash
Graphic Design
Photoshop
Tutorials
Web Development
Apache
C
Codeigniter
CSS
HTML
Java
MySQL
Oracle
PHP
Python
Ruby On Rails
Visual Basic
How to Debug PHP Source Code in Netbeans
Apr 18, 2012,
by admin
<pre><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>
<title>NetBeans PHP debugging sample</title>
</head>
<body>
<?php
$m=5;
$n=10;
$sum_of_factorials = calculate_sum_of_factorials ($m, $n);
echo “The sum of factorials of the entered integers is ” . $sum_of_factorials;
function calculate_sum_of_factorials ($argument1, $argument2) {
$factorial1 = calculate_factorial ($argument1);
$factorial2 = calculate_factorial ($argument2);
$result = calculate_sum ($factorial1, $factorial2);
return $result;
}
function calculate_factorial ($argument) {
$factorial_result = 1;
for ($i=1; $i<=$argument; $i++) {
$factorial_result = $factorial_result*$i;
}
return $factorial_result;
}
function calculate_sum ($argument1, $argument2) {
return $argument1 + $argument2;
}
?>
</body>
</html></pre>
Code
Debug
How to
Netbeans
PHP
Source