How do I open a php page from javascript function ?
window.location = "http://www.google.com";window.location.href = "http://www.google.com";location.href = "http://www.google.com";
None of them is working.
Even put in php.ini
allow_url_fopen = on
What is wrong at my approach?
window.locationis right approach. If you are trying it in iframe or FB app then trywindow.top.location