validation - Xampp and Sublime do recognize my php. I can't figure out why -


in sublime there no syntax coloring, xampp ouputs plain text, , php validator used comes $arr not variable.... can't see wrong it.

˂?php     $arr = array(         'properties' => array(             array(                 'property' => 'email',                 'value' => 'apitest@hubspot.com'             ),             array(                 'property' => 'firstname',                 'value' => 'hubspot'             ),             array(                 'property' => 'lastname',                 'value' => 'user'             ),             array(                 'property' => 'phone',                 'value' => '555-1212'             )         )     );     $post_json = json_encode($arr);     $hapikey = readline("/");     $endpoint = 'https://api.hubapi.com/contacts/v1/contact?hapikey=' . $hapikey;     $ch = @curl_init();     @curl_setopt($ch, curlopt_post, true);     @curl_setopt($ch, curlopt_postfields, $post_json);     @curl_setopt($ch, curlopt_url, $endpoint);     @curl_setopt($ch, curlopt_httpheader, array('content-type: application/json'));     @curl_setopt($ch, curlopt_returntransfer, true);     $response = @curl_exec($ch);     $status_code = @curl_getinfo($ch, curlinfo_http_code);     $curl_errors = curl_error($ch);     @curl_close($ch);     echo "curl errors: " . $curl_errors;     echo "\nstatus code: " . $status_code;     echo "\nresponse: " . $response; ?> 

i have had , used same installation of xampp on year, have built many wordpress templates using installation of sublime, of sudden happening. missing something?

it happening piece of code in same file swapped out above didn't notice. have created 3 different files above code , behaving way. no errors code text.


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -