Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old April 10th, 2003, 09:17 AM
benos benos is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 233 benos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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 .

Reply With Quote
  #2  
Old August 19th, 2003, 11:30 AM
alanok3 alanok3 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 alanok3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Static HTML Generation With PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway