Saturday 2 April 2016

01 Donate Cars Illinois
1  Mesothelioma Law Firm
Donate Car to Charity California
3 Donate Car for Tax Credit
4 Donate Cars in MA
Donate Your Car Sacramento
6 How to Donate A Car in California
Sell Annuity Payment
8 Donate Your Car for Kids
Asbestos Lawyers 
10 Structures Annuity Settlement
11 Car Insurance Quotes Colorado
12 Annuity Settlements
13 Nunavut Culture
14 Dayton Freight Lines
15 Hard drive Data Recovery Services 
16 Criminal Defense Attorneys Florida
17 Best Criminal Lawyers in Arizona
18 Car Insurance Quotes Utah
19 Life Insurance Co Lincoln
20 moter car insurnece 
21 car insurance quotes
22 donate your car for money
23 MET AUTO
 24 onliine course
25 home phone internet
26 donating uesd car chairty
27 php education
28 neuson
29 CAR INSURANCE QUOTES PA
30 ROYALTY FREE IMAGES STOCK 
31 Car Insurance in South Dakota
32 Email Bulk Service
33 Webex Costs
34 Cheap Car Insurance for Ladies
35 Cheap Car Insurance in Virginia 
36  Register Free Domains 
37 Better Conference Calls
38 Futuristic Architecture
39 Mortgage Adviser 
40 Car Donate
41 Virtual Data Rooms 
42 Online College Course
43 Automobile Accident Attorney
44 Auto Accident Attorney
45 Car Accident Lawyers
46 Data Recovery Raid 
47 Criminal lawyer Miami
48 Motor Insurance Quotes 
49 Personal Injury Lawyers
50 Car Insurance Quotes
51 Asbestos Lung Cancer
52 injury Lawyers
53 Personal Injury Law Firm
54 Online Criminal Justice Degree 
55 Car Insurance Companies
56 Dedicated Hosting, Dedicated Server Hosting 
57 Insurance Companies 
58 Business VOIP Solutions
59 Auto Mobile Insurance Quote
60  Auto Mobile Shipping Quote

Sunday 27 March 2016

click

1  Mesothelioma Law Firm
Donate Car to Charity California
3 Donate Car for Tax Credit
4 Donate Cars in MA
Donate Your Car Sacramento
6 How to Donate A Car in California
Sell Annuity Payment
8 Donate Your Car for Kids
Asbestos Lawyers 
10 Structures Annuity Settlement
11 Car Insurance Quotes Colorado
12 Annuity Settlements
13 Nunavut Culture
14 Dayton Freight Lines
15 Hard drive Data Recovery Services 

Tuesday 22 March 2016

1. mesothelioma lawyers 2. mesothelioma attorneys 3. mesothelioma lawsuits 4. mesothelioma lawyer 5. mesothelioma litigation 6. malignant mesothelioma 7. mesothelioma settlement 8. lawyer mesothelioma 9. asbestos lawyer 10. asbestos attorney 11. ohio mesothelioma lawyer 12. texas mesothelioma attorneys 13. texas asbestos lawye 14. maryland mesothelioma lawyer 15. minnesota mesothelioma lawyer

Sunday 20 March 2016

neew

Tuesday 16 February 2016

PHP PDO Tutorials in Urdu/Hindi 2 of 5 PDO Select Query

">

PHP PDO Tutorials in Urdu/Hindi 1 of 5 Connection

Tuesday 26 January 2016

Kya Kool Hai Hum 3 Full Movie 2016 ᴴᴰ-Mandana Karimi, Tusshar Kapoor & Aftab Shivdasani |Full Event

Kya Super Cool Hai Hum (HD) (2012) - Ritesh Deshmukh - Tushhar Kapoor - Latest Superhit Comedy Movie

javascript:void(0);

Monday 25 January 2016

Creating a Custom Error Handler Php

Creating a Custom Error Handler Php

Creating a custom error handler is quite simple. We simply create a special function that can be called when an error occurs in PHP.
This function must be able to handle a minimum of two parameters (error level and error message) but can accept up to five parameters (optionally: file, line-number, and the error context):

Syntax

error_function(error_level,error_message,
error_file,error_line,error_context)
Parameter Description
error_level Required. Specifies the error report level for the user-defined error. Must be a value number. See table below for possible error report levels
error_message Required. Specifies the error message for the user-defined error
error_file Optional. Specifies the filename in which the error occurred
error_line Optional. Specifies the line number in which the error occurred
error_context Optional. Specifies an array containing every variable, and their values, in use when the error occurred

Error Report levels

These error report levels are the different types of error the user-defined error handler can be used for:
Value Constant Description
2 E_WARNING Non-fatal run-time errors. Execution of the script is not halted
8 E_NOTICE Run-time notices. The script found something that might be an error, but could also happen when running a script normally
256 E_USER_ERROR Fatal user-generated error. This is like an E_ERROR set by the programmer using the PHP function trigger_error()
512 E_USER_WARNING Non-fatal user-generated warning. This is like an E_WARNING set by the programmer using the PHP function trigger_error()
1024 E_USER_NOTICE User-generated notice. This is like an E_NOTICE set by the programmer using the PHP function trigger_error()
4096 E_RECOVERABLE_ERROR Catchable fatal error. This is like an E_ERROR but can be caught by a user defined handle (see also set_error_handler())
8191 E_ALL All errors and warnings (E_STRICT became a part of E_ALL in PHP 5.4)
Now lets create a function to handle errors:
function customError($errno, $errstr) {
  echo "<b>Error:</b> [$errno] $errstr<br>";
  echo "Ending Script";
  die();
}
The code above is a simple error handling function. When it is triggered, it gets the error level and an error message. It then outputs the error level and message and terminates the script.
Now that we have created an error handling function we need to decide when it should be triggered.

Set Error Handler

The default error handler for PHP is the built in error handler. We are going to make the function above the default error handler for the duration of the script.
It is possible to change the error handler to apply for only some errors, that way the script can handle different errors in different ways. However, in this example we are going to use our custom error handler for all errors:
set_error_handler("customError");
Since we want our custom function to handle all errors, the set_error_handler() only needed one parameter, a second parameter could be added to specify an error level.

Example

Testing the error handler by trying to output variable that does not exist:
<?php
//error handler function
function customError($errno, $errstr) {
  echo "<b>Error:</b> [$errno] $errstr";
}

//set error handler
set_error_handler("customError");

//trigger error
echo($test);
?>
The output of the code above should be something like this:
Error: [8] Undefined variable: test

Trigger an Error

In a script where users can input data it is useful to trigger errors when an illegal input occurs. In PHP, this is done by the trigger_error() function.

Example

In this example an error occurs if the "test" variable is bigger than "1":
<?php
$test=2;
if ($test>1) {
  trigger_error("Value must be 1 or below");
}
?>
The output of the code above should be something like this:
Notice: Value must be 1 or below
in C:\webfolder\test.php on line 6
An error can be triggered anywhere you wish in a script, and by adding a second parameter, you can specify what error level is triggered.
Possible error types:
  • E_USER_ERROR - Fatal user-generated run-time error. Errors that can not be recovered from. Execution of the script is halted
  • E_USER_WARNING - Non-fatal user-generated run-time warning. Execution of the script is not halted
  • E_USER_NOTICE - Default. User-generated run-time notice. The script found something that might be an error, but could also happen when running a script normally

Example

In this example an E_USER_WARNING occurs if the "test" variable is bigger than "1". If an E_USER_WARNING occurs we will use our custom error handler and end the script:
<?php
//error handler function
function customError($errno, $errstr) {
  echo "<b>Error:</b> [$errno] $errstr<br>";
  echo "Ending Script";
  die();
}

//set error handler
set_error_handler("customError",E_USER_WARNING);

//trigger error
$test=2;
if ($test>1) {
  trigger_error("Value must be 1 or below",E_USER_WARNING);
}
?>
The output of the code above should be something like this:
Error: [512] Value must be 1 or below
Ending Script
Now that we have learned to create our own errors and how to trigger them, lets take a look at error logging.

Error Logging

By default, PHP sends an error log to the server's logging system or a file, depending on how the error_log configuration is set in the php.ini file. By using the error_log() function you can send error logs to a specified file or a remote destination.
Sending error messages to yourself by e-mail can be a good way of getting notified of specific errors.

