Paulkirkewalker Posted May 9, 2007 Share Posted May 9, 2007 Hi there, Can anyone tell me in simple terms what the following error means? PHP Notice: Use of undefined constant CURLOPT_GETFIELDS - assumed 'CURLOPT_GETFIELDS' in C:\Inetpub\wwwroot\test2-1.php on line 28 Thanks, Paul. Quote Link to comment https://forums.phpfreaks.com/topic/50649-undefined-constant/ Share on other sites More sharing options...
redbullmarky Posted May 9, 2007 Share Posted May 9, 2007 it means you've tried to use a constant (a variable that doesn't/cant be changed throughout) that hasn't been 'defined'. <?php echo HELLO_MESSAGE; // will throw notice define('HELLO_MESSAGE', 'hello world!'); echo HELLO_MESSAGE; // works fine as it's now been defined ?> due to the specific constant undefined here (CURLOPT_GETFIELDS), i'd hazard a guess that you do not have cURL installed Quote Link to comment https://forums.phpfreaks.com/topic/50649-undefined-constant/#findComment-248966 Share on other sites More sharing options...
neel_basu Posted May 9, 2007 Share Posted May 9, 2007 I think you have used echo CURLOPT_GETFIELDS or yu were using $some_array[CURLOPT_GETFIELDS]; or curl_setopt($ch, CURLOPT_GETFIELDS, "some string here"); there may be 100s of ways for what it is showing this Error PLease post whats on line 28 Quote Link to comment https://forums.phpfreaks.com/topic/50649-undefined-constant/#findComment-248995 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.