Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-01-09 17:38:32

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

UTF8 Validation Problems

Hi,

If any validation problems appear (like a string that is a valid username, returns as not being invalid) then the problem is PCRE. On some
servers (just had this problem while installing and migrating a site from mediaxxxscript to adult script pro) PCRE is not compiled with
UTF8 and/or Unicode Properties Support. If this is the case, here's the solution (you need ssh root access):

If PHP is dinamically linked to the installed PCRE library (usually when PHP is installed from rpm) on CentOS 5:

yum install rpm-build
cd /usr/src/redhat
wget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/pcre-6.6-2.el5_1.7.src.rpm
rpm -ivh pcre-6.6-2.el5_1.7.src.rpm
cd /usr/src/redhat/SPECS
vi pcre.spec

Make sure the spec contains this line:

%configure --enable-utf8 --enable-unicode-properties

Continue:

rpmbuild -bb pcre.spec
cd /usr/src/redhat/RPMS/your-arch-here (i386 or x86_64)
rpm -U pcre-*.rpm

If the installed PHP is compiled with its own PCRE library you need to recompile PHP
and add: --enable-utf8 to the configure line

This is rarely a problem now as its required for Drupal/Joomla to work correctly, so most hosting servers have this by default.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB