Register for your free account! | Forgot your password?

You last visited: Today at 06:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



URL Encode

Discussion on URL Encode within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 329
Join Date: Jan 2010
Posts: 6,047
Received Thanks: 1,741
URL Encode

Huhu,

habe ein Problem mit URL Encode.

Und zwar soll zum Beispiel der Text "3D Smooth Professional Corn & Callus Removal Tool" URL-freundlich gemacht werden.

Bei mir kommt dann sowas raus: 3D+Smooth+Professional+Corn+%26+Callus+Removal+Too l

Ich möchte aber, dass aus den Leerzeichen kein +, sonder ein - wird.

Jemand eine Idee wie ich sowas ändern kann?


/e:

Derzeit siehts so aus:

Quote:
$cTitle = urlencode($rsData['Link']);
Wie soll das dann mit dem str_replace(); aussehen um Leerzeichen, Klammern und Und-Zeichen abzuändern?
No Hawx is offline  
Old 06/16/2012, 14:10   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 319
Received Thanks: 88
$str = preg_replace("/\s/", '-', $str);
Fratyr is offline  
Old 06/16/2012, 14:11   #3
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
Mit der PHP-Funktion str_replace();
Mikesch01 is offline  
Old 06/16/2012, 14:22   #4
 
elite*gold: 329
Join Date: Jan 2010
Posts: 6,047
Received Thanks: 1,741
Derzeit siehts so aus:

Quote:
$cTitle = urlencode($rsData['Link']);
Wie soll das dann mit dem str_replace(); aussehen um Leerzeichen, Klammern und Und-Zeichen abzuändern?

Habe es hinbekommen, kann geclosed werden!
No Hawx is offline  
Reply


Similar Threads Similar Threads
how to use Crypt.exe to encode the PK (config.pk and e.pk) . and what's the step?
06/17/2011 - Kal Online - 1 Replies
how to use Crypt.exe to encode the PK (config.pk and e.pk) . and what's the step?
Encode Engine
02/04/2010 - Kal Online - 0 Replies
hey guys i have found server what i can hack money at it ... but there's a problem they deleted all Pup Merchent Items maybe i can add bombo keg agin by encoding the Config.pk3 can any one help me at this ?
encode/encrypt kal packets frage
08/20/2009 - Kal Online - 20 Replies
Hi Ich habe etwas angefangen mit Kal Programmierung. Ich verstehe leider das encrypten noch nicht ganz. Ich habe die Crypt Tabelle mir aus der engine.exe (standart privat server ohne veränderungen) geholt. Habe meine Crypt Tabelle auch mit den ersten 51.200 Zeichen von BakaBugs geposteter Tabelle verglichen. (erfolgreich ;) Erstmal was allgemeines zur Crypt Tabele: Es gibt 256 Zeichen und die Crypt Tabelle ist 51.200 bytes groß, daraus folgt also es gibt 200 verschiedene Keys. (Hatte...
encode/decode
08/13/2009 - Shaiya - 0 Replies
which program I can use to decode / encode the packet, someone knows?



All times are GMT +1. The time now is 06:21.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.