Cleanest and foolproof way to append query string to URLs (PHP)
What is the best way in PHP to append a query string to a URL? I don't want to merely paste a query string into a text like just appending it.
No assumptions made. Suppose the URL already contains Code:
some_file.php?value=0 Code:
some_file.php?value=0&next=something Code:
somefile.php?next=something And should this be done using my own custom function or is there an existing PHP function which appends query strings to URLs cleanly? |
Quote:
|
That's PHP 5. I'm afraid I'm still stuck to PHP 4 (sorry, but my host still has only PHP 4 so I'm forced to create apps in PHP 4.
Is there any equivalent PHP 4 function? |
Quote:
|
Ah. I see. Thanks. Somebody has written that function for PHP 4.
|
All times are GMT -5. The time now is 09:50 PM. |