![]() The correct way to avoid SQL injection attacks, no matter which database you use, is to separate the data from SQL, so that data stays data and will never be interpreted as commands by the SQL parser. I also added a php.ini file with the following contents in both the root of my site directory and the root of my MAMP directory: memory_limit = 128M (By the way, I keep my MAMP folder (Dev) in Dropbox and it works fine) Applications/MAMP/conf/apache/extra/nf Īnd lower down in the same file in the relevant site's configuration: ĭocumentRoot "/Users/Username/Dropbox/Dev/v" So I added this to the 'php_value memory_limit 128M': ![]() I read somewhere that it may be necessary to increase the memory limit here. I am using Virtual Hosts to set my own URLs. I then quit MAMP entirely and restarted it, but in MAMP phpInfo it still reads: I've changed the following from 32M to 128M in the following file: But the master PHP limit is still not updating. I've added the following to my site's htaccess file, which is read by the site and works (ExpressionEngine). I've tried all of the below, but nothing seems to have worked. I've read about creating a new template for MAMP Pro, but I'm using the standard version of MAMP. ![]() More information on how to connect to MySQL using PHP (PHP = 5.6.x) can be found in our How To section.I've been trying to increase the php memory_limit in MAMP (Mac OSX). Please turn to the PHP documentation for further information.ĭetermine if errors should be recorded in a log file and/or displayed in a web browser window. Report further error types through constants. Possible problems, that do not concern PHP, but which could be a notice of an error in a script. ![]() Script errors that make the further execution of the current PHP script impossible. Log PHP errors that occur when Apache loads the PHP module. With Xdebug activated you can open the XDClinet debugger to enable PHP debugging.īy default, XDClient expects debugging information on port 9000 of localhost.ĭetermine which error types should be reported. You can learn more about OPcache here.Īctivate Xdebug to allow PHP to create debugging information during script execution.īy default, Xdebug uses localhost and port 9000 in the PHP.ini file. OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. You can learn more about eaccelerator here. You can learn more about APC here.ĮAccelerator a free open-source PHP accelerator
0 Comments
Leave a Reply. |