Thanks varakal -
BTW do you know of something i can learn about what is going on in that code?
I appreshiate the answer however KUDOS!!!
- Scott
Wise men ask questions, only fools keep quite.
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...
KevinADC -
thanks for pointing me in the right direction!!!!
here is the finished code for anyone that ever searches this FAQ!
if ($QUESTION::IMAGE ne '') {
my $filename = $query->param('QUESTION-IMAGE');
my $upload_dir = "images/senario";
$filename =~...
cathiec,
Im looking to do something simular to this except it would be with images.
IE you have an image as a base: IMAGE01.gif and on that image there are 1 to 3 different places that the user can place a drag and drop image.... these being marked as placement_a, placement_b, placement_c...
Rieekan,
Good idea if i knew how - im setting up for classes for FLASH MX Pro now - and i knew that you could do a small preloader - but then im still at the same place.
There would have to be a selector for reg HTML.
- Scott
Wise men ask questions, only fools keep quite.
Paul -
Thanks bud! Thats what i currently have - I know how to test for browser type with the $ENV{BROWSER} but speed is the concern - the guy that wrote the flash for the site left - and ofcourse its S-L-O-W loading on low speed connections - we want to get rid of the front page that says go...
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...
Thank you duncdude!
That was it!!!!!!
One question - when i want to do txt files then i use the first way and thats that right?
- Scott
Wise men ask questions, only fools keep quite.
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)...
Waiterm,
Thanks!!!
Sorry it took me so long to look at this post i have been dealing with a few things. I am going to be looking into this and yes that makes ALOT of sense! I know that the way that im writting some of this code is the long way! And i appreshiate any and all help!
- Scott...
Eric,
Yes i did - i posted there as well - no reply - im figureing its the way MySQL returns the data, IE if you do a SHOW COLUMNS FROM table_name at the command prompt of MySQL there is some funny formatting going on.... UNLIKE when you do a SHOW TABLE; or SHOW DATABASES.
Thought maybe...
Unix -
First im using GLOBAL variables '::' -
And in any case, as per your suggestion - I reset the variables and SAME output.....
- Scott
Wise men ask questions, only fools keep quite.
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...
PaulTEG,
no i think your missunderstanding - when i had IIS 5 it would print the fatals t the browser with out a problem - however, i converted to IIS 6 - and thats when it stoped printing the fatals to the browser - im thinking its a setting in IIS 6 - I know that Microsoft has made 6 "more...
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.