This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PHP_INI_LOCATION=$(php -r 'echo php_ini_loaded_file();') | |
if [ "$1" = "on" ]; | |
then | |
`sed -i '' 's/^;zend_extension/zend_extension/g' $PHP_INI_LOCATION` | |
echo "Xdebug on in ${PHP_INI_LOCATION}" | |
valet restart | |
elif [ "$1" = "off" ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zend_extension="xdebug.so" | |
[xdebug] | |
xdebug.mode = debug | |
xdebug.start_with_request = yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
php -r "\$from = \$to = '[email protected]'; \$x = mail(\$to, 'subject'.time(), 'Hello World', 'From: '. \$from); var_dump(\$x);" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class SurfaceCalculator | |
* | |
* This class provides methods to calculate the area of various shapes | |
* like polygons, triangles, rectangles, circles, trapezoids, and ellipses. | |
*/ | |
class SurfaceCalculator { | |
/** |
OlderNewer