If you happen to see two different versions of PHP whenever you run:
php -v in the console and visit
phpinfo() in the browser
Then this usually means the version of PHP that your web server is using is different than the version of PHP your command-line is using.
Specifically, this means you likely have more than one installation, and the web server is using one version, and the terminal is using a different version (in addition to using a CLI version of the interpreter).
Of course, if you’re seeing the browser and the terminal show different versions of PHP then something is wrong. You want them to be the same, but depending on how your system is configured, then you may need to update your environmental variables.
I was recently having issues with this with various installations of PHP installed via Homebrew and with my local installation of Valet.
This is what I did to fix it.
Continue reading “When The Browser and Terminal Show Different Versions of PHP If you’re seeing the browser and the terminal show different versions of PHP then something is wrong. “
I don’t know how many people are considered “regular readers” of this site (let alone any site, to be honest) because social media has changed how we find content, save it, and read it.
But if you’re someone who browses this site on any regular basis, then you’ve likely noticed that I’ve not posted anything related to development for a couple of weeks now.
Nothing’s wrong; life is good. But I’ve been taking a step back on several things in which I’m involved to take stock of essentially:
- what I’m doing,
- why I’m doing it,
- what I want to continue to do,
- and why I want to do it.
And if you were around when blogging was what it was, say, five years ago, then you know it’s considered “bad form” talk about not blogging and to get all apologetic about it.
I’m not getting apologetic about it, though.
Instead, I’m providing an update as to what I plan to do with this site moving forward.
And no, it’s not the type of post that contains anything related to WordPress development or programming.
Continue reading “A Return to Form (Over a Decade in the Making) This is the long version of what you can expect (or, rather, why I’ve not been writing) and how I’d like to return to form.“
Last month, I published two articles that talked about using cURL to handle redirects that may inevitably happen when working with certain URLs.
Specifically, I’m talking about:
- Finding the Destination of a Redirect with PHP
- Using cURL to Determine If the Specified URL Is a Valid Page
And though the second one is more of the subject of this post, I wanted to reference both since they are related.
Earlier this month, I wrote a bit how the purpose of blogging has changed. Perhaps it would’ve been better to talk about the motivation rather than the purpose, but I digress.
In this post, I talk a bit about commenting and feedback. And since I’ve closed comments, one of the ways that people will talk with me about certain posts is via Twitter.
Case in point:
And I like this because it’s:
- a clearly stated, succinct question,
- it’s directed towards me (with the potential for others to chime in),
- and it can keep the conversation on the topic without it devolving into something else in the comments.
Further, Xaver’s question is good because it shows where my content may be lacking, and it gives me the opportunity to write a follow-up or a clarification on a post like this 🙂.
The thing is, the response to this particular question may not be as long as the lead in, but I always want to give enough context before providing an answer.
Continue reading “On Alternative Methods of Blog Feedback Blog feedback outside the comments can lead to better discussion and clearer follow-up posts.“
In the last eight years or so, maybe less, the way we blog has changed. Maybe not so much in terms of how we do it but in terms of:
- what it is that we have to say,
- how we say what we want to say,
- how other people read what it is that we have to say (which is really more on them but you get it, right?)
I remember when it was much more about the comment engagement and also sharing what we thought, learned, or viewed on a particular subject.
As much as possible, I still try to stick to that. That is, I try to share:
- what I’m doing,
- what I’ve learned,
- and my perspective on a given subject.
Now, though, I’m not as much concerned about the comments (hence why I turned them off some time ago). This doesn’t mean I don’t care about feedback – I do – but I find when people have to jump through a few extra steps to provide feedback, the quality of it goes way up.
Anyway, it seems to me that blogging has drastically changed in one major way over the last few years:
We write for a reaction rather than edification.
Reaction, in and of itself, isn’t bad. Of course, it’s not. But the type of reaction we seek may be. But I’m not here to get too much into that. Instead, I’m wondering if the purpose of blogging hasn’t changed.
Continue reading “The Evolving Purpose of Blogging It seems more common that we write for reaction than edification. I’m wondering if the purpose of blogging hasn’t changed.“
The content of this post is essentially the text version of the talk that I recently gave at WordCamp Atlanta 2019. Sure, some parts are left out, and some parts are modified but I do that since this is a different medium and certain statements or examples don’t translate as well. 🙃
The purpose of the talk, as you can tell from the title, is presenting a case for building web applications with WordPress.
I believe it can be done – because I’ve seen it done and worked with teams who do it – but before actually looking into the reasons why I think it’s a good foundation for certain applications, I also want to clarify terminology that we toss around a bit.
Ultimately, I want to define my terms so there isn’t any confusion, and then I want to use said terms to move forward.
But enough of the setup, right? Here’s the content of the talk.
Continue reading “A Case for Building Web Applications on WordPress A high-level overview of how it’s possible to go about building web applications on WordPress.“