Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question I need help reading php file + writing it as html file

    Hi,

    I have this blog hosted on a sub folder like this: www.domain.com/blog/

    I'm using wordpress. On my domain index I have a php file thats basicly a html file with a query to my blog database that places blog posts on my index.

    Now I want that entire php (with all the other regular html in it) to be run and written as index.html so I can use a cron to let it run every hour or so.

    For example like this:

    blog-posts-for-index.php
    >
    some-run-and-write.php (I let cron run this every hour or so)
    >
    overwrite index.html


    Is that possible?

  • #2
    Regular Coder the-dream's Avatar
    Join Date
    Mar 2007
    Location
    Northamptonshire, UK
    Posts
    477
    Thanks
    8
    Thanked 4 Times in 4 Posts
    So, you basically want a caching system?
    Last edited by the-dream; 09-06-2009 at 08:22 PM. Reason: My spelling sucks.

  • #3
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by the-dream View Post
    So, you basically want a caching system?
    Exactly! For my wordpress blog I use a plugin but I need some directions on how to do it outside my blog using php...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •