Click here to Skip to main content
15,922,145 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: Handling HTTP Errors Pin
Graham Breach26-Jan-12 3:41
Graham Breach26-Jan-12 3:41 
Questionchange address link Pin
Member 790448226-Jan-12 0:38
Member 790448226-Jan-12 0:38 
QuestionHow can i add simple texteditor to my application Pin
DeepthiTanguturi25-Jan-12 22:17
DeepthiTanguturi25-Jan-12 22:17 
AnswerRe: How can i add simple texteditor to my application Pin
thatraja26-Jan-12 0:25
professionalthatraja26-Jan-12 0:25 
QuestionI want to clear something about PHP and HTML (newbie) Pin
flashery23-Jan-12 20:46
flashery23-Jan-12 20:46 
AnswerRe: I want to clear something about PHP and HTML (newbie) Pin
Graham Breach23-Jan-12 22:32
Graham Breach23-Jan-12 22:32 
GeneralRe: I want to clear something about PHP and HTML (newbie) Pin
flashery23-Jan-12 22:37
flashery23-Jan-12 22:37 
GeneralRe: I want to clear something about PHP and HTML (newbie) Pin
Jon Heather25-Jan-12 9:40
Jon Heather25-Jan-12 9:40 
AnswerRe: I want to clear something about PHP and HTML (newbie) Pin
markkuk24-Jan-12 0:52
markkuk24-Jan-12 0:52 
GeneralRe: I want to clear something about PHP and HTML (newbie) Pin
flashery24-Jan-12 1:11
flashery24-Jan-12 1:11 
AnswerRe: I want to clear something about PHP and HTML (newbie) Pin
Necron81-Feb-12 5:18
Necron81-Feb-12 5:18 
Question2 outta 3 ain't bad....but why is ftp_put() failing...? Pin
cjoki23-Jan-12 10:30
cjoki23-Jan-12 10:30 
AnswerRe: 2 outta 3 ain't bad....but why is ftp_put() failing...? Pin
User 171649223-Jan-12 11:50
professionalUser 171649223-Jan-12 11:50 
GeneralRe: 2 outta 3 ain't bad....but why is ftp_put() failing...? Pin
cjoki27-Jan-12 4:51
cjoki27-Jan-12 4:51 
QuestionA form data with cascading dropdown and photo for upload Pin
awedaonline23-Jan-12 4:03
awedaonline23-Jan-12 4:03 
AnswerRe: A form data with cascading dropdown and photo for upload Pin
Mohibur Rashid24-Jan-12 22:34
professionalMohibur Rashid24-Jan-12 22:34 
GeneralRe: A form data with cascading dropdown and photo for upload Pin
awedaonline25-Jan-12 21:43
awedaonline25-Jan-12 21:43 
QuestionPHP & JavaScript integration Pin
MacRaider423-Jan-12 1:53
MacRaider423-Jan-12 1:53 
AnswerRe: PHP & JavaScript integration Pin
Graham Breach23-Jan-12 2:37
Graham Breach23-Jan-12 2:37 
GeneralRe: PHP & JavaScript integration Pin
MacRaider423-Jan-12 2:49
MacRaider423-Jan-12 2:49 
GeneralRe: PHP & JavaScript integration Pin
Graham Breach23-Jan-12 3:55
Graham Breach23-Jan-12 3:55 
GeneralRe: PHP & JavaScript integration Pin
MacRaider423-Jan-12 4:45
MacRaider423-Jan-12 4:45 
QuestionGetting the URL Minus the Query String Pin
Kevin Li (Li, Ken-un)22-Jan-12 17:49
Kevin Li (Li, Ken-un)22-Jan-12 17:49 
AnswerRe: Getting the URL Minus the Query String Pin
Peter_in_278022-Jan-12 18:24
professionalPeter_in_278022-Jan-12 18:24 
GeneralRe: Getting the URL Minus the Query String Pin
Kevin Li (Li, Ken-un)22-Jan-12 20:46
Kevin Li (Li, Ken-un)22-Jan-12 20:46 
Interestingly enough, I get all the pieces of the request neatly delimited by ampersands.

mysite.com/a/b/c?d=1&e=2&request=3
Debug Output

Request ($_SERVER["REQUEST_URI"]): "/a/b/c?d=1&e=2&request=3"
Request ($_GET["request"]): "3"
Request ($_SERVER["QUERY_STRING"]): "request=index.php&request=a/b/c&d=1&e=2&request=3"
d="1"
e="2"


mysite.com/a/b/c?d=1&e=2&request=%26+%3F
Debug Output

Request ($_SERVER["REQUEST_URI"]): "/a/b/c?d=1&e=2&request=%26+%3F"
Request ($_GET["request"]): "& ?"
Request ($_SERVER["QUERY_STRING"]): "request=index.php&request=a/b/c&d=1&e=2&request=%26+%3F"
d="1"
e="2"


Although the key-value pairs remain encoded, I guess it's still better to just use explode to get the key-value pairs first and then explode the resulting items to get the keys and values.


My GUID: ca2262a7-0026-4830-a0b3-fe5d66c4eb1d Smile | :)

Now I can Google this value and find all my Code Project posts!

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.