Jump to content

tirengarfio

New Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

tirengarfio's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I want to execute the exec("scp..") commands without waiting for the scp's to finish, what is called usually asynchronously.
  2. Those parts should put the scp command in the background so the exec()'s are executed before the scp's finish.
  3. 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
  4. Thanks, but could you give me a bit more details, please? How can I check if I have OpenSSL's default CA bundle implmented properly? Im on Ubuntu 20.
  5. 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)
  6. You could do an ajax request to get the new link, one request by link. Or if the links in the database are not changing during the process, retrieve all the links at the beginning and replace the links using javascript or some javascript framework like jquery.
  7. 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: but never the page is loaded (the spinner goes round). I dont have any problem if i just write ¿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.