This is a simple PHP function that generates a Linkvertise URL for a given input URL. Linkvertise is a platform that allows you to monetize your links by displaying ads before redirecting users to the original URL.
The getUrl
function takes a URL as input and returns a Linkvertise URL. It does the following steps:
- Encodes the input URL using base64 encoding.
- Constructs the Linkvertise URL by appending the encoded URL as a query parameter.
- Returns the Linkvertise URL.
- Include the
index.php
file in your project.