Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

application.cfm equivalent in php 1

Status
Not open for further replies.

psteja2000

Programmer
Feb 1, 2005
82
US
Hi,

out of hte blue, I am given an assignment of converting a coldfusion site to php. I am trying to do it with least effort from myside as possible. There are a bunch of constants we have in application.cfm, how do I convert them to php?

Should I declare them all in a php page and "require" it in every php page?

regards,
Teja
 
i don't think php has an application.cfm equivalent. so yes my solution would be to create a file similar so your application.cfm and include it in each file manually. ASP does this with a global.asa file. if i were you i'd post a question in the PHP forum asking if php has a global.asa or application.cfm equivalent for a better answer.

Beware of programmers who carry screwdrivers.
 
You can also use the auto_prepend_file directive to prevent the need to manually include the file.

You would either need to put that directive in an htaccess file or contact your host to see if they can set it up for you, depending on the server setup.

Hope this helps

Wullie

Fresh Look - Quality Coldfusion/Windows Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top