Send an Error Message by E-Mail

In the example below we will send an e-mail with an error message and end the script, if a specific error occurs:
<?php
//error handler function
function customError($errno, $errstr) {
  echo "<b>Error:</b> [$errno] $errstr<br>";
  echo "Webmaster has been notified";
  error_log("Error: [$errno] $errstr",1,
  "someone@example.com","From: webmaster@example.com");
}

//set error handler
set_error_handler("customError",E_USER_WARNING);

//trigger error
$test=2;
if ($test>1) {
  trigger_error("Value must be 1 or below",E_USER_WARNING);
}
?>
The output of the code above should be something like this:
Error: [512] Value must be 1 or below
Webmaster has been notified
And the mail received from the code above looks like this:
Error: [512] Value must be 1 or below

Basic Error Handling: Using the die() function

Basic Error Handling: Using the die() function

The first example shows a simple script that opens a text file:
<?php
$file=fopen("welcome.txt","r");
?>
If the file does not exist you might get an error like this:
Warning: fopen(welcome.txt) [function.fopen]: failed to open stream:
No such file or directory in C:\webfolder\test.php on line 2
To prevent the user from getting an error message like the one above, we test whether the file exist before we try to access it:
<?php
if(!file_exists("welcome.txt")) {
  die("File not found");
} else {
  $file=fopen("welcome.txt","r");
}
?>
Now if the file does not exist you get an error like this:
File not found 
 

PHP for Startups: New Lease on Life:-

PHP for Startups: New Lease on Life:-

 

With tech startups, the hassle around technology selection seems to outshine the chicken-and-egg problem. Is it the nature of the selected technology that determines implementation success, or the other way round, the hottest startups glorify the programming languages they implement? On the technology side, PHP for startups was given up for lost quite a while ago. But, while Ruby on Rails and Django advocates have been crossing swords to establish technology leadership, the PHP technology has evolved substantially in recent years. At the end of the day, PHP demonstrates incredible fitness for usage in tech startups.
I'm not going to enter the battle for technological supremacy as a PHP evangelist. I'm just saying that today, with PHP, you can do everything you thought was only possible, let's say, with RoR (and probably at lower costs). The project I was recently engaged in used the PHP framework to deliver SaaS-based a solution for online management of household devices. With a set of modulable and ready-to-use bundles, we were able to literally assemble the customer-facing, ecommerce, and admin components to draw resources to proceed with more effort-consuming integration tasks. Basically, PHP is pretty good when used for the Web part of a multi-component, multi-technology solution. You also can test certain assumptions by swiftly assembling a minimum viable product with PHP—and move to technology optimization with further iterations if proven efficient. Facebook, the most frequently cited proof to PHP's potency, got off the ground by building a product that enabled it to raise budgets for subsequent large-scale optimization of its massive PHP code base.

 

Speed

 PHP is one of the fastest languages to code with, deploy, and execute. The philosophy behind it, if any at all, is built around quick turnaround. The language was originally designed for finding the shortest path and the slickest solution to Web problems. Moreover, community contributors have been steadily moving the technology towards modular design in recent years. The PHP frameworks offer easily configurable, modulable, and ready-to-use, out-of-the-box bundles and libraries to arrange into a ready-to-use solution. Sonata Project for the Symfony framework, for example, with its admin bundles, technical utilities, content management features, and ecommerce tools enables developers to dramatically shorten the path to the final product, all while caring for all project participants' peace of mind.

Sunday 24 January 2016

Ghayal Once Again Official Trailer | Sunny Deol | 5th Feb 2016

International Khiladi Returns - (Tevar) Dubbed Hindi Movies 2016 Full Movie HD l Mahesh Babu,Bhumika

Akshay Kumar Plays Villain In Rajnikanth's 'Robot 2'

Airlift Full Movie 2016 | Akshay Kumar | Nimrat Kaur | Promotion

Saturday 23 January 2016


PHP OOP Tutorials in Urdu/Hindi Part 15 of 15 Registration Form Project


PHP OOP Tutorials in Urdu/Hindi Part 14 of 15 Registration Form Project


PHP OOP Tutorials in Urdu/Hindi Part 13 of 15 Registration Form


