<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:osnews="http://www.osnews.com/rss2#">
	<channel>
		<title>OSNews: </title>
		<link>http://www.osnews.com/story/19984/Getting_Graphic_With_PHP</link>
		<description>Exploring the Future of Computing</description>
		<language>en-us</language>
		<copyright>Copyright 2001-2012, David Adams</copyright>
		<webMaster>adam+nospam@osnews.com</webMaster>
		<lastBuildDate>Wed, 15 Feb 2012 10:32:54 GMT</lastBuildDate>
		<image>
			<url>http://www.osnews.com/images/osnews.gif</url>
			<title>OSNews.com</title>
			<link>http://www.osnews.com</link>
		</image>
		<item>
			<title>Leopard &amp;amp; GD</title>
			<link>http://www.osnews.com/thread?321780</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?321780</guid>
			<description>For some reason, Apple did not include GD in the default Leopard build. Here's how to compile just the GD extension and add it to PHP without recompiling the whole of PHP and breaking the unique folder layout &amp;c. of the Apple install<br />
      <br />
     <div class="cquote">cd &quot;`dirname &quot;$0&quot;`&quot;<br />
      <br />
     mkdir -p libjpg<br />
     cd libjpg<br />
     curl -O <a href="http://www.ijg.org/files/jpegsrc.v6b.tar.gz" rel="nofollow">http://www.ijg.org/files/jpegsrc.v6b.tar.gz</a>   <br />
      tar xzpf jpegsrc.v6b.tar.gz<br />
      cd jpeg-6b<br />
      cp /usr/share/libtool/config.sub .<br />
      cp /usr/share/libtool/config.guess .<br />
      <br />
      #32-bit<br />
      #./configure --enable-shared<br />
      #64-bit<br />
      MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS=&quot;-arch x86_64 -g -Os -pipe -no-cpp-precomp&quot; CCFLAGS=&quot;-arch x86_64 -g -Os -pipe&quot; CXXFLAGS=&quot;-arch x86_64 -g -Os -pipe&quot; LDFLAGS=&quot;-arch x86_64 -bind_at_load&quot; ./configure --enable-shared<br />
      <br />
      make<br />
      mkdir -p /usr/local/include<br />
      mkdir -p /usr/local/bin<br />
      mkdir -p /usr/local/lib<br />
      mkdir -p /usr/local/man/man1<br />
      sudo make install<br />
      <br />
      cd ..<br />
      cd ..<br />
      mkdir -p gd<br />
      cd gd<br />
      curl -O http<i>:</i>//www.opensource.apple.com/darwinsource/10.5/apache_mod_php-43/php-5.2 .4.tar.bz2       <br />
      tar xjf php-5.2.4.tar.bz2<br />
      cd php-5.2.4/ext/gd<br />
      sudo phpize<br />
      <br />
      #32-bit<br />
      #./configure --with-zlib-dir=/usr --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6<br />
      #64-bit<br />
      MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS=&quot;-arch x86_64 -g -Os -pipe -no-cpp-precomp&quot; CCFLAGS=&quot;-arch x86_64 -g -Os -pipe&quot; CXXFLAGS=&quot;-arch x86_64 -g -Os -pipe&quot; LDFLAGS=&quot;-arch x86_64 -bind_at_load&quot; ./configure --with-zlib-dir=/usr --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6<br />
      <br />
      make<br />
      sudo make install<br />
      <br />
     #add &quot;extension=gd.so&quot; to php.ini<br />
     #and uncomment (&quot;;&quot; before) 'extension_dir = &quot;./&quot;' </div><br />
      <br />
      uncomment the 32-bit lines, and comment in the 64-bit lines if you're compiling on a Core !2 Duo / G4Edited 2008-07-07 19:47 UTC</description>
			<pubDate>Mon, 07 Jul 2008 19:43:00 GMT</pubDate>
			<author>donotreply@osnews.com (Kroc)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Leopard &amp;amp; GD</title>
			<link>http://www.osnews.com/thread?321792</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?321792</guid>
			<description><a href="http://trac.macports.org/browser/trunk/dports/graphics/gd2/Portfile" rel="nofollow">http://trac.macports.org/browser/trunk/dports/graphics/gd2/Portfile</a> <br />
<br />
<a href="http://pdb.finkproject.org/pdb/browse.php?summary=GD" rel="nofollow">http://pdb.finkproject.org/pdb/browse.php?summary=GD</a></description>
			<pubDate>Mon, 07 Jul 2008 21:08:00 GMT</pubDate>
			<author>donotreply@osnews.com (tyrione)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>where's the actual tutorial</title>
			<link>http://www.osnews.com/thread?321804</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?321804</guid>
			<description>so how do i actually view IBM's tutorial, do i have to sign up for it?   am i retarded or something.</description>
			<pubDate>Mon, 07 Jul 2008 21:57:00 GMT</pubDate>
			<author>donotreply@osnews.com (mckill)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Leopard &amp;amp; GD</title>
			<link>http://www.osnews.com/thread?321816</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?321816</guid>
			<description>Yeesh! Must... resist... urge to... make... snarky comment... about... &quot;The Mac Experience.&quot; <img src="/images/emo/smile.gif" alt=";)" /></description>
			<pubDate>Mon, 07 Jul 2008 23:57:00 GMT</pubDate>
			<author>donotreply@osnews.com (StephenBeDoper)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Two ready-made scripts</title>
			<link>http://www.osnews.com/thread?321819</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?321819</guid>
			<description>I've been using this for about a year or so now - it's incredibly useful when you need to do something like display dynamically-generated text using an exotic typeface.<br />
