Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This is exactly the type of system we make and sell where I work. Unfortunately for you, it runs at a cost of around $8000-$12000 for an initial license (dependant on the size of your school and what modules are included), then around $2000-5000 per year (again dependant on the size of your school and what modules are included). There is no open source alternative.
  2. The error makes little sense. It definitely exists.
  3. See http://php.net/manual/en/mysqli-stmt.get-result.php
  4. Post your current code and a decent description of what is happening and exactly what you have doen to debug the issue.
  5. What are you talking about?
  6. 1) $action doesn't appear to be defined anywhere. 2) Your DELETE query is foobar 3) You have eror reporting disabled. 4) Your code isn't indented making it hard to debug.
  7. Why would the first font only be supported by chrome?
  8. Sorry, but the idea of editing the class to simply change connection settings stinks.
  9. That is one way of doing it yeah.
  10. Array indexes should be strings.
  11. url rewriting isn't going to be of any help, neither is php. Any solution to this issue is going to need to be done client side.
  12. It poses something of a security risk yeah. You should be able to do it on a per user basis however which makes it pretty solid IMO. Defaults requiretty Defaults:upload !requiretty There might also be some option to execute it via su but I would need to investigate that a bit.
  13. Wordpress stores its content in a mysql database so you can use whatever you would like to access it. It seems like a pretty daft idea. If you want to use Wordpress as your back end it seems logical that you should be using Wordpress themes fro the front end. It will be much less work in the long runas its already designed to work with there data structure. Which buy the way are fucking terrible. If your really thinking about accessing Wordpress's data yourself, just drop Wordpress all together. You gain nothing but a nice backend interface.
  14. That is better done with javascript. Just make new elements named aine[] and ope[] (not that one mistake you currently have already is that id's in html must be unique). This will create an array of form fields which you can then simply loop through in php.
  15. Looks like its working to me. Whats the issue now?
  16. We are going to need a much clearer explanation.
  17. No kidding. mysql_num_rows returns the number of rows contained within a result resource and expects to be passed a result resource. Your result resource is in $jobsc_result but that won't help you. What your trying to do is find the size of a simple array. Replace mysql_num_rows() with count(). And please, turn error reporting on when writing code!!!
  18. Of course its possible. Where exactly are you stuck?
  19. Looks like Photograph::find_all() returns an array of objects.
  20. The easiest solution to this issue is to disable the tty requirement within /etc/sudoers Defaults requiretty
  21. No. You can configure sudo to not require passwords if need be, even locked down to specific commands as well. Surely you can configure what script is executed? Even still, you could easily enough create this simple wrapper using PHP instead of Bash if need be.
  22. http://php.net/gd
  23. It would be easy enough to wrap your script in a simple bash script to execute it via sudo. Tampering with the shebang line won't help. #!/bin/bash sudo -u someuser /path/to/your/phpscript.php
  24. trq

    PHP Micro-Frameworks

    Silex (http://silex.sensiolabs.org) is an awesome micro-framework built on the shoulders of Symfony (another great though full stack framework).
×
×
  • 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.