Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I have discovered that i have magic quotes turned on in my php.ini file. If I turn them off will this affect the FX.php plug-in adversely? I can't validate apostrophes in text fields using regular expressions while mahic quotes are turned on.

I can't validate apostrophes in text fields using regular expressions while mahic quotes are turned on.

... Why not?

Use an escape character: e.g. '''

  • Author

See http://www.jimmysworld.org/article.html?aID=59 re how annoying magic quotes are.

Here's the code:

if(preg_match('/^[a-zA-Z0-9'-, ]+$/', $payername_1) != 1) {$errors['payername']= 'The payer name may only contain text.';}

If I add '

if(preg_match('/^[a-zA-Z0-9'-,' ]+$/', $payername_1) != 1) {$errors['payername']= 'The payer name may only contain text.';}

the script still rejects apostophes.

Cheers,

Steven

Anyway, better idea:

if( get_magic_quotes_gpc() )

$payername_1 = stripslashes($payername_1) ;

then do your preg_matching.

  • 2 weeks later...
  • Author

Thanks Genx,

A friend suggested I run phpinfo.php to see where in our server the magic_quotes_gpc file was located. It was found without difficulty and our IT Manager switched the annoying things off. It hasnt had any advers effect on FX.php or our system.

Thanks,

Steven

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.