Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
test /
HTTP /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
absoluteURI.inc
1.52
KB
-rw-r--r--
negotiateCharset2.phpt
1.28
KB
-rw-r--r--
negotiateCharset.phpt
1.28
KB
-rw-r--r--
negotiateLanguage.phpt
1.47
KB
-rw-r--r--
negotiateMimeType.phpt
2.08
KB
-rw-r--r--
test1a.phpt
1.63
KB
-rw-r--r--
test2a.phpt
1.57
KB
-rw-r--r--
test3a.phpt
1.48
KB
-rw-r--r--
test4a.phpt
1.45
KB
-rw-r--r--
test5a.phpt
1.39
KB
-rw-r--r--
test6a.phpt
1.32
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : negotiateMimeType.phpt
--TEST-- negotiateMimeType() --GET-- --ENV-- HTTP_HOST=example.org SERVER_NAME=example.org QUERY_STRING= SERVER_PORT=80 HTTPS=off REQUEST_URI=/subdir/test.php SCRIPT_NAME=/subdir/test.php HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,text/*;q=0.7,*/*,image/gif; q=0.8, image/jpeg; q=0.6, image/* --FILE-- <?php /** * This test checks for MIME type negotiation * * PHP version 4 and 5 * * @category HTTP * @package HTTP * @author Philippe Jausions <jausions@php.net> * @license http://www.opensource.org/licenses/bsd-license.php New BSD License * @link http://pear.php.net/package/HTTP */ require_once 'HTTP.php'; // The --ENV-- Accept sets the following order // (preferred types first) // 1. text/html // 2. application/xhtml+xml // 3. application/xml // 4. image/gif // 5. text/* (any text type) // 6. image/jpeg // 7. image/* (any image type) // 8. */* (any type) $sets = array( 1 => array( 'image/gif', 'image/png', 'application/xhtml+xml', 'application/xml', 'text/html', 'image/jpeg', 'text/plain', ), 2 => array( 'image/gif', 'image/png', 'application/xhtml+xml', 'application/xml', 'image/jpeg', 'text/plain', ), 3 => array( 'image/gif', 'image/png', 'application/xml', 'image/jpeg', 'text/plain', ), 4 => array( 'image/gif', 'image/png', 'image/jpeg', 'text/plain', ), 5 => array( 'image/png', 'image/jpeg', 'text/plain', ), 6 => array( 'image/png', 'image/jpeg', ), 7 => array( 'image/png', ), 8 => array( 'audio/midi', ), 9 => array( ), ); foreach ($sets as $i => $supported) { echo $i.' => '.HTTP::negotiateMimeType($supported, 'application/octet-stream') ."\n"; } ?> --EXPECT-- 1 => text/html 2 => application/xhtml+xml 3 => application/xml 4 => image/gif 5 => text/plain 6 => image/jpeg 7 => image/png 8 => audio/midi 9 => application/octet-stream
Close