<br />
A very useful script that I've come across, just in case anyone is looking for something similar:<br />
<br />
- Multifunction Image Handler PHP Script<br />
<a href="http://www.carmosaic.com/weather/scripts-image-handler.php" rel="nofollow">http://www.carmosaic.com/weather/scripts-image-handler.php</a> <br />
<br />
I haven't used more than a fraction of its functionality, but so far it's been quite handy for doing server-side creation of banner images from templates, and non-destructively watermarking photos.</description>
			<pubDate>Tue, 08 Jul 2008 00:10:00 GMT</pubDate>
			<author>donotreply@osnews.com (StephenBeDoper)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: where's the actual tutorial</title>
			<link>http://www.osnews.com/thread?321822</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?321822</guid>
			<description>Yeah. Do that by clicking the &quot;Register now or sign in using your IBM ID and password.&quot; link.<br />
<br />
- This message has been presented by RTARD foundation. (I only kid.)</description>
			<pubDate>Tue, 08 Jul 2008 01:01:00 GMT</pubDate>
			<author>donotreply@osnews.com (mongoslam)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Leopard &amp;amp; GD</title>
			<link>http://www.osnews.com/thread?321832</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?321832</guid>
			<description>The appropriate reference is:<br />
<br />
&quot;So easy to use, no WONDER it's number 1!&quot;<br />
<br />
Hey, it <i>worked</i> for AOL.</description>
			<pubDate>Tue, 08 Jul 2008 02:21:00 GMT</pubDate>
			<author>donotreply@osnews.com (BallmerKnowsBest)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Registration required</title>
			<link>http://www.osnews.com/thread?321864</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?321864</guid>
			<description>I would like to suggest to not post items or articles that reference material for which one needs to register in any way.<br />
<br />
I find it extremely annyoing having to register for any and every tiny bit of information.</description>
			<pubDate>Tue, 08 Jul 2008 07:26:00 GMT</pubDate>
			<author>donotreply@osnews.com (fresch)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Leopard &amp;amp; GD</title>
			<link>http://www.osnews.com/thread?321896</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?321896</guid>
			<description>'cause your grandma is clearly going to need to install GD, right? ;-)</description>
			<pubDate>Tue, 08 Jul 2008 12:56:00 GMT</pubDate>
			<author>donotreply@osnews.com (chrish)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: Leopard &amp;amp; GD</title>
			<link>http://www.osnews.com/thread?321904</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?321904</guid>
			<description>Ah, I wasn't aware that &quot;good user experience&quot; has grandparent-only eligibility requirements.</description>
			<pubDate>Tue, 08 Jul 2008 13:47:00 GMT</pubDate>
			<author>donotreply@osnews.com (StephenBeDoper)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Leopard &amp;amp; GD</title>
			<link>http://www.osnews.com/thread?322089</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?322089</guid>
			<description>This is PHP/Apache. Both open source projects not run by Apple. These are also both not front-facing user options advertised on the box.<br />
<br />
Having to run a ridiculously complex script to fix an issue is a staple of most open source projects. Blaming Apple is aiming in the wrong place.</description>
			<pubDate>Wed, 09 Jul 2008 08:14:00 GMT</pubDate>
			<author>donotreply@osnews.com (Kroc)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: Leopard &amp;amp; GD</title>
			<link>http://www.osnews.com/thread?322567</link>
			<guid isPermaLink="true">http://www.osnews.com/thread?322567</guid>
			<description><div class="cquote">This is PHP/Apache. Both open source projects not run by Apple.<br />
...<br />
Blaming Apple is aiming in the wrong place. </div><br />
<br />
Apple is responsible for the configuration of the versions of PHP/Apache that Apple chose to include in Apple's OS (note the pattern).<br />
<br />
<div class="cquote">Having to run a ridiculously complex script to fix an issue is a staple of most open source projects. </div><br />
<br />
Relevance? Correlation is not cause.<br />
<br />
<div class="cquote">These are also both not front-facing user options advertised on the box. </div><br />
<br />
...which says to me that Apple's commitment to &quot;user experience&quot; is largely perfunctory, since it evidently doesn't extend to the more advanced / less &quot;sexy&quot; parts of the OS.</description>
			<pubDate>Fri, 11 Jul 2008 21:29:00 GMT</pubDate>
			<author>donotreply@osnews.com (StephenBeDoper)</author>
			<category>Comments</category>
		</item>
	</channel>
</rss>

