ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
proxy_ylocal.php
Go to the documentation of this file.
1
<?php
2
3
/* yadl_spaceid - Skip Stamping */
4
5
// Yahoo! proxy
6
7
// Hard-code hostname and path:
8
define (
'PATH'
,
'http://local.yahooapis.com/LocalSearchService/V2/localSearch'
);
9
10
$type
=
"text/xml"
;
11
12
// Get all query params
13
$query
=
"?"
;
14
foreach
(
$_GET
as $key => $value) {
15
if
(($key ==
"output"
) && ($value ==
"json"
)) {
16
$type
=
"application/json"
;
17
}
18
$query
.= urlencode($key).
"="
.urlencode($value).
"&"
;
19
}
20
21
foreach
(
$_POST
as $key => $value) {
22
if
(($key ==
"output"
) && ($value ==
"json"
)) {
23
$type
=
"application/json"
;
24
}
25
$query
.= $key.
"="
.$value.
"&"
;
26
}
27
$query
.=
"appid=YahooDemo"
;
28
$url
=
PATH
.$query;
29
30
31
// Open the Curl session
32
$session
= curl_init(
$url
);
33
34
// Don't return HTTP headers. Do return the contents of the call
35
curl_setopt(
$session
, CURLOPT_HEADER,
false
);
36
curl_setopt(
$session
, CURLOPT_RETURNTRANSFER,
true
);
37
38
// Make the call
39
$response
= curl_exec(
$session
);
40
41
header(
"Content-Type: "
.
$type
);
42
echo
$response
;
43
curl_close(
$session
);
44
45
?>
$type
$type
Definition:
proxy_ylocal.php:10
$_GET
$_GET["client_id"]
Definition:
cfg.phpunit.template.php:12
$session
$session
Definition:
proxy_ylocal.php:32
PATH
const PATH
Definition:
proxy_ylocal.php:8
$query
$query
Definition:
proxy_ylocal.php:13
$url
$url
Definition:
proxy_ylocal.php:28
$response
$response
Definition:
proxy_ylocal.php:39
$_POST
$_POST["username"]
Definition:
cfg.phpunit.template.php:11
libs
bower
bower_components
yui2
src
datasource
tests
php
proxy_ylocal.php
Generated on Sun Apr 6 2025 21:00:54 for ILIAS by
1.8.13 (using
Doxyfile
)