I copied Mathimulgil's gd-verification script into a blank text document (in between <? ?>, of course), called it "gdinfo.php", transferred it to my server and ran it. the result was:
Parse error: syntax error, unexpected T_FUNCTION in /homepages/26/ ... /public_html/gdinfo.php on line 11
Line 11 - 13:
if ( preg_match('/image.*jpeg/i',function) )
echo $function, PHP_EOL;
}
Given that gd seems to work on the server in question, and that I am an ignorant code mangler who learns by doing, what should I have done in order to use the script successfully?
This matters. I'm having real problems installing an application I 'wrote' on a client's server, and I need to verify that gd works on his server. I get the same error message on his server as I do on mine, but that's probably not enough verification that his works, too, is it?
I hope someone can clear this up for me.
Thanks,
- Paul