Jump to content


  • Posts

  • Joined

  • Last visited

About lilmer

  • Birthday 10/07/1990

Profile Information

  • Gender
  • Location
    Somewhere here in the universe.
  • Interests
    I have interest in you, do you have interest on me?

Contact Methods

  • Yahoo

lilmer's Achievements

Regular Member

Regular Member (3/5)



  1. lilmer

    Dynamic URL

    I am new to Laravel, I have registration form which set an extension on the URL on the database table for each user. Example. I am using Laravel 5.6. Anyone can suggest what is the best way to get check if the URL exist on the database and it will proceed. As I now I try to set the Model and make a condition on the config/routes.php to check if the extension from database, but I know it is not the best solution.
  2. Hello, I've got a question about ddos attack. As happen before our site has been attack, i think it was a ddos attack which crash our server. Back then our web app and database are on the same server. As now web app and database are separate. site is on windows server and its connected to database from other server also (Linux). If an attack like that happen again, is the database server can be prevent from crashing as it is now separate? Thanks. I have a site running on windows server and its connected to database from other server also (Linux).
  3. 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.
  4. 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.
  5. 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.
  6. 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?
  7. Wow, I didn't know that. I thought it is just use for relationship. Thank you guys
  8. 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.
  9. 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
  10. 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:
  11. 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>
  12. 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
  13. Yes Sir elseif, but on logic of getting `Pending`, `Incomplete` etc.. base on the array, is there other way?
  14. 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'; }
  15. I want to get something unique like MAC address of a client computer, that can determine each client uniqueness when visiting the site.
  • 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.