/    Sign up×
Community /Pin to ProfileBookmark

automating webpage build

When I first started learning asp I was amazed by the run once wizard in win98 iis. It took a long time and a lot of looking but I finaly peiced together the info on how to build my own. It basically takes the peices of a web page and puts it together. Now since I am moving to linux and apache I want to setup the same system with php. It would consist of a set of folders.
1.css
2.graphics
3.html
plus 1 template doc
It would need to read the folders and give me a list in a form with checkboxes then take the ones I checked and write them to doc with either a php css or html extension. then save them to my comp. Can someone advise me on this would it be better to use javascript or some other script for this.?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@EinsteinsEyesMay 08.2010 — I think this would be really difficult in javascript. In general to create files from a web server and save them on your local desktop seems like it would be problematic in javascript. If you passed it through a server script and that created the file via php for example that would be a lot easier. I am just not sure I have a web development example I can think of off the top of my head.
Copy linkTweet thisAlerts:
@NogDogMay 08.2010 — I'm not at all sure that I understand, but if the idea is to use PHP to take the different pieces and build a new file that will be a static HTML page, that would seem to be sort of a backwards way of using PHP. I would normally instead use it to dynamically display the page at run-time, perhaps based on URL query string arguments (using URL rewriting for SEO-/user-friendly URLs). Depending on the size, scope, and functionality of the site this could be augmented by a PHP framework and/or templating system.
Copy linkTweet thisAlerts:
@dvdljnsauthorMay 08.2010 — Not static. any thing that changed a lot would still have to be handcoded. look the ideal is simple I use three column webpages. the columns grow and shrink according to the amount of text or size of whatever I have in them. I find I use a lot of the stuff over and over but the placement is differant. also the css is sometimes different. this will allow me to add divs and css like some programs do snippits of code. It makes building costum pages easier. I guess to describe it is to say it turns building web pages into a point and click system. It sounds a little crazy when you describe it but it really works great. After a while you just run it and check the items you need for that page and save it. I found a lot of info I need for this when I ran a search on php, so it is just a matter of putting it together. One of the great things about it is I do not have to worry about typos any more. I do not know how to type so this really saves me a lot of time nobody else seems to have a problem with. Once I get the code right once it is allways right every other time.
×

Success!

Help @dvdljns spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...