Click here to Skip to main content
16,019,876 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionWhy my field returns boolean instead of object? Pin
Member 1399562824-Sep-18 3:12
Member 1399562824-Sep-18 3:12 
AnswerRe: Why my field returns boolean instead of object? Pin
Graham Breach24-Sep-18 3:48
Graham Breach24-Sep-18 3:48 
GeneralRe: Why my field returns boolean instead of object? Pin
Member 1399562824-Sep-18 3:50
Member 1399562824-Sep-18 3:50 
GeneralRe: Why my field returns boolean instead of object? Pin
Graham Breach24-Sep-18 4:57
Graham Breach24-Sep-18 4:57 
AnswerRe: Why my field returns boolean instead of object? Pin
SiFinances28-Oct-18 0:52
SiFinances28-Oct-18 0:52 
Questionhow to find daily cash book record from two tables with php mysql Pin
Faruk Web10-Aug-18 21:46
Faruk Web10-Aug-18 21:46 
QuestionGet data attribute from an array of select box Pin
Member 85505912-Aug-18 16:23
Member 85505912-Aug-18 16:23 
QuestionHow to allow access to a yii web application for specific users using .htaccess Pin
Member 139352711-Aug-18 23:20
Member 139352711-Aug-18 23:20 
I am using yii2 basic application template and developed an application.
I am using VPS server for hosting this application on a domain on Host gator.

Now I want that only office users should access this application i.e, (while accessing this application using domain, .htaccess file should check if the IP accessing this domain is allowed to have access. If yes, then that IP should be able to have access, else that IP should see a message containing Access Denied).

If we do this then how to specify IP addresses in .htaccess file. Do we need to specify the static IP addresses of the employees in our organization?

If we write the foll code in .htaccess,

order allow,deny
allow 192.168.1.3
deny from all

Here, which IP address to be specified? Do we need to specify the Public IP or routers Private IP or static IP?

How to accomplish this?


Does IP address change from network to network. When I connect to my WiFi, i get my public IP. So this IP is unique in the world?

AnswerRe: How to allow access to a yii web application for specific users using .htaccess Pin
Richard MacCutchan2-Aug-18 0:40
mveRichard MacCutchan2-Aug-18 0:40 
AnswerRe: How to allow access to a yii web application for specific users using .htaccess Pin
Richard MacCutchan2-Aug-18 1:31
mveRichard MacCutchan2-Aug-18 1:31 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Member 139352712-Aug-18 1:35
Member 139352712-Aug-18 1:35 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Richard MacCutchan2-Aug-18 3:49
mveRichard MacCutchan2-Aug-18 3:49 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Member 1393527114-Aug-18 1:02
Member 1393527114-Aug-18 1:02 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Member 1393527114-Aug-18 1:02
Member 1393527114-Aug-18 1:02 
QuestionHow Can I Start Learning PHP Pin
Andre Hoss3-Jul-18 7:03
Andre Hoss3-Jul-18 7:03 
AnswerRe: How Can I Start Learning PHP Pin
Richard MacCutchan3-Jul-18 8:27
mveRichard MacCutchan3-Jul-18 8:27 
AnswerRe: How Can I Start Learning PHP Pin
Member 1501179923-Dec-20 7:29
Member 1501179923-Dec-20 7:29 
Questionphp-mysql Pin
Raja Jee2-Jul-18 18:38
Raja Jee2-Jul-18 18:38 
AnswerRe: php-mysql Pin
Richard MacCutchan2-Jul-18 21:09
mveRichard MacCutchan2-Jul-18 21:09 
Questiontrying to get ipn simulator to work.... Pin
piano001126-Jun-18 1:35
piano001126-Jun-18 1:35 
AnswerRe: trying to get ipn simulator to work.... Pin
Richard MacCutchan26-Jun-18 2:07
mveRichard MacCutchan26-Jun-18 2:07 
QuestionHow to run .html file as default then will run .php of wordpress in same folder by using .htaccess Pin
Member 1388249624-Jun-18 23:32
Member 1388249624-Jun-18 23:32 
Rant[REPOST] How to run .html file as default then will run .php of wordpress in same folder by using .htaccess Pin
Richard Deeming25-Jun-18 7:32
mveRichard Deeming25-Jun-18 7:32 
QuestionHow can I set the timestamp to 0? Pin
piano001114-Jun-18 2:38
piano001114-Jun-18 2:38 
Questionhow to add multiple sql queries? Do I need to join two queries? Pin
piano001110-Jun-18 17:50
piano001110-Jun-18 17:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.