
trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
Fatal Error: Call To A Member Function Seterror() On A Non-Object In
trq replied to raamay's topic in Other Libraries
You should pass this object into your method via an argument. Globals break the encapsulation provided. -
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.
-
Laravel is an excellent framework. http://laravel.com
-
http://httpd.apache.org/docs/2.2/vhosts/
-
What the hell is a webDemon?
-
Sending Form Mail With Smtp And Using Gmail For Email
trq replied to happypete's topic in PHP Coding Help
I don't see what this has to do with php? -
Pardon?
-
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.
-
Sessions...this May Help Others Dealing With The Issue
trq replied to dpiearcy's topic in PHP Coding Help
Instead of advertising this as a solution to a problem that doesn't usually exist, why don't you post your problematic code? -
Do you have a question?
-
Yep, you seem completely lost. Have you tried reading the manual?
-
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.
-
Programs only do what you tell them to do. Your calling the alert method.
-
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)); ?>
-
Php + Mysql - Is There An Alternative To Load Data Infile?
trq replied to willothewisp's topic in PHP Coding Help
You should have full control of a vps. If you don't, move. -
Its just a single image (that doesn't even fill a widescreen monitor mind you). There is no "web design" to critique.
-
So your issue is with jQuery? This is the php help forum.
-
How do you expect us to help without a description of your problem?
-
Unexpected 'else' (T_Else) On Line 11 With Login Member System
trq replied to HeroSteve's topic in PHP Coding Help
Have a look at line 6. -
Is It A Common Practice To Use Orm In Web Applications?
trq replied to Hall of Famer's topic in Application Design
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.