mamp

It seems that not all of my HTML page loads in some browsers

拟墨画扇 提交于 2019-12-10 18:24:53
问题 This is a weird one. I am not quite sure of what is going on. I don't know if it's MAMP server causing the problems or Laravel. I never seen this before. I am using Google Chrome on my MAC OS X. And in the console I get a GET error. But when I go to networking it still shows it as an error and when I click the tabs like Response it show that nothing loaded... Even if there is content on the page. Then when I click on Headers it says the Status is 200... So good... Confused yet? Even preview

No PNG support in PHP GD Library but has GIF and JPEG Support. How can I fix this?

血红的双手。 提交于 2019-12-10 15:45:12
问题 I am running MAMP server Version 3.0.5 on OS X Yosemite. It seems to be missing PNG Support on my php files during execution Even before when I had MAMP 2.1, it had fatal errors on png related functions. The Jpeg functions work fine though. This is what my phpinfo looks like : Build Date Apr 10 2014 17:21:18 Configure Command './configure' '--with-mysql=/Applications/MAMP/Library' '--with-apxs2=/Applications/MAMP/Library/bin/apxs' '--with-gd' '--with-jpeg-dir=/Applications/MAMP/Library' '-

PHP gnupg 'import failed'

做~自己de王妃 提交于 2019-12-10 15:44:13
问题 I have been trying to use gnupg in PHP to encrypt a file that will be uploaded to an ftp folder. I am currently running on a mac using MAMP and I believe gnupg is installed correctly. I have a public key from the recipient of the file and when I try to import the key, either as a string literal or from a text file, I get the cryptic 'import failed' message from gnupg. $gpg = new gnupg(); $gpg->seterrormode(gnupg::ERROR_EXCEPTION); $gpg->import($key); //throws exception 'import failed' Is

Two versions of PHP on Mac OS Snow Leopard & Installing xdebug using PECL

ⅰ亾dé卋堺 提交于 2019-12-10 15:19:20
问题 I was using MAMP (standard) for PHP Development for some times before I read some posts about built-in Apache/PHP on Snow Leopard . I decided to shift to those I am provided with but seems to have many problems. The first thing is when I was using MAMP, I upgraded PEAR from 1.9.0 to 1.9.1 (to install PHPUnit later) with reference from this post. It worked well for me with the phpunit command. I also have Xcode4 but removed it few weeks ago (I mention this because I don't know what could be

Getting codeception & phpunit working on MAMP with OS X Lion

跟風遠走 提交于 2019-12-10 15:14:48
问题 Running: MAMP 2.0.5 PHP 5.3.6 (bundled with MAMP) Mac OS X Lion 10.7.2 My goal is to get the Codeception testing framework to work and use within my MAMP project. I'm following the instructions here on how to install it. Pear is installed and working fine. I am able to get Codeception installed with these commands: $ pear channel-discover codeception.com/pear $ pear install codeception/Codeception Once installed when I try to run the codecept commands I get the following error: Warning:

Imagemagick unable to read the file (MAMP )

蓝咒 提交于 2019-12-10 13:36:10
问题 I have installed Imagemagick extension on my MAMP dev environment and PHP info showing imagemagick installed properly. However, I am receiving the following exception: PHP Fatal error: Uncaught exception 'ImagickException' with message 'Unable to read the file: /Applications/MAMP/htdocs/image/demo.pdf' in /Applications/MAMP/htdocs/image/index.php:8 Stack trace: #0 /Applications/MAMP/htdocs/image/index.php(8): Imagick->__construct('/Applications/M...') #1 {main} thrown in /Applications/MAMP

Weird behaviour in PHP and Apache2: different output in different servers

℡╲_俬逩灬. 提交于 2019-12-10 12:02:04
问题 I'm experiencing different outputs in PHP code running in Mac and Linux. I have 2 servers running the following code: $ltt = ((ord($str[7]) << 24) | (ord($str[8]) << 16) | (ord($str[9]) << 8) | (ord($str[10]))) / 1000000; Even the ord(str[ ]) outputs are the same: [7] = 254 [8] = 26 [9] = 22 [10] = 216 But, on the MAMP stack (Mac) running php 5.3.6, if $ltt is originally supposed to be a negative number, it returns 4263.12265 (incorrect). On the LAMP stack (Ubuntu) running same php version,

MAMP: Adding ODBC or SQL Server support

与世无争的帅哥 提交于 2019-12-10 11:42:14
问题 I need to talk to a remote SQL Server 2000 database. I use MAMP locally and I would like to continue using it. However, I'm lost as to what I need to do to add support for talking to this database from PHP. It looks like either the ODBC or SQL Server functions in PHP will work, but those modules aren't installed by default. Can someone provide instructions on how to add support for either ODBC or SQL Server in MAMP? 回答1: Check this question out, looks like you need to get a driver for your

Connect to MySQL in MAMP

空扰寡人 提交于 2019-12-10 11:33:33
问题 I'm trying to make a HTML form connect to a MySQL database on my MAMP. However I'm not able to open the MySQL connection. I keep getting the message "Could not connect" My thoughts for this - The host is incorrect The username and/or password is incorrect. I found this information in config.inc.php, so I believe it is correct, but there's a possibility .. Here's the PHP script <?php class Database { function insert() { $dbhost = 'localhost:8888'; $conn = mysql_connect($dbhost, 'root', 'root')

Enable PHP Semaphore Functions on MAMP

非 Y 不嫁゛ 提交于 2019-12-10 11:28:14
问题 I am trying to create a message queue using the following tutorial; http://www.ebrueggeman.com/blog/creating-a-message-queue-in-php The problem I am running in to is that I get the following error; ErrorException [ Fatal Error ]: Call to undefined function msg_get_queue() I have found out that this is because my PHP installation is missing some of the Semaphore Functions and I should recompile my PHP installation using the following parameter --enable-sysvmsg. I am running MAMP on Lion OSX