Merge lp:~zorba-coders/zorba/bug1026192 into lp:zorba

Proposed by Rodolfo Ochoa
Status: Merged
Approved by: Chris Hillery
Approved revision: 10956
Merged at revision: 10958
Proposed branch: lp:~zorba-coders/zorba/bug1026192
Merge into: lp:zorba
Diff against target: 82 lines (+20/-12)
1 file modified
doc/zorba/php_windows.dox (+20/-12)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug1026192
Reviewer Review Type Date Requested Status
Cezar Andrei Approve
Chris Hillery Approve
Review via email: mp+116998@code.launchpad.net

Commit message

Documentation fixed for Zorba binary package with PHP.

Description of the change

Documentation fixed for Zorba binary package with PHP.

To post a comment you must log in.
Revision history for this message
Chris Hillery (ceejatec) :
review: Approve
Revision history for this message
Cezar Andrei (cezar-andrei) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug1026192-2012-07-27T21-18-58.122Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/zorba/php_windows.dox'
--- doc/zorba/php_windows.dox 2012-07-24 08:48:48 +0000
+++ doc/zorba/php_windows.dox 2012-07-27 04:25:22 +0000
@@ -4,13 +4,14 @@
44
5\section apache_httpd_install Install Apache HTTP Server5\section apache_httpd_install Install Apache HTTP Server
66
7Download and install Apache Server from <a href="http://httpd.apache.org/download.cgi">http://httpd.apache.org/download.cgi</a> for VC6. For apache compiled with VC9 download it from <a href="http://apachelounge.com/">http://apachelounge.com/</a>.7Download and install Apache Server from <a href="http://httpd.apache.org/download.cgi">http://httpd.apache.org/download.cgi</a>.
8You can also get Apache compiled and optimized with Visual Studio VC9 and other modules (like PHP5 module) from <a href="http://apachelounge.com/">Apache Lounge</a>.
89
9\section php5_install Install PHP510\section php5_install Install PHP5
1011
11Download and install PHP5 from <a href="http://windows.php.net/download/">http://windows.php.net/download/</a>. Remember to download and install according your VC version.12Download and install PHP5 from <a href="http://windows.php.net/download/">http://windows.php.net/download/</a>. Remember to download and install according your VC version.
1213
13PHP will automatically install itself in to your apache server.14PHP will automatically install itself in to your apache server. If you got Apache from Apache Lounge you may need their PHP module version.
1415
15You can verify your install by adding a file in your htdocs directory with the following code:16You can verify your install by adding a file in your htdocs directory with the following code:
1617
@@ -23,18 +24,21 @@
2324
24\section zorba_install Install Zorba25\section zorba_install Install Zorba
2526
26Get Zorba sources and follow \ref build.27You can install the latest version of Zorba by <a href="">downloading the most recent binaries</a>, additionaly you can also compile Zorba from source by following \ref build.
2728
28\section compile_zorba_php Compiling the Zorba PHP Extension29\section compile_zorba_php Compiling the Zorba PHP Extension
2930
30In order to compile the PHP Wrapper you need first to follow the steps to compile Zorba, but before compiling, you need to add three variables to the CMAKE command line:31If you are compiling Zorba, you will need also to compile the PHP Wrapper, to do this you besides the \ref build you need to add these three variables to your CMAKE command line:
3132
32\code33\code
33-D PHP5_BINARY_DIR=... Specify the directory where php.exe is located, i.e. "C:\php"34-D PHP5_BINARY_DIR=[PHP INSTALL]
3435[PHP INSTALL] is the directory where php.exe is located, i.e. "C:\php"
35-D PHP5_INCLUDE_DIR=... Specify the directory where the php source is located, i.e. "C:\php-5.3.5"36
3637-D PHP5_INCLUDE_DIR=[PHP INCLUDE DIR]
37-D PHP5_LIBRARY=... Specify with normal slash the path where the php5ts.lib is located, this file is usually located in dev directory from the binary php installation, i.e. "C:/php/dev/php5ts.lib"38[PHP INCLUDE DIR] is the directory where the php source is located, i.e. "C:\php-5.3.5"
39
40-D PHP5_LIBRARY=[PHP LIBRARY]
41[PHP LIBRARY] is the path where the php5ts.lib is located, this file is usually located in dev directory from the binary php installation, i.e. "C:/php/dev/php5ts.lib"
38\endcode42\endcode
3943
40After adding those lines CMAKE will add automatically the PHP Wrapper project and you will be able to get zorba_api.dll, which is the extension you can use in your php binary installation.44After adding those lines CMAKE will add automatically the PHP Wrapper project and you will be able to get zorba_api.dll, which is the extension you can use in your php binary installation.
@@ -51,7 +55,11 @@
5155
52\section php_enable_zorba_extension Enable Zorba extension in PHP56\section php_enable_zorba_extension Enable Zorba extension in PHP
5357
54Copy Zorba extension zorba_api.dll file into your php extensions directory, i.e.58Copy Zorba extension zorba_api.dll file into your php extensions directory, this extension is located on:
59Zorba compiled from sources: [ZORBA BUILD DIRECTORY]\swig\php\[DEBUG/RELEASE IF VISUAL STUDIO]
60Zorba installed binaries: [ZORBA INSTALL DIRECTORY]\share\php\
61
62this file must be copied to your extensions directory that may be:
55\code63\code
56C:\php\ext\64C:\php\ext\
57\endcode65\endcode
@@ -62,9 +70,10 @@
6270
63<code><strong>php.ini</strong>71<code><strong>php.ini</strong>
64extension=zorba_api.dll72extension=zorba_api.dll
65In your Zorba directory, locate the file zorba_api_wrapper.php and copy it to an include directory from where php can find it from your setting include_path, i.e.
66</code>73</code>
6774
75In your Zorba directory, locate the files zorba_api_wrapper.php and XQueryProcessor.php, copy them it to your include directory from where php can find it, this location is set on your php.ini file with the name <cope>include_path</code>, i.e.
76
68<code><strong>php.ini</strong>77<code><strong>php.ini</strong>
69; Windows: "\path1;\path2"78; Windows: "\path1;\path2"
70include_path = ".;C:\php\include"79include_path = ".;C:\php\include"
@@ -109,7 +118,6 @@
109</html>118</html>
110\endcode119\endcode
111120
112
113Point your browser to http://localhost/test.php and see the result.121Point your browser to http://localhost/test.php and see the result.
114122
115\section further_reading Further reading123\section further_reading Further reading

Subscribers

People subscribed via source and target branches