Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. htruong

    accessing elements of a multidimentional array

    You mean you want to get the value of 3rd in your array? $ReportNo = $ReportData[3]; the first element is 0 and so on... You can check this by bellow script: $i=0; foreach $element (@ReportData) { print &quot;$i : $ReportData[$i] : $element <br>\n&quot;; }
  2. htruong

    system command problem!

    I still can not fix this problem. mod off file is OK. Webserver give our an error message on &quot;...name without value: got line...&quot; Please help me!
  3. htruong

    Question

    Check your programing skill! if (...) { ..... } else { ..... }
  4. htruong

    Question

    Oh! ... just replace this line: ($var1,$var2,$var3,$var4) = split(&quot;\|&quot;,$line); to: ($var1,$var2,$var3,$var4) = split(/\|/,$line); Good luck! htruong
  5. htruong

    Question

    Full coding of your_file.cgi #!/usr/bin/perl print &quot;Content-type:text/html\n\n&quot;; $filename = &quot;your_data_file.dat&quot;; open(DATA,&quot;<$filename&quot;) | die &quot;can not open file&quot;; @line = <DATA>; close(DATA); foreach $line (@line) { $line =~ s/\n//g...
  6. htruong

    system command problem!

    Thank for you sugesstions, To hmerrill, I was mistake when write this code in posting message. The error message of website is not talking about this systax error! print &quot;Generating success!&quot;); You know, when I type <i>jasc</i> from unix command like this: #jasc -p &quot;/opt&quot...
  7. htruong

    Question

    #reading data file $filename = &quot;your_data_file.dat&quot;; open(DATA,&quot;<$filename&quot;); @line = <DATA>; close(DATA); foreach $line (@line) { $line =~ s/\n//g; ($var1,$var2,$var3,$var4) = split(&quot;|&quot;,$line); # doing your action here } Please try, Enjoy! htruong
  8. htruong

    cookie presentation

    This is a suggestion about Client cookie! Cut this code and save as your_file.js (you can see this code in JavaScript book) --------------------------------------------------------- <script language=&quot;JavaScript&quot;> <!--begin script function getCookieVal (offset) { var endstr =...
  9. htruong

    Open a file command fails

    First: Search cgi-lib.pl (free download at http://cgi-lib.berkeley.edu/2.18/cgi-lib.pl.txt) 2. Save HTML file with: <HTML> ........... <FORM ACTION=&quot;img_upload.cgi&quot; enctype='multipart/form-data' METHOD=&quot;POST&quot;> <INPUT TYPE=FILE NAME=&quot;imgURL&quot;> ...
  10. htruong

    system command problem!

    I use Perl to write a short program for optimize Netscape iPlanet Server that compiles an application in JavaScript Server side by jasc command. My simple source code as: ############################################################# #!/usr/bin/perl print &quot;Content-type:text/html\n\n&quot...

Part and Inventory Search

Back
Top