It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming PHP and MySQL Forum

I want to insert a forbidden character in a url

Moderator: Malcolm

I want to insert a forbidden character in a url

Postby mihai209 on Mon Sep 20, 2010 2:12 pm

I'm trying to insert the symbol " into direct address and i get this error :D . Forbidden

You don't have permission to access .../get_com_page.php on this server.
Apache 1.3.24 Server at http://www.____.com Port 80

Can some1 help me please :D , i tried Url ecoding and insert it in ascii code but i still get the same error .

Thanks in advanced.
mihai209
 
Posts: 1
Joined: Fri Sep 10, 2010 10:26 pm

Re: I want to insert a forbidden character in a url

Postby HotNoob on Mon Sep 20, 2010 9:37 pm

use base64_encode and base64_decode
---
that would probably be the easiest way.

otherwise, you can assign a combination that you can string replace later.

forexample...
||SC||
in php you would do something like

$str = str_replace('Special Char Here', '||SC||', $str);

Then to decode it
$str = str_replace('||SC||', 'Special Char Here', $str);
HotNoob
100+ Club
 
Posts: 169
Joined: Sun May 02, 2010 1:38 am


Who is online

Users browsing this forum: No registered users and 0 guests