Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get current url in codeigniter

simple get like this

echo $this->input->get('my_id');
Load the URL helper To get current url

$currentURL = current_url(); //http://myhost/main

$params   = $_SERVER['QUERY_STRING']; //my_id=1,3

$fullURL = $currentURL . '?' . $params; 

echo $fullURL;   //http://myhost/main?my_id=1,3
Comment

PREVIOUS NEXT
Code Example
Php :: get thumbnail alt wordpress 
Php :: background image in laravel blade 
Php :: Hours to minute convert in php 
Php :: fix to 2 decimal places php 
Php :: php cut off first x characters 
Php :: Disable update notification for individual plugins 
Php :: php filter email 
Php :: how validate hash string in laravel 
Php :: category name wp query 
Php :: wordpress if admin 
Php :: php program to validate phone number using regular expression 
Php :: v0.8.1 requires ext-curl * - the requested PHP extension curl is missing from your system. 
Php :: db not found in laravel 
Php :: laravel clear everything 
Php :: year shortcode wordpress 
Php :: display category name wordpress 
Php :: laravel dateinterval not found 
Php :: laravel insert 
Php :: php find keyword in string 
Php :: php file_get_contents url 
Php :: codeigniter db where between 
Php :: beautify var_dump 
Php :: logout php 
Php :: install php7.4 linux 
Php :: php echo html as text 
Php :: default port for laravel 
Php :: how to get javascript variable value in php 
Php :: php get time in milliseconds 
Php :: No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration 
Php :: increment single column laravel 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =