Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. PHP is processed by your server, in order to view the processed php you need to view them via a http request. The easiest way to do this is to open a web browser and goto http://localhost/filename.php There seems to be nothing wrong with your setup. Just a misunderstanding about how things need to work.
  2. $query = "SELECT * FROM comments WHERE member = '$member' GROUP BY category_field";
  3. http://httpd.apache.org/docs/2.0/mod/mod_alias.html
  4. It sounds like a cache to me. It just seems the OP wants the cache flushed when the relevant data is changed.
  5. trq

    Need Help

    If you view the source does the html content show up? I would say your query isn't finding any result. Also, if your only expecting 1 record to be returned don't use a loop. If you did have more than record returned in this case your html would be broken because you would have multiple <body> tags.
  6. trq

    Need Help

    Post your actual code then.
  7. Responding to a request with a static file is almost always more efficient than re-generating a new page dynamically upon each request.
  8. trq

    Need Help

    <?php echo $list_f['username'];?>
  9. trq

    Need Help

    Its never a good idea to code with short tags <? ?> because some servers have this option disabled. Always use <?php ?> Does that answer your question? Fix your problem?
  10. trq

    Need Help

    How should we know? You haven't exactly described your problem well.
  11. I'm really not sure what gave you the idea that that method would be at all efficient.
  12. What exactly is the problem? To see if the username is already in use execute a SELECT query with the username as part of a WHERE clause.
  13. You can't. Think about it. Firstly, there is no such thing as a connection using http, you simply make a request and the server responds. Now, if you where to fool a server into thinking you where using some one else's ip address, where do you think the server would send the response to?
  14. Where is realEscape() defined?
  15. There is no substitute for filter_var, you would need to write it yourself.
  16. function bob2(Bob $obj) { would force $obj to be of type Bob which is in this case what you want.
  17. $B does not exist within your bob2 function, you will need to pass it in as an argument. <?php require_once("bob.php"); $B = new Bob; $B->loud(); function bob2(Bob $obj) { $obj->loud(); } bob2($B); echo "oh noes"; ?>
  18. There are clear descriptions and examples within the link to the manual I already posted.
  19. If the script you want executed is a php script it should contain a shebang line on the very first line. This lets the shell know what program should execute your script. eg; #/usr/bin/php <?php // some php script ?> You can now simply put; 10 * * * * /path/to/your/script.php in your crontab. Otherwise, without the shebang, you need to actually specify what program to use to execute your script within the crontab entry; 10 * * * * /usr/bin/php /path/to/your/script.php
  20. I'll just repeat my last response. You really should look into what Ajax actually is.
  21. So, take a look at the link in the previous reply.
  22. Your registration form should already have an action pointing to a processing script. Within that script you would need to insert a call to the mail function.
  23. You might want to look into what Ajax actually is. It has nothing to do with page element effects.
  24. Is there any particular reason you have chosen to use php to create these dumps? MySql is quite capable of doing this alone.
×
×
  • 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.