Skip to content

eval()'d code on line 1 #1

@netpipe

Description

@netpipe

not really sure what im doing i would like to have this for 3d printing.
https://www.youtube.com/watch?v=JDYsk1KQaHk

midi-class-php/midi.class.php(1403) : eval()'d code on line 1

<?php

//if ($file!=''){}
	require('rttl.class.php');
    $file = fopen("t.mid", "r") or die("Unable to open file!");

   echo fread($file,filesize("t.mid"));
    $fn= fread($file,filesize("t.mid"));
	//$fn = $_FILES['mid_upload']['name'];
	$bn = strtok($fn, '.');
    fclose($myfile);



	$midi = new Rttl();
	$midi->importMid($file);

    $midi->getRttl($bn)
/* RTTL converted from: <?=$fn?> */

?>

then just run from cli php test.php t.midi is there a way to pass args to it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions