How to call php in link using insert php?
-
Hey everyone,
My client needs to use this php function:
<?php $fh = fopen("https://driveweb.com/tech/ap/version.txt", 'r'); $data = fgets($fh); $data = fgets($fh); fclose($fh); $build = trim(substr($data, 13)); ?>
This uses the $build variable to setup the correct (i.e. latest) URL:
<a href="https://driveweb.com/tech/ap/<?php echo $build ?>/dw.jnlp">link goes here</a>
I have used the [insert_php] shortcode within the function itself, but how would I amend the above href to work with this shortcode? Thanks!!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to call php in link using insert php?’ is closed to new replies.