- Usado para extender as capacidades do servidor;
- Request-response;
- Geralmente utilizados para servidores Web mas podem responder quaisquer requisições.
Pacotes javax.servlet
e javax.servlet.http
com interfaces para programação com Servlets.
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
"font_face": "Source Code Pro Semibold", | |
"font_size": 9, | |
"highlight_line": true, | |
"highlight_modified_tabs": false, | |
"ignored_packages": | |
[ | |
"Vintage" |
{ | |
"phpcs_additional_args": { | |
"--standard": "PSR2", | |
"-n": "" | |
}, | |
// Show outline for errors | |
"phpcs_outline_for_errors": false, | |
// Show the errors in the quick panel so you can then goto line |
desktop.ini | |
Thumbs.db | |
thumbs.db | |
*.plist | |
.mediaartlocal |
/** | |
* A companhia aérea recém chegada no mercado, necessita de um programa em C | |
* para registrar e controlar a compra dos bilhetes de passagens aéreas. | |
* Considerando uma única viagem, o programa tem os seguintes requisitos: | |
* a) Mostrar tela inicial com o seguintes opções de menu : | |
* 1 - Comprar passagem | |
* O usuário informará o código do cliente que viajará e o assento | |
* desejado. Só é permitida a compra de passagem aos clientes já | |
* cadastrados. Não poderá ser vendida passagem para o mesmo | |
* assento mais de uma vez. O sistema deverá avisar caso o assento |
function slug($string) { | |
$string = strtolower(str_replace(' ', '_', $string)); | |
$pattern = "/[^a-zA-Z0-9_]/"; | |
$string = preg_replace($pattern, '', $string); | |
return $string; | |
} |
<?php | |
$yt = new Zend_Gdata_YouTube($httpClient); | |
// create a new Zend_Gdata_YouTube_VideoEntry object | |
$myVideoEntry = new Zend_Gdata_YouTube_VideoEntry(); | |
// create a new Zend_Gdata_App_MediaFileSource object | |
$filesource = $yt->newMediaFileSource('mytestmovie.mov'); | |
$filesource->setContentType('video/quicktime'); | |
// set slug header | |
$filesource->setSlug('mytestmovie.mov'); |
<?php | |
$path = '/var/www/zend/library'; | |
set_include_path(get_include_path() . PATH_SEPARATOR . $path); | |
require_once 'Zend/Loader.php'; | |
Zend_Loader::loadClass('Zend_Gdata_YouTube'); | |
Zend_Loader::loadClass('Zend_Gdata_AuthSub'); | |
Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); | |
$email = 'xxx@gmail.com'; |
body { | |
font: 11px/1.5em "Georgia"; | |
} | |
h1, h2, h3, h4, h5, h6 { | |
font-family: georgia, times, sans-serif; | |
font-weight: normal; | |
} | |
h1 { |
<?php | |
/** | |
* SplClassLoader implementation that implements the technical interoperability | |
* standards for PHP 5.3 namespaces and class names. | |
* | |
* http://groups.google.com/group/php-standards/web/final-proposal | |
* | |
* // Example which loads classes for the Doctrine Common package in the | |
* // Doctrine\Common namespace. |