With version 4.3.7, are we no longer able to create scripts using Windows and Apache w/ php.exe for testing for Unix without code modification as in the past with earlier (pre-4.1) versions?
If not, it seems some of the power of PHP has lessened if the portability has changed. That would mean that programming time will be increased if we now must have 2 versions.
Is this true that you can have scripts in Unix as:
if($ac == '1') {
print "You've chosen the option #1";
}
if($ac == '2') {
print "You've chosen the option #2";
}
but, in Windows, the same result would be achieved by the need to change the code to:
if($_GET['ac'] == 1) {
print "You've chosen the option #1";
}
if($_GET['ac'] == 2) {
print "You've chosen the option #2";
}
(note: I saw this in another posting)
I am creating and testing scripts in Windows for Unix. In 4.0 and earlier, what worked in Windows worked in Unix. How can I find out what works and what doesn't work in either with the newer version of PHP? I just upgraded from 4.0 to 4.3.7 and I'm having a heck of a time. My script in 4.0 worked great. Now, I am bombarded with error messages in each form field about 'Undefined Index' and then some.
I have alot of coding to do, so if possible, I'd like to know how to make my scripts directly portable from one platform to the next. Can someone please help me with a faster transition? The help I've gotten so far the register_globals was great, but now I question portability. I've read many posts, but still perplexed.
Thank you.