Im kinda new to PHP, although i have used HTML before. I want to embed sounds in my webpage, but so that a random selection is played everytime. I use PhP Nuke, and the file for my theme is quite extensive. I will simply include the part that is causing the errror message.
echo "<%
."
."RANDOMIZE
."Response.write("<EMBED SRC=\'sounds/randomsound' & INT((6)*RND()) & '.wav\' AUTOSTART=\'TRUE\' LOOP=\'FALSE\' HIDDEN=\'YES\'></embed>\n'")
."
."%>
When i run the page, i get an error message reading:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /usr/local/psa/home/vhosts/coldzero.net/httpdocs/themes/ColdZero/theme.php on line 109
That line corresponds to the line starting with ."Respoonse.write.
Frankly, i dont have a clue what a parse error is. I've been told that the <% indicates ASP scripts. What am i doing wrong? Is there and easier way?😕
Thanks for your time
ColdZero