elgg2.0 does not allow me to call start.php
now how can i connect dartabase
i show on your document but i could not understand so please clear it
// Don't do this
! dirname(__DIR__) . "/engine/start.php";
To boot Elgg manually, you can use the class Elgg\Application.
// boot Elgg in mod/myplugin/foo.php
require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php';
\Elgg\Application::start();
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Can't you just call set_time_limit(0) in the hook handler I used in the example?
See http://php.net/manual/en/function.set-time-limit.php
will it not block the main apache server.? this also mean I need to set
moreover I need to return to user ASAP. like in newsletter case it might involve sending email to 1000 people. and the author has no interest in waiting for that t ofinish.
For things like this I use vroom: https://github.com/jumbojett/vroom
(Now compatible with FastCGI)
Register your code to run in a shutdown function, and it starts to run as soon as the user is redirected to the next page.
That line looks very scary. Please don't do that. You are begging for security problems.
If you're running the script using cron, it won't block the user's process. As separate process will be started for it.
[Moderator: this comment was off-topic. It was moved to its own topic.]
- Previous
- 1
- 2
- Next
You must log in to post replies.