Jump to content

Anything else besides &?


darklight

Recommended Posts

Wow what a vague, vague question....

 

Anyway, you could always make PHP explode and use the $_SERVER['QUERY_STRING'].

 

For example:

 

if the following page was named test.php and you went to http://yoursite.com/test.php/corbin/type1/....

 

$q = $_SERVER['QUERY_STRING'];
$e = explode('/', $q);
if(count($e) < 2) {
    echo "All of the information wasn't supplied.";
}
else {
    echo "The name is {$e[0]} and the type is {$e[1]}.";
}

 

That would say, The name is corbin and the type is type1.

Link to comment
https://forums.phpfreaks.com/topic/81964-anything-else-besides/#findComment-416482
Share on other sites

I have an answer and a question..

 

The answer is that ";" can sometimes be used instead of "&"

 

The question is:  TCP is at a lower level to HTTP, and deal with connections between hosts.  HTTP is the level at which "&" is used.  I would not expect a TCP object to deal with "&", which is an HTTP thing.  Are you using the right object?

Link to comment
https://forums.phpfreaks.com/topic/81964-anything-else-besides/#findComment-416509
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.