When running a PHP script from command line interface (CLI), a higher memory limit may be required in order for the script to be successfully executed. This can be achieved using the “-d” or “–define” option in the command. According to the manual:
This option allows you to set a custom value for any of the configuration directives allowed in php.ini.
An example of running a PHP script in CLI with custom memory limit:
php -d memory_limit=128M my_script.php
Of course the “-d” or “–define” option is not limited to the memory limit directive; it can be use to alter other php.ini directives as well.
You’ve probably already noticed that if you try to copy a table from Firefox and paste into an Excel spreadsheet, using the classic methods the table formatting is not preserved, and the data from the table is copied into one cell from the Excel spreadsheet.
The solution is to paste the table contents in Unicode format into the Excel spreadsheet. You can do it using the Paste Special command from the Edit menu in Excel.
Step by step instructions:
1. Copy the table content from Firefox into clipboard (using CTRL+C or right-click and Copy).
2. Go to the Excel spreadsheet, select Edit from the menu, then Paste Special; in the Paste Special dialog box, select Unicode and pres the Ok button.
Now your data is properly formatted.