web- |
|
, , web , web .
0.
STPServer, , Denwer. , , , , ( ) . *(, ) , Denwer. , http://pecl4win.php.net/ dll , .
. , Denwer . . , . , , / . , , .
Denwer Dropbox! , .
0.0
:
Web- («..w.», «») —
Dropbox. , . .
1. Dropbox
2. Denwer
, , , , , ( .), , -, (© Denwer). Z, , X.
, , , Dropbox' . , Dropbox , Denwer . C:\My Dropbox\Denwer.
, . .
3. ()
. . PHP PDO - XML , PHP 5. , UTF-8, .htaccess AddDefaultCharset utf-8, .
, php.ini , , .
- (, , ) , Dropbox.
, :) , , , Dropbox. , , , Dropbox.
: web php server perl development apache denwer dropbox |
Zend Framework |
|
- :)
Zend Framework, , . , , -.
:
, - . , , , . Zend .
:
, GD URI, Zend' img.
, , , .
header("Content-type: image/gif");
$img_src=imagecreatefromgif($src);
imagegif($img_src);
$src, , .
:
. , Zend. - , - BLOB . Layout' :
function init()
{
$this->_helper->viewRenderer->setNoRender();
$this->_helper->layout->disableLayout();
}
. , . , , FirePHP . stand-alone ( Zend ( , , "!")) Response, :
ÿØÿà�JFIF�
Zend :
ÿØÿà�JFIF�
, .
:
, ( PHP , ).
, ! .
:
0.
1. <?php
2.
/**
3.
*
4.
*
5.
* @author Smile @rT
6.
* @version development
7.
* @since 08.11.2008
8.
*/
9.
10. require_once 'lib/our/Standard_Controller_Actions.php';
11.
class ReaderController extends StandardControllerAction
12.
{
13.
...
:
0. <?php
1.
/**
2.
*
3.
*
4.
* @author Smile @rT
5.
* @version development
6.
* @since 08.11.2008
7.
*/
8. require_once 'lib/our/Standard_Controller_Actions.php';
9.
class ReaderController extends StandardControllerAction
10.
{
11.
...
, , , . :)
: php img uri zend |
- |
|
, , . , , " PHP" . , , .
, , " ". PHP HTML ( echo, ), - , , email GET, .. .. ..
. - , , , .
, - .
: php mysql email |
FF3 |
|
: firefox 3 php habrahabr |
MySQL ZendFramework |
|
MySQL ZendFramework , - , , Zend' .
PHP . , , , , , , .
, ...
:
- ZendFramework-1.5.3 ( stable )
- PHP Version 5.2.6
- : StpServer 1.0
- MySQL 5.0.51b
, , :
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' withmessage 'The mysql driver is not currently installed' inT:\home\virtual\zend\library\Zend\Db\Adapter\Pdo\Abstract.php:103 Stacktrace: #0T:\home\virtual\zend\library\Zend\Db\Adapter\Abstract.php(389):Zend_Db_Adapter_Pdo_Abstract->_connect() #1 .......
phpinfo() , ...
PDO, , PDO, sqlite2. , MySQL.
Note: PDO (PHP Data Objects) - PHP, PHP .
PDO , , , PDO .
PDO PHP 5.1, PECL PHP 5.0; PDO OO PHP 5 PHP .
, , PDO . .
PHP, STP:
If you're running a PHP 5.1 release, PDO and PDO_SQLITE is included inthe distribution; it will be automatically enabled when you runconfigure.
mysql.
, :
extension=php_pdo.dll
extension=php_pdo_firebird.dll
extension=php_pdo_informix.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_oci.dll
extension=php_pdo_oci8.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
, PDB PECL, . , PHP pecl.
http://pecl.php.net/ PDO Packages.
. PDO_MYSQL. .
, [ Download Latest ], , ... . -, PECL.
Windows Available Releases, 1.0.2
- Package Information, :
Windows binaries can be found at http://pecl4win.php.net/ext.php/php_pdo_mysql.dll
!
, , . PECL PHP. T:\usr\local\Php\PECL\
- php.ini . pdo.
, :
;extension=php_msql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
extension=php_pdo.dll
extension=php_pdo_mysql.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
, extension=php_pdo.dll, PHP PDO , :
---------------------------
Warning
---------------------------
PHP Startup: Unable to load dynamic library '/usr/local/PHP/PECL\php_pdo_mysql.dll' - .
---------------------------
---------------------------
.
, MySQL ZendFramework, .
, , , . - , - !
: php mysql pdo zendframework |
PHP |
|
, .
PHP: , ?
, : . , , ... ..
, , , - , , . ( ). , , , .
, " ", , , , , . , ini-?
: !
( , , ). , - LAMPP!
, ... "" -. LAMPP, Linux+Apache+MySQL+PHP+Perl. , .
.
XAMPP (X - , ) : http://www.apachefriends.org/en/xampp.html
. ( , , )
/opt, sh- lampp.
, 127.0.0.1 ( localhost) , . ( :-/) , - .
A matter of security (A MUST READ!) , .
, : /opt/lampp/htdocs/
, : , - ZendStudio, - .wine
( ): Zend ru. , , , ( ).
-PHP- ! :)
: programming linux php mysql perl apache setup phpmyadmin |
- URL |
|
-
, , , , URL.
, : .
, , : http://zcontest.ru/2008.02/zrex.php
... URL http https, . , , .. IP URL . , , GET , , . . , «-» . «_» . .
:
http://www.zcontest.ru
http://zcontest.ru
http://zcontest.com
https://zcontest.ru
https://sub.zcontest-ru.com:8080
http://zcontest.ru/dir%201/dir_2/program.ext?var1=x&var2=my%20value
zcon.com/index.html#bookmark
:
Just Text.
http://a.com
http://www.domain-.com
: php perl url regex |
|
|
-
, . , Nigma (http://www.nigma.ru), . .
, :
/^[A-Z][a-z]{2,}\040[A-Z][a-z]{2,}$/
, , . 2- .
, , , :
/^
([-][-]{2,}
\040
[-][-]{2,}
\040
[-][-]{2,}
$/
, , .
- .
regex :
/^
[\xa5\xaf\xb2\xaa-][\xb4\xb3\xbf\xba\x27-]{2,}
\040
[\xa5\xaf\xb2\xaa-][\xb4\xb3\xbf\xba\x27-]{2,}
\040
[\xa5\xaf\xb2\xaa-][\xb4\xb3\xbf\xba\x27-]{2,}
$/
! , , , - .
, , :
/^
([\xa5\xaf\xb2\xaa-][\xb4\xb3\xbf\xba\x27-]{2,}
|
[\xa5\xaf\xb2\xaa-][\xb4\xb3\xbf\xba\x27-]{2,}
\-
[\xa5\xaf\xb2\xaa-][\xb4\xb3\xbf\xba\x27-]{2,})
\040
[\xa5\xaf\xb2\xaa-][\xb4\xb3\xbf\xba\x27-]{2,}
\040
[\xa5\xaf\xb2\xaa-][\xb4\xb3\xbf\xba\x27-]{2,}
$/
, -, - , .
- . - .
. , .
'- ' !
-...
, :
http://www.pcre.ru/
mod_rewrite :
http://www.egoroff.spb.ru/portfolio/apache/mod_rewrite.html
: php regular expressions prce |
: | [1] |