upgraded yui to 2.2.2 and yui-ext to 1.0.1a
This commit is contained in:
parent
4d9af2c691
commit
547ced6500
1992 changed files with 645731 additions and 0 deletions
3
www/extras/yui/examples/connection/php/get.php
Normal file
3
www/extras/yui/examples/connection/php/get.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
print_r($_GET);
|
||||
?>
|
||||
3
www/extras/yui/examples/connection/php/post.php
Normal file
3
www/extras/yui/examples/connection/php/post.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
print_r($_POST);
|
||||
?>
|
||||
18
www/extras/yui/examples/connection/php/sync.php
Normal file
18
www/extras/yui/examples/connection/php/sync.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
|
||||
// always modified
|
||||
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||||
|
||||
// HTTP/1.1
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
|
||||
$num = mt_rand(0,10);
|
||||
sleep($num);
|
||||
echo('<span>This request responded in '.$num.' seconds. </span>');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
19
www/extras/yui/examples/connection/php/weather.php
Normal file
19
www/extras/yui/examples/connection/php/weather.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
header("Content-Type:text/xml");
|
||||
|
||||
$url = 'http://xml.weather.yahoo.com/forecastrss?'.getenv('QUERY_STRING');
|
||||
|
||||
function getResource($url){
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
$result = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
$feed = getResource($url);
|
||||
echo $feed;
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue