/    Sign up×
Community /Pin to ProfileBookmark

A very fundamental question of PHP

Is it wrong if I’m looking at my code and wondering if I _really_ need PHP or if I could get away with SSI?

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@VITSUSAMar 26.2019 — You can review your code and PHP is the good platform for web development, but exactly what do you want?
Copy linkTweet thisAlerts:
@ginerjmMar 26.2019 — Having no idea what you meant I did a little research (a little!). What I found was:
  • - most of the posts were over 10 years old. Hmmm....

  • - They stressed that the contents were rather limited. Not sure what that meant.


  • So - since I have a good handle on php I would say that it's a good investment in your career or whatever to learn the language. It ain't that hard, despite the complaints of a few posters here. Sure - SSI seems to be using a form of HTML and if you know that already you get away for free. But what did you gain?

    BTW - what kind of code were you looking at as you stated in your question?
    Copy linkTweet thisAlerts:
    @NogDogMar 26.2019 — It's never wrong to question implementation decisions. However, that doesn't mean I can affirm either approach is "better" in your case without a deep understanding of your requirements -- including potential _future_ requirements.
    Copy linkTweet thisAlerts:
    @Mr_Initial_ManauthorApr 04.2019 — @ginerjm#1602208

    Code that turns XML files into webpages (I don't use SQL much, though I know how), but my pages don't really change all that much.
    Copy linkTweet thisAlerts:
    @tracknutApr 04.2019 — I have a web site completely driven from a large volume of XML data (which should probably be a database, but I prefer the simplicity of just being able to edit it directly), and PHP to structure the pages. It's really a nice setup, to my mind, and is completely flexible in how I want to sort, select and display information. Can't imagine just doing it all with XSLT. So imo, yes it's worth it if that's the kind of thing you do. I'm not even sure how SSI is supposed to be an alternative, isn't it just a way to do an include?
    Copy linkTweet thisAlerts:
    @Mr_Initial_ManauthorApr 04.2019 — @tracknut#1602504 That's the reason I use XML+PHP (though I did have an entire website based on XML+XSLT ages ago)

    I used Server Side Includes back in the day simply because all I needed was to include header information and navigation menus. And honestly--basically, that's all I really need to do even now.
    ×

    Success!

    Help @Mr_Initial_Man spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...