Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. include() is not a function, but a language construct
  2. What would be the easiest way to count the characters, words or pages in a LaTeX document either in part or in the entire document? I've been wanting to write my documents in LaTeX for a while, but I'm often given a maximum and/or minimum character, word or page count requirement and I don't see any easy way to count those things...
  3. Daniel0

    OOP

    The book "PHP Objects, Patterns, and Practice" from Apress would be a good choice for getting started with OOP.
  4. Yes, but while I was posting, s0c0 removed the contents from his post. SMF didn't warn me and I was redirected back to the topic listing so I never found out before my edit time expired. That's why I usually quote specific parts I'm commenting on so I don't end up looking like a fool :-\
  5. If you can't keep track of the data types of your variables without suffixing the name then you've designed your application wrong IMO. Also, I don't agree about the prefixing in tables, I think it's pointless.
  6. Not necessarily a database, but just the data layer. You could be reading from an XML file or you could be parsing an RSS feed from an external source (well, that's actually reading from an XML file as well, but whatever) for instance. In the MVC pattern you'll never access the data directly from outside the model because it's encapsulated within the model. The front controller is actually not a part of the model-view-controller pattern, but rather another pattern itself. However, you'll often see that pattern used with the MVC pattern as you'll need something to call the controller in MVC, and I suppose the front controller is the most convenient way of doing it, at least in a web environment, so you'll often see the front controller acting as an intermediate between the user and the controller in MVC.
  7. I'm not being sarcastic. I've honestly never visited any such site. I consider them pointless and rather ludicrous. Looking at the front page of MySpace, here are some things they have which you haven't said that you have implemented in your script: member blogs, the ability to add friends, video uploads, some sort of groups (I suppose you join them?), etc...
  8. Well, what does such sites normally have (I've never visited such sites so I don't know)?
  9. I think the current fix is quite effective and simple already. Everybody can find ten topics to post in in no time.
  10. You'll also have a hard time finding code that'll work like plug and play on your specific web page. Besides, you'll not learn from copying and pasting which means that when/if bugs occur you'll not be able to solve them. That means you'll come here and post your entire code saying "It doesn't work".
  11. I find Notepad++ quite annoying. You'll have to explicitly select "PHP File" from the drop down menu on the save as dialog in order to be able to use the .php extension. Otherwise it'll override the extension and make it .txt instead.
  12. I don't think you understand the MVC pattern. If you only have a model and a view then you're essentially doing nothing.
  13. @aschk: I never mentioned the controller. You can just call the form rendering class from the view. You said and then you said So paraphrasing your post, you're saying that the form class isn't good because it uses PHP to generate the HTML instead of manually typing the HTML. Therefore did your message imply that the model-view-controller pattern only applies to web applications.
  14. Dual core processor speeds are per core, so if you have a 1.8 GHz dual core processor then you'll have two cores on that processor that each are able to run at that frequency.
  15. No it doesn't. You'll still have a separate view part even if you choose to generate all HTML using PHP. By your definition the MVC pattern will only work with web applications and that's not true.
  16. Yes, it does. It's a must if you're working with multiple people and still a good idea if you're working alone. You have a repository somewhere. You commit any code changes/additions to the repository. Other people can then see how your revision differs from the old revision (or any other revision). You can see who made which change and you can rollback changes if you'd like to. For actual usage you're better off reading SVN's documentation than anybody here explains it.
  17. Or download the trial versions.
  18. Why was the other way difficult? If someone doesn't even know basic HTML then he is not sufficiently competent to write PHP articles/tutorials. The only other thing needed to know was that [PAGEBREAK] would make a page break.
  19. What formats are you proposing?
  20. It is a good think. It'll enable you to make polymorphic methods so you can create an interface which will act accordingly to the types given. Take for instance the + operator in a strictly typed language. If it wasn't overloaded then you'd need four operators instead of one (if we only take integer and float types into account): int + int, int + float, float + int and float + float. In some many languages it acts as a concatenation operator as well which will require additional overloading again. The reflection classes can however not add that type of overloading functionality. You'll have to use the magic __call() method for a kind of emulated overloading.
  21. The only way to do it is to modify the source of PHP and then compile the binaries yourself. Disabling them is pointless anyways. They don't pose any security threat if that's what you think.
  22. That doesn't mean your code is good. And the client doesn't know whether the code is good because if s/he was a programmer then s/he would've just written it herself/himself. I've never done any freelance work (I don't want to) but from what I hear and what I can see clients would rather pay less money and get what in reality is a piece of shit rather than pay for quality. Truth is that in the long run they'll just have to pour more money into it in order to maintain it, because what they paid for was non-modular, interdependent, hard to maintain, crap code.
  23. It is... the last URL contains this link: http://www.rednetcat.com/cattalk/wp-content/plugins/mygallery/myfunctions/main.txt It looks to be some kind of script which will enable the attacker to gain remote entrance to a computer if uploaded, i.e. some kind of rootkit.
  24. I'm sorry about your vision problems. I didn't mean to offend you and I hope I didn't. I was just referring to the fact that all your sentences end with a lot of periods. I'm quite sure my use of commas and such in English isn't always perfect either.
×
×
  • 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.