Jump to content


  • Posts

  • Joined

  • Last visited

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location
    United States

lugos's Achievements


Newbie (1/7)



  1. Hello,I'm fairly new to PHP. Is parameter substitution possible/necessary using PHP and MySQL to prevent SQL injection attacks? Are there any other methods that can be used to protect oneself from those types of attacks?Thanks.
  2. I found that this isn't possible. But I may be able accomplish my goal by creating a scheduled task for the executable and then start it through my application.Thanks.
  3. Hello,C# newbie here. I am running an executable on a remote machine with the following code: Process remoteProcess = new Process();ProcessStartInfo remoteProcessStartInfo = new ProcessStartInfo();remoteProcessStartInfo.CreateNoWindow = true;remoteProcessStartInfo.ErrorDialog = false;remoteProcessStartInfo.RedirectStandardError = false;remoteProcessStartInfo.RedirectStandardOutput = false;remoteProcessStartInfo.UseShellExecute = false;remoteProcessStartInfo.FileName = "\\\\<remote_machine>\\winnt\\NOTEPAD.EXE";remoteProcess.StartInfo = remoteProcessStartInfo;remoteProcess.Start();remoteProcess.WaitForExit();remoteProcess.Dispose(); This accomplishes part of what I want to do. However, what I am seeing is that notepad is opening up on my local machine. It almost looks like it's downloading an instance of the notepad exe and running it locally. What I am looking to do is run it on the remote machine and have it open up there.Any assistance/direction would be greatly appreciated.Thanks in advance.
  4. Hopefully you've gotten your answer by now, but if you haven't, you would need to download the JavaMail API and, if you're not using Java SE 6, you will also need to download the JavaBeans Activation Framework. Once you've downloaded and added to your project/classpath, something like this may help:// Send e-mail// Get system propertiesProperties properties = System.getProperties();// Setup mail serverproperties.setProperty("mail.smtp.host", "smtp.mail.yahoo.com");// Get the default Session object.Session session = Session.getDefaultInstance(properties);// Create a default MimeMessage object.MimeMessage message = new MimeMessage(session);// Set the RFC 822 "From" header field using the// value of the InternetAddress.getLocalAddress method.message.setFrom(new InternetAddress("user@yahoo.com"));// Add the given addresses to the specified recipient type.message.addRecipient(Message.RecipientType.TO, new InternetAddress("webmaster@mywebsite.com"));// Set the "Subject" header field.message.setSubject(mySubjVar);// Sets the given String as this part's content,// with a MIME type of "text/plain".message.setText(myMsgVar);// Send messageTransport.send(message); User variables where appropriate.
  5. lugos

    File Watch

    The Java File class is where you'll want to start. I looked around a bit but could only find this and this on what you are specifically trying to accomplish.Hope that can get you started.
  6. I assume you're running it in some kind of servlet container or Java app server like Tomcat, JBoss, GlassFish, etc., correct? If the other pages work it may be a configuration problem. Are you using a framework? Can you post the code?ThanksEDIT: Sorry, didn't realize this post was from 2007. Pls ignore my response as the original poster probably (hopefully) has found the answer to their problem...
  7. For job scheduling, there's the Java Timer API (java.util.Timer) and there is also Quartz, an open source job scheduling system.For the DB connection there's JDBC and there are also open source persistence frameworks out there like iBatis and Hibernate.There's also a framework called Spring (you may have heard of it) that has a scheduling system and JDBC database access built into it. Hibernate and iBatis can also be integrated into a Spring application if you choose to go with either over JDBC. It's one of the more well known and widely used open source J2EE frameworks.As far as exporting the data to an excel file, I've never tried it but it'd be interesting to see how that's done. I'll see if I can look into that a little more.
  8. Try adding the following attribute:session="true" To one of the page directive in both JSPs.It should then look like this: <%@page language="java" import="java.sql.*" session="true" %> Hope that helps.
  9. Try changing the percent sign to a dollar sign.
  10. Hello,I have a DataSet object with data organized in a specific way. Is there an easy way to reorganize that data? For instance, I thought maybe I could create an XML schema file to define how I want to see the data and then read that into the DataSet. But as I thought about it some more, I'm not sure that will work.Any assistance would be greatly appreciated.
  11. Does anyone know of a tutorial for creating a VB, C# and/or C++ .NET web application? I'm primarily interested in a VB tutorial, but I would like to look at C++ and C#.Thanks.
  12. lugos

    Simple Query

    It may not be as simple as one would think. You can start here, here, here, and here.
  13. Have you tried the onkeypress event?By the way, what event are you using now to execute the javascript code when the button is clicked?
  14. There's open source forum platforms like phpbb and open source blog platforms like wordpress. You can download and install them on your server and have a community of users like this forum, or a blog where you post messages and people comment and respond like dustin diaz's website.
  • Create New...