1 2 12
1 20 38

:

  1. #1
    Ubuntu 11.10
    Unity

    Oct 2010
    96
    174
    45 27




    terminal
    ..... 11.2

    php
    php ݡ php

    :
    
    elham@linux-jlb7:~/fet-5.14.2> ./fet --inputfile=Hopwood.fet
    



    :
    elham@linux-jlb7:~/fet-5.14.2> ./fet



  2. #2
    .: :.
    Debian 6
    XFCE

    Sep 2009
    1,693
    1,830
    2,945 945

    php :

    :
    #!/usr/bin/env php
    , :

    :
    chmod +x file.php
    ./file.php

  3. 4 :

    , , ,

  4. #3
    .: :.
    Kubuntu 11.04
    KDE

    Apr 2008
    2,889
    369
    4,084 1,084



    ʡ lampp php


  5. 3 :

    , ,

  6. #4
    Ubuntu 11.10
    Unity

    Oct 2010
    96
    174
    45 27

    .

    PHP php

    PHP



    exec or system PHP functions



  7. #5
    .: :.   mahioo geek
    Ubuntu 11.04
    Unity

    Oct 2008
    2,124
    299
    2,444 730

    backticks ` ` php :
    PHP:
    <?php
    `wget http://www.google.com/images/logos/ps_logo2.png` ;
    ?>
    Google ..
    :
    PHP:
    <?php
    $out 
    = `ls`;
    echo 
    $out;
    ?>

  8. 4 mahioo geek :

    , , ,

  9. #6
    .: :.
    16
    GNOME3

    Jun 2009
    5,698
    6,900
    7,214 3,172
    1


    :
    #!/usr/bin/php
    <?php
    print "hello\n"
    ?>

    *-* *-* *-* Toolbar


  10. :


  11. #7
    Ubuntu 11.10
    Unity

    Oct 2010
    96
    174
    45 27



    mahioo geek

    php

    elham@linux-jlb7:~/fet-5.14.2> ./fet --inputfile=Hopwood.fet


    ./fet

    , hopwood
    ...
    php

    .....

  12. #8
    .: :.   mahioo geek
    Ubuntu 11.04
    Unity

    Oct 2008
    2,124
    299
    2,444 730

    ..

  13. mahioo geek :


  14. #9
    Ubuntu 11.10
    Unity

    Oct 2010
    96
    174
    45 27

    ...

    ϡ :


    http://www.lalescu.ro/liviu/fet/

    interface
    .........

    xml tags (
    fet) ....

    fet PHP

    suse Terminal terminal :
    fet command line version





    elham@linux-jlb7:~/fet-5.14.2> ./fet --inputfile=Hopwood.fet



    PHP : (


    PHP


    PHP

    :

    :
    exec(" ./fet --inputfile=Hopwood.fet ");


    :
    ./fet




    :
    --inputfile=Hopwood.fet


    :
    http://lalescu.ro/liviu/fet/forum/Ya...num=1282714044

    hopwood.fet
    command line version

        . 

:	Fet.JPG 
:	29 
:	41.4  
:	12987


  15. #10
    .: :.   mahioo geek
    Ubuntu 11.04
    Unity

    Oct 2008
    2,124
    299
    2,444 730

    ..

  16. mahioo geek :


  17. #11
    Ubuntu 11.10
    Unity

    Oct 2010
    96
    174
    45 27

    Mahioo geek ߡ ..



    .

  18. #12
      0BLACK0
    Ubuntu 13.4
    Unity

    Jan 2009
    76
    212
    66 35



    ...



    : ݿ


    :

    :
    ./fet --inputfile=Hopwood.fet

    : php ؿ

    ֿ


    No Pains No Gains




  19. 0BLACK0 :


  20. #13
    Ubuntu 11.10
    Unity

    Oct 2010
    96
    174
    45 27



    : ݿ



    .


    : php ؿ


    ɡ ... ɡ .



    ֿ


    %50 php.

    0black0

  21. #14
    .:: ::.
    Mint 13
    GNOME

    May 2008
    1,381
    1,240
    2,049 709



    :

    :
    import os
    
    os.system("echo 'sasa1'")
    os.system("ls")
    os.system("firefox")
    sasa.py



    -----

    <

    :
    #! /usr/bin/python
    # -*- coding: UTF-8 -*-
    """
    this is my first okasha web app
    """
    from okasha.baseWebApp import *
    import os
    
    class MyApp(baseWebApp):
        def __init__(self, *args, **kw):
          baseWebApp.__init__(self,*args, **kw)
     
        @expose()
        def _root(self, rq, *args):
            os.system("firefox")
    
    if __name__ == '__main__':
        # this requires python-paste package
        from paste import httpserver
        import sys, os, os.path
     
        d=os.path.dirname(sys.argv[0])
        application=MyApp(
          os.path.join(d,'templates'),
          staticBaseDir={'/media/':os.path.join(d,'media')}
        );
        httpserver.serve(application, host='127.0.0.1', port='8080')




    os.system("firefox")

    firefox





    http://127.0.0.1:8080/



    php

    php





    http://www.ojuba.org/wiki/okasha/%D8...88%D9%84%D9%89





    -
    --------
    LightBlog

  22. :


  23. #15
    .: :.   mahioo geek
    Ubuntu 11.04
    Unity

    Oct 2008
    2,124
    299
    2,444 730

    , , exec , log :
    PHP:
    cannot connect to X server 

  24. mahioo geek :


  25. #16
    Ubuntu 11.10
    Unity

    Oct 2010
    96
    174
    45 27

    mahioo geek
    , , exec , log :
    PHP:
    cannot connect to X server 
    mahioo geek


    ... (Buttons, boxes and...) exec ls and php --ini and .....


    php parallel
    popen(), proc_open(), proc_close()

    ǿ ǿ

    :


    cannot connect to X server
    X FET ??? LOG

    :






  26. #17
    Ubuntu 11.10
    Unity

    Oct 2010
    96
    174
    45 27

    sasa1


    :

    :
    import os
    
    os.system("echo 'sasa1'")
    os.system("ls")
    os.system("firefox")
    sasa.py



    -----

    <

    :
    #! /usr/bin/python
    # -*- coding: UTF-8 -*-
    """
    this is my first okasha web app
    """
    from okasha.baseWebApp import *
    import os
    
    class MyApp(baseWebApp):
        def __init__(self, *args, **kw):
          baseWebApp.__init__(self,*args, **kw)
     
        @expose()
        def _root(self, rq, *args):
            os.system("firefox")
    
    if __name__ == '__main__':
        # this requires python-paste package
        from paste import httpserver
        import sys, os, os.path
     
        d=os.path.dirname(sys.argv[0])
        application=MyApp(
          os.path.join(d,'templates'),
          staticBaseDir={'/media/':os.path.join(d,'media')}
        );
        httpserver.serve(application, host='127.0.0.1', port='8080')




    os.system("firefox")

    firefox





    http://127.0.0.1:8080/



    php

    php





    http://www.ojuba.org/wiki/okasha/%D8...88%D9%84%D9%89




    Sasa1

    Os.system php system

    .

  27. #18
    .: :.   mahioo geek
    Ubuntu 11.04
    Unity

    Oct 2008
    2,124
    299
    2,444 730


    :

    , , , n svg , favicon 16px*16px , inkscape , , php script svg up , vector.svg up cd inkscape , :
    PHP:
    <?php
    `cd path/to/up` ;
    `
    inkscape -z --export-png="favicon.png" --export-width=16 --export-height=16 vector.svg`
    ?>
    favicon.png , :
    http://hostename.com/path/to/up/favicon.png


    cannot connect to X server
    X FET ??? LOG
    logs ,
    , , php , , :
    PHP:
    gnome-calculator 
    :
    PHP:
    (process:2566): Gtk-CRITICAL **: set_tableassertion `buffer->tag_table == NULL' failed 

    tmp :
    PHP:
    gnome-calculator 2> /tmp/output.log 
    :
    PHP:
    cat /tmp/output.log 
    :
    PHP:
    (process:2566): Gtk-CRITICAL **: set_tableassertion `buffer->tag_table == NULL' failed 
    fet php :
    PHP:
    <?php
    exec
    ("./fet --inputfile=Hopwood.fet --outputdir=out 2> /tmp/error.log");

    if(
    file_exists("/tmp/error.log"))
    {
      echo 
    "The output: " file_get_contents("/tmp/error.log");
    }
    ?>
    :
    PHP:
    The outputfetcannot connect to X server 
    , , :
    PHP:
    <?php
    exec
    ("export DISPLAY=:0 && ./fet --inputfile=Hopwood.fet --outputdir=out");
    ?>
    out , , , :
    PHP:
    export DISPLAY=:
    apache x server ,
    mahioo geek ; 31-03-2011 02:24 AM :

  28. 2 mahioo geek :

    ,

  29. #19
    Ubuntu 11.10
    Unity

    Oct 2010
    96
    174
    45 27



    ɡ ʡ
    ():
    <?php
    exec
    ("export DISPLAY=:0 && fet --inputfile=Hopwood.fet --outputdir=out");
    ?>


    FET 忿

    Hopwood.fet?

    out? out HTML

    Apache.

    /srv/www/htdocs/


    Directory

    ѿ



    ...




  30. #20
    .: :.   mahioo geek
    Ubuntu 11.04
    Unity

    Oct 2008
    2,124
    299
    2,444 730

    php :
    PHP:
    /var/www
    , fet Hopwood.fet , php , , , out php fet Hopwood.fet , html ..

  31. mahioo geek :


: 1 (0 1 )

  1. []
    tsar .: () :.
    : 10
    : 18-12-2011, 12:50 PM
  2. [] " "
    remstereo .: Shell Scripting :.
    : 64
    : 05-04-2011, 05:07 AM
  3. []
    hbsqn .: :.
    : 4
    : 24-11-2009, 05:12 PM
  4. []
    .: () :.
    : 8
    : 07-05-2009, 02:39 AM
  5. []
    afreet5 .: () :.
    : 1
    : 01-05-2008, 04:36 AM