I'm trying to pass a couple of vars and an array to a perl module, but I can't seem to get the syntax correct. The module has the following code
my ($new_name) = $_[0];
my ($new_desc) = $_[1];
my (@new_time) = $_[2];
print FILES "$new_name\n";
print FILES "$new_desc\n";
foreach my($tempTime)...
I'm getting an error in my Apache log whenever I call specific a script. The script uses the following notation to fire off a bash script;
qx[SomeBashScript];
the error that keeps appearing is as follows
file mcoputils.cc: line 238 (static std::string Arts::MCOPUtils::mcopDirectory())...
I have a checkbox array that I need to pass to a function, but I'm having problems. My html for the array is as follows:
<input name="chkRpt[]" type="checkbox" id="rptTue" value="2" />
<input name="chkRpt[]" type="checkbox" id="rptWed" value="3" />
<input name="chkRpt[]" type="checkbox"...
I'm trying to place a subroutine in a perl module and although I have the syntax correct (nothing in the error log) the routine doesn't seem to be getting called.
The key items from the main script are as follows;
use filelog;
update_log2("Filename", "Name");
obviously the call is within the...
I'm trying to get Mega Uploader to work, but I need MCookie installed. I've had a look on CPAN for modules called cookie, but there are loads of them. Does anyone know which one I should be using?
A link to the Mega Uploader site is below
http://www.raditha.com/megaupload/faq.php
with the...
I have a form to allow the user to get a file path, using
<input name="myTrack" type="file" class="Upload" id="myTrack" size="75" />
Nothing special there. However, I need my javascript to be able to read the full path of the file, not just the filename that myTrack.value returns. Is there...
I'm struggling on this one. I have a modal window allowing the user to select a file top upload. When they click OK the file is uploaded, but I then need the modal window to close automatically, returning them back to the parent page. Is there a way to get perl to do this? I've tried putting...
I have a web interface that uses javascript to create a modal window, allowing the user to enter new data. What I want to do is refresh the parent page with the newly added data, when the user clicks OK on the modal.
The parent page is generated with perl, as it has to read the contents of a...
I've survived with Perl so far, but I'm starting to stretch myself now, and my lack of knowledge is starting to let me down. I'm trying to produce a page that when the user clicks on a button, the script gets called, but the page doesn't change. Basically the script triggers an MP3 to play on...
Is there anyway to get perl to play a sound file on the server hosting the perl script. I'm looking at a cheap way to put together a PA system, and thought if the operator could http to the system, them click on a sound it would be a smal system. I'm just stuck on how to get it to play to...
I have a piece of work that can fit 8 times onto a sheet of A4. The document size is defined as 60mm x 90mm. At the moment to fill a sheet of A4, I import it into Photoshop, flatten it and them copy it 8 times. Needless to say if I make a change I have to go through the whole process again...
I'm looking into switching over to sendmail, but was wondering if anyone has tried accessing it with a Pocket PC and Pocket Outlook. Pocket Outlook uses UIDL commands which have thrown my current server (Alt-N's MDaemon) a few times, locking up the account. Does anyone have any experiece or...
I've always used this code to read in data from my forms, but for some reason it's not working. The server is still fine and is working with other Perl scripts, it's just this one. Can anyone see what is wrong with it?
#!/usr/bin/perl
use CGI qw(:standard);
print header();
# Read in the...
I'm still finding my feet in Java and have com across a problem. I have written a class that checks data. Based on the data, one of two windows needs to popup for clarification. Do I need to create two more class files to allow me to show two different windows, or can they be coded into one...
I'm trying to get this layout working, but I can't get the two 'Postcode' labels to align to the right. The wierd thing is I make a change to 'Postcode To' and it moves 'Postcode From' and vice versa. Simple mess up of names not that I can find? Can anyone tell me what I'm doing wrong? The...
I've been reading about layout managers and am still having trouble understanding the whole thing. I'm used to VB and giving an X/Y position plus a width and height. I understand (pretty much) why that isn't any good for cross platform use, but does anyone know of a good tutorial for the...
I'm still finding my feet in Java, but have a possible project requiring the use of a serial port. Speaking generally, would the routine I write to communicate with the serial port work across any OS (mainly Mac or PC) or is this just part of the Java hype, when actually there are OS quirks I...
I have a shared folder containing a single excel sheet (there will be more). The sheet needs to be read only to everyone, but editable to certain users. I've set up the permissions to allow 'Everyone' to have 'Read & Execute', 'List Folder Contents' and 'Read' access and then specific users to...
I'm trying to get icons to appear on my command buttons, but no matter where I put them on the HDD, they don't seem to appear. I though placing them in the same directories as the source must work but even nothing then. My code is as follows:
import javax.swing.*;
public class IconFrame...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.