Jump to content

lilmer

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by lilmer

  1. As I describe on this, "on my IIS site when I don't allow folder to be access on web.config it will automatically show codeigniter 404 page as it should be," its 404 page by CI, not an apache 404. But on linux accessing folder is forbidden because of default index.html on every forbidden folder.
  2. Hello, I'm just confuse on the way apache and iis react on codeigniter framework accessing folder. on my IIS site when I don't allow folder to be access on web.config it will automatically show codeigniter 404 page as it should be, but on apache its not, its like I have to set 404 on .htaccess by that it will show apache 404 not on framework side. How do I set that accessing not allowed folder on apache will show framework 404.
  3. Nope, its not a usual page ads thats keeps on triggering every time you exit a site. This is for specific user and by user level, and once you agree to terms it will not pop again.
  4. Hello, I want to add a process that will trigger a show of advertisement or opening a new tab when the user close a the tab or browser. $(window).bind("beforeunload", function(e) { window.open(URL+'ads', '_blank'); return 'You are closing the browser'; }); The window.open and the return message is both not working. I tried also other possibilities but window.open is not working. Anyone knows about this?
  5. Wow, I didn't know that. I thought it is just use for relationship. Thank you guys
  6. Exactly, sorry if my question is hard to understand. so none, it can be null, I can make a condition on client side on that.
  7. The main point is to get all the user.. and base on the event date it can be check user status, like sample image date 2016-07-05
  8. I've got two tables user table - id - username - fname - lname - group_id event Table - id - user_id - event_time - event_date - event ('Arrival','Departure','Break',etc..) My problem is getting all user by group and joining other table even date, but it should be base on 'event_date' I use `LEFT JOIN` and `LEFT OUTER JOIN` but because I have to specify the `event_date` not all user can be shown because some are absent. I made this SELECt * FROM user as u LEFT OUTER JOIN event as e ON u.id = e.user_id WHERE u.group_id = 6 AND ( e.event_date = '2016-07-05' AND e.event = 'Arrival' ) GROUP BY u.id but it only show the user who has an event on the date specified. I tried to make an VIEW table but it still has the condition base on event_date. Although I made this on PHP by condition but it takes time to load as I select event on every user. is there a way to get it using SQL? it should be like this:
  9. I have tried to use this rule but ai'nt working as others as well.. is the issue with ?aggrement.. as it identify it as Get request. <rule> <match url="http://sub.domain.com/index.php?aggrement" /> <action type="Rewrite" url="http://sub.domain.com/index.php/aggrement" /> </rule>
  10. I've got a URL http://sub.domain.com/index.php?aggrement I am having a problem trying to change this to through IIS rewrite http://sub.domain.com/index.php/aggrement or http://sub.domain.com/aggrement and another question throught chaging.. is this can be rewrite without redirecting and load the controller directly " aggrement controller" I'm using codeigniter 3 as php framework. Thank you
  11. Yes Sir elseif, but on logic of getting `Pending`, `Incomplete` etc.. base on the array, is there other way?
  12. Is there a better way to do this? $p = 3; $a = 3; $b = 3; $arr = [$p,$a,$b]; if (in_array(0, $arr)) { return 'Pending'; } if ((in_array(2, $arr)) && !in_array(0, $arr)) { return 'Incomplete'; } if ((in_array(1, $arr)) && !in_array(0, $arr) && !in_array(1, $arr)) { return 'Approved'; } if (in_array(3, $arr) && !in_array(0, $arr) && !in_array(1, $arr) && !in_array(2, $arr)) { return 'Declined'; }
  13. I want to get something unique like MAC address of a client computer, that can determine each client uniqueness when visiting the site.
  14. Thank you for your response, I set it using codeigniter hooks, using PHP set_error_handler, register_shutdown_function for fatal erros.
  15. Is there away to get something unique on a client computer? I read about ActiveX but it is only works on IE. I need something that can work on other browsers also, maybe on PHP or on Javascript.
  16. The problem is that I've already implemented procedures that has no try-and-catch exceptions. Is there any procedure or functions that I can catch all PHP errors occurs in every page Globally?
  17. Thank you for response. I figure out the error was on web.config handlers. I tried to remove the handlers condition on web.config and it is now working fine. But the other site has handlers, I think it is also on how you install PHP including CGI.
  18. Codeigniter POST request empty. I tried to up my website on our production server which is using IIS8, post request is empty, I've tried to break codeigniter and post is working. It is also working on our staging server which is on IIS6. Does anyone has an issue on this on Codeigniter 3.
  19. I found that it can be setup on php.ini session.cookie_domain is it safe to use? can I test it directly through my hosting without any intervention on the web site. Our site now is up and running and ha a thousand of user.
  20. Hello, we got a site running in to different servers, the other one is a sub domain that will be use as internal pages and the other one is external. As of that I need to pass session to see if a user details. Is there a another secure way to pass session data to other server without storing on the database?
  21. I try to check using phpinfo() and I get $_SERVER["HTTP_X_REAL_IP"]
  22. Our website now is using Proxy we would like to get the Visitory IP. We try to get using HTTP_X_FORWARDED_FORbut it seems that doesn't get the IP. Were running the site on IIS.
  23. Anyone know how to force URL with SSL with www. <rewrite> <rules> <rule name="Redirect to HTTPS" stopProcessing="true"> <match url="(.*)" /> <conditions><add input="{HTTPS}" pattern="^OFF$" /> </conditions> <action type="Redirect" url="https://www.site.com/{R:0}" redirectType="SeeOther" /> </rule> </rules> </rewrite> Please check the sample. http://site.com to https://www.site.com http://www.site.com to https://www.site.com But when https://site.com to https://site.com it doesn't add www on the site URL. Anyone can help me.
  24. Okay got the correct URL rewrite. <rule name="Redirect to HTTPS" stopProcessing="true"> <match url="(.*)" /> <conditions><add input="{HTTPS}" pattern="^OFF$" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" /> </rule>
  25. Hello I have problem on redirecting the site to https when it comes to "www.site.com". I made this <rules> <rule name="Redirect site.com to www" patternSyntax="Wildcard" stopProcessing="true"> <match url="*" /> <conditions> <add input="{HTTP_HOST}" pattern="site.co" /> </conditions> <action type="Redirect" url="https://www.site.co/{R:0}" /> </rule> </rules> In this sample when I try to access the site through "site.com" it redirect to " https://www.site.com " but when I access the site to www.site.com the https doesn't appear.
×
×
  • 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.