https://habrahabr.ru/post/318332/ PHP Admin
https://stackoverflow.com/questions/5911964/cannot-get-php-display-errors-enabled
You can also enable it in your PHP script usually:
ini_set("display_errors", 1); ini_set("track_errors", 1); ini_set("html_errors", 1); error_reporting(E_ALL);
If that doesn't help, then try a quick workaround first:
set_error_handler("var_dump");
http://www.opennet.ru/tips/2996_php_oracle_centos.shtml
https://news.ycombinator.com/item?id=10130042
http://www.phptherightway.com/
https://github.com/getjump/ru-php-the-right-way
http://habrahabr.ru/post/210202/ debugging
http://thisinterestsme.com/php-best-practises/
http://findnerd.com/list/view/Import-excel-sheet-into-database-using-PHP/18889/
Where is php.ini?
php -i | grep "Loaded Configuration File"
Loaded Configuration File => /etc/php.ini
Oracle settings
php --ri oci8
Connection to Oracle
http://shiki.me/blog/installing-pdo_oci-and-oci8-php-extensions-on-centos-6-4-64bit/
http://www.hexblot.com/blog/making-connection-php-oracle-centos-64
https://mcdee.com.au/install-oracle-database-support-in-php/
https://github.com/NatLibFi/NDL-VuFind2/wiki/Oracle-with-PHP-5.6-or-PHP-7-on-RHEL-6-or-CentOS-7
PDF generators
http://www.ibm.com/developerworks/opensource/tutorials/os-php-zend5/index.html
http://habrahabr.ru/post/266571/
https://github.com/knplabs/Snappy uses wkhtmltopdf and wkhtmltoimage
https://github.com/mvlabs/MvlabsSnappy
http://www.mpdf1.com/mpdf/index.php
http://stackoverflow.com/questions/5183238/is-possible-convert-html-into-pdf-using-zend-pdf
Install on Linux: install fonts 1st!!
sudo rpm -i wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm
error: Failed dependencies:
xorg-x11-fonts-Type1 is needed by wkhtmltox-1:0.12.2.1-1.x86_64
xorg-x11-fonts-75dpi is needed by wkhtmltox-1:0.12.2.1-1.x86_64
sudo yum install -y xorg-x11-fonts-75dpi
sudo yum install -y xorg-x11-fonts-Type1
sudo rpm -i wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm
which wkhtmltopdf
/usr/local/bin/wkhtmltopdf
Example of usage:
wkhtmltopdf http://google.com google.pdf
PHP can run it's own server via "php -S localhost:8000"
https://github.com/facebook/xhprof profiler
http://www.toptal.com/php/10-most-common-mistakes-php-programmers-make
http://ru-php.livejournal.com/
http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/
MAMP
http://www.mamp.info/en/index.html
http://www.youtube.com/user/mamppro
http://applelog.ru/mamp-apache-php-mysql-na-mac-os-v-odnom-flakone/
$pwd
/Applications/MAMP/bin
$ ./start.sh
140116 18:04:52 mysqld_safe Logging to '/Applications/MAMP/logs/mysql_error_log.err'.
140116 18:04:52 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql
httpd: Syntax error on line 132 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/bin/php/php5.4.10/modules/libphp5.so into server: dlopen(/Applications/MAMP/bin/php/php5.4.10/modules/libphp5.so, 10): image not found
ls php
php5.2.17 php5.3.27 php5.4.19 php5.5.3
By default, Apache runs on Port 8888 and MySQL on Port 8889.
You can change the ports at any time under Preferences > Ports.
/Applications/MAMP
- Put your HTML and PHP files in the htdocs folder!
- Database files are stored in the folder db/mysql or db/sqlite.
- PHP errors are logged in the file logs/php_error.log. If you doubleclick the logfile, the console will be open, which show the last errors.
$ ls -l /Applications/MAMP/
Icon?
LEAME.rtf
LIESMICH.rtf
LISEZ-MOI.rtf
d Library
d MAMP.app
README.rtf
d 10:08 bin
d cgi-bin
d conf
d db
d htdocs
d licences
d logs
d tmp
прочти.rtf
お読みください.rtf
$ ls -l /Applications/MAMP/bin
d SQLiteManager
d apache2
checkMysql.sh
favicon.ico
d mamp
d php
d phpMyAdmin
quickCheckMysqlUpgrade.sh
repairMysql.sh
start.sh
startApache.sh
startMysql.sh
stop.sh
stopApache.sh
stopMysql.sh
upgradeMysql.sh
Run
$/Applications/MAMP/bin/startApache.sh
and open the page
http://localhost:8888/MAMP/?language=English MAMP UI
Where should I put my HTML and PHP pages?
By default, PHP and HTML Pages should be copied into the htdocs folder which is located under /Applications/MAMP. This folder is called "Document Root". You can change the path for the Document Root in the MAMP program under Preferences:
$ ls -l /Applications/MAMP/htdocs/zend
CHANGELOG.md
CONTRIBUTING.md
INSTALL.md
LICENSE.txt
README-GIT.md
README.md
d bin
composer.json
d library
d resources
Composer
http://habrahabr.ru/post/75570/
Doctrine
http://www.doctrine-project.org/
http://habrahabr.ru/post/259523/
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/index.html
http://ihaveabackup.net/2012/02/27/what-is-doctrine2-anyway/
http://docs.doctrine-project.org/projects/doctrine-orm/en/2.0.x/
http://jwage.com/post/73741567918/doctrine-is-not-just-an-orm-for-relational-databases
http://habrahabr.ru/post/208182/
http://habrahabr.ru/post/99061/
http://habrahabr.ru/search/?q=doctrine+2+zend+framework
http://symfony.com/doc/current/book/doctrine.html
SQL Logger in Doctrine
http://ihaveabackup.net/2013/02/17/get-the-id-of-a-related-entity-without-loading-it-in-doctrine2/
APIGILITY_ADMIN
https://twitter.com/tom_h_anderson
https://github.com/soliantconsulting/zf-apigility-doctrine-admin
https://github.com/soliantconsulting/zf-apigility-doctrine-server
https://github.com/zfcampus/zf-apigility-doctrine
http://techportal.inviqa.com/2013/12/03/create-a-restful-api-with-apigility/
http://akrabat.com/zend-framework-2/investigating-apigility/
Zend 2
https://packages.zendframework.com/releases/ZendFramework-2.3.4/ZendFramework-2.3.4-manual-en.pdf
http://mwop.net/blog.html useful blog
Book: Zend 2 Framework Foundations
http://www.masterzendframework.com/tutorial/zend-framework-2-servicemanager
Book: Zend Framework in Action
http://akrabat.com/zend-framework-2-tutorial/
http://habrahabr.ru/post/241471/
http://zf2.readthedocs.org/en/latest/
http://www.masterzendframework.com/
https://packages.zendframework.com/ download
http://habrahabr.ru/post/192522/ Tutorial
http://habrahabr.ru/post/166657/ Another Tutorial
http://www.templatestock.net/install-zend-framework-2-on-mac-osx-and-mamp/
after this and next tutorial use:
http://www.masterzendframework.com/tutorial/howto-constructor-injection-in-zf2
http://akrabat.com/zend-framework-2/injecting-dependencies-into-your-zf2-controllers/
./Users/mlubinsky/.composer/.htaccess
./Users/mlubinsky/.composer/cache/.htaccess
./Users/mlubinsky/my_zend/dir/ZendSkeletonApplication/public/.htaccess
http://bigemployee.com/zend-framework-2-simple-web-application-crud-using-ajax-tutorial/
Zend Framework использует менеджер зависимостей Composer, который также должен быть установлен в вашей системе. Подробнее о Композере можно прочитать вот в этой статье: habrahabr.ru/post/145946/. Composer — это утилита командной строки, которая позволяет быстро и удобно скачать и установить внешние библиотеки, от которых зависит ваш PHP-проект. На входе утилита принимает JSON-файл (composer.json) содержащий список имен и версий зависимостей, на выходе она скачивает и устанавливает нужные библиотеки и их зависимости.
vi ./abe-application-api/config/application.config.php
/**
* Configuration file generated by ZF Apigility Admin
*
* The previous config file has been stored in application.config.old
*/
return array(
'modules' => array(
'Application',
'ZF\Apigility',
'AssetManager',
'ZF\ApiProblem',
'ZF\Hal',
'ZF\ContentNegotiation',
'ZF\Rest',
'ZF\Rpc',
'ZF\Configuration',
'ZF\Versioning',
'DoctrineModule',
'DoctrineORMModule',
'DoctrineMongoODMModule',
'DbLoadCd',
'DbAdminLog',
'DbMongo',
"./abe-application-api/config/application.config.php" 42L, 1025C
ZF2 uses service locator pattern, dependency injection and inversion of control.
http://www.mwop.net/blog/2013-02-25-restful-apis-with-zf2-part-3.html
Zend\ServiceManager
Zend\EventManager
cron
https://github.com/heartsentwined/zf2-cron
TWIG template engine
http://habrahabr.ru/search/?q=%5BTwig%5D&target_type=posts
Symfony
http://symfony.com/
Symfony нужно будет, что бы использовать инструмент из коробки для работы Doctrine2 (два компонента Console и Yaml).
to plot a couple of data columns with gnuplot (an open source plotting program) into several images. I can write a PHP script "myplot.plt.php" that generates a gnuplot script (untested):
set terminal png enhanced <?php for ($i = 2; $i <= 4; $i++) { $outputfile = "plot$i.png" echo <<EOT set output "$outputfile" plot "data.txt" u 1:$i EOT; } ?>
load "< php myplot.plt.php"
and then invoke it from gnuplot with