Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. I wouldn't go near that yet. Still plenty of work to be done. (I really should remove it from my sig)
  2. And how exactly would that log a user out?
  3. Why would you use Ajax for this? You can multiply numbers client side using JavaScript. Do you know what Ajax is?
  4. That would not produce your symtoms.
  5. If your after code organisation, you could do far worse than learning OOP.
  6. This is cause by trying to echo a Resource in PHP (which is not possible). Where is $product defined?
  7. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=342385.0
  8. Template engines are overrated IMO. You don't really get any benefits, just another syntax people have to learn.
  9. You can create applications using MVC without using OOP, it's just not as clean.
  10. Because a redirect is a Location header sent to the client, it needs to be something the client understand. A URL. So yeah, a complete URL (including the domain name) is required. Some browsers will handle a relative URL but it is not recommended.
  11. You should do this in your query not php. Mysql has a SUM() function.
  12. This topic has been moved to Beta Test Your Stuff!. http://www.phpfreaks.com/forums/index.php?topic=342258.0
  13. RewriteRule ^supplier-search-([^/]*)\.html /site/index.php?page=$1 [QSA]
  14. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=342298.0
  15. You need to use the OS's schedular in order to schedule a script. The problem is your logic. You need to make your script check the database to see if the expiry date has passed, if so, do whatever action is needed. otherwise, do nothing until the next scheduled check.
  16. Each message creates a new record in the database.
  17. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=342278.0
  18. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=342211.0
  19. You would need to write a php script to get the file and output it to the browser Your image tag would end up looking like: <img src="image.php?f=imagename" /> You should find an example of such a script in the readfile man page.
  20. /home/httpd/vhosts is not accessible by a client (browser). You need to use a path starting at your document root.
  21. Are you talking about on this forum? You can't.
  22. <a href="index.php?user=<?php echo $val; ?>">Button</a>
×
×
  • 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.