Fork me on GitHub

Short URLs in some shared hosting environments  Bottom

  • The requirement that cgi.fix_pathinfo = 0 must be present in the php.ini file for those running PHP as cgi is going to be a major headache for a large number of users on shared hosting. I, for one, have several sites on a shared hosting account with PHP running as cgi. I don't have access to my php.ini file.

    I propose this overly simple solution. I can't think of a potential problem with it, but then I haven't slept much this week...

    Code

    $PNConfig['System']['PN_OVERRIDE_PATHINFO_FIX'] = 0; // 0 - Default 1 - Override php.ini setting to fix short urls


    And then at the beginning of index.php (or possibly somewhere more appropriate), put something like this...

    Code

    if ($PNConfig['System']['PN_OVERRIDE_PATHINFO_FIX'] != 0)    {
        $_SERVER['PATH_TRANSLATED'] = $_SERVER['SCRIPT_FILENAME'];
    }


    I tested it for fun and it all seems to work swimmingly.

    Any thoughts?

    --
    Help Now! Fast and affordable help for do-it-yourself webmasters from Wicked Viral :: Chicago's Only Web Development Firm Specializing in Social Networking Integration
  • bug tracker

    --
    David Pahl
    Zikula Support Team
  • I don't think it's a bug, strictly speaking. It works the way it was designed to work. I just think that considering the number of people who use shared hosting with very limited control over their own server settings, it might be a nice option to add going forward.

    --
    Help Now! Fast and affordable help for do-it-yourself webmasters from Wicked Viral :: Chicago's Only Web Development Firm Specializing in Social Networking Integration
  • Feature Tracker

    --
    Under Construction!
  • The perfect thread.

    --
    The Peripheral Vision
    Creative Culture : Business : Technology
    www.theperipheralvision.com
  • Given that the most recent activity in the feature request tracker is from August of last year, I'm not sure that's the best place for this either. So, continue to be dismissive if you like. I'm perfectly happy to just add that line of code to all my installations going forward. If anyone else needs it, it's here.

    I was under the impression that this forum was for feedback. I tested. This is my feedback. PN 0.8 RC2 is pretty good, but it's missing this. If that's not what this forum is for, then I'm sorry. I'll leave you alone and just keep my findings to myself from now on.

    --
    Help Now! Fast and affordable help for do-it-yourself webmasters from Wicked Viral :: Chicago's Only Web Development Firm Specializing in Social Networking Integration
  • Well,
    it's sad that you think in that way because you found appreciated stuff for people, and the NOC is the place to discuss that stuff. If the FR Tracker is very quite, is because on August/07 began the spam attacks to the NOC.

    I've discussed a lot a patch that i coded to support Multi-categorization in the value-addons modules with ease (it requires a new field in a table of the Categories module: "big" change to do in this times, when everybody wants a .8 version released). Was hard because at the beggining a lot of core-devs says NO, but with the time, my perseverance and the REAL need of third party developers to Multi-categorize their content, i was able to drawing the core-devs attention and now i'm building a final patch to include it in RC3.

    Lately, everybody is busy with RC3, and ideally, you should understand some circumstances and be patient too. Log your ideas in the NOC, there's the place where core-devs review the contributed stuff.

    it's good when your stuff is in the official package icon_wink
    log it, you'll receive feedback sooner or later.

    --
    - Mateo T. -
    Mis principios... son mis fines
  • All feature requests are looked at however if you actually have some code to implement the feature/bug fix then the patch tracker is probably the most approapriate place to put it.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • dreamingmonkey

    Given that the most recent activity in the feature request tracker is from August of last year, I'm not sure that's the best place for this either. So, continue to be dismissive if you like. I'm perfectly happy to just add that line of code to all my installations going forward. If anyone else needs it, it's here.


    Thanks. icon_smile Sometimes, I burn through posts. I did not have any technical response for you and you seem to know what you are talking about, so I suggested you add it one of the trackers.

    dreamingmonkey

    I was under the impression that this forum was for feedback. I tested. This is my feedback. PN 0.8 RC2 is pretty good, but it's missing this. If that's not what this forum is for, then I'm sorry. I'll leave you alone and just keep my findings to myself from now on.


    It is appreciated, I assure you. The trackers do work, at least the patch tracker and bug tracker. The team is busy ramping up for RC3.. debating some of the finer points of the Categories Module. If you put something in the tracker you can usually get response anywhere from a few minutes (especially on bug squish weekends)to a week or two, for minor stuff. And it is always good to get some of your own code into the core!

    So, add it to the tracker. It is honest feedback for code suggestion. icon_smile


    --
    David Pahl
    Zikula Support Team
  • Indeed, I don't think anyone meant to be dismissive.

    --
    Under Construction!

This list is based on users active over the last 60 minutes.