<< < 17 18 19 20 21 22 23 24 25 26 > >>   Sort: Rank

main method is a standard method used by JVM to execute any java program(Java SE). - Why main method return type is void?
main method is a standard method used by JVM to execute any java program(Java SE). - Why main method return type is void? main method wont return anything to JVM so its return type is void.
2015-07-01, 333👍, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is static?
main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is static? To execute main method without creating object then the main method oshould be static so that JVM will call main method by using class name itself.
2015-07-01, 361👍, 0💬

main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is public?
main method is a standard method used by JVM to execute any java program(Java SE). - Why main method is public? To call by JVM from anywhere main method should be public. If JVM wants to call our method outside of our package then our class method should be public. package instanceofjava; public Mai...
2015-07-01, 338👍, 0💬

Royal Caribbean vs. Carnival, Which Stock is the Better Buy?
Royal Caribbean vs. Carnival, Which Stock is the Better Buy? Two of the leading cruise liners in the industry include Royal Caribbean (RCL) and Carnival (CCL). As two large cruise liners, they have similar strengths and weaknesses. Nonetheless, there are distinctions between the two stocks which mig...
2015-07-01, 401👍, 0💬

Facebook Comments for WordPress
Useful PHP Code Snippets for Developers - Facebook Comments for WordPress &lt;div id="fb-root">&lt;/div> &lt;script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en...
2015-07-01, 466👍, 0💬

The Real Way To Check Uploaded File Type
Useful PHP Code Snippets for Developers - The Real Way To Check Uploaded File Type &lt;?php // Here we specify all the type of files we want to accept $extension = array("application/pdf", "image/jpeg", "image/png", "image/gif"); if(isset($_POST['submit'])){ exec("file -i ".$_FILES['inputName'][...
2015-07-01, 713👍, 0💬

