Apache + php + gd not working at all - PARTIAL SUCCESS
Ryan Schmidt
ryandesign at macports.org
Thu Oct 1 13:20:52 PDT 2009
On Oct 1, 2009, at 13:29, Scott Haneda wrote:
> Your using short tags. Depending on your php.ini settings those may
> not be on by default any longer.
>
> They should be off by default.
>
> If you need them, turn then on per vhost or per .htaccess with php
> admin value. I have not seen a short tag ( <? ... ?> versus <?
> php ... ?> ) in years.
>
> "For portable, redistributable code, be sure not to use short tags.”
The quoted sentence is indeed the PHP team's recommendation:
http://us2.php.net/manual/en/language.basic-syntax.phpmode.php
But that doesn't mean everybody follows it. Even Zend Framework (made
by the creators of PHP) used and recommended short open tags until a
few months ago. Well, I thought that was the case. The documentation
says they still use them, but it may be out of date:
http://framework.zend.com/manual/en/zend.view.html#zend.view.introduction.shortTags
> In order to get GD to work you probably have to enable it. That was
> probably mentioned in a message when you installed it. If you
> installed with -d (debug) you may have missed it. You can always
> issue "port edit php5-whatever" to look at the port instruction
> file. Look for the ui messages which are what print notes to stdout
> when you install.
The only instruction the module ports print is to remove the
"extension_dir" line from the php.ini if it is present. Other than
that, you don't need to do anything to enable the modules.
More information about the macports-users
mailing list