|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Article Discussion: Static HTML Generation With PHP
Static HTML Generation With PHP If you have any questions or comments about this article please post them here.
You can read the article here . |
|
#2
|
|||
|
|||
|
problems with this tutorial
A few problems with (overall very good) tutorial,
1. A simple problem is the omission of $dynamic_source = fopen($sourcepage, 'r'); in the actual source code example. 2. Secondly although filesize as 1024 * 1024 works on small php pages, for larger pages a more appropriate solution would be. while(!feof($dynamic_source) and (connection_status()==0)) { $tempdata = (fread($dynamic_source, 1024*8)); $htmldata.= $tempdata; flush(); } (This is in place of $htmldata = fread($dynamic_source, 1024*1024) in the original text; This will allow your file to be whatever size you like and the output will be written correctly instead of stopping halfway through like it was doing for me. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Article Discussion: Static HTML Generation With PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|