wamp

How to encrypt with MCRYPT_ARCFOUR in WAMP?

早过忘川 提交于 2019-12-24 06:38:12
问题 I'm trying to use ARCFOUR algorithm in my PHP code: $td = mcrypt_module_open(MCRYPT_ARCFOUR, '', MCRYPT_MODE_CBC, ''); $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_RAND); mcrypt_generic_init($td, $key, $iv); $output = mcrypt_generic($td, $input); mcrypt_generic_deinit($td); mcrypt_module_close($td); and the problem is that the first line returns warning: mcrypt_module_open(): Could not open encryption module My settings: From php_info() output: command configure: ... "--with

Connecting to MSSQL server 2008 with PHP

风流意气都作罢 提交于 2019-12-24 04:44:13
问题 We are using MSSQL server 2008 on Win server 2008 R2 and have installed Apache (2.2.19) and PHP (5.2.17) separately. We have installd the MSSQL module for PHP and usingthe following connection string: $myc = mssql_connect(Server, SiteDatabaseUsername, SiteDatabasePassword) or die('Can\'t connect to mssql Database Server: '.mssql_get_last_message($myc)); $db = mssql_select_db(SiteDatabaseName, $myc) or die('Can\'t find database: '.mssql_get_last_message($myc)); But it gives us this error:

Making Socket.IO work from localhost through WAMP Server

最后都变了- 提交于 2019-12-24 03:32:36
问题 I'm very new to using websocket. While I have a lot of experience in coding as a professional, I've never had to use socket for live update information. I know my way around PHP, MySQL, HTML, CSS and JS (or jQuery). My project is already started in PHP and MySQL but I need to add some "live" part. The goal of the websocket app would be to check for any change in the Table within the MySQL DB and notify the necessary client if applicable. I didn't wanted to "refresh" the page every so often as

php_mongo extension is installed, but how come rockmongo still not connected?

£可爱£侵袭症+ 提交于 2019-12-23 19:49:33
问题 I have a wamp server. I also have mongodb installed. I have installed the php_mongo extension, make changes in php.ini. I downloaded rockmongo, unzipped the file in my www folder. I edited the config file but when I try to open the GUI, it says: "To make things right, you must install php_mongo module. Here for installation documents on PHP.net." Need help. thanks 回答1: Hi I also had the same problem. I just solved it by following these steps. Just install the mongodb Driver extension via sudo

How do I install PDO drivers for PHP on Windows?

不问归期 提交于 2019-12-23 17:12:20
问题 I installed Apache, PHP 5.6 and MySQL 5.7 on a Windows server. In php.ini, I enabled the following: extension=php_mysql.dll extension=php_mysqli.dll extension=php_oci8_12c.dll extension=php_pdo_mysql.dll extension=php_pdo_oci.dll (And restarted Apache) But when I try to use PDO in my php page, it still throws the error: Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' What do I have to do to get PDO installed? 回答1: The problem was the extension_dir directive

127.0.0.1 is accessible/working but localhost not accessible/ not working

我与影子孤独终老i 提交于 2019-12-23 10:20:28
问题 I am using wamp for few years and i upgraded to windows 8 few months before, my wamp working smoothly up to yesterday. But now it can't be accessed using localhost. but when i trying 127.0.0.1 instead it works smoothly. I changed ::1 localhost to 127.0.0.1 localhost in host file. which where the solution suggested for this problem in most websites. But unfortunately its not work for me. When i ping localhost its showing replay from ::1: time<1ms . And There is no software's using port 80 i

PHP session is not working

南笙酒味 提交于 2019-12-23 10:19:07
问题 I am working with wamp2.0 - PHP 5.3, apache 2.2.11 but my sessions are not storing data. I have a page that accepts a parameter, which (simplified version) I wanna store in a session, so when I come to http://www.example.com/home.php?sessid=db_session_id The script looks like: session_start(); $sessid = @$_GET['sessid']; if ($sessid) { $_SESSION['sessid'] = $sessid; } var_dump($_SESSION); and outputs: array(1) { [0]=> string(13) "db_session_id" } which is fine, but then, when I go to link

Use of undefined constant CURLOPT_POST - assumed 'CURLOPT_POST'

試著忘記壹切 提交于 2019-12-23 07:47:21
问题 I am making a cURL request via Kohana 3.2 but I get the following error when it tries to access CURLOPT_POST constant: Use of undefined constant CURLOPT_POST - assumed 'CURLOPT_POST' From Kohana 3.2 system/classes/kohana/request/client/curl.php public function _set_curl_request_method(Request $request, array $options) { switch ($request->method()) { case Request::POST: $options[CURLOPT_POST] = TRUE; break; case Request::PUT: $options[CURLOPT_PUT] = TRUE; break; default: $options[CURLOPT

I'm getting a Service Unavailable on wamp, but everything is running

↘锁芯ラ 提交于 2019-12-23 05:16:02
问题 I have installed wamp on a virtual server, and everything seems fine (i.e. the server is running and I'm seeing the color green). What seems to be going on is that when I try to run a web site (for example /localhost/sitename), I'm getting a 503 Service Unavailable, Service temporarily unavailable. Please try again soon. Despite that everything is running, no apache errors and so on. What would cause the 503 error to show? 来源: https://stackoverflow.com/questions/21125047/im-getting-a-service

Laravel Route not working with Wamp

风流意气都作罢 提交于 2019-12-23 04:45:57
问题 As the title states, I cannot get my site to redirect. I've made several attempts and am about to lose it. My .htaccess file is as follows: Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] I have this file placed in the www/Laravel/public folder as well as www directory mod_rewrite is enabled AllowOverride is set to All My host file is as follows 127.0.0.1 localhost Here is the code for route contained