briancray / PHP-URL-Shortener

577 stars 216 forks source link

ajax form submit in index.php returns shorten.php source instead of shortened url #6

Open ljgww opened 12 years ago

ljgww commented 12 years ago

its puzzling as to why shorten.php do not get executed in ajax call. PHP works fine. Scripts do not raise exceptions.

ljgww commented 12 years ago

guessed jquery may be the issue i have tried with more recent version of jQuery (http://code.jquery.com/jquery-1.7.1.min.js) however no go... same thing happens. Source is "printed" back in the form. I'm on Mac, tested Chrome, Camino, Firefox and Safari - all do the same.

SpEcHiDe commented 8 years ago

I think maybe the server executing the PHP does not have permission to execute PHP. This happens if you try to run this on Github Pages!