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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.