User Profile

Collapse

Profile Sidebar

Collapse
idorjee
idorjee
Last Activity: Mar 9 '08, 04:20 AM
Joined: Mar 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • idorjee
    started a topic can't exec()
    in PHP

    can't exec()

    Hi,
    When I use the exec() as in the following script on my SunOS, I get the error:

    ld.so.1: php: fatal: libucb.so.1: open failed: No such file or directory
    Killed

    Please help. Thanks a lot in advance.

    Code:
    <?php
    echo exec('whoami');
    ?>
    See more | Go to post

  • idorjee
    replied to parsing text
    in Perl
    Thank you so much to both of you for your help. My script works fine now.
    Cheers!
    ^ ^*
    See more | Go to post

    Leave a comment:


  • idorjee
    replied to parsing text
    in Perl
    Hi Kevin,
    Yes, the word "Provisiona l" could be in the immediate next line when the query term (search term) is found or could be after x lines later. So, it is something that I can't possibly do?
    Help please, if you can. Thanks a lot....
    See more | Go to post

    Leave a comment:


  • idorjee
    replied to parsing text
    in Perl
    Thank you so much Kevin. That works fine when the immediate next line is where the data I want to get is, but how do I do when I have the data I'm interested in is in the 3rd line, as in the one below:
    Code:
    9   1246501        -            AAD12597.1        3282737
    9   1246501        -            AAD12599.1        3282739
    9   1246501    Provisional     NP_047184.1       10954455
    I'm sorry but I should have told...
    See more | Go to post

    Leave a comment:


  • idorjee
    started a topic parsing text
    in Perl

    parsing text

    Hi,
    how can i get the second data in the 4th column (ie "NP_047184. 1") if the data above that in the same column ("AAD12597.1 ") is what i have as my query data. as you can see that the second column has same numbers grouped together which means they are the same, but with different data in the 4th columns (ids). i have one of the ids, how can i get the other one?
    thanks a lot.

    here is how my input...
    See more | Go to post

  • idorjee
    replied to change content of the table
    hi dlite922,
    thanks for your reply. i tried that already and doesn't work. here is what i'm actually doing:
    the script gets the $desc (string) from somewhere, and
    Code:
    echo "<TR bgcolor=\"#660000\"><TD COLSPAN=2><input type=\"text\" name=\"desc\" value=\"$desc\" /></TD></TR>";
    the next thing that i'm trying to do is to submit the...
    See more | Go to post

    Leave a comment:


  • idorjee
    replied to parse for info.
    in PHP
    thanks for your reply. here's the file that i've been trying to parse. the underlined part (line 6 & 7) is what i am interested in. i would like the retrieved line look like:
    UDP-galactose translocator (UDP-galactose transporter) (UGT) (UDP-Gal-Tr) (Solute carrier family 35 member A2) (mUGT1).

    Thank you!

    Code:
    ID   S35A2_MOUSE             Reviewed;         390 AA.
    AC   Q9R0M8;
    DT   01-DEC-2000,
    ...
    See more | Go to post

    Leave a comment:


  • idorjee
    started a topic change content of the table

    change content of the table

    hi,
    is there any way i could click on the html table content (<td>) and edit the info, and then click a button to update the modification into a database?
    i found the following function off the internet, and it really doesn't do the thing that mentioned above, but just replaces the content with the specified "WORD".

    Code:
    function changeContent(){
        var x=document.getElementById('myTable').rows
    ...
    See more | Go to post

  • idorjee
    started a topic parse for info.
    in PHP

    parse for info.

    hi,
    i'm trying to parse the info. retrieved from a web page as follows:
    Code:
    $text_info = curl_init("http://domain.com/info.txt");
    $buffer = curl_exec($text_info);
    if (preg_match_all("/DE\s+(.+)/", $buffer, $desc)) { $description .= $desc[1]; }
    but the problem is, there are several lines in the $buffer variable that has the same pattern. for example,

    DE Potassium...
    See more | Go to post

  • idorjee
    replied to php - concatenate
    in PHP
    hi guys,
    thanks for your suggestions, but i still couldn't get around with it. following is a part of the script that i'm working on

    Code:
    $text_info = curl_init("http://domain.com/$id.txt");
    $buffer = curl_exec($text_info);
    echo preg_replace('/DE\s+(.+)/', ' ', $buffer);
    i was wondering why do i need to replace my pattern with a space, as that's the one i need. and also the are...
    See more | Go to post

    Leave a comment:


  • idorjee
    started a topic php - concatenate
    in PHP

    php - concatenate

    hi,
    how can i concatenate the part of the first and the next line, leaving the 'DE' in the beginning if i have the following in a text file?

    DE Chloride intracellular channel protein 5 (Chlorine channel protein
    DE p64).

    i want it like this:
    Chloride intracellular channel protein 5 (Chlorine channel protein p64).

    the following doesn't work.
    Code:
    if (preg_match("/DE\s+(.+)/",
    ...
    See more | Go to post

  • idorjee
    replied to javascript - delete row
    i don't get any kinda error messages on the browser. it's just that only one of the tables get deleted (ie the first one), and doesn't do the same for the next tables when i click the delete button for it. the bit of javascript at the top seems do it's thing just once and than nothing. by the way, my output on the browse is just html tables in rows with a delete button as <td> part of the each row. thanks.
    i would appreciate your help...
    See more | Go to post
    Last edited by idorjee; Feb 18 '08, 07:32 PM. Reason: addition of info

    Leave a comment:


  • idorjee
    started a topic javascript - delete row

    javascript - delete row

    hi,
    i have a problem with my php+javascript, and i am new to both. the script takes input, and displays them into separate tables. i following script does a part of what i wanted to do, ie, it deletes the table sitting inside another one as a row, but it does it for just the first one if i have, lets say, 3 input. the two other delete buttons don't work at all. please help me figure out what's wrong, and how can i fix it.
    thanks a...
    See more | Go to post

  • idorjee
    started a topic Perl with JavaScript
    in Perl

    Perl with JavaScript

    Hi,
    If I have a javascript function, like for example the one below, how can I incorporate/use it with my perl script. Thanks so much in advance.

    Code:
    <script type="text/javascript">
    var ELpntr=false;
            function hideall(){ 
                    locl = document.getElementsByTagName('tbody');
                    for (i=0;i<locl.length;i++){
                            locl[i].style.display='none';
    ...
    See more | Go to post

  • Thanks a lot for your reply. I insert/update into tables with a php script. For example:
    Code:
    $query = "UPDATE table1 SET name=\"$name\", description=\"$description\" WHERE address=\"$address\"";
    $result = mysql_query($query, $link);
    Cheers!...
    See more | Go to post

    Leave a comment:


  • Problem with the Greek chararcters in MySQL database

    Hi,
    Can anyone please tell me why does the Greek characters that I insert into MySQL tables changes into something else like a 'question-mark', every time I edit the entries? How can I set things up so that it doesn't do that. It's really very annoying. Please help.
    Thanks a lot in advance.
    See more | Go to post

  • idorjee
    replied to Automatic Updation
    in Perl
    Hi Vijaya,
    I don't know if you've already found this out, but there's a nice little script @ http://eutils.ncbi.nlm .nih.gov/entrez/query/static/eutils_help.htm l#Demonstration Programs
    under the sub-heading "Demonstrat ion Programs" that uses LWP::Simple module.
    Best wishes,
    - dorjee...
    See more | Go to post

    Leave a comment:


  • idorjee
    started a topic sending an email
    in Perl

    sending an email

    Hi,
    Can anyone please tell why can't send an email with the following script. I'm using mac os x (tiger)'s terminal application. Do I need to change any configuration files?

    Thanks a lot in advance.


    [CODE=perl]
    #!/usr/bin/perl -w
    use strict;
    use MIME::Lite;

    # SendTo email id
    my $email = "friend\@hotmai l.com";

    # create a new MIME Lite...
    See more | Go to post
    Last edited by eWish; Jan 9 '08, 01:35 AM. Reason: Added Language for Code Tags

  • thanks for your reply, KevinADC
    See more | Go to post

    Leave a comment:


  • How can I save the elements in array, and compare with a new one?

    Hi,
    Can anyone please tell me how can I save the elements in one array (@temp) while the other one (@pdb) changes every time I execute the script.
    Thanks a lot in advance.

    Following is what I got so far:

    Code:
    @pdb =('XYZAC','ABCXZ','QQWWA');  #this one changes 
    @temp=@pdb;     # @temp should get the elements of the previous @pdb
    
    my %pdb=map{$_ =>1} @pdb;
    my %temp=map{$_=>1}
    ...
    See more | Go to post
No activity results to display
Show More
Working...