Okay NOT asking for the code asking for direction.
I need to check and see if a variable has a numaric value or a char value.
IE -
$val1 = "2345b";
if ($val1 is all numaric) { do this....
} else { do this... }
in this instance the else would be executed because $val1 has a 'b' in it...
Is it possible to test the inbound user connection speed?
Then say:
if ($connection_speed <= 26.6) {
# do somthing
} elsif ($connection_speed <= 56.6) {
# do somthing
} else {
# do somthing
}
Wise men ask questions, only fools keep quite.
Okay along the same lines - as mu last question. Now i need to change the file name upon UPLOAD.
for example:
if the file name the user selects in the form tag QUESTION-IMAGE is say example01.gif - while using the following code:
I need to rename the file upon upload to: $NEW::FILENAME...
Okay I think I'm a dorkis - but here goes - I have been searching for a way to upload Binnary stuff IE gifs and jpegs to my server via perl - here is the code that im using:
use CGI;
$upload_dir = "/uploads";
$query = new CGI;
$filename = $query->param('upload_file');
$filename =~...
I am trying to use a select statement from a MySQL DB using perl - I need to place the retreived data into an array - IE @db_data.
Here is the code that I am currently using:
my $dsn = "DBI:mysqlPP:nn_work_orders:$DB::SERVER";
my $dbh = DBI->connect($dsn, $DB::USER, $DB::PASS)...
okay guys and gals - im trying to write a little script that will help me write other scripts ---->
(BTW Ill post the completed script here for others to use as well)
Here is the prob im facing:
1 im trying to access a MySQL database - using perl - mysqlpp. here is the code...
okay guys and gals - im trying to write a little script that will help me write other scripts ---->
(BTW Ill post the completed script here for others to use as well)
Here is the prob im facing:
1 im trying to access a MySQL database - using perl - mysqlpp. here is the code...
HELP!
IIS 6 on windows 2003 is NOT printing errors to the browser....
Anyone else have this problem?
- Scott
Wise men ask questions, only fools keep quite.
I have purchased the PERL DEV Kit. And i have successfully created a Service. However here is the problem when i install the service it dosnt run, actually it wont even install. Here is the code that I am using:
----------------------------------------------------
use strict;
use IO::Socket...
Greetings from mile high!
Im trying to figure out this IO::SOCKET stuff -
Here is what im looking to do:
Server 1 - Listens on poprt 1117
Server 2 - Send message to Server 1 on port 1117 and awaits a response on port 1117.
if Server 1 does not respond Server 2::DO THIS::
if Server 1 does...
heres the deal guys and gals -
I need alittle help on this and i have looked to no avail.
I need to be able to select something from a form selct box.
IE -
<form action="" method="">
<select name="SELECT1">SELECT1::DATA</select>
</form>
SELECT1::DATA will be populated by Perl. With...
Heya Guys and gals i have been looking for a while now for some type of perl module that will listen on a spcified port - and say if via this i send a command to do something it will execute lines of code on a remote machine. I have the perl dev kit but i dont know what module to use on the...
Heya Guys and Gals -
Was wondering if the below script was the BEST way to do this -
Is there a way to get rid of $counter?
my $sth = $dbh->prepare(qq{ SELECT id, term FROM db_bill_terms ORDER BY id });
$sth->execute();
my $counter = 1;
while (($DB::ID, $DB::NAME) =...
Anyone know of a way to connect to Outlooks Contacts viw browser/Perl?
Im needing to pull data out of Outlooks contacts and dump it into MySQL. Possibly vis-a-vis. Looking more for the direction to a module vs.- the actuall code.
Thanks in Advance!
- Scott
Im needing to set a table at a certain size:
<table width="100%">
Table Data here
</table>
However, I dont want the table to go over say 600 px. Is there a way to do that with either HTML or DHTML?
Thanks in advance!
- Scott
Heya all -
Im trying to send a selected value from one form to another form witch then passes this to a IFRAME.
Here is the code I have:
<select name="NEW::PAREFPHYS" class="form" style="width:200"...
Okay pro a realy stupid question.... i looked through the perl stuff here and on activestate but cant seem to find what im looking for.
im trying to run a system command, via a web browser:
$command = "ping 127.0.0.1";
system($command);
then i want the return of this command...
Greetings All,
I have an image thats 200 x 400. Im kinda new to Javascript, but i need to be able to click in the image, place a dot in that image then save the cordinates where the dot was placed, into mysql. I have the saving to the database down, however, i cant seem to work out the...
I am trying to pull data out in a format. Well, heres my code:
my $dsn01 = "DBI:mysqlPP:$DB::DATABASE:$DB::SERVER";
my $dbh01 = DBI->connect($dsn01, $DB::REMOTE, $DB::PASS);
my $sth01 = $dbh01->prepare(qq{ SELECT id, old_id, firstname, mi, lastname, title FROM utl_rads...
Hey guys/Gals,
Need to capture the 10 key, when NUM LOCK is OFF:
here is what i have:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var key = new Array(); // Define key launcher pages here
key['1'] = "/drs/inq.pl";
key['8'] =...
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.