Jump to content

tirengarfio

New Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by tirengarfio

  1. Hi,

    I'm trying to copy asyncronously 10 70 MB video files.

     

    exec("scp -o StrictHostKeyChecking=accept-new -i /var/keys/devDevices_rsa MarTianez1.mp4 awong@10.1.1.16:/tmp/test1 2>&1 > out.log", $output, $exitCode);
    ...
    exec("scp -o StrictHostKeyChecking=accept-new -i /var/keys/devDevices_rsa MarTianez10.mp4 awong@10.1.1.16:/tmp/test10 2>&1 > out.log", $output, $exitCode);

     

    But I cannot see any difference if I remove `2>&1 > out.log`'s from the scp commads.

     

    PHP 8.1, Apache2, Ubuntu 22

  2. HI,

    I'm running the next script from my local host and the production server, and Im getting different outputs. Anyone knows why am I getting that error from my localhost?

        <?php
        $host = 'ssl://mail.companyname.org';
        $port = 993;
        $error = 0;
        $errorString = "";
        
        var_dump(fsockopen($host, $port, $error, $errorString, 30));
        var_dump($errorString);
        var_dump($error);


    Local host output:

    > PHP Warning:  fsockopen(): SSL operation failed with code 1. OpenSSL
    > Error messages: error:1416F086:SSL
    > routines:tls_process_server_certificate:certificate verify failed in
    > /tmp/test.php on line 7 PHP Warning:  fsockopen(): Failed to enable
    > crypto in /tmp/test.php on line 7 PHP Warning:  fsockopen(): unable to
    > connect to ssl://mail.twmdata.org:993 (Unknown error) in /tmp/test.php
    > on line 7 bool(false) string(0) "" int(0)

    Production server output:

    resource(4) of type (stream)

     

     

     

  3. Hi,

     

    im trying to to debug my projects with Xdebug.

     

    This is my stuff:

     

    I have checked trought phpinfo() Xdebug is correctly installed.

     

    My file xdebug.so is in /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/

     

    At the end of php.ini i have written this:

     

    [Zend]
    zend_extension="/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
    xdebug.remote_enable=on
    xdebug.remote_handler=dbgp
    xdebug.remote_host=rs.localhost
    xdebug.remote_port=9000
    

     

    In the PHP options of NB i have this: Debugger port: 9000 ; Session ID: netbeans-xdebug.

     

    When i press Ctrl+F5 (Debug project), a browser is started with this address:

     

    http://rs.localhost/frontend_dev.php/?XDEBUG_SESSION_START=netbeans-xdebug

     

    but never the page is loaded (the spinner goes round).

     

    I dont have any problem if i just write

    http://rs.localhost/frontend_dev.php.

     

     

    ¿Any idea?

     

     

    Regards

     

    Javi

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.