PATH:
home
/
pallya5
/
swiftcleaningng.com
<?php // Test curl_init() $ch = curl_init(); if ($ch) { echo "curl_init() is supported.<br>"; } else { echo "curl_init() is NOT supported.<br>"; } // Test curl_setopt() $url = "http://example.com"; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); echo "curl_setopt() is supported.<br>"; // Test curl_exec() $response = curl_exec($ch); if ($response !== false) { echo "curl_exec() is supported. Response: $response<br>"; } else { echo "curl_exec() is NOT supported.<br>"; } // Test curl_errno() $error_code = curl_errno($ch); if ($error_code === 0) { echo "curl_errno() is supported. No error.<br>"; } else { echo "curl_errno() is NOT supported. Error code: $error_code<br>"; } // Test curl_close() curl_close($ch); echo "curl_close() is supported.<br>"; // Test getIPAddress() function getIPAddress() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) { return $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { return $_SERVER['HTTP_X_FORWARDED_FOR']; } else { return $_SERVER['REMOTE_ADDR']; } } echo "getIPAddress() is supported. IP: " . getIPAddress() . "<br>"; // Test isset() $test_var = "Hello, world!"; if (isset($test_var)) { echo "isset() is supported. Variable is set.<br>"; } else { echo "isset() is NOT supported.<br>"; } // Test base64_encode() $encoded = base64_encode("Hello, world!"); echo "base64_encode() is supported. Encoded: $encoded<br>"; // Test urlencode() $encoded_url = urlencode("http://example.com/test?name=value"); echo "urlencode() is supported. Encoded URL: $encoded_url<br>"; // Test file_get_contents() $url = "http://example.com"; $response = @file_get_contents($url); if ($response !== false) { echo "file_get_contents() is supported. Response: " . substr($response, 0, 100) . "...<br>"; // Limit to 100 characters for display } else { echo "file_get_contents() is NOT supported.<br>"; } // Test fsockopen() $host = "example.com"; $port = 80; $connection = @fsockopen($host, $port); if ($connection) { echo "fsockopen() is supported. Connection to $host:$port successful.<br>"; fclose($connection); } else { echo "fsockopen() is NOT supported. Failed to connect to $host:$port.<br>"; } // Test stream_context_create() $context = @stream_context_create(); if ($context) { echo "stream_context_create() is supported. Context created successfully.<br>"; } else { echo "stream_context_create() is NOT supported.<br>"; } // Test fopen() $file = @fopen("http://example.com", "r"); if ($file) { echo "fopen() is supported. File opened successfully.<br>"; fclose($file); } else { echo "fopen() is NOT supported. Failed to open file.<br>"; } // Test stream_get_contents() $file = @fopen("http://example.com", "r"); if ($file) { $content = @stream_get_contents($file); if ($content !== false) { echo "stream_get_contents() is supported. Content: " . substr($content, 0, 100) . "...<br>"; // Limit to 100 characters for display } else { echo "stream_get_contents() is NOT supported.<br>"; } fclose($file); } else { echo "fopen() failed, so stream_get_contents() can't be tested.<br>"; } // Test fclose() $file = @fopen("http://example.com", "r"); if ($file) { if (@fclose($file)) { echo "fclose() is supported. File closed successfully.<br>"; } else { echo "fclose() is NOT supported.<br>"; } } else { echo "fopen() failed, so fclose() can't be tested.<br>"; } // Test stream_socket_client() $socket = @stream_socket_client("tcp://example.com:80", $errno, $errstr); if ($socket) { echo "stream_socket_client() is supported. Connection successful.<br>"; fclose($socket); } else { echo "stream_socket_client() is NOT supported. Error: $errstr<br>"; } // Test fwrite() $socket = @stream_socket_client("tcp://example.com:80", $errno, $errstr); if ($socket) { $message = "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n"; $bytes_written = @fwrite($socket, $message); if ($bytes_written > 0) { echo "fwrite() is supported. Bytes written: $bytes_written<br>"; } else { echo "fwrite() is NOT supported.<br>"; } fclose($socket); } else { echo "stream_socket_client() failed, so fwrite() can't be tested.<br>"; } // Test fgets() $socket = @stream_socket_client("tcp://example.com:80", $errno, $errstr); if ($socket) { $response = @fgets($socket); if ($response !== false) { echo "fgets() is supported. Response: " . substr($response, 0, 100) . "...<br>"; // Limit to 100 characters for display } else { echo "fgets() is NOT supported.<br>"; } fclose($socket); } else { echo "stream_socket_client() failed, so fgets() can't be tested.<br>"; } // Test proc_open() $command = "echo 'Hello, World!'"; $descriptorspec = array( 0 => array("pipe", "r"), // stdin 1 => array("pipe", "w"), // stdout 2 => array("pipe", "w") // stderr ); $process = @proc_open($command, $descriptorspec, $pipes); if (is_resource($process)) { echo "proc_open() is supported. Process opened successfully.<br>"; // Read the output from the command $output = stream_get_contents($pipes[1]); echo "Output from command: " . $output . "<br>"; // Close the pipes and process fclose($pipes[0]); fclose($pipes[1]); fclose($pipes[2]); proc_close($process); } else { echo "proc_open() is NOT supported. Failed to open process.<br>"; } ?> 添加测试 proc_open 也添加测试 http get 或者put一类的函数
[-] robots.txt
[edit]
[-] wp-signup.php
[edit]
[-] .htaccess
[edit]
[-] googlea11b23045a5676f2.html
[edit]
[-] wp-links-opml.php
[edit]
[-] 2.txt
[edit]
[+]
wp-includes
[-] wp-blog-header.php
[edit]
[-] wp-config.php
[edit]
[-] wp-settings.php
[edit]
[+]
.tmb
[+]
.well-known
[-] wp-login.php
[edit]
[-] wp-cron.php
[edit]
[-] sf.php
[edit]
[-] readme.html
[edit]
[-] zblocker.php
[edit]
[-] wp-activate.php
[edit]
[-] admins.php
[edit]
[-] test_php.php
[edit]
[-] wp-trackback.php
[edit]
[-] 1.txt
[edit]
[-] wp-config-sample.php
[edit]
[-] wp-comments-post.php
[edit]
[+]
wp-admin
[-] wp-mail.php
[edit]
[-] .htaccess_251227160449
[edit]
[+]
..
[-] wp-load.php
[edit]
[-] xmlrpc.php
[edit]
[-] php.ini
[edit]
[+]
wp-content
[-] license.txt
[edit]