Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. You should pass this object into your method via an argument. Globals break the encapsulation provided.
  2. Then why are you using all these other ip addresses that don't actually exist? A minimal vhost config: <VirtualHost *:80> ServerName somedomain.com DocumentRoot "/var/www/somedomain.com/htdocs" </VirtualHost> <VirtualHost *:80> ServerName somedomain1.com DocumentRoot "/var/www/somedomain1.com/htdocs" </VirtualHost> <VirtualHost *:80> ServerName somedomain2.com DocumentRoot "/var/www/somedomain2.com/htdocs" </VirtualHost> You also need to set: NameVirtualHost *:80 Somewhere before your vhost config is included.
  3. Laravel is an excellent framework. http://laravel.com
  4. http://httpd.apache.org/docs/2.2/vhosts/
  5. What the hell is a webDemon?
  6. I don't see what this has to do with php?
  7. Assuming $results holds the result of your call to mysql_query(). $allResults = []; while ($row = mysql_fetch_assoc($results)) { $allResults[] = $row; } $allResults will now be an array containing all your rows.
  8. Instead of advertising this as a solution to a problem that doesn't usually exist, why don't you post your problematic code?
  9. Sounds like a job for Javascript to me, wrong board.
  10. They were merged on purpose. As described above, the thread reads fine and the issues are indeed related. You shouldn't have opened a new thread in the first place.
  11. Do you have a question?
  12. Yep, you seem completely lost. Have you tried reading the manual?
  13. PHP is not executed as it comes out of a database. Nor is it a good idea to store code in a database if you want it executed.
  14. Programs only do what you tell them to do. Your calling the alert method.
  15. I would pull everything you need to change out and into a separate file. Then include that file into the file it is currently in. Once it's in a separate file it will be very easy to manipulate as it's just an array. <?php include 'somefile.php'; // manipulate the $users array all you need. file_put_contents('somefile.php', "<?php\n" . var_export($users)); ?>
  16. You should have full control of a vps. If you don't, move.
  17. Its just a single image (that doesn't even fill a widescreen monitor mind you). There is no "web design" to critique.
  18. trq

    Php

    Sure, whats' your question?
  19. Your point?
  20. So your issue is with jQuery? This is the php help forum.
  21. How do you expect us to help without a description of your problem?
  22. For smaller less complex applications ORM's are great. Once things start to get more complex however, I have found they just get in the way. They make the simple things even simpler and the complex things more complex IMO.
  23. Do you have a question? Also, if your going to post code, we have tags. Use them.
×
×
  • 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.