WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Generating HTML Pages
How do I genrate html pages

Version:
printPrint


Generating HTML Pages
sleeplessonline
Member
Avatar

Usergroup: Customer
Joined: Jan 14, 2005
Total Topics: 6
Total Posts: 15
Posted 01/14/05 - 04:46 PM:
quote post
#1
I keep trying to genrate html pages but I get an error message that the directory doesn't exist. How do I create the HTML? Step by step if you don't mind.

Thanks,
Kelly

Kelly
http:/www.kellyscountrycorner.com
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5961
Posted 01/14/05 - 07:21 PM:
quote post
#2
You need to decide where you want to generate the html. Create that directory, then specify it on the 'generate html' page. The default suggestion is making it at /admin/htmloutput, but that directory doesn't exist by default so you still have to create an htmloutput subdirectory in your admin directory to use it.

After creating the directory, make sure you CHMOD it to 777 so that it's writeable. Then, go to the 'generate html' page and generate and it should work (of course, you may also want to customize the templates used in the generation).

You can also use the options in the 'automated' area at the bottom of the page to make it create subdirectories for each category, and specify what it names the html files (these options will apply to all generations, automated or not, though that's not very clearly shown on the page).

Edited by Paul on 01/14/05 - 07:24 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
sleeplessonline
Member
Avatar

Usergroup: Customer
Joined: Jan 14, 2005
Total Topics: 6
Total Posts: 15
Posted 01/14/05 - 07:53 PM:
quote post
#3
Hi Paul,
Thanks for the reply. I created the folder but didn't realize until after I posted that I needed to set the permissions. Unfortunately I can't set them. I have to have the server set them.
How will the categories be displayed if I don't have it create subdirectories?
I'm sure that is a stupid question but unfortunatley I'm not sure. And one more stupid question...If I have it create subdirectories won't I need to CHMOD each one? It's really difficult not being able to set the permissions on the files. Everytime I need them set I have to e-mail them to do it. I want to make sure I know all of the files that need to be done.
Thanks again,
Kelly


Kelly
http:/www.kellyscountrycorner.com
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5961
Posted 01/14/05 - 11:09 PM:
quote post
#4
Unfortunately I can't set them. I have to have the server set them.

A directory created by the script is inaccessible by FTP on some php/server configurations until you run the CHMOD utility on it (in the 'maintinence' section of 3.14 and in the hacks forum for previous versions). No need to have your host do it.

How will the categories be displayed if I don't have it create subdirectories?

The default naming for them as shown at the bottom of the 'generate html' page is cat{CATID}.htm, where {CATID} is the id number of the category the file is of. The index.htm it generates will simply link to each cat1.htm, cat2.htm etc.

If I have it create subdirectories won't I need to CHMOD each one?

I'd think that it'd be able to write to directories of its own creation, being the owner, without chmoding. If it can't for some reason, again there's the chmod utility for that. (Though it presumes 777 is the category permission you need, so the occasional servers that require 755 instead would have a problem and require modifying the file.)

Edited by Paul on 01/14/05 - 11:12 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.