PHP OOP Tutorials in Urdu/Hindi Part 12 of 15 Registration Form


PHP OOP Tutorials in Urdu/Hindi Part 11 of 15 More on OOP


PHP OOP Tutorials in Urdu/Hindi Part 10 of 15 Inheritance


PHP OOP Tutorials in Urdu/Hindi Part 9 of 15 Magic Function Autoload


PHP OOP Tutorials in Urdu/Hindi Part 8 of 15 Magic Function Construct


PHP OOP Tutorials in Urdu/Hindi Part 7 of 15 Constants


PHP OOP Tutorials in Urdu/Hindi Part 6 of 15 This Keyword


PHP OOP Tutorials in Urdu/Hindi Part 5 of 15 Static


PHP OOP Tutorials in Urdu/Hindi Part 4 of 15 Visibility


PHP OOP Tutorials in Urdu/Hindi Part 3 of 15 Class Explanation


PHP OOP Tutorials in Urdu/Hindi Part 2 of 15 XAMPP


PHP OOP Tutorials in Urdu/Hindi Part 1 of 15 Introduction


How To Use WhatsApp For LifeTime ? [Working ]

Whatsapp is the most popular instant messaging app for Android, IOS, and other mobile platforms. When users register to Whatsapp for the first time, they get a 1-year free trial period. After that, users have to pay $0.99 (or 0.89€ if you pay in Euros) to renew your license for one more year.
Paying one dollar a year for an app that you probably use every day is not a big deal, especially if we consider that before Whatsapp we used to send SMS, incurring in a cost for each message we sent. So, why wouldn’t I pay for an app that even saves me money?
Whatsapp fees can only be paid using Paypal or Google Wallet. It might be enough for most of us, but in some countries it can get very difficult, or even impossible, to use them. Moreover, many people are having economic issues and every dollar they can save counts. This guide is intended to help those people.

Method 1 : Delete and recreate your account

This is a very simple method to extend your Whatsapp service for one year. All you have to do is delete your account (is not the same as uninstalling the Whatsapp app from your smartphone) and create it again.
Note: this method only works if your subscription has not expired yet. So only try it if your service is still active.
Before you proceed, let me warn you that deleting your account will have some minor side effects on your Whatsapp. Specifically, it will:
  • Remove you from all groups you were in. Like when you exit from a group. So maybe it is a good idea to note down every single group you are enrolled and warn your mates that you are forced to leave the group, so they will invite you again afterwards.
  • Erase your message history. But don’t worry, you can backup your message conversations and restore them later. To create the backup just go to Settings > Chat settings > Backup conversations, that will save them in your internal storage.
So, once you are aware and you may have taken the measures indicated to make the process more bearable, you can proceed to delete your account following these easy steps:
  1. Open your Whatsapp app and go to Settings > Account > Delete my account. There, you will be presented the screen below.
  2. Select the country your SIM card is registered to. It will automatically change the country code to the selected country.
  3. Type your phone number.
  4. Tap on Delete my account. This will log you out and remove any existing link between Whatsapp and your account.

YouTube Keyboard Shortcuts Key Collection [2015]

 Hello Friends,
Today I am Sharing Trick for YouTube, I’m sure you use YouTube a lot for watching Movies, Videos, Songs, Funny Video,Learning, etc....
Here I'm share Keyboard Shortcuts keys which give you better control over the videos you watch on YouTube.

Shortcut Keys as Follows :

Shortcut-Key Action
Space-bar Toggle play/pause the video.
F Full Screen Mode.
J Back video from 10 seconds back.
K Toggle play/pause the video.
L Forwarded to the video 10 seconds.
M Mute any video.
Left-Arrow Go back for 5 seconds.
Up-Arrow Increase volume ”.
Right-Arrow Go forward for 5 seconds.
Down-Arrow Decrease the volume.
0 Restart video
1-9 Key Skip to a particular section of the video (e.g., 5 goes to the video midpoint)
Home Play from the beginning.
End Go to End of video
Esc Exit from Full Screen Mode.
Powered by Blogger.

Blog Archive

nal waro

scarch

scarchpoint

Komentar

Artciles

News

Paling Dilihat