asherwolf Posted June 16, 2007 Share Posted June 16, 2007 ??? I know this might be an odd question, but does PHP version 3 support the define() function? What little PHP 3 documentation I have doesn't seem to contain the function, but I would think PHP 3 would support constants. I realize that upgrading and using PHP 4 and PHP 5 would give me the define() function, but that's not what I'm looking for, just the answer to this specific question. When the manual says, "PHP 4, PHP 5" and excludes "PHP 3" it's not always accurate, as there are many functions supported by PHP 3 not listed in the current manual. If anyone could help me that would be great, Asher Quote Link to comment https://forums.phpfreaks.com/topic/55862-php3-and-define/ Share on other sites More sharing options...
pocobueno1388 Posted June 16, 2007 Share Posted June 16, 2007 Why don't you just give it a try and see if it works? Quote Link to comment https://forums.phpfreaks.com/topic/55862-php3-and-define/#findComment-275969 Share on other sites More sharing options...
The Little Guy Posted June 16, 2007 Share Posted June 16, 2007 No, only version 4+ Quote Link to comment https://forums.phpfreaks.com/topic/55862-php3-and-define/#findComment-275970 Share on other sites More sharing options...
pocobueno1388 Posted June 16, 2007 Share Posted June 16, 2007 Well....look at the PHPfreaks page for the define function. http://www.phpfreaks.com/phpmanual/page/function.define.html (PHP 3, PHP 4, PHP 5) Quote Link to comment https://forums.phpfreaks.com/topic/55862-php3-and-define/#findComment-275973 Share on other sites More sharing options...
The Little Guy Posted June 16, 2007 Share Posted June 16, 2007 http://us.php.net/define (PHP 4, PHP 5) Quote Link to comment https://forums.phpfreaks.com/topic/55862-php3-and-define/#findComment-275974 Share on other sites More sharing options...
pocobueno1388 Posted June 16, 2007 Share Posted June 16, 2007 Hmmm...which are you supposed to believe? haha. I guess all you can do is test it and see if it works. Quote Link to comment https://forums.phpfreaks.com/topic/55862-php3-and-define/#findComment-275979 Share on other sites More sharing options...
asherwolf Posted June 16, 2007 Author Share Posted June 16, 2007 Okay, well, call me inexperienced in this regard... I'm assuming I can get a good one at php.net, but I don't know how. Where can I get a good distribution of PHP 3 to try? EDIT: I can compile a distribution, I know how to do that. Asher Quote Link to comment https://forums.phpfreaks.com/topic/55862-php3-and-define/#findComment-275984 Share on other sites More sharing options...
pocobueno1388 Posted June 16, 2007 Share Posted June 16, 2007 Could I ask why you are wanting PHP 3 instead of going with PHP 5? I don't understand why you would want to use the older version... Quote Link to comment https://forums.phpfreaks.com/topic/55862-php3-and-define/#findComment-275985 Share on other sites More sharing options...
asherwolf Posted June 16, 2007 Author Share Posted June 16, 2007 Crazy as it may sound, I'm trying to write something backwards compatible for a potential client who doesn't want to upgrade. However, I don't have access to his environment yet, so I'm developing it in my environment which supports PHP 5. Quote Link to comment https://forums.phpfreaks.com/topic/55862-php3-and-define/#findComment-275999 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.