When i open gnome-terminal from my php script it errors :
"gdk_mir_display_open
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Failed to parse arguments: Cannot open display:"
How to resolve it please suggest me.
Related
Code:
echo file_get_contents('zip://arquivos.zip#zipado.txt');
Output error:
PHP Warning: file_get_contents(): Unable to find the wrapper "zip" - did you forget to enable it when you configured PHP? in php shell code online 1
Warning: file_get_contents(): Unable to find the "zip" wrapper - did you forget to enable it when you configured PHP? in php shell code on line 1 PHP Warning: file_get_contents(zip://arquivos.zip#zipado.txt): Failed to open stream: No such file or directory in php shell code on line 1
Warning: file_get_contents(zip://arquivos.zip#zipado.txt): Failed to open stream: No such file or directory in php shell code on line 1
Every time I try to display a file in PHP it returns this error and I can't run my code because the only output is an error, please help me!
When i try to run a laravel application, I get this error :
file_put_contents(C:\xampp\htdocs\academy\storage\framework/sessions/yYtLcWMJlFDNXQf3lfs5Pfv0ImwmiwjvhW8Oxkyy):
failed to open stream: No such file or directory
I have installed composer, php every thing.
Database is created and when i give command in power shell it is showing server started but when i try to open it through crome it give me this error.
We are getting following error while installing composer-setup.exe:
Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org
Proxy http://proxy.mycompany.com:1234 [from Internet Settings] failed with errors:
Failed to open stream: HTTP request failed! HTTP/1.0 407 Proxy Authorization Required
Request to http://getcomposer.org/installer failed with errors:
Failed to open stream: No connection could be made because the target machine actively refused it.
My Project Environment details are
Windows 7
Apache v2.2.22
PHP v5.4.3
php.ini:
php_curl enabled
php_openssl enabled
Please help us to installing Composer-Setup.exe for Laravel Framework.
Env
xampp
php 5.6.3
windows 7 64bit
Solution
save ca-bundle.crt to your local path(eg.d:/download/ca-bundle.crt);
double click ca-bundler.crt to import it;
add the two line to php.ini
curl.cainfo=d:/download/ca-bundle.crt
openssl.cafile=d:/download/ca-bundle.crt
try to install Composer-Setup.exe again.
refer to:https://github.com/composer/composer/issues/2798
I'm trying to install composer via the composer-setup.exe from http://getcomposer.org/download/ and I'm getting the following error:
Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org
Request to https://getcomposer.org/installer failed with errors: SSL:
The operation completed successfully. . Send of 25 bytes failed with
errno=10054 An existing connection was forcibly closed by the remote
host. . Send of 23 bytes failed with errno=10054 An existing
connection was forcibly closed by the remote host. . Send of 2 bytes
failed with errno=10054 An existing connection was forcibly closed by
the remote host. . Failed to open stream: HTTP request failed!
I tried disabling my antivirus/firewall but I keep on getting the same error. I searched google but couldn't resolve this. Any help here? Thanks.
Is SSL enabled in the correct php.ini?
If the installation approach via the windows executable fails,
you might switch to just downloading the composer.phar to your PHP dir, e.g. C:\php\composer.phar.
Then add composer.bat file inside the C:\php folder which forwards commands to the PHAR file:
#ECHO OFF
php "%~dp0composer.phar" %*
Also add the path to your php directory (e.g. C:\php) to the Path in your System variables. This result in a global installaton of composer. You can call composer on any project path.
i am new to push notifications and tried following to fix this but it still gives same error.
added C:\PHP\ext to the Windows path
added libeay32.dll and ssleay32.dll to C:\WINDOWS\system32\inetsrv
rebooted the server
first error:-
Fatal error: Uncaught exception 'ApnsPHP_Exception' with message 'Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (0)' in C:\wamp\www\ApnsPHP-master\ApnsPHP\Abstract.php on line 396
second error:-
ApnsPHP_Exception: Unable to connect to 'ssl://gateway.sandbox.push.apple.com:2195': Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (0) in C:\wamp\www\ApnsPHP-master\ApnsPHP\Abstract.php on line 396
i am using a .pem file which was used before somewhere else
and also i am trying to run my file on localhost, does it matter ?
if someone knows something that what should i do to fix this error, then please help me !
and thanx in advance
You should look if SSL is enabled in your configuration.
To display your configuration simply copy/paste the following in some php file and browse to it with a browser:
<?php
phpInfo();
?>