WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] PHP 4.x lacks mysql_set_charset() function; ZenphotoPress exits without output (3 posts)

  1. nucflash
    Member
    Posted 4 years ago #

    My server is running PHP 4.8 which doesn't support the mysql_set_charset() function. For ZenphotoPress to display images in the widget, and show albums in the box where I type in my posts, I had to comment line 436 in zenphoto_bridge.php:
    mysql_set_charset('utf8', $zp_db_link);
    change it to:
    // mysql_set_charset('utf8', $zp_db_link);

    now ZenphotoPress works perfectly--although I'm not aware of the side-effects of the change; my database is in english. ZenphotoPress rocks! Thanks for the great work!

    http://wordpress.org/extend/plugins/zenphotopress/

  2. Simbul
    Member
    Posted 4 years ago #

    I don't think you'll have any side effect.

    Anyway, in the latest development version the issue is solved (by checking whether mysql_set_charset() exists before using it).

  3. nucflash
    Member
    Posted 4 years ago #

    Thank you Simbul! I'll update asap! :)

Topic Closed

This topic has been closed to new replies.

About this Topic