How to replace define in a require file with mysql?

This is a discussion on How to replace define in a require file with mysql? within the PHP General forums, part of the PHP Programming Forums category; I have a file linked with require into my program with statements like: define("_ADDRESS","Address"); ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-17-2007
Ronald Wiplinger
 
Posts: n/a
Default How to replace define in a require file with mysql?

I have a file linked with require into my program with statements like:

define("_ADDRESS","Address");
define("_CITY","City");

I would like to replace this with a mysql table with these two fields
(out of many other fields).

How can I do that?

bye

Ronald
Reply With Quote
  #2 (permalink)  
Old 10-17-2007
Richard Heyes
 
Posts: n/a
Default Re: [PHP] How to replace define in a require file with mysql?

> I have a file linked with require into my program with statements like:
>
> define("_ADDRESS","Address");
> define("_CITY","City");
>
> I would like to replace this with a mysql table with these two fields
> (out of many other fields).
>
> How can I do that?


I'm not aware of any method of "undefining" an already defined constant.
Except changing the line in your required file...

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0