csmith
Members-
Content Count
12 -
Joined
-
Last visited
About csmith
-
Rank
Newbie [Level 1]
-
Php5 And Apache Tomcat 5.x PHP5 with Apache Tomcat 5.x
csmith replied to Tuffy's topic in Programming
What kind of problems have you had after you installed php5 with tomcat 5.x? For a detailed outline about how to configure php5 with tomcat 5.x you can look at this site: http://forums.xisto.com/no_longer_exists/ If you have trouble configuring the web.xml file this gives pretty extensive instructions on how to do this; there are also a lot of replies to this article which may address the problem which you may currently be having. -
The above code in the previous message would work: However, if you wish to read only a certain number of lines, you could also add the following code: try { File inputFile = new File("C:\\test.java"); // put ur filename here BufferedReader in = new BufferedReader(new FileReader("infilename")); String str; int counter = 0; while (((str = in.readLine()) != null) && i < 2) { //set i < the number of lines which you wish to read - i.e., if you wish to read the //first 10 lines only, you would set i < 10 System.out.println(str); i++; } in.close(); } catch (IOException e) { } Notice from cmatcmextra: Use quote tags when copying and code tags when using code!!
-
Introduction To Web Services A brief Introduction to Web Services
csmith replied to andrewsmithy's topic in Programming
Some sites which you may wish to look at are: http://forums.xisto.com/no_longer_exists/ (a tutorial) http://www.oracle.com/technetwork/java/index.html (web services code examples) http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html (good for a beginning web services code example) http://shop.oreilly.com/product/9780596002695.do (more web services code examples) http://www.jguru.com/ (running web servcies on Apache Axis) -
What version of Linux do you have - it seems as if Linux 7.1 is most optimal for use with j2se 1.4.2 - there are a number of (minor) bugs which may occur when running j2se with earlier versions of Linux, so if you could upgrade to this version this may help. Again, the download for j2se1.4.2 is at: http://www.oracle.com/technetwork/java/archive-139210.html Although you do download a .bin file, this should be able to be extracted and installed without any additional files; there are some pretty good instructions on this page for installing and configuring the j2se1.4 (.bin file) on Linux: http://www.oracle.com/technetwork/java/index.html I hope this helps.
-
To install and configure php with apache on windows you could look at this guide: https://www.thesitewizard.com/archive/php4install.shtml For tutorials you could try: http://www.phpbuilder.com/ for coding examples/scripts: http://imptestrm.com/rg-erdr.php?_dnm=www.scriptswave.com&_cfrg=1&_drid=as-drid-2348283779057022 for help forums and more coding examples: http://forums.devnetwork.net/
-
This is a pretty primitive solution, but after you delete the rows which you wish to remove from the table, you could export the remaining rows into either a .csv file. In this subsequent excel file you could remove the first column which contains the id, save this file, and then re-import this back into your database table (you should click on the option of over-writing rows in this table which have the same id/primary key value as a row in the excel file), or re-import into a new table. The ids will be automatically re-set without any numbers skipped - it should not take too long, plus you should not lose any data in the process
-
Has anyone tried using the excel import function that comes with phpmyadmin https://www.phpmyadmin.net/ - it does not require any additional plug-ins or scripts and is fairly straightforward to use. In phpmyadmin, if you click on the database table which you wish to import the data to , there is a link on the bottom left corner which says "insert data from a text file into the table" - although it says text file it still can be used to import an excel file. When you click on this link you will be taken to a page where you will be asked for the file name (the excel file should be saved as a csv file), how the fields in the file are terminated (you would change this to a "," without the quotation marks), and other data formatting attributes (these are usually left blank). I have never found any problem when using this
-
Shopping Cart - Please Help Ive been searching for 12 hours
csmith replied to msdeeva's topic in Websites and Web Designing
You may wish to try the shopping cart application of shop-script "http://www.shop-script.com/;, a free downloadable shopping cart application. When a product is sold out, a "not in stock" line will appear next to this product/product's description (the not in stock tag is displayed depending on the quantity of this product which is left over in stock - this shopping cart application keeps track of how many items of this product have been sold and dynamically modifies the quantity which is left over after each sale of this item - there is an "in stock/not in stock" column in each item's row which is updated corresponding to these values in these columns as well). Each time the page for this item is loaded it will display the updated versions of these values. You have the option to not display the "add to shopping cart" next to this product if the "in stock/not in stock" value is "not in stock". Although this will not remove the product entirely from your database table that stores teh product information/inventory, it will not make the product available for sale to any subsequent customers. I do not know if there are any other shopping cart applications which offer this feature automatically, but I do know that this particular shopping cart application offers this feature without the requirement of any additional plug-ins, scripts, etc... -
In terms of a free shopping cart application, osCommerce and zen-cart are two of the most commonly used shopping cart applications used - both are php based and can support large volume online stores. Other features which they offer are customer discussions of a product, customer ratings, search features, and more. You will also need a back-end database to store your products in conjunction with these shopping carts - the most comnonly used database with these would be MySql (also free and downloadable). Although these shopping cart application may take some time to configure (any problems usually involve the setting of php parameters in the ph.ini file) they usually run without any problem once they are set up
-
Webmaster Get Revenue By Placing Ads. Google Adsense alternatives
csmith replied to sunny's topic in Business Forum
Have you tried the affiliate programs offered for laptop sales through Amazon, Dell, Gateway, and other computer retailers - if you place an ad on your site which links them to a laptop listing on their site, any purchase which is made from your ad is in part credited to you (in other words, you receive 10% - %15 of the total sale of this purchase, which usually averages to at least $100). Your site first has to be reigstered and approved by these retailers before they will provide affiliate links/ads for you to place on your site. What is the average per month which people tend to make from these types of affiliate programs