WordPress – Scheduling Posts for RSS
Useful PHP Code Snippets for Developers - WordPress – Scheduling Posts for RSS function publish_later_on_feed($where) { global $wpdb; if(is_feed()) { // timestamp in WP-format $now = gmdate('Y-m-d H:i:s'); // value for wait; + device $wait = '5'; // integer // http://dev.mysql.com/doc/refma n/5.0/en/...
2015-06-19, 328👍, 0💬

Validate email Address
Useful PHP Code Snippets for Developers - Validate email Address function is_valid_email($email, $test_mx = false) { if(eregi("^([_a-z0-9-]+)(\.[_a -z0-9-]+)*@([a-z0-9-]+)(\.[a-z 0-9-]+)*(\.[a-z]{2,4})$",$email)) if($test_mx) { list($username, $domain) = split("@", $email); return getmxrr($domain, $m...
2015-06-19, 309👍, 0💬

How to generate an authentication code in PHP ?
Useful PHP Code Snippets for Developers - How to generate an authentication code in PHP ? <?php # This particular code will generate a random string # that is 25 charicters long 25 comes from the number # that is in the for loop $string = "abcdefghijklmnopqrstuvwxyz012 3456789";for($i=0;$i
2015-06-19, 333👍, 0💬

Unzip a Zip File
Useful PHP Code Snippets for Developers - Unzip a Zip File <?php function unzip($location,$newLocation){ if(exec("unzip $location",$arr)){ mkdir($newLocation); for($i = 1;$i //Use the code as following:
2015-06-19, 316👍, 0💬

username, password and date validation with php
Useful PHP Code Snippets for Developers - username, password and date validation with php
2015-06-19, 274👍, 0💬

url, email and ip validation with php
Useful PHP Code Snippets for Developers - url, email and ip validation with php
2015-06-19, 279👍, 0💬

How to short URL Function with PHP ?
Useful PHP Code Snippets for Developers - How to short URL Function with PHP 45){ $length = $length - 30; $first = substr($url, 0, -$length); $last = substr($url, -15); $new = $first."[ ... ]".$last; return $new; }else{ return $url; } } ?> // USAGE <?php $longurl= "http://www.google.com/search? q=...
2015-06-19, 312👍, 0💬

How to get short urls for Twitter with PHP
Useful PHP Code Snippets for Developers - How to get short urls for Twitter with PHP
2015-06-19, 267👍, 0💬

How to get users’ IP Address with PHP
Useful PHP Code Snippets for Developers - How to get users’ IP Address with PHP function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_ IP']))//check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP'] ;} elseif (!empty($_SERVER['HTTP_X_FORWA RDED_FOR']))//to check ip is pass from proxy { $...
2015-06-19, 272👍, 0💬

How to get Country By IP Address in PHP
Useful PHP Code Snippets for Developers - How to get Country By IP Address in PHP '', 'city'=>''); if(filter_var($client, FILTER_VALIDATE_IP)){ $ip = $client; }elseif(filter_var($forward, FILTER_VALIDATE_IP)){ $ip = $forward; }else{ $ip = $remote; } $ip_data = @json_decode (file_get_contents("http:/...
2015-06-19, 268👍, 0💬

How to use PHPMailer to Send HTML Emails With Images
Useful PHP Code Snippets for Developers - Using PHPMailer To Send HTML Emails With Images IsSMTP(); $mail->Host = "smtp1.example.com;smtp2.examp le.com";$mail->SMTPAuth = true; $mail->Username = 'smtpusername'; $mail->Password = 'smtppassword'; $mail->From="mailer@example.co m";$mail->FromName="My s...
2015-06-19, 293👍, 0💬

Westell A90-750015 Modem PPP Account
How to view and change the PPP account in my Westell A90-750015 Modem? I think my Verizon account password is changed. I need to use the new password in the modem. To view or change the network connection configuration, including the PPP account ID and password, in your Westell A90-750015 Modem, you...
2015-06-18, 356👍, 0💬

Westell A90-750015 Modem Reset Configuration
How to reset my Westell A90-750015 modem to the default configuration? My Internet connection is having problems frequently. A friend tells me to reset the modem. Resetting the Westell A90-750015 modem to the default configuration sometime may help to resolve Internet connection issues. The easiest ...
2015-06-18, 328👍, 0💬

Westell A90-750015 Modem Change Admin Password
How to change the admin password on my Westell A90-750015 modem? I don't like the default password. It's too simple. If you want to change the admin password on the Westell A90-750015 modem, you can follow these steps: Open your Web browser and enter http://192.168.1.1 in the Address field Enter you...
2015-06-18, 314👍, 0💬

Westell A90-750015 Modem Wireless Settings
How to turn on the Wireless service Westell A90-750015 Modem? I also want to change the wireless access password. To turn on or turn off the wireless service on the Westell A90-750015 Modem, or change the wireless access password, you can follow these steps: 1. Connect your laptop to the modem using...
2015-06-17, 383👍, 0💬

Westell A90-750015 Modem New Installation
How to install Westell A90-750015 Modem for the first time? If you have the modem and the Internet account ready, you can follow these steps to install an Westell A90-750015 Modem and configure it for Internet access. 1. Wait for the phone company to confirm that your DSL service is started. 2. Plug...
2015-06-17, 370👍, 0💬

Westell A90-750015 Modem Configuration
How to access Westell A90-750015 Modem configuration? I want to know what the current settings. If you want to access Westell A90-750015 Modem configuration, you can follow these steps: 1. Connect your laptop to the modem using an Ethernet cable. 2. Open a Web browser and go to "http://192.168.1.1",...
2015-06-17, 360👍, 0💬

Westell A90-750015 Modem Troubleshooting Basics
How to start to troubleshoot my Westell A90-750015 Modem? I am not able to access Internet. If you are not able to access the Internet using an Westell A90-750015 modem, follow these steps to start to troubleshoot yourself: 1. Is the modem powered on? If the Power light on the modem is solid green, ...
2015-06-15, 448👍, 0💬

<< < 17 18 19 20 21 22 23 24 25 26 > >>   Sort: Rank