Method for processing URL and associated server and non-transitory computer readable storage medium
AssigneeSynology Incorporated
InventorYi-Chien Lee
Life of this patent
Estimating the term…
Abstract
A server includes a processor and a storage unit, where the storage unit stores a program code, and when the processor executes the program code, the processor performs the following steps: receiving a URL from a device external to the server; determining whether the URL has a user account, and converting the URL to a file path; when the URL has the user account, utilizing a first PHP mode to execute the file path; and when the URL does not have the user account, utilizing a second PHP mode to execute the file path.
Claims17
A web server comprising a processor and a storage unit, wherein the storage unit stores at least a web server program module, a first Hypertext Preprocessor (PHP) program module, and a second PHP program module;
- and when the processor executes the web server program module, the processor performs the following steps of:
- receiving, by the web server program module, a Uniform Resource Locator (URL) from a device external to the web server, wherein the URL at least comprises a domain name;
- determining, by the web server program module, whether the URL received by the web server program module further includes any user account therein or not, and converting the URL received by the web server program module to a file path, wherein said any user account is not a part of the domain name;
- when the web server program module determines that the URL received by the web server program module has a user account therein, utilizing the first PHP program module to execute the file path;
- and
- when the web server program module determines that the URL received by the web server program module does not have any user account therein, utilizing the second PHP program module different from the first PHP program module to execute the file path;
- wherein the first PHP program module and the second PHP program module are executed by the processor within the web server.
A non-transitory computer readable medium, positioned in a web server and storing at least a web server program module, a first Hypertext Preprocessor (PHP) program module and a second PHP program module, wherein when the web server program module is executed by a processor, the following steps are performed:
- receiving, by the web server program module, a Uniform Resource Locator (URL) from a device external to the web server;
- determining, by the web server program module, whether the URL received by the web server program module has any user account therein or not, and converting the URL to a file path;
- when the web server program module determines that the URL received by the web server program module has a user account therein, utilizing the first PHP program module to execute the file path;
- and
- when the web server program module determines that the URL received by the web server program module does not have any user account therein, utilizing the second PHP program module different from the first PHP program module to execute the file path;
- wherein the first PHP program module and the second PHP program module are executed by the processor within the web server, and the steps of utilizing the first PHP program module to execute the file path and utilizing the second PHP program module to execute the file path comprises:
- when the URL has the user account, utilizing the first PHP program module and utilizing a user identity (UID) or a group identity (GID) to execute the file path;
- and
- when the URL does not have any user account, utilizing the second PHP program module and utilizing a predetermined execution identity, instead of using any UID or GID corresponding to the user account, to execute the file path.
A method for processing a Uniform Resource Locator (URL), wherein the method is applied in a web server, the URL is from a device external to the web server, the web server stores at least a web server program module, a first Hypertext Preprocessor (PHP) program module and a second PHP program module, the web server program module is executed by a processor of the web server, and the method comprises:
- determining, by the web server program module, whether the URL received by the web server program module has any user account therein or not, and converting the URL to a file path;
- when the web server program module determines that the URL received by the web server program module has a user account therein, utilizing the first PHP program module to execute the file path;
- and
- when the web server program module determines that the URL received by the web server program module does not have any user account therein, utilizing the second PHP program module different from the first PHP program module to execute the file path;
- wherein the first PHP program module and the second PHP program module are executed by the processor within the web server, and the steps of utilizing the first PHP program module to execute the file path and utilizing the second PHP program module to execute the file path comprises:
- when the URL has the user account, utilizing the first PHP program module and utilizing a user identity (UID) or a group identity (GID) to execute the file path;
- and
- when the URL does not have any user account, utilizing the second PHP program module and utilizing a predetermined execution identity, instead of using any UID or GID corresponding to the user account, to execute the file path.
Dependencies are inferred from the claim text.