HTTP 500 Error (PHP)

This code is not working, it’s returing a HTTP 500 error, is there a fix I need?

fwrite ($handle,"<ueuo><b desc><img src=https://www.gravatar.com/avatar/" . md5( strtolower( trim( "$email" ) ) ); ."?s=200 alt=pfp>"  $name . "</b><br>" . $title . "<br>" . $desc . "<p id=sm></p></ueuo>");

It is pulling data from Gravatar.

Perhaps try finding an error message?

2 Likes

I got this
Parse error : syntax error, unexpected ‘;’, expecting ‘)’ in /home/vol9_6/epizy.com/epiz_31690052/htdocs/index.php on line 9

Found your problem, it was quite obvious.

5 Likes

After, removing that semicolon, it’s still not working.

Code again

fwrite ($handle,"<ueuo><b desc><img src=https://www.gravatar.com/avatar/" . md5(strtolower( trim( $email ) ) ) ."?s=200 alt=pfp>"  $name . "</b><br>" . $title . "<br>" . $desc . "<p id=sm></p></ueuo>");

Fixed, i forgot to pot the dot within $name.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.