Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Ive used Zend on a few projects. Modules are just a way to group controllers together into separate sections. It gives your urls more depth eg; /module/controller/action vs /controller/action
  2. 1) While not completely necessary, in general OOP applications are better designed and easier to maintain (if done well). 2) Design patterns are recipes fro solving common problems, so yeah, it would be highly advantages. 3) Some companies will hire anyone. 4) Obviously client side stuff like HTML & CSS, JavaScript (and not just the basic form validation) is a must these days, then there stuff like knowing how to use version control systems such as Subversion and GIT. Of course not all PHP developers need to be *great* front end developers. I'm a PHP developer and rarely touch HTML or CSS. Most of my work is PHP, Bash and Python scripting with a fair enough amount of JavaScript thrown in (when I get the chance).
  3. Sorry to say, but it looks to me like that is exactly where you should be starting from. However, Google the book PHP Objects, Patterns & Practice - it's a pretty good starting point.
  4. Your missing a fundamental concept. JavaScript executes within a client's browser, PHP on the other hand executes on the server long before any page is served to a browser. To do what your asking you would need to write some JavaScript code (Ajax) to send the data back to the server. We have an Ajax board, if your stuck, your question belongs there. Firstly however I suggest looking at one of the JavaScript frameworks (jQuery is very easy and very popular), these all provide Ajax functionality that is easy to implement.
  5. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=332698.0
  6. This board is for help with coding issues, not help using a search engine.
  7. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=332690.0
  8. Firstly, you cannot convert procedural code to OOP, the design principles are entirely different. You will just end up with procedural code wrapped in OO syntax. Now, your issue: A __construct returns an instance of an object, in this case your Connection object. Your Connection object in turn doesn't have any means to expose an actual connection. You would actually need to return $this->con_handle from your connect() method then use it something like.... $connection= new Connection(); $actualconnection = $connection->connect();
  9. Database wrappers are just that, a wrapper around already existing functionality. You class adds no benefit to the current implementation. I understand your likely just trying to learn the syntax but you need to go a little deeper than simply wrapping already existing functionality for no reason. You class relies upon the mysql extension, have you though of actually adding flexibility to your design and allowing it to use any kind of database extension? This will give you a better idea of OOP design. Thought still, I would only use a db abstraction as a learning tool, in real life there are very good database abstraction layers already written. PS: You might want to find a more up to date learning resource, your using PHP4 syntax.
  10. Where have you defined serial?
  11. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=332575.0
  12. I'm not exactly sure what you mean by that but unless you have a pretty original idea that people need / want, I'm not sure there is a great deal of cash to be made. Advertising won't really earn you anything.
  13. FastCGI has always been the preferred method of installation on IIS servers because of there forking design, a manual install has also always been the prefered method over the installer.
  14. Both examples look like simple routes to me, the first is just a hard coded value instead of the more dynamic :something version. I'm not exactly sure why your naming the first example a module. In my github (link in signature) there is a repo called proem, this is my simple framework (that isn't near complete), there is a pretty simple Router within that if your looking for some examples.
  15. There would be no way of doing this without using iFrames.
  16. Then you don't really have enough control over the configuration. You could set this via a .htaccess, though there would be nothing stopping a user from editing the .htaccess file.
  17. Or layout your code in a more logical manner.
  18. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=332517.0
  19. You can set this directive on a per virtual host basis.
  20. Take a look at open_basedir, http://www.php.net/manual/en/ini.core.php#ini.open-basedir You might also want to take a look at safemode.
×
×
  • 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.