When running PHP as a static binary, how does it handle text (HTML code)
that falls outsize of the <?PHP  ?> tags.  Is the text ignored or
outputted?
Outputted. This can be very handy. One thing I use it for is customizing configuration files where only a small percentage of the overall text needs to be modified. Using <?=$Varname?> in the text makes it very powerful.



Now, my client has requested that I give him the ability to generate a
static version of the catalog so that he can burn it onto a CD for
distribution at trade shows.  He wants the CD to be a snapshot of the
catalog.  Furthermore, he wants to be able to generate this "snapshot"
frequently so that pricing info on the CD will be current.  To
accommodate this, the process for generating the snapshot must be easy
and intuitive.
If you are lucky, and the web site has links that will get you to all the products without searching or other <form> based activity, just point wget -kr at the site, and you will end up with a directory containing flat HTML files for all the database generated pages in the site. Be sure the destination directory is in the same path as you want it to appear from the root directory of the CD. You won't be able to put it in the root directory.

If you don't have good links in the program, you can use -i input_file to name all the pages you need to grab.

Try >man wget for details.

I haven't tried making this something that can be accessed from a CD using file:// based URLs, but I have been able to grab entire web sites to be hosted with Apache. You may need to use sed or something to clean up the <A href=""> tags.

Rick


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to