Код (Text): <? if (!class_exists('gtk')) { dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')); } //Killing win function winkiller() { Gtk::main_quit(); } function delete_event() { return false; } $window = &new GtkWindow(); $window->connect('destroy', 'winkiller'); $window->connect('delete-event', 'delete_event'); $window->set_border_width(0); $window->set_title('IP Look-up'); $window->set_policy(false, false, false); // Creates a table to place the widgets // in, and adds it to the window. $grid = &new GtkTable(2, 2); $grid->set_row_spacings(4); $grid->set_col_spacings(4); $window->add($grid); // Creates a label to describe the entry // field and adds it to the table. $label = &new GtkLabel(); $label->set_text("Domain:"); $grid->attach($label, 0, 1, 0, 1); // Creates an entry field and adds it to // the table. $text = &new GtkEntry(); $text->set_editable(true); $text->set_max_length(256); $grid->attach($text, 1, 2, 0, 1); // Creates tooltips object for the entry // field. $ttentry = &new GtkTooltips(); $ttentry->set_delay(200); $ttentry->set_tip($text, 'Type the domain you want to look up here.', ''); $ttentry->enable(); // Creates a button, connects its clicke // d signal to the get_ip() function and // adds the button to the window. $button = &new GtkButton('Get IP'); $button->connect('clicked', 'get_ip'); $grid->attach($button, 0, 2, 1, 2); // Creates tooltips object for the butto // n. $ttbutton = &new GtkTooltips(); $ttbutton->set_delay(200); $ttbutton->set_tip($button, 'Looks up the IP', ''); $ttbutton->enable(); // Show the window and all of it's child // widgets. $window->show_all(); // Set focus to the entry field. $window->set_focus($text); // Run the main loop. Gtk::main(); ?> попробуй его на апаче проверить...
kuliev Поставь тот, на котором они будут работать в реальной жизни. Если, конечно, она у них будет...
Лучший сервер тот, который стоит на хостинге, с точностью до конкретной версии. То же самое относится к РНР, мисклю и прочему.