In Feburary 2016 28,
Get_headers() is a command in PHP that fetches HTTP headers. The get_header() function accesses the header.php file that describes the nature of the Web page or file. The get_headers function also retrieves website redirection information, error codes, authentication requirements and encryption information such as HTTP and HTTPS. The get_headers function must include the URL of the request in the argument. An argument to format the retrieved headers is optional.
cURL
Websites may have cURL enabled or use a socket connection. cURL in PHP supports FTP, HTTP, HTTPS, LDAP and other data transfer protocols. The Web connection details are contained within the cURL class. This eliminates the need to reference the connection details throughout the PHP code, decreasing the amount of time required to create cURL scripts. cURL scripts create cookies and save the cookies to specified directories. The cURL extension in PHP websites allows external websites to be accessed while remaining on the first website. This function is used for retrieving data like stock quotes from a third-party website or third-party payment vendor websites like PayPal and credit-card processors. cURL scripts are essential to creating online shopping carts and continuously updating data feeds. cURL scripts allow reporting on a connection status such as transfer speed, transferred data volume and the percentage of the file that has been downloaded so far.
Factors Affecting Get_File Speed
Get_file functions do not trigger authentication routines such as log in prompts or cookies. The file_get_contents() function also downloads files without exchanging information with the server from which it was retrieved, such as cookie processing. Using a get_file function instead of a cURL script is faster than a cURL script because these steps are skipped. Get_header speed depends on the volume of information it retrieves. Web pages with less information are retrieved more quickly. Web pages that hold less data are downloaded more quickly.
Factors Affecting cURL Speed
cURL speed depends on network latency, network speed and the speed of the server with which it is communicating. cURL scripts also depend upon the processing speed of the servers they access. cURL slows down when handling large XML files. Multi-processing allows multiple cURL tasks to run simultaneously, potentially speeding up the processing time of the whole Web page.
In Feburary 2016 28,
Showing posts with label reference. Show all posts
Showing posts with label reference. Show all posts
Sunday, 28 February 2016
Wednesday, 24 February 2016
How to Make Checkboxes in DreamweaverIn Feburary 2016 24,
In Feburary 2016 24,
Open your HTML document in Dreamweaver.
Click wherever on the page you want the check box to appear.
Click 'Insert,' 'Form' and 'Checkbox.'
Enter a name for your check box in the 'ID' field. This allows you to reference the check box with programming code, should you need it.
Enter a 'Label' for your check box, which is the text that appears next to the check box on your HTML page. Click 'Before form item' or 'After form item' from the Position section to place the label before or after the check box.
Click 'OK.'
Click the newly created check box and enter a value in the 'Checked Value' field of the Property window. If you cannot see the Property window, hold the 'Ctrl' button and press 'F3.' The value determines the entered value for a checked box. If no value is entered, a checked box defaults to 'Yes.'
Click 'Insert,' 'Form' and 'Button' to create a Submit button, which is commonly used to submit the form.
Click '
Hold the 'Ctrl' button and press 'S' to save your changes.
In Feburary 2016 24,
Open your HTML document in Dreamweaver.
Click wherever on the page you want the check box to appear.
Click 'Insert,' 'Form' and 'Checkbox.'
Enter a name for your check box in the 'ID' field. This allows you to reference the check box with programming code, should you need it.
Enter a 'Label' for your check box, which is the text that appears next to the check box on your HTML page. Click 'Before form item' or 'After form item' from the Position section to place the label before or after the check box.
Click 'OK.'
Click the newly created check box and enter a value in the 'Checked Value' field of the Property window. If you cannot see the Property window, hold the 'Ctrl' button and press 'F3.' The value determines the entered value for a checked box. If no value is entered, a checked box defaults to 'Yes.'
Click 'Insert,' 'Form' and 'Button' to create a Submit button, which is commonly used to submit the form.
Click '
Hold the 'Ctrl' button and press 'S' to save your changes.
In Feburary 2016 24,
Subscribe to:
Comments (Atom)