Tag : Path


How to get current url with query string in codeigniter?

If you require to get current URL with parameters in your codeigniter project then you can get easily using "url" helper. Codeigniter provide url helper library that way we can get existing page url or base url etc. you can also get only parameters without URL using "input" as like bellow. <pre> $parameters = $this->input->get(); </pre> But, we are getting full path using "url" helper and $_SERVER variable. So, you can see how to get full path using both as bellow: <strong>Example:</strong> <pre class="prettyprint lang-php"> $this->load->helper('url'); <br/> $currentURL = current_url(); $pa.....

By Hardik Savani | August 29, 2016 | | 6165 Viewer | Category : Codeigniter
READ MORE

How to get current url path example in Jquery?

Sometimes we need to get current URL in jquery file, we can get current URL or path of our current page in javascript using "window.location". In this post i give you three way to get current url in your js file as there are bellow listed: <strong>1.window.location.href</strong> <strong>2.$(location).attr("href")</strong> <strong>3.window.location</strong> Ok, so you can check bellow example code and run in your system. <strong>Example:</strong> <pre class="prettyprint lang-html"> <html lang="en"> <br/> <head> <title>JQuery - get current URL Example</title> &l.....

By Hardik Savani | July 27, 2016 | | 2005 Viewer | Category : Javascript jQuery
READ MORE

How to get folder path from file path in PHP?

Sometimes, we require to get directory path from Image path or file url in our PHP website or any PHP framework website at that time we can get folder name using php pre-define function dirname. If you ever use this function then you can see as bellow example how it's works. I have one image url like, i want to just get folder path then you can get folder path like this way : <strong>Example:</strong> <pre class="prettyprint lang-php"> dirname('http://localhost:8000/upload/images/test.jpg'); </pre>

By Hardik Savani | July 4, 2016 | | 657 Viewer | Category : PHP
READ MORE

How can i get the path from laravel application root?

Laravel provide several helper to get path of public directory, app directory, storage directory and base directory. It will help to store files, read file from path and also for other from controller, view files, model etc. You can see as bellow how to get path of that directory using helper one by one. <br/> <strong>How to get public folder path in laravel ?</strong> <pre class="prettyprint lang-php"> public_path(); // Path of public/ </pre> <br/> <strong>How to get base path(Project Root) in laravel ?</strong> <pre class="prettyprint lang-php"> base_path(); // Path of application root </p.....

By Hardik Savani | June 27, 2016 | | 4807 Viewer | Category : Laravel
READ MORE

How to set ANDROID_HOME environment variable in ubuntu?

In this post i want to share with you how to set android home environment variable in ubuntu os. when i fatch this issue i tired to solve this issue because when i run my app i always found following error : <pre> The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android. </pre> I found above error if i already install android in my ubuntu 14.04 system. But at last i found solution from my senior. First i download my android and and put that on any where that downloaded folder of android .....

By Hardik Savani | April 14, 2016 | | 18356 Viewer | Category : Installation Ubuntu
READ MORE

    PHP MySQL - Simple Image Gallery CRUD example from scratch

    PHP MySQL - Simple Image Gallery CRUD example from scratch

    Open Post

    How to add ckeditor with image upload in Laravel ?

    How to add ckeditor with image upload in Laravel ?

    Open Post

    Simple Add remove input fields dynamically using jquery with Bootstrap

    Simple Add remove input fields dynamically using jquery with Bootstrap

    Open Post

    Laravel 5 Instagram API tutorial with example

    Laravel 5 Instagram API tutorial with example

    Open Post

    Laravel 5 - Twitter API using thujohn/twitter composer package tutorial

    Laravel 5 - Twitter API using thujohn/twitter composer package tutorial

    Open Post

    PHP - import excel file into mysql database tutorial

    PHP - import excel file into mysql database tutorial

    Open Post