Jump to content

birbal

Members
  • Posts

    2,543
  • Joined

  • Last visited

Everything posted by birbal

  1. you wan to work with stored email in your account?
  2. error reporting constant is also a number. so applying bitwise operator on them is same as applying on numbers.
  3. it is php error not mysql. you have missed closing quote in $sql;
  4. Use unix timestamp to store date time and use local timezone to output local time.
  5. you should restructure your array to another dimension. $service['price']="foo"; $service['name"]="bar";foreach ($serviceslist as $value ){echo $value['price'] . $value['name'];echo '<br>';}?> Also if you want to use print data proper order using print_r(), you should use the second parameter. http://php.net/print_r
  6. yes, exactly so. the links can be pass thorugh a php page from his server. like passing the page link as parameter and that page will handle the request making process. It is the only problem with anchors,forms etc. but links to stylesheet and JS page can be handled directly without calling it from server (unless it needs to be proxied too). But those links need to be figured out of their actual URL by its relative URL to point correct location.
  7. You can use DOM though to get the links of stylesheet, JS file and other links. and make separate request to those web resource.What you are asking is like proxy. Absolute links will work any way. You need to take care of relative links.
  8. birbal

    please help

    Do the basics. Start with developing small real life application. Use PHP manual as reference. learn from the mistakes.
  9. yes. you cant have both. More Detailed picture, more pixels, more spaces to store data about those pixels.
  10. birbal

    storing prices

    First param is total digits including integer part and fraction part. Second one is number of fraction part.So (3,2) can be max to 9.99
  11. birbal

    logout function

    Unsetting the session wont delete the session. It will just unset the session value. Session_destroy() will delete the server side session data. But there will be still session cookie on browser. Though that cookie cant get any data as in server that session is deleted and that cookie will expire on his own after certain time (as your session cookie setting was set. But i would like to delete the cookie imidiately once the user log out. Normal cookie deletion technique applies here
  12. birbal

    logout function

    yes, remember me cookie and session cookie, both.
  13. check the data, dump it in console.log(). verify the data it is sending to the data.php. unless you are using a php page to generate JS page, <?php echo $gender;?> this wont work. php code block only execute in php context.
  14. birbal

    logout function

    You need to delete both cookie or any other user related data anyway when user logout.
  15. birbal

    storing prices

    for storing currency best to use decimal. float has issues to loss data in arithmetic operation.
  16. birbal

    transaction logging

    If you want to log it in background, you can use exception with specific message and/or the sql dump in the message. and use a specific exception handler for that particular type of exception that handler will dump the data to flat file or inform the admin or any thing you want to do with it.
  17. birbal

    Topic Tags?

    AFAIK their is not list of valid tag. any tags can be put.
  18. I am not aware of that particular module. I believe you need to look into websocket.
  19. 32 bit version can be ran on both 32 and 64 bit. TS means thread safe. VC9 is compiler that is used to compile the binary. they should match with your existing php installation.
  20. birbal

    calendar

    @justsomeguy@thescientist other than data and presentation layer separation what is the beinift of using extjs or other front end framework over traditional html-jquery-js ?
  21. birbal

    error handling

    I prefer to set error mode to Exception and catch that on failure.
  22. http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDQQ0gIoADAA&url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.0%2Fen%2Fstatement-optimization.html&ei=BwYsUvXpG4bnrAey_4GgDw&usg=AFQjCNE89_2AvOgNb23cjUqAy2kkFZ0Bfg&bvm=bv.51773540,d.bmk http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC4QFjAA&url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.0%2Fen%2Foptimization.html&ei=BwYsUvXpG4bnrAey_4GgDw&usg=AFQjCNEL2dVOUOdxwIE6eFTLeXFowYqi6w&bvm=bv.51773540,d.bmk https://www.google.co.in/search?client=firefox-a&hs=O5D&rls=org.mozilla:en-US:official&q=mysql+optimizing+queries&revid=1664720397&sa=X&ei=BwYsUvXpG4bnrAey_4GgDw&ved=0CG4Q1QIoAA&biw=1536&bih=669 https://www.google.co.in/search?client=firefox-a&hs=O5D&rls=org.mozilla:en-US:official&q=mysql+optimizing+table&revid=1664720397&sa=X&ei=BwYsUvXpG4bnrAey_4GgDw&ved=0CG8Q1QIoAQ&biw=1536&bih=669
  23. birbal

    error handling

    you need to detect when does your queries are failing and according to that you need to rollback. check method for 'rollback' in whatever API you are using
  24. What would do those scripts? Why not using regular php file for admin job?
×
×
  • Create New...