paintedsky / dead-simple-blog Goto Github PK
View Code? Open in Web Editor NEWA flat-file, database-free, almost-single-file blog "engine" using PHP.
License: MIT License
A flat-file, database-free, almost-single-file blog "engine" using PHP.
License: MIT License
Apache v2.4.33
PHP v7.2.4
I just uploaded the files to my web server, edited the variable "$base_url" in index.php, and loaded the blog on the web browser.
I get the message "Notice: Undefined variable: content in C:\xampp\htdocs\blog\index.php on line 34".
I tried both relative and absolute URLs in the "$base_url"variable and the results were the same.
I also tried to load the available page (2018-10-30.txt) directly using http://127.0.0.1/blog/?post=2018-10-30 and the page loads fine, without errors.
The problem seems to be only in the "home page" of the website.
Hi,
I am using a modified older version. It always pulled the posts out in the right order before my site moved server. Now the posts come out in a consistent but not newest descending order. Do you have any idea why the directoryIterator loop would change the order of the files retrieved? I am using YYYY-MM-DD
Hi people,
For some reasons, I can't find the logic in the way the index is sorted. In my case it is not chronological nor alphabetical, nor following any logic. Is there any way to fix this ?
Thanks in advance,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.