Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$this->db_sqlite_path = str_replace('\\','/', pathinfo( __FILE__ )['dirname']) . "/users.db"; #28

Open
sl5net opened this issue Oct 8, 2015 · 2 comments

Comments

@sl5net
Copy link

sl5net commented Oct 8, 2015

https://github.com/panique/php-login-one-file/blob/master/index.php#L24
i reommand to use:

public function __construct($doSilently=false)
{
    $this->db_sqlite_path = str_replace('\\','/', pathinfo( __FILE__  )['dirname']) . "/users.db";

so you could include the demo index.php file.

@panique
Copy link
Owner

panique commented Oct 8, 2015

Hey, sorry what exactly do you mean ? Can you please say what would be the advantage over the current solution, and is this 100% save for all OS ?

Thanks!

@sl5net
Copy link
Author

sl5net commented Oct 8, 2015

i need to do this if i use it out of a different folder.

include_once('resources/php-login-one-file-master/index.php');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants