register globals - Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3 -


i having problem in shortcut links site: http://smileshort.com/short-anonymous-links-api.html

use api: http://smileshort.com/api.php?key=534287562&url=google.com

show me problem

warning: unknown: script possibly relies on session side-effect existed until php 4.2.3. please advised session extension not consider global variables source of data, unless register_globals enabled. can disable functionality , warning setting session.bug_compat_42 or session.bug_compat_warn off, respectively in unknown on line 0 

when use function

<?php  function get_vgd($url) { $apiurl = "http://smileshort.com/api.php?key=890479270&url=$url"; $ch = curl_init(); $timeout = 3; curl_setopt($ch,curlopt_url,$apiurl); curl_setopt($ch,curlopt_returntransfer,1); curl_setopt($ch,curlopt_connecttimeout,$timeout); $data = curl_exec($ch); curl_close($ch); return $data; } echo get_vgd("http://www.google.com");  ?> 

there session variable given same name existing global variable (i.e. both $_session['name'] , $name exists).
rename either of them.

it should quite duplicate question, occurred me.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -