|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
I am passing company name entered by the user on our site to a system command. But whenever a user enter's some special char like Ü or É then the command fails. I want to know how to handle these character's while passing them to a system command.
I am using Exec() of php. any help is appreciated.
|
|
|
|
Joined: May 2000
Posts: 125
Member
|
Member
Joined: May 2000
Posts: 125 |
Try $yourvariable = rawurlencode($yourvariable) before to use the exec function and check you really can use this function (it needs safe_mode in php.ini set to off).
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
I have tried using urlencode and rawurlencode but they change the character to its hex value which I don't want. I want something like escape() in javascript.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|