Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=354933.0
  2. Yeah, while allot of those libraries, frameworks and application are web related, allot of them also are not. JavaScript is just a scripting language like any other. It has command line interfaces available, but also happens to be the standard language embedded into browsers. Take a look at node.js.
  3. It's a plugin. Plugins are registered as Wordpress loads. If after it has loaded there are any attempts to send headers there will be an error because this plugin outputs data when it is loaded into Wordpress.
  4. This list here contains many. There are numerous: phpunit, phake & phrozn come to mind.
  5. Indeed the problem would be trying to send headers after output has been sent, which is why a plugin should not send output until it is asked to do so.
  6. The last 7 lines of your script send output to the browser.
  7. Um, indeed you can. That is like saying PHP is useless without HTML, but you can build applications with PHP that have nothing at all to do with HTML or the web. Same goes for JavaScript.
  8. A bit OT, but what the heck... The events are just a fancy name for "hooks" really. It simply allows you to inject code into certain points in the bootstrap process. You could of course also use this same functionality within your application to make it easily extendable. A type validator (assuming your talking about the opt component) can be any function that returns a bool. To use your example: $ops = $this->setOptions([ 'user_email' => (new Option()) ->addTypeValidator('email', function($value) { return filter_var($value, FILTER_VALIDATE_EMAIL)); })->type('email') ], $options);
  9. Iv'e been building a framework around 5.4 for the last 4 months or so (link in my signature). Besides the stuff that kicken mentioned there probably not a great deal more in it. I have used traits a few times but it was a bit forced and will likely be removed eventually. I'm yet to really find a strong use case for them. The built in web server has come in handy a few times as I only built 5.4's cli to start with.
  10. No, JavaScript is not at all related to HTML.
  11. Why do you need to create any actual files? PHP can generate the xml when a request is made, just as it is generally used to generate html when a request is made.
  12. That code could not produce the results you are describing. Is that the exact code?
  13. Have you checked your mail server logs?
  14. Your $pdf variable holds an instance of FPDF not PDF. Change this line: $pdf = new FPDF('P', 'pt', 'Letter'); to $pdf = new PDF('P', 'pt', 'Letter');
  15. That sounds like a permissions issue with MySql itself.
  16. The # marks the line as a comment. So you'll no # means the line is actually processed.
  17. If you don't know what to add to your .htaccess file then you don't yet need one.
  18. As has been stated, you should be formatting your code properly yourself in the first place.
  19. That would completely depend on what $username contains and what context your displaying it in.
×
×
  • 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.