Data at the server are mainly in the form of strings. A string can be part of a file (text), the whole file or a table element in a database.
Well, you can also have image files, sound files and video files at the server, in their normal locations, separated from the files or database containing the strings for the pages.
These data have to be sent to the client’s browser.
Topics in this article
Let me introduce the topics we will cover in this article. I've already mentioned the nature of data at the server. I will then go on to say the first thing that happens at the server when you need data.
Next, I will explain how you can use Perl to send a string to the client computer. After that I will show you how you can read the content of any file (text) in any directory at the server (computer) and send the content as a string to the client’s browser.