RSS   Twitter   Copiny   Copiny
Нашел ошибку? 

Выдели фрагмент текста с ошибкой или неточностью и нажми Ctrl+Enter!

Установка JBDump и способы его запуска

Режимы работы и способы запуска

Вне зависимости от способа необходимо подключать файл init.php (идет в комплекте), в котором должны быть прописаны верные настройки.

Способ 1: Подключение через php.ini (рекомендуется)

В файле настроек php.ini есть возможность указать файл который будет выполняться для любых PHP скриптов. Делается это следующим образом

# for windows
auto_prepend_file = Z:\home\adm\jbdump\init.php

# for unix-like
auto_prepend_file = /var/www/jdump/data/public_html/init.php

Примеры, где можно найти php.ini

  • windows (denwer): denwer\usr\local\php5\php.ini
  • unix-like system: /etc/php5/...

Сам скрипт можно положить как отдельный локальный сайт, настройка root должна быть прописана соответствующая. Например, у себя я сделал локальный домен http://jbdump.adm/.

Чем это хорошо?

  • Не нужно подключать для каждого локального сайта свой скрипт и изменять код проекта. Это важно когда все файлы версионные, а работа ведется в команде, где не используют jbdump.
  • На своей локальной машине вы всегда будете знать, что у вас есть отладчик.
  • Скрипт и его настройки находятся в одном месте, легко обновлять, изменять.

Почему это плохо?

  • На продуктиве так делать нельзя под страхом смерти! Например, если будет ошибка в jbdump, то пострадают все сайты на хостинге.
  • Немного замедляет работу всех сайтов
  • Всегда нужно помнить, что у вас подключается jbdump, даже если он не нужен, а php скрипт пустой

Не смотря на недостатки рекомендуется имено именно этот способ подключения для своих локальных сайтов.

Способ 2: подключение через .htaccess

В принципе это тоже самое что и первый способ, с единственным отличием что скрипт подключиться к определенному сайту(сайтам). Пример синтаксиса так же очень схож с php.ini

# example for windows (denwer)
php_value auto_prepend_file Z:\home\adm\jbdump\init.php

# example for linux
php_value auto_prepend_file /var/www/jdump/data/public_html/init.php

Способ 3: Просто включение файла

Положите в проект, например в папку /jbdump. И в удобном для вас месте включите его в исполняемый файл. Обычно это начало <site_root>/index.php

include './jbdump/init.php';

