Perl Hello world CGI in xampp server

Download Xampp from http://www.apachefriends.org/en/xampp-windows.html Step 1: Create a file named javadomain.cgi and paste the below code, #!”C:\xampp\perl\bin\perl.exe” print “Content-type: text/html\n\n”; print “<H1>Hello World</H1>\n”; #!”C:\xampp\perl\bin\perl.exe” is the location of perl.exe. Step 2: Save this file in C:\xampp\htdocs Step 3: Open the xampp control panel. which is in c:\xampp. Step 4: Start the servers,   Step 5: Check whether the server is on

834 total views, 2 views today

» Read more

Perl Hello World

Step 1: Create a text file named HelloJAVADOMAINdotIN.pl and copy this below single line,   print “Hello JAVADOMAINdotIN\n”;   Step 2: Save this file in your perl directory bin folder. Ex: C:\xampp\perl\bin Step 3: Open the command prompt and run the file like this, “perl HelloJAVADOMAINdotIN.pl”  then you can see the output like this,     Thanks for reading this post………!!!  

169 total views, 1 views today

» Read more

Java URLDecoder sample program

Program: package com.javadomain.in; import java.io.UnsupportedEncodingException; import java.net.URL; import java.net.URLDecoder; import java.net.URLEncoder; public class ComparePrintandSystem { static String intro="I am naveen kumar working @ www.javadomain.in"; public static void main(String[] args) throws UnsupportedEncodingException { System.out.println("Input string is "+intro); String encodedurl = URLEncoder.encode(intro,"UTF-8"); System.out.println("After encoding the INPUT " +encodedurl); String decodedurl = URLDecoder.decode("After decoding the encoded input "+encodedurl,"UTF-8"); System.out.println(decodedurl); } }    Output:

162 total views, 2 views today

» Read more

URLEncoder with sample program

Sample program:   package com.javadomain.in; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class ComparePrintandSystem { static String intro="I am naveen kumar working @ www.javadomain.in"; public static void main(String[] args) throws UnsupportedEncodingException { System.out.println(URLEncoder.encode(intro,"UTF-8")); } }   Output: I+am+naveen+kumar+working+%40+www.javadomain.in URLEncoder Rules: All the characters (a to z & A to Z) and numbers (0 to 9) remains same. Space is converted to “+” All

182 total views, no views today

» Read more

TxtWeb Hello World

Step 1:  Download the eclipse,  http://www.eclipse.org/downloads/ Step 2:  Add the google plugin for txtweb in eclipse Step 3:  New -> other -> Web application project, and paste the below code, package com.agn.meaning; //Package name for the app import java.io.IOException; import javax.servlet.http.*; @SuppressWarnings(“serial”) public class MeaningServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(“text/html”); // Remember

165 total views, no views today

» Read more

Amazon Affiliate marketing

Affiliate marketing is a commission based money earning way. We have to recommend some books, products or things to our website users. If they buy that then we will get the commision. First we have to create a amazon affiliate account, Just create the account. They will give you affiliate account id and they will take 3 days to verify

395 total views, 5 views today

» Read more

creating a website without coding

Step 1: First of all you have to buy domain name (www.javadomain.in, here javadomain.in is our domain name) and hosting (like space to store the javadomain.in contents) for your domain name. Where you can buy domain name and hosting?  you can buy from bigrock.in, godaddy.com, hostgater.com, hioxindia.com etc… choose them based on your requirements and price. Step 2: After you

128 total views, no views today

» Read more
1 56 57 58 59 60 61