RE: include "config.php" does not work anymore after PHP 5.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: wmac [mailto:sarmadys@xxxxxxxxx]
> Sent: Sunday, December 02, 2007 6:35 AM
> To: php-general@xxxxxxxxxxxxx
> Subject: Re:  include "config.php" does not work anymore after PHP
> 5.2
> 
> 
> Thank you People. Someone mentioned the problem.
> 
> It is the starting PHP tag.
> 
> I never never thought my config.php might have problem. I have used
> this config.php for almost 6 years and never had problem (the first
> time I have forgotten to add it 6 years ago because I had migrated
> from ASP. I have copied this wrong config.php to some other projects.
> 
> Throughout the years I have upgraded PHP and Apache (on windows and
> Linux) and I have never had this problem.
> 
> It's strange that how PHP has never had problem with it and finally
> now it has found the problem! I am now doing J2EE for 3 years and this
> bug caught me finally. (I think I need to update a few delivered
> projects before they come up with the problem)
> 
> Thank you again.
> 
> Mac
> --
> View this message in context: http://www.nabble.com/include-
> %22config.php%22-does-not-work-anymore-after-PHP-5.2-
> tf4930800.html#a14113764
> Sent from the PHP - General mailing list archive at Nabble.com.
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Hi Mac,

You don't need to sacrifice your coding practices if your apache
installation allows .htaccess files.
Try the following in an .htaccess file:

php_flag short_open_tag on

That will allow you to have <? as the starting tag for PHP code and will
allow for <?=$myvar?> instead of <?php echo $myvar ?>

Regards,

Rob


Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308
| TEL 954-607-4207 | FAX 954-337-2695
Email: info@xxxxxxxxxxxxx  | MSN Chat: best@xxxxxxxxxxxxx  |  SKYPE:
bestplace |  Web: http://www.bestplace.biz | Web: http://www.seo-diy.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux