User Profile

Collapse

Profile Sidebar

Collapse
ktsirig
ktsirig
Last Activity: Jan 23 '06, 12:17 PM
Joined: Oct 1 '05
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ktsirig
    started a topic confused with strings...
    in Perl

    confused with strings...

    Hi all!
    I have this assignment to give in Biology class and I am stuck.

    Assignment:
    I am given a sequence of letters, say:

    XXXXXXABCDXXXXX XXX

    and I am interested in part ABCD, which represents letters #7-#10 as you can see.

    I am then given the same sequence, which now contains characters like * and !(only these 2 are allowed),
    say:

    XX**XXX!!!X**AB *!C*DXX*!!!XXX* *XXX...
    See more | Go to post

  • ktsirig
    started a topic Mysql syntax problem...

    Mysql syntax problem...

    Hi everybody and Happy New Year!
    I have been dealing with this problem of my biology class lesson since yesterday,
    I believe it's some silly mistake I am making.
    I have these tables:

    [tabel1:protein]
    protein_id protein.name
    1 PROTEIN_1
    2 PROTEIN_2
    3 PROTEIN_3
    ############### ############### ##############
    [table2:protein_ reference]
    protein_id[FK] reference_id[FK]...
    See more | Go to post

  • ktsirig
    started a topic Select one row from MySQL table

    Select one row from MySQL table

    Hi all and Merry Christmas!

    I wanted to ask how would I deal with the following problem:

    Say I have a table [TABLE1]:
    customerid name
    1 nick
    2 george
    3 harry

    and a [TABLE2]:
    number car
    1 Lotus
    2 BMW
    2 FERRARI
    2 LADA
    3 Lamporgini

    If I want to see george's car, I would write: SELECT car from TABLE2 where number...
    See more | Go to post

  • ktsirig
    started a topic Unix file commands using PHP's system function
    in PHP

    Unix file commands using PHP's system function

    Hi all!
    I am confused as to how an old-good UNIX command, like

    cat text.txt > new_tex.txt

    can be used in PHP.
    I tried
    system (" cat text.txt > new_text.txt");

    but it didn't work, the file new_text.txt was left blank.
    Am I doing something wrong with the > ???
    Must I use something else instead of 'system' ?
    See more | Go to post

  • ktsirig
    replied to MIMe types
    in PHP
    MIMe types

    Hi!
    I am trying to validate that a file submitted through a form is a TEXT file.
    When I use $_FILES['userfile_PFAM']['type']=='text/plain' it works, but only for files with .txt extension.

    But the user may also have a file containing text data and may not have given the .txt extension (for example I found that application/octet-stream also reffers to TEXT files).
    Does anybody know which...
    See more | Go to post

    Leave a comment:


  • ktsirig
    started a topic MIMe types
    in PHP

    MIMe types

    Hi all!

    I have a question: I am constructing a form where the user can upload a file.
    I need however to verify that the file uploaded is a TEXT file.

    Is $_FILE['userfile']['type'] what I need? I am asking this because no matter if I upload a .txt or a .gif file, PHP says they are both $_FILE['userfile']['type']='text' and so, they are both uploaded on the server, whereas there should be only .txt file uploaded...
    See more | Go to post

  • ktsirig
    started a topic Browse button

    Browse button

    Hi all

    I have been having problems regarding styling input areas, submit buttons etc.
    I followed some people's advice in other forums and I managed to get it going.

    Now, everything is working EXCEPT 1 : The "browse-for-a-file" button

    I thought that this button, since it is coded as <input type="file" ...> would be treated like the other input elements ,such as the buttons....
    See more | Go to post

  • ktsirig
    replied to PHP system commands
    in PHP
    Never mind, a fellow from another forum answered my question.
    In windows, 'system' calls cmd, so it does not communicate directly with Cygwin.
    See more | Go to post

    Leave a comment:


  • ktsirig
    started a topic PHP system commands
    in PHP

    PHP system commands

    Hi all!

    I want to execute system commands through the functions provided by PHP (like exec, system etc)

    In the LINUX machine in my work, everything seems to be OK, when, for example, I write system `ls`; and I print it on the screen.
    In my home PC on the other hand, where I have winXP and the Cygwin platform installed, none of these works.

    1) Is the Cygwin platform sufficient to run system commands...
    See more | Go to post

  • Greg, for installing and such I used

    http://mpcon.org/apacheguide/

    I am not sure whether you have done any mistake or not, but check this mini tutorilal, maybe you could get some tips!...
    See more | Go to post

    Leave a comment:


  • ktsirig
    started a topic PHP/ command-line program
    in PHP

    PHP/ command-line program

    Hi all,
    I need to execute a command-line program through PHP.
    I have a form which includes a textarea, where the user writes his data.
    These data will be used as input for the command-line program.
    Will I go something like:

    $data = $_GET['info'];
    Which function shall I use? System, exec, shell_exec, passthru?
    I can't choose which one is the correct.

    The programm running in the...
    See more | Go to post
No activity results to display
Show More
Working...