Änderungen https Andy Müller rückgängig gemacht

This commit is contained in:
aschwarz
2023-04-26 14:01:34 +02:00
parent dd253ca7e9
commit 1d0d52f302
355 changed files with 1004 additions and 1004 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<Project DefaultTargets="Build" xmlns="https://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>

View File

@ -1,4 +1,4 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project xmlns="https://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
</PropertyGroup>

View File

@ -2,10 +2,10 @@
## Frequently asked questions
The up-to-date F.A.Q. page for PHPExcel can be found on [http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=FAQ&referringTitle=Requirements][1].
The up-to-date F.A.Q. page for PHPExcel can be found on [https://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=FAQ&referringTitle=Requirements][1].
### Formulas dont seem to be calculated in Excel2003 using compatibility pack?
This is normal behaviour of the compatibility pack, Excel2007 displays this correctly. Use PHPExcel_Writer_Excel5 if you really need calculated values, or force recalculation in Excel2003.
[1]: http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=FAQ&referringTitle=Requirements
[1]: https://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=FAQ&referringTitle=Requirements

View File

@ -38,8 +38,8 @@ Copy the "Examples" folder next to your "Classes" folder from above so you end u
Start running the tests by pointing your browser to the test scripts:
http://example.com/Tests/01simple.php
http://example.com/Tests/02types.php
https://example.com/Tests/01simple.php
https://example.com/Tests/02types.php
...
**Note:** It may be necessary to modify the include/require statements at the beginning of each of the test scripts if your "Classes" folder from above is named differently.
@ -52,18 +52,18 @@ There are some links and tools which are very useful when developing using PHPEx
#### OpenXML / SpreadsheetML
- __File format documentation__
[http://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm][3]
[https://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm][3]
- __OpenXML Explained e-book__
[http://openxmldeveloper.org/articles/1970.aspx][4]
[https://openxmldeveloper.org/articles/1970.aspx][4]
- __Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats__
[http://www.microsoft.com/downloads/details.aspx?familyid=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=en][5]
[https://www.microsoft.com/downloads/details.aspx?familyid=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=en][5]
- __OpenXML Package Explorer__
[http://www.codeplex.com/PackageExplorer/][6]
[https://www.codeplex.com/PackageExplorer/][6]
### Frequently asked questions
The up-to-date F.A.Q. page for PHPExcel can be found on [http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=FAQ&referringTitle=Requirements][7].
The up-to-date F.A.Q. page for PHPExcel can be found on [https://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=FAQ&referringTitle=Requirements][7].
##### There seems to be a problem with character encoding...
@ -91,7 +91,7 @@ At present, this only allows you to write Excel2007 files without the need for Z
"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."
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.
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 [https://snaps.php.net/win32/php5.2-win32-latest.zip][8] should work at all times.
Alternatively, upgrading to at least PHP 5.2.9 should solve the problem.
@ -146,33 +146,33 @@ Thanks to peterrlynch for the following advice on resolving issues between the [
#### Tutorials
- __English PHPExcel tutorial__
[http://openxmldeveloper.org][18]
[https://openxmldeveloper.org][18]
- __French PHPExcel tutorial__
[http://g-ernaelsten.developpez.com/tutoriels/excel2007/][19]
[https://g-ernaelsten.developpez.com/tutoriels/excel2007/][19]
- __A Japanese-language introduction to PHPExcel__
[http://journal.mycom.co.jp/articles/2009/03/06/phpexcel/index.html][21]
[https://journal.mycom.co.jp/articles/2009/03/06/phpexcel/index.html][21]
[2]: http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Documents&referringTitle=Home
[3]: http://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm
[4]: http://openxmldeveloper.org/articles/1970.aspx
[5]: http://www.microsoft.com/downloads/details.aspx?familyid=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=en
[6]: http://www.codeplex.com/PackageExplorer/
[7]: http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=FAQ&referringTitle=Requirements
[8]: http://snaps.php.net/win32/php5.2-win32-latest.zip
[9]: http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=234150
[10]: http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=242712
[11]: http://http:/forum.joomla.org/viewtopic.php?f=304&t=433060
[12]: http://www.yiiframework.com/wiki/101/how-to-use-phpexcel-external-library-with-yii/
[13]: http://bakery.cakephp.org/articles/melgior/2010/01/26/simple-excel-spreadsheet-helper
[14]: http://www.flynsarmy.com/2010/07/phpexcel-module-for-kohana-3/
[15]: http://szpargalki.blogspot.com/2011/02/phpexcel-kohana-framework.html
[16]: http://typo3.org/documentation/document-library/extension-manuals/phpexcel_library/1.1.1/view/toc/0/
[17]: http://phpexcel.codeplex.com/discussions/211925
[18]: http://openxmldeveloper.org
[19]: http://g-ernaelsten.developpez.com/tutoriels/excel2007/
[20]: http://www.web-junior.net/sozdanie-excel-fajjlov-s-pomoshhyu-phpexcel/
[21]: http://journal.mycom.co.jp/articles/2009/03/06/phpexcel/index.html
[2]: https://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Documents&referringTitle=Home
[3]: https://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm
[4]: https://openxmldeveloper.org/articles/1970.aspx
[5]: https://www.microsoft.com/downloads/details.aspx?familyid=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=en
[6]: https://www.codeplex.com/PackageExplorer/
[7]: https://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=FAQ&referringTitle=Requirements
[8]: https://snaps.php.net/win32/php5.2-win32-latest.zip
[9]: https://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=234150
[10]: https://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=242712
[11]: https://https:/forum.joomla.org/viewtopic.php?f=304&t=433060
[12]: https://www.yiiframework.com/wiki/101/how-to-use-phpexcel-external-library-with-yii/
[13]: https://bakery.cakephp.org/articles/melgior/2010/01/26/simple-excel-spreadsheet-helper
[14]: https://www.flynsarmy.com/2010/07/phpexcel-module-for-kohana-3/
[15]: https://szpargalki.blogspot.com/2011/02/phpexcel-kohana-framework.html
[16]: https://typo3.org/documentation/document-library/extension-manuals/phpexcel_library/1.1.1/view/toc/0/
[17]: https://phpexcel.codeplex.com/discussions/211925
[18]: https://openxmldeveloper.org
[19]: https://g-ernaelsten.developpez.com/tutoriels/excel2007/
[20]: https://www.web-junior.net/sozdanie-excel-fajjlov-s-pomoshhyu-phpexcel/
[21]: https://journal.mycom.co.jp/articles/2009/03/06/phpexcel/index.html
[^phpzip_footnote]: __php_zip__ is only needed by __PHPExcel_Reader_Excel2007__, __PHPExcel_Writer_Excel2007__ and __PHPExcel_Reader_OOCalc__. In other words, if you need PHPExcel to handle .xlsx or .ods files you will need the zip extension, but otherwise not.<br />You can remove this dependency for writing Excel2007 files (though not yet for reading) by using the PCLZip library that is bundled with PHPExcel. See the FAQ section of this document for details about this. PCLZip does have a dependency on PHP's zlib extension being enabled.

View File

@ -230,7 +230,7 @@ You can make a cell a clickable URL by setting its hyperlink property:
```php
$objPHPExcel->getActiveSheet()->setCellValue('E26', 'www.phpexcel.net');
$objPHPExcel->getActiveSheet()->getCell('E26')->getHyperlink()->setUrl('http://www.phpexcel.net');
$objPHPExcel->getActiveSheet()->getCell('E26')->getHyperlink()->setUrl('https://www.phpexcel.net');
```
If you want to make a hyperlink to another worksheet/cell, use the following code:

View File

@ -37,16 +37,16 @@ There are some known limitations to the PHPExcel calculation engine. Most of the
In Excel '+' wins over '&', just like '*' wins over '+' in ordinary algebra. The former rule is not what one finds using the calculation engine shipped with PHPExcel.
Reference for operator precedence in Excel: [http://support.microsoft.com/kb/25189][18]
Reference for operator precedence in Excel: [https://support.microsoft.com/kb/25189][18]
Reference for operator precedence in PHP: [http://www.php.net/operators][19]
Reference for operator precedence in PHP: [https://www.php.net/operators][19]
#### Formulas involving numbers and text
Formulas involving numbers and text may produce unexpected results or even unreadable file contents. For example, the formula '=3+"Hello "' is expected to produce an error in Excel (#VALUE!). Due to the fact that PHP converts “Hello” to a numeric value (zero), the result of this formula is evaluated as 3 instead of evaluating as an error. This also causes the Excel document being generated as containing unreadable content.
Reference for this behaviour in PHP: [http://be.php.net/manual/en/language.types.string.php#language.types.string.conversion][20]
Reference for this behaviour in PHP: [https://be.php.net/manual/en/language.types.string.php#language.types.string.conversion][20]
[18]: http://support.microsoft.com/kb/25189
[19]: http://www.php.net/operators
[20]: http://be.php.net/manual/en/language.types.string.php#language.types.string.conversion
[18]: https://support.microsoft.com/kb/25189
[19]: https://www.php.net/operators
[20]: https://be.php.net/manual/en/language.types.string.php#language.types.string.conversion

View File

@ -527,7 +527,7 @@ $objWriter->setSheetIndex(0);
There might be situations where you want to explicitly set the included images root. For example, one might want to see
```html
<img style="position: relative; left: 0px; top: 0px; width: 140px; height: 78px;" src="http://www.domain.com/*images/logo.jpg" border="0">
<img style="position: relative; left: 0px; top: 0px; width: 140px; height: 78px;" src="https://www.domain.com/*images/logo.jpg" border="0">
```
instead of
@ -539,7 +539,7 @@ instead of
You can use the following code to achieve this result:
```php
$objWriter->setImagesRoot('http://www.example.com');
$objWriter->setImagesRoot('https://www.example.com');
```
##### Formula pre-calculation
@ -623,9 +623,9 @@ Currently, the following libraries are supported:
Library | Version used for testing | Downloadable from | PHPExcel Internal Constant
--------|--------------------------|----------------------------------|----------------------------
tcPDF | 5.9 | http://www.tcpdf.org/ | PDF_RENDERER_TCPDF
mPDF | 5.4 | http://www.mpdf1.com/mpdf/ | PDF_RENDERER_MPDF
domPDF | 0.6.0 beta 3 | http://code.google.com/p/dompdf/ | PDF_RENDERER_DOMPDF
tcPDF | 5.9 | https://www.tcpdf.org/ | PDF_RENDERER_TCPDF
mPDF | 5.4 | https://www.mpdf1.com/mpdf/ | PDF_RENDERER_MPDF
domPDF | 0.6.0 beta 3 | https://code.google.com/p/dompdf/ | PDF_RENDERER_DOMPDF
The different libraries have different strengths and weaknesses. Some generate better formatted output than others, some are faster or use less memory than others, while some generate smaller .pdf files. It is the developers choice which one they wish to use, appropriate to their own circumstances.
@ -710,5 +710,5 @@ $objWriter->save('write.xls');
Notice that it is ok to load an xlsx file and generate an xls file.
[21]: http://pear.php.net/package/Spreadsheet_Excel_Writer
[22]: http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Credits&referringTitle=Home
[21]: https://pear.php.net/package/Spreadsheet_Excel_Writer
[22]: https://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Credits&referringTitle=Home

View File

@ -2,7 +2,7 @@
## Credits
Please refer to the internet page [http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Credits&referringTitle=Home][22] for up-to-date credits.
Please refer to the internet page [https://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Credits&referringTitle=Home][22] for up-to-date credits.
## Valid array keys for style applyFromArray()
@ -97,4 +97,4 @@ __PHPExcel_Style_Protection__
hidden | setHidden()
[22]: http://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Credits&referringTitle=Home
[22]: https://www.codeplex.com/PHPExcel/Wiki/View.aspx?title=Credits&referringTitle=Home

View File

@ -9,19 +9,19 @@ Currently, PHPExcel supports the following File Types for Reading:
### Excel5
The Microsoft Excel™ Binary file format (BIFF5 and BIFF8) is a binary file format that was used by Microsoft Excel™ between versions 95 and 2003. The format is supported (to various extents) by most spreadsheet programs. BIFF files normally have an extension of .xls. Documentation describing the format can be found online at [http://msdn.microsoft.com/en-us/library/cc313154(v=office.12).aspx][1] or from [http://download.microsoft.com/download/2/4/8/24862317-78F0-4C4B-B355-C7B2C1D997DB/[MS-XLS].pdf][2] (as a downloadable PDF).
The Microsoft Excel™ Binary file format (BIFF5 and BIFF8) is a binary file format that was used by Microsoft Excel™ between versions 95 and 2003. The format is supported (to various extents) by most spreadsheet programs. BIFF files normally have an extension of .xls. Documentation describing the format can be found online at [https://msdn.microsoft.com/en-us/library/cc313154(v=office.12).aspx][1] or from [https://download.microsoft.com/download/2/4/8/24862317-78F0-4C4B-B355-C7B2C1D997DB/[MS-XLS].pdf][2] (as a downloadable PDF).
### Excel2003XML
Microsoft Excel™ 2003 included options for a file format called SpreadsheetML. This file is a zipped XML document. It is not very common, but its core features are supported. Documentation for the format can be found at [http://msdn.microsoft.com/en-us/library/aa140066%28office.10%29.aspx][3] though its sadly rather sparse in its detail.
Microsoft Excel™ 2003 included options for a file format called SpreadsheetML. This file is a zipped XML document. It is not very common, but its core features are supported. Documentation for the format can be found at [https://msdn.microsoft.com/en-us/library/aa140066%28office.10%29.aspx][3] though its sadly rather sparse in its detail.
### Excel2007
Microsoft Excel™ 2007 shipped with a new file format, namely Microsoft Office Open XML SpreadsheetML, and Excel 2010 extended this still further with its new features such as sparklines. These files typically have an extension of .xlsx. This format is based around a zipped collection of eXtensible Markup Language (XML) files. Microsoft Office Open XML SpreadsheetML is mostly standardized in ECMA 376 ([http://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm][4]) and ISO 29500.
Microsoft Excel™ 2007 shipped with a new file format, namely Microsoft Office Open XML SpreadsheetML, and Excel 2010 extended this still further with its new features such as sparklines. These files typically have an extension of .xlsx. This format is based around a zipped collection of eXtensible Markup Language (XML) files. Microsoft Office Open XML SpreadsheetML is mostly standardized in ECMA 376 ([https://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm][4]) and ISO 29500.
### OOCalc
aka Open Document Format (ODF) or OASIS, this is the OpenOffice.org XML File Format for spreadsheets. It comprises a zip archive including several components all of which are text files, most of these with markup in the eXtensible Markup Language (XML). It is the standard file format for OpenOffice.org Calc and StarCalc, and files typically have an extension of .ods. The published specification for the file format is available from the OASIS Open Office XML Format Technical Committee web page ([http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office#technical][5]). Other information is available from the OpenOffice.org XML File Format web page ([http://xml.openoffice.org/general.html][6]), part of the OpenOffice.org project.
aka Open Document Format (ODF) or OASIS, this is the OpenOffice.org XML File Format for spreadsheets. It comprises a zip archive including several components all of which are text files, most of these with markup in the eXtensible Markup Language (XML). It is the standard file format for OpenOffice.org Calc and StarCalc, and files typically have an extension of .ods. The published specification for the file format is available from the OASIS Open Office XML Format Technical Committee web page ([https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office#technical][5]). Other information is available from the OpenOffice.org XML File Format web page ([https://xml.openoffice.org/general.html][6]), part of the OpenOffice.org project.
### SYLK
@ -29,7 +29,7 @@ This is the Microsoft Multiplan Symbolic Link Interchange (SYLK) file format. Mu
### Gnumeric
The Gnumeric file format is used by the Gnome Gnumeric spreadsheet application, and typically files have an extension of .gnumeric. The file contents are stored using eXtensible Markup Language (XML) markup, and the file is then compressed using the GNU project's gzip compression library. [http://projects.gnome.org/gnumeric/doc/file-format-gnumeric.shtml][7]
The Gnumeric file format is used by the Gnome Gnumeric spreadsheet application, and typically files have an extension of .gnumeric. The file contents are stored using eXtensible Markup Language (XML) markup, and the file is then compressed using the GNU project's gzip compression library. [https://projects.gnome.org/gnumeric/doc/file-format-gnumeric.shtml][7]
### CSV
@ -51,10 +51,10 @@ HyperText Markup Language (HTML) is the main markup language for creating web pa
[1]: http://msdn.microsoft.com/en-us/library/cc313154(v=office.12).aspx
[2]: http://download.microsoft.com/download/2/4/8/24862317-78F0-4C4B-B355-C7B2C1D997DB/%5bMS-XLS%5d.pdf
[3]: http://msdn.microsoft.com/en-us/library/aa140066%28office.10%29.aspx
[4]: http://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm
[5]: http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office
[6]: http://xml.openoffice.org/general.html
[7]: http://projects.gnome.org/gnumeric/doc/file-format-gnumeric.shtml
[1]: https://msdn.microsoft.com/en-us/library/cc313154(v=office.12).aspx
[2]: https://download.microsoft.com/download/2/4/8/24862317-78F0-4C4B-B355-C7B2C1D997DB/%5bMS-XLS%5d.pdf
[3]: https://msdn.microsoft.com/en-us/library/aa140066%28office.10%29.aspx
[4]: https://www.ecma-international.org/news/TC45_current_work/TC45_available_docs.htm
[5]: https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office
[6]: https://xml.openoffice.org/general.html
[7]: https://projects.gnome.org/gnumeric/doc/file-format-gnumeric.shtml

View File

@ -3,7 +3,7 @@
## Security
XML-based formats such as OfficeOpen XML, Excel2003 XML, OASIS and Gnumeric are susceptible to XML External Entity Processing (XXE) injection attacks (for an explanation of XXE injection see http://websec.io/2012/08/27/Preventing-XEE-in-PHP.html) when reading spreadsheet files. This can lead to:
XML-based formats such as OfficeOpen XML, Excel2003 XML, OASIS and Gnumeric are susceptible to XML External Entity Processing (XXE) injection attacks (for an explanation of XXE injection see https://websec.io/2012/08/27/Preventing-XEE-in-PHP.html) when reading spreadsheet files. This can lead to:
- Disclosure whether a file is existent
- Server Side Request Forgery

View File

@ -363,7 +363,7 @@ CSV | YES | HTML | NO
### A Brief Word about the Advanced Value Binder
When loading data from a file that contains no formatting information, such as a CSV file, then data is read either as strings or numbers (float or integer). This means that PHPExcel does not automatically recognise dates/times (such as "16-Apr-2009" or "13:30"), booleans ("TRUE" or "FALSE"), percentages ("75%"), hyperlinks ("http://www.phpexcel.net"), etc as anything other than simple strings. However, you can apply additional processing that is executed against these values during the load process within a Value Binder.
When loading data from a file that contains no formatting information, such as a CSV file, then data is read either as strings or numbers (float or integer). This means that PHPExcel does not automatically recognise dates/times (such as "16-Apr-2009" or "13:30"), booleans ("TRUE" or "FALSE"), percentages ("75%"), hyperlinks ("https://www.phpexcel.net"), etc as anything other than simple strings. However, you can apply additional processing that is executed against these values during the load process within a Value Binder.
A Value Binder is a class that implement the PHPExcel_Cell_IValueBinder interface. It must contain a bindValue() method that accepts a PHPExcel_Cell and a value as arguments, and return a boolean true or false that indicates whether the workbook cell has been populated with the value or not. The Advanced Value Binder implements such a class: amongst other tests, it identifies a string comprising "TRUE" or "FALSE" (based on locale settings) and sets it to a boolean; or a number in scientific format (e.g. "1.234e-5") and converts it to a float; or dates and times, converting them to their Excel timestamp value before storing the value in the cell object. It also sets formatting for strings that are identified as dates, times or percentages. It could easily be extended to provide additional handling (including text or cell formatting) when it encountered a hyperlink, or HTML markup within a CSV file.