Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #384123

    Hey guys, long time no chat!

    My client wants me to add this custom php script:

    
    <?php
            $fh = fopen("http://driveweb.com/tech/ap/version.txt", 'r');
            $data = fgets($fh);
            $data = fgets($fh);
            fclose($fh);
            $build = trim(substr($data, 13));
    ?>
    

    So that a URL I link to
    (<a href="http://driveweb.com/tech/ap/<?php echo $build ?>/dw.jnlp">link goes here</a>) will automatically update based on the version specified using the $build variable.

    Where should I put the custom php script within enfold? Thanks for the help!
    – Julian

    #384148

    Hey Julian!

    I’d suggest using it as a Shortcode, you can use this tool to generate it – http://generatewp.com/shortcodes/

    Regards,
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.