Archive | March, 2004

Activating GD Dynamic Image Support for PHP and Apache on Windows

Posted on 08 March 2004 by Demian Turner

———————————————————————-
ACTIVATING GD DYNAMIC IMAGE SUPPORT FOR PHP AND APACHE ON WINDOWS PC

VERSIONS INFO:
OPERATING SYSTEM WINDOWS NT, 2000PRO (32)
PHP VERSION 4.3.3
APACHE VERSION 2.0.44

The \"gd\" installation process described here can probably also
apply, or be similar, to other Windows related setup versions.

——- 1)
Assuming the PHP was installed in its default directory C:\\PHP
the directory should contain a sub-directory C:\\PHP\\extensions
with all the .dll files (\"php_gd2.dll\" should be there).

——- 2)
During the PHP installation process, file \"php.ini-dist\" should be
copied to C:\\WINNT\\ directory and then renamed as \"php.ini\"

——- 3)
Edit the file C:\\WINNT\\php.ini and find following lines:

; Directory in which the loadable extensions (modules) reside.
extension_dir = \"./\"

——- 4)
Replace and uncomment the line: extension_dir = \"./\" as shown below:
(make sure to use / and NOT \\ here)

; Directory in which the loadable extensions (modules) reside.
extension_dir = \"C:/PHP/extensions\"

——- 5)
Within the file C:\\WINNT\\php.ini also find following lines:

;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
.
.
.
.
Uncomment this line to activate dynamic image support:
extension=php_gd2.dll
.
.
.

——- 6)
Save file C:\\WINNT\\php.ini
Start APACHE

FROM NOW ON….. HAVE FUN!!! WITH PHP AND DYNAMIC IMAGES
———————————————————————-

Comments (1)

Wiki Or Word?

Posted on 05 March 2004 by Demian Turner

Finally, someone else who has something to say about MS Word, Tim Bray comments on his Fourteen Years of Pain.

I’m busily editing a fairly complex tech spec written in Microsoft Word. (Word generally sucks for tech specs except for this one is being team-edited with little infrastructure, so we needed the revision-marking feature.)

When I first ever used Word it was in 1989 on a Macintosh; this first brush with competent WYSIWYG changed my thinking about interfaces and documents. There was a problem: back then the handling of numbered lists in Word was buggy and fragile. Today, fourteen years later in a recent rev of Office, numbered lists are still buggy and fragile. Innocuous changes—simple cut/paste, joining paragraphs, applying the formatting palette—intermittently send Word into psychotic spasms, in one case renumbering the list starting at 65, in another mysteriously removing the colour-coding from all the text in the doc, in another re-indenting dozens of apparently randomly-selected paragraphs.

I suppose if it hasn’t gotten fixed in a decade and a half my grandchildren will probably be stuck with it. But I have hopes that the world will learn the valuable lessons Word taught us all about the interfaces between humans and texts, and for God’s sake move on to something better.

Word just has so many features that should be simple but are impossible to get to work right consistently. 

At work we’re consistently choosing the wiki format over Word as it’s much more manageable – my favourite flavour is Wacko, a fork of Wakka suggested on the Seagull list which doesn’t force you to use the unreadable WikiWords.

Comments (0)

Look Ma – No Images: Creating Graphic Content with Code

Posted on 01 March 2004 by Demian Turner

Ever needed to distribute some source that produced an  html page with images, but wanted to avoid referencing image files?  Aside from siphoning off other peoples images, you can embed binary image content in your PHP scripts and render it with base64_decode().

Upload and encode your images with this demo.

Comments (0)

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook