473,467 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

autogenerating html

tusk
1 New Member
Hello People - :)

I have an itch! and can't find a scratch! - No matter how hard I look!

I have a PHP script that produces a calendar ...
[ not like one you've ever seen before ] and It holds the server for a second to produce the page: Now this page COULD be made every day! -

So here's the rub [ itch! ] can I output the PHP results to a static html file that the Brower reads - Instead of PHP chundering every time the site is viewed?

I could use PHP to test the date of the html.file and If it was out of date autogenerate! a new one ...

... It seems possible, but I cannot find out how to do it!? - anyone, ANY IDEAS!? :confused:

RGDS - Terry
Aug 22 '06 #1
5 1215
iam_clint
1,208 Recognized Expert Top Contributor
Now your wanting to make this caldenar output to a static html file instead of it dynamicly creating the calendar every day?

My Resolution to this is to use FSO not sure if you can do it in PHP but you can in ASP...

try searching goodle for PHP FSO and see if you can find any examples... this should help you get started on writing to a file via PHP
Aug 23 '06 #2
ronverdonk
4,258 Recognized Expert Specialist
Why don't you just check (PHP) if the file is still current? And if not, generate a new one.

Expand|Select|Wrap|Line Numbers
  1. if (file_create_date != current_date)  {
  2.    create_new_calender as existing_calender;
  3. }
  4. echo existing_calender;
  5.  
Ronald :cool:
Aug 23 '06 #3
iam_clint
1,208 Recognized Expert Top Contributor
PHP isn't going to regernerate its creation date because it doesn't recreate the file i would assume ronverdonk, You could do it similar though by writing to a database to keep track of when it was last written to the database.

We may need to see some of the source for this "special" calendar.
Aug 23 '06 #4
ronverdonk
4,258 Recognized Expert Specialist
Yes you can, iam_clint!. When you create a new file and you give it a filename that is derived from the date you created it, e.g. "calender yyyy-mm-dd.html", you can generate a new calender file each day.

I use the same file naming convention for my PHP-generated backup files and it never failed me.

Ronald :cool:
Aug 23 '06 #5
iam_clint
1,208 Recognized Expert Top Contributor
Sorry i misread his question i suppose i thought it was generating a dynamicly created calendar on the same php page and displaying it, i thought his question was how to create a static html file based on this, so my mistake ronald if you get what i was trying to say a dymanicly created php page pulling data from somewhere else based on variables and such its date wouldn't change.... but if i am reading the question the right way this time your solution would work fine.
Aug 23 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
0
by: Boris Ammerlaan | last post by:
This notice is posted about every week. I'll endeavor to use the same subject line so that those of you who have seen it can kill-file the subject; additionally, Supersedes: headers are used to...
20
by: Al Moritz | last post by:
Hi all, I was always told that the conversion of Word files to HTML as done by Word itself sucks - you get a lot of unnecessary code that can influence the design on web browsers other than...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
13
by: NoSpamThankYouMam | last post by:
I am looking for a product that I am not sure exists. I have bookmarks to webpages in Internet Explorer, Mozilla Firefox, Opera, Netscape Navigator, and on a "Favorite Links" page on my website....
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
4
by: Marcin Zmyslowski | last post by:
Hello! How to prevent from autogenerating chart after opening a form with a chart? I would like to set chart parameters which are located in a form, and then click on a button which let me...
6
by: Guy Macon | last post by:
cwdjrxyz wrote: HTML 5 has solved the above probem. See the following web page: HTML 5, one vocabulary, two serializations http://www.w3.org/QA/2008/01/html5-is-html-and-xml.html
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.