
ignace
Moderators-
Posts
6,457 -
Joined
-
Last visited
-
Days Won
26
Everything posted by ignace
-
Ok I've got it up and running and I can access http://mijn-domein.lok/phpinfo.php but when I try http://www.mijn-domein.lok/phpinfo.php it fails. I have added the www CNAME record in the Forward Lookup Zone but still nothing. Any ideas? It also has DomainDnsZones and ForestDnsZones should it go in there?
-
class CultureDAO extends Zend_Db_Table_Abstract { protected $_rowClass = 'Culture'; } class Culture extends Zend_Db_Table_Row_Abstract {} Should work I think. Also apparently you are not comfortable with object-design patterns. Here are a few resources: http://martinfowler.com/eaaCatalog/tableDataGateway.html http://martinfowler.com/eaaCatalog/rowDataGateway.html http://martinfowler.com/eaaCatalog/valueObject.html http://en.wikipedia.org/wiki/Data_Access_Object
-
class CultureDAO extends Zend_Db_Table_Abstract { protected $_rowsetClass = 'Cultures'; } class Cultures extends Zend_Db_Table_Rowset_Abstract { protected $_rowClass = 'Culture'; } class Culture extends Zend_Db_Table_Row_Abstract { protected $_id, $_name, $_description; }
-
OOP ... Creating Object and Calling Function in One Shot?
ignace replied to 947740's topic in PHP Coding Help
You don't need a Connection class though. You are thinking to narrow. Your ultimate goal is to retrieve data from the tables, this should be your starting point. Why? Because if you model your application from that point you will be able to easily modify (extend) it's design to meet new goals: retrieve data from an xml file, retrieve data from a service, ... Your goal should be to model retrieve data from and let the client fill in the blanks. -
OOP ... Creating Object and Calling Function in One Shot?
ignace replied to 947740's topic in PHP Coding Help
I don't see how a query is-a connection besides: * favor composition over inheritance class Query { public function __construct(Connection $c) { $this->cxn = $c; } } Ofcourse after he applied: * program to an interface, not an implementation -
Custom Forum rather than premade?
ignace replied to TeddyKiller's topic in PHPFreaks.com Website Feedback
I agree. I to would like to see some more of those lovely colors around here You didn't hear about Web 0.1 it's the latest and greatest you know? -
development server: php, apache, mysql, phpunit, svn, .. testing server: phpunit, phpundercontrol, .. production server: php, apache, mysql staging server: exact copy of production server
-
Any reason why you want someone to be able to only edit certain pages? Are those random? Or are they pre-defined? If so, shouldn't you be able to get those specific records using a FK?
-
No. I just want to die last. Sorted. send me a post card on what life is like in a billion years time Here's the address of his then current domicile Teddy Killer Hell Road 666 9000 Lucifer Just so you know where to send it to with some luck you may be able to give it him personally.
-
No. I just want to die last. Ah someone I will be able to ask how the world really came to an end. My advice: your gonna need those shades
-
You start with <?php and end with ?> (although this is not required, you can not end at all, at infinitum) and all brain activity in between.
-
You mean like a version control system?
-
You wanna live forever?
-
It depends on what your script does. If you own a domain you can allow other companies to link to your script using: script.company.com IN CNAME your-script-domain.com monkeytooth's solution is preferred and a SOA (Service-Oriented Architecture) is what you are looking for. Where your clients would connect to your website using HTTP request headers and receive an XML (, JSON, ..) response from your server.
-
Custom Forum rather than premade?
ignace replied to TeddyKiller's topic in PHPFreaks.com Website Feedback
Yeah maybe we can do what HipHop did (get compiled by 50 languages (and allow more through a plugin-system) before we run it) -
In English: I'm not a coder (or at least not a very good one). <-- Mchl you should really try it, and soon you'll look like me
-
1. Was there anything that could have been done in a shorter, more easier manner? Quite possible. 2. Reliability and accuracy issues? Cookies can be removed, IP's can be changed. Plus only the first viewer would see the message all others would just see the destruction. 3. Is there any hope that I'd be a "good" developer one day? (hmm, maybe you can tell from the mentality or whatever that code shows) There is a lot that I can tell here but I'll just go with, sure! 4. Maybe this one would be HUGE to answer. I'd like to create a "service" for those self destructing message. Something tells me it can't be done smoothly without object oriented programming which gets me pulling out hairs out of my head every time. Is that true? It can be done with OO just like it can be done procedural or any other way. They are all hammers to hit the nail.
-
Custom Forum rather than premade?
ignace replied to TeddyKiller's topic in PHPFreaks.com Website Feedback
Why don't we just write our own language -
I'm missing a contact form. It's to much work to copy-paste the e-mail address. It's worth trying, it's quite possible to be something small that makes them lose interest.
-
So if the code is like: if (true === $var) { echo 'It\'s true.'; } Anyone who's able to interpret it, is by your definition an expert? There are coders of all levels on this forum My level is over 9000. My level last week
-
coder, programmer (n): an organism that can turn caffeine into code. I guess I'm no coder/programmer then Maybe you apply for: mathematician (n): an organism that turns caffeine into theorems? Right, only organisms can be coders. Knowing Daniel that is most likely true. He has discovered ascension a long time ago.
-
1) Change from Auto to Manual to make sure Google never tries to bid the entire 25 dollar for one day 2) Look-up some synonyms of your keywords most likely you are using high-value keywords meaning that you probably spend 5 dollar or more for one keyword. Before Google displays the Ad it holds a bid war the one bidding the highest (auto-mode or man-mode if high enough) for a particular keyword (user-entered) wins. When the user clicks the ad the amount is deducted.
-
coder, programmer (n): an organism that can turn caffeine into code.
-
Who advised to use pay-per-day? The normal procedure is to use pay-per-click