Смотрите также:
Комментарии (40) Добавить комментарий
  • http://tinyurl.com/quest-bars-cheap-8889
    http://tinyurl.com/quest-bars-cheap-8889
    23 Ноября 2019, 22:23
     ↑  0  ↓     ответ

    Hello, I enjoy reading through your article. I like to write a little

    comment to support you.

  • tinyurl.com
    tinyurl.com
    25 Ноября 2019, 04:59
     ↑  0  ↓     ответ

    Very good information. Lucky me I recently found your blog by chance (stumbleupon).

    I have book marked it for later!

  • on coconut oil
    on coconut oil
    26 Ноября 2019, 04:45
     ↑  0  ↓     ответ

    Hi there! I know this is kinda off topic but I was wondering if you knew where I

    could get a captcha plugin for my comment form?

    I'm using the same blog platform as yours and I'm having

    trouble finding one? Thanks a lot!

  • ps4 games
    ps4 games
    29 Ноября 2019, 11:02
     ↑  0  ↓     ответ

    I blog frequently and I truly thank you for your content.

    Your article has really peaked my interest.

    I am going to take a note of your blog and keep checking for new information about once per

    week. I subscribed to your Feed too.

  • quest bars cheap
    quest bars cheap
    30 Ноября 2019, 12:51
     ↑  0  ↓     ответ

    I'm not sure where you're getting your info,

    but great topic. I needs to spend some time learning more or understanding

    more. Thanks for great info I was looking for this info for my mission.

  • ps4 games
    ps4 games
    01 Декабря 2019, 07:10
     ↑  0  ↓     ответ

    Magnificent beat ! I would like to apprentice even as you amend your

    site, how can i subscribe for a weblog web site? The account helped me a acceptable deal.

    I had been tiny bit familiar of this your broadcast offered vibrant clear concept

  • quest bars cheap
    quest bars cheap
    01 Декабря 2019, 19:08
     ↑  0  ↓     ответ

    Attractive section of content. I just stumbled upon your web site and

    in accession capital to assert that I acquire

    actually enjoyed account your blog posts. Any way I'll be subscribing to your

    augment and even I achievement you access consistently fast.

  • quest bars cheap coupon twitter
    quest bars cheap coupon twitter
    04 Декабря 2019, 03:27
     ↑  0  ↓     ответ

    I am really loving the theme/design of your web site.

    Do you ever run into any browser compatibility problems?

    A handful of my blog readers have complained about my site not operating correctly in Explorer

    but looks great in Opera. Do you have any tips to help fix this issue?

  • quest bars cheap
    quest bars cheap
    04 Декабря 2019, 15:45
     ↑  0  ↓     ответ

    Wonderful goods from you, man. I've understand your stuff previous to

    and you are just extremely magnificent. I actually like what you've acquired

    here, really like what you are stating and the way in which you say it.

    You make it enjoyable and you still care for to keep it sensible.

    I can not wait to read much more from you.

    This is actually a terrific website.

  • ps4 games
    ps4 games
    06 Декабря 2019, 01:46
     ↑  0  ↓     ответ

    I always used to read paragraph in news papers but now

    as I am a user of web thus from now I am using net for articles or reviews,

    thanks to web.

  • ps4 games
    ps4 games
    06 Декабря 2019, 03:44
     ↑  0  ↓     ответ

    Yes! Finally something about ps4 games.

  • ps4 games
    ps4 games
    06 Декабря 2019, 16:40
     ↑  0  ↓     ответ

    My family every time say that I am wasting my time here at web, except I

    know I am getting familiarity daily by reading thes fastidious content.

  • ps4 games
    ps4 games
    07 Декабря 2019, 08:43
     ↑  0  ↓     ответ

    Thanks on your marvelous posting! I truly enjoyed

    reading it, you happen to be a great author. I will always bookmark your blog and

    will eventually come back later in life. I want to encourage

    you to continue your great posts, have a nice day!

  • quest bars cheap
    quest bars cheap
    08 Декабря 2019, 09:01
     ↑  0  ↓     ответ

    Thanks for another fantastic article. The place else could anyone get that kind of information in such an ideal means of writing?

    I have a presentation next week, and I am at the search for such info.

  • quest bars cheap
    quest bars cheap
    09 Декабря 2019, 14:27
     ↑  0  ↓     ответ

    Hey very cool web site!! Guy .. Beautiful ..

    Amazing .. I will bookmark your website and take the feeds additionally?

    I'm satisfied to search out a lot of helpful information right here in the

    publish, we'd like work out more techniques on this regard, thank you for sharing.

    . . . . .

  • ps4 games
    ps4 games
    11 Декабря 2019, 09:26
     ↑  0  ↓     ответ

    Hey there terrific blog! Does running a blog like

    this take a lot of work? I have no understanding

    of computer programming but I was hoping to

    start my own blog in the near future. Anyhow, if you have any ideas or tips for

    new blog owners please share. I know this is off subject nevertheless I

    just wanted to ask. Many thanks!

  • ps4 games
    ps4 games
    11 Декабря 2019, 13:22
     ↑  0  ↓     ответ

    It's perfect time to make some plans for the future and it is time to be

    happy. I have read this post and if I could I desire to suggest

    you some interesting things or advice. Perhaps you can write next articles referring to

    this article. I desire to read more things about it!

  • ps4 games
    ps4 games
    13 Декабря 2019, 08:00
     ↑  0  ↓     ответ

    Hi mates, fastidious article and pleasant urging commented at this place, I am in fact

    enjoying by these.

  • ps4 games
    ps4 games
    14 Декабря 2019, 10:12
     ↑  0  ↓     ответ

    I love what you guys are usually up too. This kind of clever

    work and coverage! Keep up the excellent works guys I've included you guys to

    blogroll.

  • coconut oil
    coconut oil
    15 Декабря 2019, 21:14
     ↑  0  ↓     ответ

    hello!,I really like your writing so so much!

    percentage we communicate extra about your post on AOL?

    I need an expert in this space to solve my problem. May be that is you!

    Looking forward to look you.

  • coconut oil
    coconut oil
    16 Декабря 2019, 11:42
     ↑  0  ↓     ответ

    Hey There. I found your blog using msn. This is an extremely well written article.

    I will be sure to bookmark it and return to read more of your useful information. Thanks for the post.

    I will certainly comeback.

  • coconut oil
    coconut oil
    17 Декабря 2019, 10:20
     ↑  0  ↓     ответ

    I am sure this paragraph has touched all the internet visitors,

    its really really nice post on building up new blog.

  • coconut oil
    coconut oil
    19 Декабря 2019, 15:44
     ↑  0  ↓     ответ

    Ahaa, its fastidious dialogue on the topic of this post at this place at this blog,

    I have read all that, so at this time me also commenting here.

  • match.com free trial
    match.com free trial
    29 Декабря 2019, 12:15
     ↑  0  ↓     ответ

    Howdy! I know this is kinda off topic however I'd figured I'd ask.

    Would you be interested in exchanging links or maybe guest

    writing a blog post or vice-versa? My website discusses a lot of the same subjects as yours

    and I believe we could greatly benefit from each other.

    If you happen to be interested feel free to shoot me an email.

    I look forward to hearing from you! Superb blog by the way!

  • plenty of fish vs match.com free trial
    plenty of fish vs match.com free trial
    30 Декабря 2019, 21:20
     ↑  0  ↓     ответ

    Howdy! This post could not be written any better! Going through this post reminds me of my previous roommate!

    He constantly kept preaching about this. I most certainly will send this information to him.

    Fairly certain he will have a good read. Thank you for sharing!

  • match.com free trial
    match.com free trial
    31 Декабря 2019, 05:49
     ↑  0  ↓     ответ

    If you wish for to take much from this paragraph then you have to apply these strategies to

    your won website.

  • asksylphoflight.tumblr.com
    asksylphoflight.tumblr.com
    31 Декабря 2019, 12:22
     ↑  0  ↓     ответ

    Undeniably believe that which you said. Your favorite reason seemed to be on the internet the easiest thing to be aware of.

    I say to you, I certainly get annoyed while people consider

    worries that they plainly do not know about.

    You managed to hit the nail upon the top and defined out the whole thing without having side-effects , people can take a signal.

    Will probably be back to get more. Thanks

  • sling tv
    sling tv
    31 Декабря 2019, 17:27
     ↑  0  ↓     ответ

    I think the admin of this site is in fact working

    hard in support of his web site, because here every material is quality based material.

  • https://russellwebster.tumblr.com/
    https://russellwebster.tumblr.com/
    01 Января 2020, 15:12
     ↑  0  ↓     ответ

    great points altogether, you just won a new reader. What

    could you suggest in regards to your publish that you made some

    days ago? Any positive?

  • sling tv
    sling tv
    02 Января 2020, 17:19
     ↑  0  ↓     ответ

    Hi, this weekend is fastidious designed for me, since this moment i am

    reading this impressive informative piece of writing here at my

    residence.

  • sling tv
    sling tv
    03 Января 2020, 07:42
     ↑  0  ↓     ответ

    This piece of writing will help the internet users for building up new webpage or even a weblog from start to end.

  • sling tv https://asksylphoflight.tumblr.com/
    sling tv https://asksylphoflight.tumblr.com/
    05 Января 2020, 04:45
     ↑  0  ↓     ответ

    Nice replies in return of this query with firm arguments and explaining

    all on the topic of that.

  • sling tv
    sling tv
    07 Января 2020, 07:22
     ↑  0  ↓     ответ

    hi!,I like your writing very a lot! proportion we keep in touch extra approximately your post on AOL?

    I require an expert on this area to solve my problem. May be that is you!

    Having a look forward to look you.

  • sling tv
    sling tv
    07 Января 2020, 21:48
     ↑  0  ↓     ответ

    It's going to be end of mine day, except before ending I am reading this

    enormous piece of writing to increase my experience.

  • sling tv
    sling tv
    08 Января 2020, 03:51
     ↑  0  ↓     ответ

    Very quickly this web site will be famous amid all blog people, due to it's good

    content

  • sling tv
    sling tv
    14 Января 2020, 14:24
     ↑  0  ↓     ответ

    Thanks for every other magnificent article. Where else may just anyone get that

    type of info in such an ideal method of writing?

    I have a presentation next week, and I am at the look for such info.

  • sling tv
    sling tv
    14 Января 2020, 21:41
     ↑  0  ↓     ответ

    Write more, thats all I have to say. Literally,

    it seems as though you relied on the video to make your point.

    You clearly know what youre talking about, why waste your intelligence on just posting videos to your weblog when you could be giving us something enlightening to read?

  • sling tv
    sling tv
    15 Января 2020, 17:59
     ↑  0  ↓     ответ

    Good day! Do you know if they make any plugins

    to assist with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good success.

    If you know of any please share. Many thanks!

  • sling tv
    sling tv
    17 Января 2020, 10:05
     ↑  0  ↓     ответ

    I'm excited to uncover this web site. I want to to thank you for ones time

    for this particularly fantastic read!! I definitely appreciated every part

    of it and i also have you book marked to check out new information on your web site.

  • sling tv
    sling tv
    18 Января 2020, 23:09
     ↑  0  ↓     ответ

    With havin so much content do you ever run into any issues of plagorism or copyright infringement?

    My website has a lot of unique content I've either created myself

    or outsourced but it looks like a lot of it is popping it up all over the web without my

    permission. Do you know any techniques to help prevent content from being ripped off?

    I'd really appreciate it.

Оставить комментарий




* обязательно для заполнения

1 введенный почтовый адрес используется только для обратной связи при ответах в комментариях и сервиса gravatar.com
.