sebcode / b Goto Github PK
View Code? Open in Web Editor NEWMinimalistic bookmark manager for your own server written in PHP. Bookmarks are stored in a sqlite database.
License: MIT License
Minimalistic bookmark manager for your own server written in PHP. Bookmarks are stored in a sqlite database.
License: MIT License
Line 27 in 2958419
but index.php
doe not read config.php
.
Line 3 in 2958419
bookmarklet.php
reads a config.php
which is supposed to be in htdocs
:
config.php
to be in htdocs. i would read it from __DIR__/../conf/
, insteadconfig.php
should look like...HI! Very nice app, I like the minimalism !
A bookmarklet will be nice, what do you think about ?
For now I use this trick: http://codepen.io/Realto619/pen/RPGaVd
Juh
I'm trying to setup B on a remote server through ftp. The site should run in a subdomain.
http://testing.meplaza.nl/index.php?configtest gives an 'OK', but going trying to access the site results in 'Page not found.' How to fix this?
Line 85 in 2958419
returning mixed crashes for me in (at least) php 7.4.26
i guess that if you want to use types, you should rather use:
public function getConfig(string $key): ?string
this will work as long as -- i think to understand -- the configs are done by putenv
, which will always return a string (or false... but you're catching that branch in putenv()
)
.. so it is easier to find via github's search.
Line 3 in 2958419
technically it probably works.
but up to now, I've only seen the namespace
used where the functions and classes are defined, not where they are used.
not a big issue, but that did let me wonder what was going on...
this will probably be my last ticket for now.
b now works on my computer and i will upload it to my server and start using it.
thanks for sharing your code!
Line 17 in 2958419
getenv() alway returns a string or false.
since you're checking for false, there is no use for the cast.
Line 55 in 2958419
as it is currently defined, getConfig()
will return a string or a null value.
How about to add a pagination system ?
For example, in config.php
, we can choose how much link we want to display. Maybe this can be useful when there are many links to display. But I don't know if it's necessary or possible and simple to do.
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.