User Profile

Collapse

Profile Sidebar

Collapse
tanyali
tanyali
Last Activity: Nov 20 '08, 11:53 AM
Joined: Feb 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tanyali
    replied to to play vedio or music using javascript
    The link works !
    thanks a million ~.~


    Regards,

    Tanya
    See more | Go to post

    Leave a comment:


  • tanyali
    started a topic How to avoid cache in asp.net iframe page
    in .NET

    How to avoid cache in asp.net iframe page

    Hi,

    I am using asp.net and c#
    i have an iframe within a page PageA.
    the source file for the ifram is page PageB.

    I type in some text and press search from PageA, the result will be displayed in the iframe.
    The problem is when I search for the same text string a second time, the result come out straightaway without executing the search action, which is because of the cache.
    I want to avoid...
    See more | Go to post

  • tanyali
    replied to Store BUFR files in MySql
    pbmods,
    got it, use LONGTEXT!
    How can I express my thanks to you.... I love you so much !!

    Regards,
    Tanya...
    See more | Go to post

    Leave a comment:


  • tanyali
    replied to Store BUFR files in MySql
    Hi pbmods,

    I meant 65535 characters is the limitation of the type "text" in MySql.
    See more | Go to post

    Leave a comment:


  • tanyali
    replied to Store BUFR files in MySql
    Hi pbmods,

    thanks, it did work for files with limitation of 65535 byte !
    but most of my files are much more than that up to 1120167 byte.

    any other way to store them ?

    thanks a million !!
    Tanya.
    See more | Go to post

    Leave a comment:


  • tanyali
    replied to Store BUFR files in MySql
    stupid mistake...[code=php]
    $query = sprintf("INSERT INTO BUFR (`id`, `name`, `number`,`date` ,`bufr_data`) VALUES (%d, '%s', %d, %d, '%s')", 1 , ob2007080900.gz , 0, 20070809,
    mysql_real_esca pe_string(ob200 7080900.gz(the name of a BUFR file put in the same dir with this PHP page), $link) );

    mysql_query($qu ery, $link);

    if (mysql_affected _rows($link) > 0)
    echo "Product inserted\n";...
    See more | Go to post

    Leave a comment:


  • I get it myself, and I wanna to publish them out to share .

    to execute IDL through shell program , code (bash) :
    idl < idl_script > output_idl

    to execute CDO through shell program, just use the CDO command in a shell script !

    to execute PHP through shell program, code (bash) :
    `/usr/bin/php /home/...php_page.php &`
    PS: here the /usr/bin/php is the dir where php is installed....
    See more | Go to post

    Leave a comment:


  • tanyali
    replied to Store BUFR files in MySql
    and this is what I used in PHP:
    [code=php]
    $query = sprintf("INSERT INTO (`id`, `name`, `number`,`date` ,`bufr_data`) VALUES (%d, '%s', %d, %d, '%s')", 1 , ob2007080900.gz , 0, 20070809,
    mysql_real_esca pe_string(ob200 7080900.gz(the name of a BUFR file put in the same dir with this PHP page), $link) );

    mysql_query($qu ery,...
    See more | Go to post

    Leave a comment:


  • tanyali
    replied to Store BUFR files in MySql
    Hi, pbmods
    so I need to insert BUFR files through PHP ,

    yes, I am trying to store the actual BUFR file in the database,
    so do the BUFR files need to be put in the same dir with the PHP page ?


    I still do not quite understand how to use this function to insert BUFR into db...

    Tanya...
    See more | Go to post

    Leave a comment:


  • tanyali
    replied to Store BUFR files in MySql
    thanks for answering first !

    this is what I did : [code=mysql]
    create table bufr( id int auto_increment primary key, bufr_data text not null ) ;
    insert into bufr values( 1, mysql_real_esca kpe_string('/home/...../ob2007080900.gz '));[/code]

    and it returns :
    ERROR 1305 (42000): FUNCTION test.mysql_real _escape_string does not exist

    do I need to set something first before use it ?...
    See more | Go to post

    Leave a comment:


  • tanyali
    started a topic Store BUFR files in MySql

    Store BUFR files in MySql

    Hi guys,

    BUFR : WMO format for weather observation data
    who knows how to store it info MySql ? please help ~~

    thanks a million~

    Tanya.
    See more | Go to post

  • thanks Paul, you saved me long long long script !
    I used it as : date +"%Y%m%d" -d "-1 day"
    and get 20070809.

    also in PHP, use the function mktime() to get any date, I used :

    $yesterday=mkti me(0, 0, 0, date("m") , date("d")-1, date("Y"));
    echo "yesterday is ".date("Ymd",$y esterday);

    thanks Paul .~_~.
    ...
    See more | Go to post

    Leave a comment:


  • shell: how to get the date before the current date ?

    Hi guys,

    is there a function in shell( bash ) to get the date of the day before the current date ?

    I made it with a long script, because it becomes complicated with the beginning and the end of month and year, so I wonder is there a function in shell to get the date before the current date?
    who knows, please help !

    thanks a million.
    Tanya
    See more | Go to post

  • Heya, Pbmods,

    it worked,

    I checked the php was installed in the dir : /usr/bin/ and what I am using is php5 instead of php, so I used the code ( bash ) :

    `/usr/bin/php5 /home/lmcelwain/public_html/R_LSM_Station/Create_Station/test.php &`

    and it worked !

    thanks a million !!! Pbmods
    Tanya...
    See more | Go to post

    Leave a comment:


  • tanyali
    started a topic how to call/execute CDO and IDL in shell ( bash ) ?

    how to call/execute CDO and IDL in shell ( bash ) ?

    Hi guys,

    I want to call/execute CDO and IDL through a shell script,
    who knows ? please help. thanks a million.

    Tanya
    See more | Go to post

  • heya, pbmods.

    yes, I want to run this command from a shell script.

    I tried :
    pclose(popen(ph p /home/lmcelwain/public_html/R_LSM_Station/Create_Station/test.php &));
    and it returned:
    ./test.sh: line 9: syntax error near unexpected token `popen'
    ./test.sh: line 9: `pclose(popen(p hp /home/lmcelwain/public_html/R_LSM_Station/Create_Station/test.php &));'

    and also the first...
    See more | Go to post

    Leave a comment:


  • thanks for answering first!

    I tried :
    `php /home/lmcelwain/public_html/R_LSM_Station/Create_Station/test.php &` ;
    it returned :
    php: command not found
    I am wondering do I need to set up any config files in order to make shell recognize php command ?


    also tried this :
    pclose(popen('p hp /home/lmcelwain/public_html/R_LSM_Station/Create_Station/test.php &'));
    it...
    See more | Go to post

    Leave a comment:


  • tanyali
    started a topic Execute php page automatically in the background ?
    in PHP

    Execute php page automatically in the background ?

    Hi guys,

    I wanna to execute a php page automatically in the background,

    or execute it in shell script, and set this script to execute as a cron job.

    so who knows either of the two questions :
    1- execute a php page automatically in the background ?
    2- execute a php page in shell script ?

    anyone knows how to do this ?

    thanks a million.

    Tanya
    See more | Go to post

  • thanks for your answer and the title.

    I will describe the problem as much as I can.

    firstly, when I execute the script : get_station_dat a on some files( they are GRIB files used in Meteorology ) to get a output file , whose record is like :

    2007030412 0 545 0.000000E+00
    # Date ID 2010010000

    no problem executing the script in a terminal....
    See more | Go to post

    Leave a comment:


  • Running a shell script in PHP does not create valid output file

    I am using Linux Suse10, php 5 .

    execute a shell script in a terminal, it works. output is a file with data .

    when I use it in php like this (code : php) :
    [code=php]
    chdir("../file");
    $cmd="./execute-file";
    shell_exec($cmd );
    [/code]
    or
    [code=php]
    chdir("../file");
    $cmd="./execute-file";
    exec($cmd);
    ...
    See more | Go to post
No activity results to display
Show More
Working...