Jump to content

birbal

Members
  • Posts

    2,543
  • Joined

  • Last visited

Everything posted by birbal

  1. have you imported the backup data which you were exported using phpmyadmin?
  2. There is several ways but none of them are accurate. you can use img tag which will point to a php file which. everytime the email will be opened it will send a request to it. also you can use iframe. but problem is most of email client block those for same reason.
  3. foreign key does not insert data to automatically. what it does is check the data in child table and verify it against referenced parent table's column.
  4. you will also need to take a look into mysql tutorials. I am not restraining you from learning js. but i would prefer to go like this html>css>php>mysql>js if you want to do the login system js will hardly help with it core functionality. you can do fancy things later with js always
  5. for graphical interface you will use html (for layout) css (for styling), php will add functionality and you will need js if you want to anything fancy (like popups, without reload login) Download the firebug for firefox or any other developer tools for specific browser if you want to see how the elements and styles are used. developers tools also will save your time alot later. Stat with graphical interface if you are comfortable with html and css and then move into php. once you grasp the basics we can help you more accurately on your problem. also if you want, can check the php forum where there iis sticky post of a login script to get and idea.
  6. birbal

    picture

    you need to insert image in database or in filesystem for each user. the image will be associated with the user. when user get logged in you need to pull out the picture and display it using image tag.
  7. what problem are you facing? what do you mean by log file? login system or you want to just write to flat files?
  8. if you are talking about best and free http://php.net there is .chm version of the manual to download check the download section. there is no substitute of that
  9. I am not aware of any JS certification but for PHP there is zend certification which is quite recognised. though it is solely up to employer or client what they make priorities. a degree/diploma in computer science with a good portfolio of bunch of real life application projects would be nice to start of
  10. birbal

    ffmpeg

    also they disabled that for one reason , if you use ffmpeg to dynamically fetch frame of videos it will be CPU intensive task. as shared hosts are limited in CPU usage, you will probably hit the margin sooner. I would say go for VPS plan would be better.
  11. birbal

    ffmpeg

    another way is to decode the mp4 file itself. the frames are stored as binary image. in meta information of file you can find the framerate. so you can calculate frame number of any video files and can extract the data to dump it in image file. But that will be little time consuming task as you need to read through the specification.
  12. WAMP is for windows you can download of its sibling LAMP which are for linux flavored systems. they include php apache mysql. before you install it you make sure to uninstall any previous installation of any of those.
  13. you can also use prepared statments which are more better than escaping. also if you have access to php.ini you can set "magic_quote_gpc" off from there.
  14. you need to install sendmail and set up the path in php.ini to point to the sendmail binary. It is also possible that you may have already sendmail in another location, in that case you need to point to correct binary path.
  15. birbal

    Info about sockets

    what are you trying to do actually?
  16. what you see in php info is configuration of connecting to SMTP server. what if SMTP server itself is not there? you need to check that. check your running services that SMTP server is running or not. check the sendmail path.
  17. you need to use ajax to submit the form dynamically. http://w3schools.com/ajax and you can use DOM to manipulate the node where it needs update. when user click on edit you will change the content of node using DOM and then send the ajax request to update. if request failed fallback to previous data in that node which is being updated or show some error.
  18. that is not javascript when use input=file, it is the html which is being interpreted by browser and browser is bound to use that hardcoded behaviour(you/other website can not change that) when you use it. the reason js is sanboxed for security reason, so that unknown source dont have access to client filesystem. browser can itself access files (that is what it do with cookie files saved in your computer) but js can't (it actually can but it is blocked in browser context)
  19. here is the link https://developer.mozilla.org/en-US/docs/Using_files_from_web_applications
  20. JS of browsers are sanboxed so it cant access local files. if you need to check existance of file in server you should use any server side language for that. also some newer browser supports "FILE API" which can get certain information about files.
  21. birbal

    primary keys

    you can check in "information_scheme" database for "table_constraints" how the keys are represented. the name used to identify keys uniquely in table scheme. it is more of need than performance. keys will work quite when you use multiple column for one keys.as example sometime you wants to use two column combination as unique. means column1 column2A BA AB AB A if you have unique constraint on column1 and column B the above values will be considered unique in each case(combination of both coulmn)
  22. when a user successfully logged in set the name of user from database in session. and display it where you want. http://w3schools.com/php/php_session.asp
×
×
  • Create New...