You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 2, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: Documentation/markdown/Overview/01-Getting-Started.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -21,20 +21,20 @@ Installation is quite easy: copy the contents of the Classes folder to any locat
21
21
22
22
If your web root folder is /var/www/ you may want to create a subfolder called /var/www/Classes/ and copy the files into that folder so you end up with files:
23
23
24
-
/var/www/Classes/PHPExcel.php
25
-
/var/www/Classes/PHPExcel/Calculation.php
26
-
/var/www/Classes/PHPExcel/Cell.php
27
-
...
24
+
/var/www/Classes/PHPExcel.php
25
+
/var/www/Classes/PHPExcel/Calculation.php
26
+
/var/www/Classes/PHPExcel/Cell.php
27
+
...
28
28
29
29
30
30
### Getting started
31
31
32
32
A good way to get started is to run some of the tests included in the download.
33
33
Copy the "Examples" folder next to your "Classes" folder from above so you end up with:
34
34
35
-
/var/www/Examples/01simple.php
36
-
/var/www/Examples/02types.php
37
-
...
35
+
/var/www/Examples/01simple.php
36
+
/var/www/Examples/02types.php
37
+
...
38
38
39
39
Start running the tests by pointing your browser to the test scripts:
40
40
@@ -89,7 +89,7 @@ At present, this only allows you to write Excel2007 files without the need for Z
89
89
90
90
##### Excel 2007 cannot open the file generated by PHPExcel_Writer_2007 on Windows
91
91
92
-
*"Excel found unreadable content in '*.xlsx'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes."*
92
+
"Excel found unreadable content in '*.xlsx'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes."
93
93
94
94
Some older versions of the 5.2.x php_zip extension on Windows contain an error when creating ZIP files. The version that can be found on [http://snaps.php.net/win32/php5.2-win32-latest.zip][8] should work at all times.
PHPExcel implements an autoloader or "lazy loader", which means that it is not necessary to include every file within PHPExcel. It is only necessary to include the initial PHPExcel class file, then the autoloader will include other class files as and when required, so only those files that are actually required by your script will be loaded into PHP memory. The main benefit of this is that it reduces the memory footprint of PHPExcel itself, so that it uses less PHP memory.
13
+
PHPExcel implements an autoloader or "lazy loader", which means that it is not necessary to include every file within PHPExcel. It is only necessary to include the initial PHPExcel class file, then the autoloader will include other class files as and when required, so only those files that are actually required by your script will be loaded into PHP memory. The main benefit of this is that it reduces the memory footprint of PHPExcel itself, so that it uses less PHP memory.
14
14
15
15
If your own scripts already define an autoload function, then this may be overwritten by the PHPExcel autoload function. For example, if you have:
16
16
```php
@@ -42,11 +42,12 @@ On its own, PHPExcel does not provide the functionality to read from or write to
42
42
43
43
By default, the PHPExcel package provides some readers and writers, including one for the Open XML spreadsheet format (a.k.a. Excel 2007 file format). You are not limited to the default readers and writers, as you are free to implement the PHPExcel_Reader_IReader and PHPExcel_Writer_IWriter interface in a custom class.
PHPExcel supports fluent interfaces in most locations. This means that you can easily "chain"" calls to specific methods without requiring a new PHP statement. For example, take the following code:
49
+
PHPExcel supports fluent interfaces in most locations. This means that you can easily "chain" calls to specific methods without requiring a new PHP statement. For example, take the following code:
0 commit comments