Em Andamento

Simple php publishing script 10

The goal of this file ([url removed, login to view]) is to read a simple dynamic php-website and publish it as a static html-version. And before that, take a backup of the previous static html-version. The website has a couple of language versions and this file publishes only one language at a time, based on parameter given in the url: [url removed, login to view]

The website will only contain 10-30 pages per language and this "static publishing" is not done very often.

I also might need to adjust something with my mediocre php-skills.

Therefore it is good if you favor simplicity and basic php over elegant and maybe more efficient solutions.

Also please comment your code.

NOTE! All files are UTF-8 and all files created must also be UTF-8

TO PUT IT SHORT:

So the stuff found from folder named "dev" should create the folders "en", "fr" and "backup" and everything inside them. See the attached zip, so you will know what I mean.

THE CODE DOES THESE STEPS:

Open php/[url removed, login to view] and read the sitemap

Take backup of the previously published content (folder) of this specific language (if it exists) and save it to:

- Backups/$lang/YEAR_MONTH_DAY_HOUR_MIN_SEC/

Open language [url removed, login to view] from the language folder

Loop all pages from the sitemap through and do this for each page:

- Open & read the file

- do a simple string replacement for the contents, like convert all "a" letters to "x"

- I will later replace this with something useful, so think of this as just a placeholder

- Save the file with the filename and location that is specified in $lang/[url removed, login to view]

This project is for 6stech only!

Habilidades: PHP, Design de Sites

Ver mais: what is publishing, what is placeholder, what is a placeholder, what does design mean, steps and what you need to create a website, simple folder design, php string to html, php save as, php is, just publishing, it solutions website dev, html script for website design, good letters, en save, dev php, dev it solutions, simple html code for website design, simple language, short script, placeholder, php skills, php pages, php language project, php fr, html publishing

Acerca do Empregador:
( 4 comentários ) Sarasota, United States

ID do Projeto: #565378

Premiar a:

www6STECHcom

as per specs

$100 USD em 5 dias
(106 Avaliações)
6.5