Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=352720.0
  2. Have you heard of loops?
  3. Of course not. PHP is open source.
  4. A forked version generally means that the source code has been hacked in some manner making it different to the official version.
  5. mod_php is the fastest route as it is built into Apache and started when the server starts. All of the cgi's are started upon each request.
  6. No, you don't need any loop. Just pass the resource to mysql_fetch_assoc which will give you an array. This array will have your data in it.
  7. You don't have to do anything. Just pass it a complete url.
  8. Your going to need to escape $message. See mysql_real_escape_string
  9. Why don't you post some relevant code then?
  10. mysql_query returns a result resource not an integer.
  11. What?
  12. Storing data in a comma separated fashion within a database is generally a bad approach. It makes searching your data for more difficult.
  13. Is there a particular reason your not using a database for this? I think your making it more difficult then it needs to be.
  14. It's pretty simple logic: if (http_file_exists($your_url)) { trigger_error('exists!'); } else { // do whatever else you want. }
  15. Is there a particular reason your using fastcgi over mod_php? mod_php is far superior performance wise.
  16. Highly recommended though. One thing Iv'e learnt at my latest place of employment is that data integrity is best handled at the database level.
  17. This is quite normal, what exactly is the issue?
  18. That would be as simple as.... // authenticate the user if ($authenticated) { $_SESSION['loggin-in'] = true; } Then to check to see if they are logged in. if (isset($_SESSION['logged-in'])) { // do whatever }
  19. "0000-00-00 00:00:00" is not a timestamp.
  20. The first is checking to see if the request is of type POST. The secong is assigning a value to the variable $_POST.
  21. This topic has been moved to Application Frameworks. http://www.phpfreaks.com/forums/index.php?topic=352626.0
  22. In my experience, pay rises are closely tied to your attitude and commitment the job. I've had three large pay rises in the last 18 months. The first was solely because I got off my ass and found a better employer, the other two where because its plain to see that I love my job. I work back on a regular basis, often do extr work when I get home and am constantly coming up with ways to improve our workflow. I'm defenately not the best programmer in our shop, but a good attitude and enthusiasm will get you a ling way.
  23. That code is seriously inefficient and prone to errors because your not using any transactions. I would definitely recommend using mysqldump instead.
  24. phpMyAdmin is an interface to the MySql server. MS SQL is a database server. Two completely different things. If your question is "Can php connect to a MS SQL server?" the answer is yes.
  25. My advice would be to ignore the advice of the person who told you to download some random third party libraries. Learn php.
×
×
  • 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.