Larry Ullman

Translating Geek Into English

Working with the php.ini File

Being able to work with the php.ini file goes along way towards mastering PHP. If you are developing scripts on your own PHP-enabled computer or if you have administrative level control over your server, you can globally change how your PHP installation runs.

Common settings you might want to adjust include:

  • register_globals
  • display_errors
  • error_reporting
  • magic_quotes_gpc

Keep in mind that PHP is installed with the settings that the developers think are best. Changing any particular setting may make it easier to learn the language but at the cost of security or performance. That being said, I present to you…

Steps for editing your php.ini file:

  1. Create a script called phpinfo.php containing the following code:

    <?php
    phpinfo();
    ?>
    
  2. Place this script on your server.

  3. Run this script in your Web browser by going to http://your.url.here/phpinfo.php in your Web browser (on your own computer, this may be something like http://localhost/phpinfo.php or http://localhost/~username/phpinfo.php).

  4. In the resulting page, look for the line which says “Configuration File (php.ini) Path”. It should be about 6 rows down in the table.

What is Larry Thinking? #16 =&gt; Business, Contracts, and More

In this edition…

About this Newsletter

So the goal for my last newsletter was to send it out within a month of its predecessor. Ah…those were the days! So it’s been more than two months since my last newsletter, yikes! I’ve spent that time finishing up the Ruby book, which is now thankfully done (more on that in this newsletter). I wish I got it finished faster, but that’s how things go sometimes. But I’m very happy to say that I’ve got some exciting things planned for the next 4+ months. I’m going to take some downtime to polish my own skills, learn new things, remind myself of what I already know, etc. As a way of both taking notes on my little adventure, and to provide more free content to the world at large, I’m going to document as much as I can: impressions, specific code, tips and techniques, whatever. Much of this will be published online in a blog and some will go into future newsletters. More details will follow as I get things worked out. For this newsletter, I wanted to answer some lingering questions and highlight a couple of other things and then I was hoping to turn out another one quickly, but time slipped by again so I’m just going to make this a larger newsletter and move on. I am giving away some books in this newsletter, so make sure you read that part if you’re interested. As always, thanks for reading and let me know if you have any questions or comments. (Also, there seems to be a bug in FCKEditor–which I use to compose these newsletters–for Firefox 3, so I’m not turning any URLs into active A HREF links. I apologize for any inconvenience.)

What is Larry Thinking? #15 =&gt; The Business of Business

In this edition…

About this Newsletter

The goal this time around was to get another newsletter out in less than a month, a goal that I just barely made. Here’s to small victories! This one will actually be short (I know I always say that), covering just a couple of things. Hopefully it’ll still be a good enough and worthwhile read. The next newsletter will probably be a straight Q&A, so send in any questions you’d like me to address. As always, thanks for listening. Or reading, as the case may be.

In the Forum => Online Poll

I’ve created an online poll for a question that I have on which I’d love to get some feedback. The direct URL is http://www.larryullman.com/forum/read.php?20,38041,38041#msg-38041 You do not have to be registered to vote but I suspect you’ll need to be registered (and logged in) if you want to add any comments. The basic question involves how I, in my books, recommend places online where you can learn more about a subject.

What is Larry Thinking? #14 =&gt; Ruby

In this edition…

About this Newsletter

So I really, really don’t know where the time goes! All of a sudden it’s been a month since my last newsletter. I did send out a Mac newsletter in May. You can still read it online. In this newsletter I’ve just got a random assortment of things to say, much of it on Ruby, and I’ll provide the last opportunity to get some free copies of translations of my books. As always, if you have any feedback or questions regarding these topics, please pass that along. And most people do eventually see their questions answered here, so if you have any, pass them along! In the next newsletter (hopefully), I’ll write up some stuff about the business of creating and running your own business. And, of course, thanks for your interest in what I have to say…

What is Larry Thinking? #13 =&gt; Mac Edition

In this edition…

About this Newsletter

This newsletter is the second one all about Macs (the first went out in November 2007). There’s nothing too big here, mostly I just wanted to mention a few Web sites, some new applications, and my thoughts on Leopard (Mac OS X 10.5). If you have any feedback or questions regarding these topics, please pass that along.

On the Web => Other World Computing

I don’t normally actively promote any commercial venture, but I thought I’d give a shout out to Other World Computing ( http://www.macsales.com/). Based outside of Chicago, Illinois (US), this company has been around for about twenty years, although I think I’ve only started using them in the past couple. I realized lately that every time I go to buy hardware for my Mac, including accessories, I end up using their site. I’ve purchased RAM, external hard drives, replacement CD drives, etc., and always been pleased with both the price and the service. I just upgraded my MacBook Pro from 2GB of RAM to 4GB. The price, after a $20 (US) rebate on my old memory, was around $80. $80 for 4GB of RAM! How crazy is that?

What is Larry Thinking? #12 =&gt; More Adobe AIR

In this edition…

About this Newsletter

So it’s already been another month since my last newsletter (longer, actually). How time flies when you’re not paying attention! In this newsletter I’m going to answer a couple of good questions that I’ve received lately and highlight a couple other things. It’ll be a mixed-bag of topics, with hopefully short but useful discussions. Later this month, I’m also planning on putting together another Mac-specific newsletter (i.e., it’ll only go to those that subscribed and marked Mac OS X as an interest). As always, thanks to the feedback and questions people have previously submitted and please keep it coming! And, of course, thanks for your interest in what I have to say.