wamp

PHP doesn't work with shell_exec(), system() or passthru()

自闭症网瘾萝莉.ら 提交于 2019-12-10 19:38:49
问题 I am trying to read the most recent file from the folder. After finding the latest file, I'm reading it line by line and printing it on the barcode printer using barcode Overprinter software. This barcode printer is the default printer on my server. Here is my PHP code: <?php $files = glob('C:\barcode\*.*'); $files = array_combine($files, array_map('filectime', $files)); arsort($files); echo key($files); // for testing $handle = @fopen(key($files), "r"); if ($handle) { while (($buffer = fgets

Sessions don't work on MAMP

匆匆过客 提交于 2019-12-10 19:24:46
问题 I'm using MAMP, but I have a problem with session. My code works perfectly on WAMP, but doesn't work on MAMP and I don't no why. I looked the phpinfo but there are the same for the session between MAMP and WAMP. PHP log file : [01-May-2012 12:18:28] PHP Warning: session_start() [<a href='function.session- start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /Applications/MAMP/htdocs/Website/index.php:7) in /Applications/MAMP/htdocs

file_get_contents(): SSL operation failed with code 1 (certificate verify failed)

拜拜、爱过 提交于 2019-12-10 16:38:55
问题 I have installed WAMP 3.0.4 and am trying to write a PHP script that connects to an external HTTPS web service. But this returns the error: Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed I have written a short script that demonstrates the issue: <?php $auth = base64_encode('username:password'); $aContext = array( 'http' => array( 'proxy' => 'tcp://proxyip:proxyport',

How to backup MySQL database on Windows?

你离开我真会死。 提交于 2019-12-10 14:38:20
问题 I have WampServer 2.0 that is installed on Windows on my laptop. I'm running on it an application that I wrote. The application is working with MySQL database. I would like to make backups of this database periodically. How this can be done ? How could I define cron on Windows ? 回答1: The rough equivalent of crontab -e for Windows is the at command, as in: at 22:00 /every:M,T,W,Th,F C:\path\to\mysql\bin\mysqldump.exe ... Running the at command by itself lists the tasks you've created using at

configure wamp to connect ms sql server 2008

…衆ロ難τιáo~ 提交于 2019-12-10 11:33:17
问题 I have never connect PHP to MS sql server so getting confusion and trouble for configuring wamp to connect with sql server by following online tutorial. I have install wamp that consist of Apache Version 2.2.21 and PHP Version 5.3.8 and MS Sql server 2008 on same machine. I downloaded the Microsoft Drivers for PHP for SQL Server(SQLSRV20.EXE). and extracted the file to D:\wamp\bin\php\php5.3.8\ext. Then I opened the php.ini file from wamp icon tray and provide the extension path as extension

ERR_CONNECTION_RESET with symfony2 but not with PHP script

自闭症网瘾萝莉.ら 提交于 2019-12-10 10:25:29
问题 I am currently developing a web application with Symfony that's supposed to connect to a remote Web-Service. Then synchronise database from the client to the server and vice-versa and some other crap. The Web-service server is on an IIS in the LAN. Symfony2 is running with Wamp on my machine. So, the connexion and request code to the web-service in a simple php script is perfectly functional. Or at least, it does what I want it to do. And any connexion to the IIS server is perfectly fine. A

How to downgrade Wampserver PHP?

放肆的年华 提交于 2019-12-10 10:17:39
问题 I see everywhere for downgrade php on wampserver I just have to do left click wamp> php>version> get more> And dowload the version I want. But when I do it I arrive on this page and I don't see any link for download an other php version. I only can download a file php5.2.4.isson this page So fine I dowload it on php.net and I unzip the archive in my folder "C:\wamp\bin\php\php5.2.4" Next I copy the files wampserver.conf, php.ini and phpForApache.ini from my folder "C:\wamp\bin\php\php5.5.12"

Can't enable CURL - WAMP on Windows 7 64 bit - PHP 5.3.13 Apache 2.2.22

☆樱花仙子☆ 提交于 2019-12-10 09:43:17
问题 Ok, I have read this and this. I have done the following: Enabled extension=php_curl.dll in both c:\wamp\bin\apache\apache2.2.22\php.ini and c:\wamp\bin\php\php5.3.13\php.ini Downloaded curl here and replaced php_curl.dll in c:\wamp\bin\php\ext\ Added c:\wamp\bin\php\php5.3.13\ to PATH (coz libeay32.dll and ssleay32.dll are there). My PATH is as follows btw: C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\wamp\bin\php\php5.3.13\ Copied and Pasted

Retrieving specific values from a SoapClient Return in PHP

南笙酒味 提交于 2019-12-10 09:23:24
问题 I call an webservice using PHP 5.3.1 and my request looks as so: <?php $client = new SoapClient('the API wsdl'); $param = array( 'LicenseKey' => 'a guid' ); $result = $client->GetUnreadIncomingMessages($param); echo "<pre>"; print_r($result); echo "</pre>"; ?> Here is the response that I get back: stdClass Object ( [GetUnreadIncomingMessagesResult] => stdClass Object ( [SMSIncomingMessage] => Array ( [0] => stdClass Object ( [FromPhoneNumber] => the number [IncomingMessageID] => message ID

Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found. in Unknown on line 0

柔情痞子 提交于 2019-12-10 06:26:25
问题 I installed WAMP server and whenever I try to compile a php file it doesn't display the php part. Only the html part is being displayed. The extension of the extension of the file is .php. I have tried setting the PATH for the environment variable. Nothing worked. When I checked the error log, this is what I could find. [05-Aug-2014 12:04:30 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found. in