mamp

Having problems while try to install OAUTH with PECL in MAMP on mac OS lion

假如想象 提交于 2019-12-17 05:40:59
问题 i am new to setting php servers, and i had go though other related post, seems like nobody have the same error as i have. I am using MAMP 2.0.2, and running PHP 5.3.6, and I was trying to install oAuth on my local MAMP, using following commands: $ cd /Applications/MAMP/bin/php/php5.3.6/bin $ ./pecl install oauth however, it return such error: Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050 ERROR: The default config file is not a valid config file or is

MAMP Pro 3.05 on Mavericks updated to Yosemite - Apache does not start

我只是一个虾纸丫 提交于 2019-12-17 05:24:26
问题 I have been running MAMP Pro 3.05 successfully in Yosemite up to DP4 on a partition that was a clean install of Yosemite. I now have run the installer for DP5 over my Mavericks install, and now that MAMP Pro install will not start Apache. It says to check the logs, but I don't see anything pertinent. I'm assuming that since this is a pre-existing install, something in its config is wrong for Yosemite's Apache. Any ideas? 回答1: MAMP Folks just posted the workaround Workaround for the 10.10

How to override the path of PHP to use the MAMP path?

偶尔善良 提交于 2019-12-17 02:52:35
问题 After screwing up entirely my PHP configuration on MAC trying to get the SOAP module working (-bash: /usr/bin/php: No such file or directory ....) I now have to use MAMP but each time I have to type the path Applications/MAMP/bin/php5.3/bin/php to do command line. How to just type php instead the entire path on MAC ? I double checked and i do not have a file named .profile nor bash_profile Thanks PS: Here's what output echo $PATH : echo $PATH /Applications/MAMP/Library/bin/:/Applications/MAMP

Custom SVG signature works on CODEPEN but not on local machine- what is wrong? [closed]

笑着哭i 提交于 2019-12-14 03:33:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I tried to copy the following code from codepen http://codepen.io/ghepting/pen/xnezB to try and run it on my localhost machine. In codepen, as you can see the signature is animated. However, on my local machine it just print the signature out in full and does not animate at all. Any idea why? I have three files

Problems with apache MAMP 3 and Yosemite

橙三吉。 提交于 2019-12-14 02:43:30
问题 I've just installed the new Mac's operative system (Yosemite) but now I have problems to set up apache with MAMP Version 3.0.6. Someone know if there is a conflict with MAMP and Yosemita? How can I solve this problem because I don't want to install other server? 回答1: I just upgraded to Yosemite as well and MAMP SQL/Apache servers wouldn't start. Installed MAMP 3.0.7.1 and the servers start now. Upgrade MAMP and you should be good to go. 回答2: I do not know whats up with mampp, but xampp has

Fatal error: Class 'COM' not found in MAMP

旧巷老猫 提交于 2019-12-13 21:17:32
问题 I am facing this issue Fatal error: Class 'COM' not found in /Applications/MAMP/htdocs/ctor/abc.php on line 10 the abc.php is as follows <?php ini_set ( 'max_execution_time', 300); $filename = "abc.xlsx"; $sheet1 = 4; $arr=array(1=>'a','b','c','d'); $excel_app = new COM("Excel.application") or Die ("Did not connect"); ?> please suggest some solution. 回答1: COM is available on Windows only. Deducting from the "MAMP" in your path, you seem to be on an Apple Machine. Mac OS is Unix based. 来源:

CodeIgniter + MAMP : unable to send emails

戏子无情 提交于 2019-12-13 12:47:55
问题 I am trying to send emails with CI running on MAMP free. But it doesn't work, my script is encountering an infinite loop and nothing is happening... Do i need to set up something especially to send emails from localhost? Here is my email config for CI: $config = array(); $config['protocol'] = 'smtp'; $config['smtp_host'] = 'ssl://smtp.googlemail.com'; $config['smtp_port'] = 465; $config['smtp_user'] = '*****@gmail.com'; $config['smtp_pass'] = '******'; $config['mailtype'] = 'html'; $config[

MAMP Pro does not log PHP errors

二次信任 提交于 2019-12-13 09:39:48
问题 I have been struggling with MAMP pro for past few months. Tried contacting Appsolute (#24294) but got no help. Somehow Mamp Pro has stopped recording all PHP errors. My configuration: http://prntscr.com/itmqm5 PHP conf files from /Library/Application Support/appsolute/MAMP PRO/conf php.ini file :https://ufile.io/edacj PHP 7.2.1 ini : https://ufile.io/8bl8q 回答1: Later I found that my MAMP installation was hacked. I had to clean up everything and re-install MAMP pro to fix this. 来源: https:/

mysqli_connect not working on MAMP

守給你的承諾、 提交于 2019-12-13 08:39:26
问题 The code below worked on my old iMac with MAMP. However, it does not work on my new iMac. How do I fix this? Do I need to do something to the php.ini file? <?php $dbConnection = mysqli_connect("localhost", "xxxx", "xxxx", "gallery"); $query = "SELECT * FROM images"; $stmt = mysqli_prepare($dbConnection,$query); mysqli_stmt_execute($stmt); mysqli_stmt_bind_result($stmt, $id, $categories,$img_name); while (mysqli_stmt_fetch($stmt)) { echo $id."<br />"; } ?> 回答1: You should enable php_mysqli

Convert data from db to JSON using php

别来无恙 提交于 2019-12-13 07:14:36
问题 I have already seen many questions but nothing has helped. I want to convert my data from database (MySQL) to JSON using PHP. This is my PHP code: init.php <?php $db_name = "webappdb"; $mysql_user = "root"; $mysql_pass = "root"; $server_name = "localhost"; $charset= "utf8"; $con = mysqli_connect($charset, $server_name, $mysql_user, $mysql_pass, $db_name); ?> listViewBooks.php <?php include("init.php"); header('Content-Type: application/json'); // get all items from user_info_book table $sql =