Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. $_SERVER['REMOTE_ADDR'] is the ip address your server sees. If your accessing a local server, this will likely be 127.0.0.1 or your LAN address.
  2. You need to use md5 again when your checking your users credentials or they will never find a match. $result=mysql_query("select * from myAdmins where myUserName='$myUserName' and myPassword='MD5($myPassword')"); Also, the tutorial your using looks like it's pretty dated. session_register has long been deprecated.
  3. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=343782.0
  4. I would just use jQuery. The rest of the framework comes in very handy anyway.
  5. Your can download the Ajax component alone, however it relies heavily on other parts of jQuery. https://github.com/jquery/jquery/blob/master/src/ajax.js If your looking for a simple Ajax library alone I would suggest looking at some of the micro frameworks. http://microjs.com
  6. trq

    strtotime

    No, but $todays_date needs to be a timestamp. In this case you can leave it out all together.
  7. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=343638.0
  8. This is a pretty subjective question really. I've never been much of a fan of CI, Zend on the other hand has quite a steep learning curve unless you are already very familiar with OOP concepts and design patterns. As for video tutorials? This is programming, bye a book or read the manual.
  9. You should install a local http server for development.
  10. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=343600.0
  11. Instead of simply returning a html fragment in your php code, use json_encode to return multiple values as a json object.
  12. If the OP was to post more details about where exactly they are stuck people would. As it stands, it's a pretty vague post.
  13. Is public_html/zend_training/bin on your path?
  14. I'm not sure why you would sign up to a public forum then.
  15. These forums are for open discussion, because open discussion benefits many. I find it quite rude that you would be in a room full of people yet stand in the corner whispering.
  16. Oh, another thing. If you don't have access to /usr/share/php (which you wont on shared hosting) you can just put the Zend directory whereever you like, then add it to your PHP include path either via the php.ini, or via ini_set in your Bootstrap file.
  17. PHP's include path is defined within the php.ini. It's generally set to somewhere like /usr/share/php, which means you would put the Zend directory found within library in /usr/share/php As for your systems execution path, this can be found easily by typing.... echo $PATH In a terminal. Generally, I create a local bin directory and place this on my $PATH, then any custom scripts I need on my path go in /home/<username>/bin You can add to your current $PATH by editing your .bashrc file found within your home directory. I line like: PATH=$PATH:$HOME/bin; export PATH Will do what I described above.
  18. This topic has been moved to Installation on Linux. http://www.phpfreaks.com/forums/index.php?topic=343589.0
  19. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=343577.0
  20. I've not really found any need for a book, the manual is pretty good.
  21. trq

    js question

    The jQuery framework makes this kind of thing simple. http://jquery.org
  22. Take a look at the Expect extension: http://www.php.net/manual/en/book.expect.php
  23. In general, you shouldn't need to make any changes to your configuration to simply serve files from a directory. Where exectly on the filesystem does this directory reside? And what is your servers configured document root?
  24. Downloading code from a website is not programming. I suggest you start by learning the language.
×
×
  • 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.