- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 16
- Posts with Upvotes
- 14
- Upvoting Members
- 15
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
- Interests
- Programming
- PC Specs
- Desktop 2 GHz Intel Core 2 Duo, 4GB RAM, 500GB HDD, Snow Leopard 10.6.4
146 Posted Topics
FPDF is a class that provides a useful way to deal with PDF documents using dynamic content. Sometimes, according to a special circumstance, also would be valuable to send directly the PDF as attachment e.g. send an invoice automatically after processing a payment. In this example we use a html … | |
Re: [IMG]http://www.visibone.com/php/phpskinnysheetback.gif[/IMG] A PHP cheat sheet | |
Re: What data type is associated with name and city? | |
Re: Use [ICODE]String message = request.getParameter("message");[/ICODE] on the servlet to extract each input field value, the following snippet will do the rest: [CODE] import java.io.IOException; import java.util.Properties; import javax.servlet.*; import javax.servlet.http.*; import javax.mail.*; import javax.mail.internet.*; public class ContactServlet extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{ String … | |
Re: Maybe you could start renting a dedicated server with [URL="http://www.centos.org/"]centos[/URL], [URL="http://www.cpanel.net/index.html"]cpanel[/URL] and webhost manager, and a billing script. | |
Re: "Computer-based diagnosis of hearth diseases using x-ray imaging techniques and neural networks" sounds cool for me | |
Re: In editData.jsp the textboxes appears before calling request.getParameter() for each variable. For that reason every textbox is empty. Try to move the block of get parameters above, next to variable declarations. | |
Re: [QUOTE]java.lang.Exception: Port 8083 already in use.[/QUOTE] Seems to be that maybe there is another instance running on the server. | |
Re: If the page only shows the code that's because the PHP interpreter isn't running. Look at your [COLOR="Green"]httpd.conf[/COLOR] (Apache configuration file) and look if the line that says 'LoadModule php5_module' isn't commented with [COLOR="Red"]#[/COLOR] sign. Also, look for 'Listen' should say 'Listen 80' so you can put simply [url]http://localhost/[/url] on … | |
Re: Other suggestion: [CODE]CREATE TABLE IF NOT EXISTS `session_id`[/CODE] | |
Re: It seems to be a permission issue with profile folder. Grant access to everyone on these folders temporarily. | |
Re: Appears to be something related with encoding... There is missing two parenthesis at the end. Some array exceeded the length. I did correct indentation with Eclipse, looks better now. | |
Re: If the method sessionDestroyed() is declared static it's possible to access it from the logout method using [ICODE]SessionCounter.sessionDestroyed()[/ICODE]. | |
Re: Have you tried [ICODE]if(saw == "")[/ICODE]? | |
Re: There is a class named Apache Commons Lang that provides a method to check is String: [URL="http://commons.apache.org/lang/api-2.5/org/apache/commons/lang/StringUtils.html#isAlpha(java.lang.String)"]API documentation[/URL] [URL="http://commons.apache.org/lang/download_lang.cgi"]Download[/URL] | |
Re: Create a JAR file, it is executable in almost all brand new computers with Java Runtime Environment installed. | |
Re: I found some errors in your code: [CODE] import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; /** The Main class creates the GUI for the Dorm and Meal charges. */ public class Main extends JFrame { private JPanel dormPanel; private … | |
Re: It's viable to use several panels (could be three) and use e.g. setLocation(130,10) to change the position of the panels. Setting a different background with setBackground(Color.white) and setSize(width,height) could help too in the positioning. | |
Re: Remove the static modifiers in your Book class. Also you need to pass a new Book object on each iteration, e.g. [ICODE]mybooks.add(new Book(a_title, a_author,a_publisher, a_isbn));[/ICODE] if you have a constructor to initialize these variables. | |
Re: Do you have insert privileges into that database? | |
Re: Have you tried to do drag&drop these files into src/ of the Project Explorer (Eclipse) and then select "copy"? | |
Re: Use length() with strings. The library [URL="http://commons.apache.org/lang/download_lang.cgi"]Apache Commons Lang[/URL] provides isNumeric() to check strings. I'll give you an example, don't forget to download and add this external jar into your project: [CODE] import org.apache.commons.lang.StringUtils; public class StringTest { public static void main(String[] args) { String s = "12345"; System.out.println(s.length()); if(StringUtils.isNumeric(s)) … | |
Re: Have you tried OpenCMS at [URL="http://www.opencms.org/"]http://www.opencms.org/[/URL]? It's truly open source. | |
Re: Add a hidden field and modify the value from Javascript. Then you can extract the values using request.getParameter() | |
Re: Your external IP is not accessible from intranet, it is a common issue. If you did the right steps, try to access to your wan address from an outside location. | |
Re: To generate a PDF into PHP, there are two techniques: PDFLib or FPDF. PDFLib has some restrictions on licencing (commercial applications), I encourage to use FPDF because is free and Open Source, although PDFLib is rough and more complete (use your criterion). At [URL="http://fpdf.org"]http://fpdf.org[/URL] there are a place to download … | |
Hello everybody, I worked long hours this evening trying to unthread the whole thing and still not working... I don't know why. The page display the results using normal code in JSP (no jstl tags). When using jstl tags the page results in blank screen, no posts. Here is the … | |
Re: Have you tried [I]accBalance[/I] as instance or class variable? | |
Re: This is an simple approach to dispatch a value to index.jsp index.html: [CODE] <html> <body> <h1 align="center">Select Person</h1> <form method="POST" action="Person.do"> <select name="person" size="1"> <option value="[email protected]">Fred</option> </select> <br><br> <center><input type="Submit"></center> </form> </body></html> [/CODE] result.jsp: [CODE] <p> <% // request email from servlet String email = (String)request.getAttribute("email"); // print email out.println("<br>"+email); … | |
Re: You could use a non-enterprise JavaBean, then use <jsp:setProperty> and <jsp:getProperty> | |
Re: For Java Swing projects I suggest to use SQLite. Mysql for web. Everything you need is the MySQL Connector/J to start. | |
Re: Try $_GET instead of $_POST to get parameters every time you use URL method. Also, try to remove the single quotes on the SQL query. Use it on the array index. [code=php] $sql= sprintf("INSERT INTO pre_vent (center, custID, yStart, yAcquired, yOther, comments) VALUES ('%s','%s', ... )", mysql_real_escape_string($_GET['center']), mysql_real_escape_string($_GET['custID']), ... ); … | |
Re: Would be nice to know what type of error appears on your friend's computer. Since ISP DNS is not involved, the problem seems more like wrong ip address. | |
Re: The issue seems to be located on RecursiveDirectoryIterator or ZipArchive classes. An alternative solution would be to use [COLOR="Green"]exec("zip -r ...")[/COLOR] | |
Re: This code segment seems to be fine. This error doesn't show the line number? Try to find the last things you've worked, the syntax error is there. | |
Re: $value is an array or a simple variable like 'text'? If that's variable, the resultant code should be: [CODE] for($i=0; $i<$cntFields; $i++) { $a = $structure[$i]; $b = $structure[$i]; echo "Field = $a / Value = $b<br>\n"; // at this point I need the following: // $a should = "email" … | |
Re: With player.getPlayerState() will return 0 is end. The complete Youtube API is located in this page: [URL="http://code.google.com/apis/youtube/js_api_reference.html#Playback_status"]http://code.google.com/apis/youtube/js_api_reference.html#Playback_status[/URL] | |
Re: Every user session generates environment variables on the server (ip address, browser type, etc). With these variables $_SESSION and $_SERVER you can distinguish between each user. | |
Re: Is this what you're looking? [CODE=sql]SELECT * FROM `teams_types` JOIN `teams` ON teams_types.team = teams.id JOIN `product_types` ON teams_types.product_type = product_types.id[/CODE] | |
Re: The code segment seems correct. Are you tried with empty() instead of is_null()? | |
Re: The result will be displayed into an array: [code=php]preg_match_all("/([\s]*)([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*([ ]+|)@([ ]+|)([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,}))([\s]*)/i", $syntax, $matches); echo "<pre>"; print_r($matches);[/code] | |
Re: If you have NTFS (Windows) partitions on that disk, all partitions will be displayed as read-only. Things you need, install NTFS-3G. | |
Re: Could you explain more what you're looking? To block a virtual host, it's possible to use $_SERVER['SERVER_NAME'] into a condition then header() to redirect to a blank page. But if you're looking to block a site in your computer, all you need is to edit the hosts file. | |
Re: You need PEAR installed first to execute `pecl install` command. I suggest to follow this guide: [URL="http://php.net/manual/en/install.pecl.php"]http://php.net/manual/en/install.pecl.php[/URL] Also this guide can help too: [URL="http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module"]http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module[/URL] | |
Re: This is a source code example to calculate that expression with any value, you can test it at [URL="http://agec.ath.cx/eq"]http://agec.ath.cx/eq[/URL], two functions to calculate each ± result, and one condition to put the two values (the real one and the imaginary) in the imaginary case (b < 4ac), tomorrow I'll inspect … | |
Re: ant, anti, establish, disestablish, men, arian, bliss, mental, base and we could add the word "mentat" from Dune too :-) [B]Sternocleidomastoid[/B] | |
Re: I think Zend Framework wins using LiveDocx component: [URL="http://www.phplivedocx.org/downloads/"]http://www.phplivedocx.org/downloads/[/URL] Antiword would be an alternative, it's a UNIX app, can be executed from PHP using exec() [CODE] <?php exec('/usr/local/bin/antiword /opt/lampp/htdocs/example.doc', $output); ?> [/CODE] | |
Re: That's weird, the question is from which address was downloaded the PHP Developer Tools. There is a version from Zend based on the latest Eclipse 3.4 that could work. Try this: [URL="http://www.zend.com/en/community/pdt"]http://www.zend.com/en/community/pdt[/URL] |
The End.