lxndr Posted December 12, 2008 Share Posted December 12, 2008 A php script which has been running for some years has suddenly started generating a Forbidden 403 error and this seems to coincide with the host upgrading from php4 to php5. A number of items are passed in the URL including spaces represented as %20 and I think single quotation mark represented as %27 ... I suspect these may be responsible for the error. Can anyone confirm that's likely to be the case and suggest the best way to deal with it? TIA. Quote Link to comment https://forums.phpfreaks.com/topic/136606-passing-20-space-and-other-chars-to-an-url-php4-v-php5/ Share on other sites More sharing options...
Maq Posted December 12, 2008 Share Posted December 12, 2008 I really am not sure but I didn't some research and this article/blog came up. ModWest 403 Seems like it could be an Apache config or .htaccess problem... Quote Link to comment https://forums.phpfreaks.com/topic/136606-passing-20-space-and-other-chars-to-an-url-php4-v-php5/#findComment-713288 Share on other sites More sharing options...
lxndr Posted December 12, 2008 Author Share Posted December 12, 2008 I really am not sure but I didn't some research and this article/blog came up. ModWest 403 Seems like it could be an Apache config or .htaccess problem... I can access the script on it's own, that doesn't give a 403, it's when I call it and pass parameters in the URL that the Forbidden message crops up ... Having said that it is likely to be related to Apache rather than php isn't it .. I'll raise a support ticket and ask the host provider ... __ Quote Link to comment https://forums.phpfreaks.com/topic/136606-passing-20-space-and-other-chars-to-an-url-php4-v-php5/#findComment-713292 Share on other sites More sharing options...
Maq Posted December 12, 2008 Share Posted December 12, 2008 Are you using URLencode /decode? Quote Link to comment https://forums.phpfreaks.com/topic/136606-passing-20-space-and-other-chars-to-an-url-php4-v-php5/#findComment-713296 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.