mamp

Adding ODBC to MAMP

人走茶凉 提交于 2019-12-22 08:33:26
问题 I've spent the last couple days trying to get ODBC installed and I am about to lose my mind, I'm way out of my element here. Please can some one help me before I fall to pieces. Here's what I'm trying: 1) Download 1.7.2 source code package found here (I'm using 1.7.2): http://www.mamp.info/en/downloads/index.html 2) CD into the php directory. 3) Run "/configure --with-iodbc=shared" 4) Run "make" 5) Copy the ./modules/odbc.so file into MAMP/bin/PHP5/lib/php/extensions/no-debug-non-zts-20050922

the requested linked library openssl has the wrong version installed

喜夏-厌秋 提交于 2019-12-22 04:44:06
问题 I recently ran composer update and this is the error I get: namshi/jose 5.0.2 requires lib-openssl * -> the requested linked library openssl has the wrong version installed or is missing from your system, make sure to have the extension providing it . I am using MAMP. How may I get this fixed ? I tried upgrading the openssl version on my mac as some stack overflow answers said , but no luck which openssl shows /usr/local/bin/openssl openssl version shows OpenSSL 1.0.2h 3 May 2016 回答1: The

PHP shell_exec only works for certain commands

余生长醉 提交于 2019-12-21 20:49:44
问题 I am a complete PHP (LAMP/WAMP/MAMP) noob and I'm running into what seems to be a common issue among noobs trying to run shell commands from a web server. I have a MAMP setup on a Mac mini and I want to collect the output from an Android command, adb devices so I can display a list of devices attached to my mac mini. whenever I pass the command to shell_exec in my PHP script I get an empty string returned. I cannot figure out how to resolve the issue after several web searches. I tried

How to set environment variable in MAMP?

a 夏天 提交于 2019-12-21 20:47:30
问题 How to set environment variable in MAMP(version 3.3) which can i use in my PHP application? I have updated /Applications/MAMP/Library/bin/envvars_ and envvars-std_ file and add following lines: # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License");

MAMP MySQL not recognizing my.cnf values in OSX

人走茶凉 提交于 2019-12-21 20:20:53
问题 Trying to go UTF8 permanently and can't get MAMP's install of MySQL to recognize my.cnf values. MAMP Version 2.0.5 (2.0.5) MySQL 5.5.9 my.cnf file: [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] default-character-set=utf8 default-collation=utf8_general_ci collation_server=utf8_general_ci character_set_server=utf8 init-connect='SET NAMES utf8' Location of file: /Applications/MAMP/Library/Conf/ MySQL varibles on startup: mysql> show variables where variable_name

MAMP MySQL not recognizing my.cnf values in OSX

霸气de小男生 提交于 2019-12-21 20:20:05
问题 Trying to go UTF8 permanently and can't get MAMP's install of MySQL to recognize my.cnf values. MAMP Version 2.0.5 (2.0.5) MySQL 5.5.9 my.cnf file: [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] default-character-set=utf8 default-collation=utf8_general_ci collation_server=utf8_general_ci character_set_server=utf8 init-connect='SET NAMES utf8' Location of file: /Applications/MAMP/Library/Conf/ MySQL varibles on startup: mysql> show variables where variable_name

debugging php on mac?

雨燕双飞 提交于 2019-12-21 20:18:29
问题 was wondering what was the best way to debug PHP on my local machine. I use MAMP on mac os 10.5 thanks, Patrick 回答1: Using xdebug is a good start. Download the package and follow the instructions in the INSTALL file. It's fairly easy. Once this is done, add the following lines to your php.ini file: ;;[xdebug] zend_extension="/Path/to/your/module/xdebug.so" xdebug.file_link_format="txmt://open?url=file://%f&line=%1" xdebug.var_display_max_depth = 20 Don't forget to restart Apache after this.

Send mail from localhost with PHP with MAMP

旧时模样 提交于 2019-12-21 19:52:17
问题 I've been trying everything I can find on the internet for this, and none of them seem to be working, so I'm doing something wrong and I need some help figuring out what. [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = myemail@yahoo.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path = /usr/sbin/sendmail -t -i -f myemail@yahoo.com The above code is what I have changed everything to, (except for

MYSQL: How to make NULL or empty data default to 0 during insert

Deadly 提交于 2019-12-21 08:00:12
问题 So this seems like it would be pretty straight forward and I swear I've done this before, but for some reason it's just not working for me. I am using MAMP and have a table with about 200 columns and I want about 20 of them to default to 0 if NULL or empty data is inserted into it. Here's a small example of what my table looks like as well as what I have done for columns that I want to default to 0. CREATE TABLE `listings` ( `ListingID` int(11) NOT NULL, `BathsFull` int(6) NOT NULL DEFAULT '0

Can't set/find detect_unicode to Off

我的梦境 提交于 2019-12-21 06:06:18
问题 I'm want to start using phpDocumentor and the manual installation keeps throwing an error about me not having set detect_unicode = Off in my php.ini in Terminal. When I add it to my php.ini it doesn't take and I get the same issue when running the install. Nobody seems to have this problem, and for the life of me I can't figure it out. https://github.com/phpDocumentor/phpDocumentor2/blob/develop/README.md#installation What am I missing? (I did restart the MAMP server after the php.ini edit)