I make an AJAX request like so using JQuery:

$.ajax({
       type: "GET",
       url: "getvideo.php",
       data: 'videoid=' + vid,

I personally use firebug to inform me what is happening also it informs us a 500 internal server error has happened? wtf Here's area of the script concerned:

$videoid = $_GET['videoid'];
$get = new youtubeAPI();
$get->getVideoAPI($videoid);

class youtubeAPI extends Exception {

function getVideoAPI($videoid){

    if(isset($videoid)){

     $clientLibraryPath = 'library';
     $oldPath = set_include_path(get_include_path().PATH_SEPARATOR.$clientLibraryPath);

     require_once 'Zend/Loader.php'; // the Zend dir must be in your include_path

I personally use exactly the same AJAX call with other scripts and they're fine. I have tried personally these scripts on another server also it was fine except alternatively server the file is known as "getvideo.php5" whereas here' title it "getvideo.php" since i have have PHP 5.2.6 installed only.

Help

UPDATE

This is actually the error:

[Wed Feb 11 20:48:17 2009] [error] [client xx.xx.xxx.xxx] PHP Fatal error:  Class 'DOMDocument' not found in /var/www/html/library/Zend/Gdata/App.php on line 734, referer: http://xx.xx.xx.xxx/

I hid my IP. At this line:

 public static function importString($string, $className='Zend_Gdata_App_Feed')
    {
        // Load the feed as an XML DOMDocument object
        @ini_set('track_errors', 1);
        $doc = new DOMDocument(); //LINE 734
        $success = @$doc->loadXML($string);
        @ini_restore('track_errors');

However I should not be experimenting with this right? Regardless, that class does not exist like a script and does not exist for the reason that script like a class. I'm Using THIS SAME LIBRARY During My OTHER SERVER. It's also missing this too??? This is exactly what I downloaded in the Youtube API zip folder.

SOLVED

It was a completely new server also it had minimal PHP installed. I had been missing PHP dom functions. A fast install fixed this issue. Thank you for telling me to check out the logs. Should of been my try.

yum install php-xml
yum install php-xmlrpc

Try performing the phone call by hand yourself inside your browser (it is the same factor) and find out what will get came back. If nothing will get came back and you receive a 500 internal server error, you have to then take a look at logs and find out what is leading to this error to occur.

Also make certain you're making the ajax call towards the proper domain. By trying calling from your domain the phone call will fail each time.

What? .php5 ? I'm not sure your apache configuration (given you are even utilizing it), but .php is useful for all versions of PHP.

Anyway, attempt to directly access that URL and find out what goes on, this should not have anything related to Ajax. Also have a look at the web-server logs.

Exactly what does the mistake log from the server say?

i've same this error when use jquery call php script, i'm not sure that error of server or my php code. You can observe this link changtraingheo.byethost22.com/ , within the column left, you appear at box "Chia Sẻ Nhanh" , enter some value and submit form, Firebug will explain 500 internal server error. But additionally this source on another host work nicely.

Make certain permissions are positioned properly. Just had exactly the same problem on the justhost.com server Set permissions on my small php script to 0644 and get up.