Jump to content

Derek

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Everything posted by Derek

  1. Obviously modules are written in C (as PHP itself is written in C), but you can also use C++. You don't need anything "extra" to write modules, and don't even need CVS access if you want it to be released with core, as you can send in patches to the mailing lists for others to commit. You don't need any special software, other than a compiler (heh), and there isn't anything 'special' required besides the header files and libraries in the php core (unless you're wrapping other software, of course). Most of the times, if you write it for linux it will work in windows (if you're careful). Just try not to use libraries and such that aren't available in windows and vice versa.
  2. absolutely none, as we have discussed it on the internals list, and it seems we can't agree on anything in particular. It seems this one will fall into the cracks.
  3. If the zend_eval_string function (which you want to use, im assuming its what does the work in zend, but I havn\'t looked and am at school now and cannot) (and which im hoping isn\'t like using eval(), heh ) doesn\'t like opening and closing tags, then you have to remove them. Separate your blocks, strip the tags, then feed them to zend_eval_string separatly. I havn\'t really looked at zend much, but daeken has. I don\'t really get what you mean by \"parse and execute the PHP file contained in the string\", but I\'m assuming you just want your extension to open and parse PHP from files...in which case im wondering why you\'re making the extension at all...
  4. no, that\'s pretty easy with a simple regex. But...I don\'t know what your extension is for, but if its just for you, a warning, don\'t use shorttags, script tags, or asp tags; most servers don\'t have them enabled. stick to <?php ?>.
  5. er, I don\'t really understand what you\'re getting at. Be more concrete, I don\'t see a problem with removing <?PHP and ?> internally.
  6. A new construct was suggested by one \'oododa\'; his brainchild of sorts, which I rather enjoyed and wish to impliment. Here is a description, shorthand. Usage: with( $obj ) { method(); method(); echo $object_property; } Description: The \'with\' construct will pull all methods and object properties of $obj into the scope in which \'with\' was used. Upon exit of \'with\', scope will be destroyed, and to use the methods or properties again (out of object scope), you will have to enter into another \'with\'. Eg: [php:1:a8f599f1ce]<?php $thing = &new Thing; with( $thing ) { doStuff(); // Thing::doStuff() echo $obj_property; doOtherstuff(); // Thing::doOtherStuff() } function Stuff( &$thing ) { with( $thing ) { echo $obj_property; doOtherStuff(); doStuff(); } return $obj_property; // Error, $obj_property is in object scope. // $thing->obj_property should be used. } ?>[/php:1:a8f599f1ce] If you would like to help out, leave a reply.
  7. well then, therein lies your answer. Remove any <?PHP and ?> from input, then use the function.
  8. I\'m guessing its safe to assume you tried it without the <?PHP ?> tags...?
  9. I don\'t see this changing anything at all. Security is not in your function names. Access is handled with your grant tables, people don\'t just have access automatically, unless you allow it.
  10. great! this will cut the time of developing extensions by 1/4, atleast idea: int foo(string $bar, int $bleh[, string my_optional_var]);
  11. this is EXCELLENT! This\'ll save a lot of time while writing extensions
  12. Derek

    Smarty++

    on windows you can more than likely look foreward to php_smartypp.dll.
  13. Core Hacking tutorials are on the drawing board. I\'m currently writing two tutorials, but they should be done quite soon, then I can sit down and plan a core hacking tutorial. Daeken is planning on writing an introduction as well.
  14. hmm, most suspect a broken doc build, I do not believe it was removed intentionally. I\'ll send the mailing list a note
  15. ah, excellent. Now I understand a few more of those cryptic parameters
  16. For some unknown reason, the extending php4 section of the manual at php.net has been removed. Extening php3 remains, but four is kaput. phpfreaks.com still has it available, here http://phpfreaks.com/phpmanual/page/zend.html. If I get an answer as to why it was removed, I\'ll pass it along.
  17. Just add an id field to your news table, and give it an id field (make it the primary key, and make it AUTO_INCREMENT). then use this in your query: LIMIT 0,10 ORDER BY some_id_field DESC
  18. Derek

    Cool!

    how many licks did it take to get to the center of this tootsi pop?
  19. Derek

    Cool!

    we\'re glad you approve the core hackers need a place to unite and work together, now they have such a place
  20. MySQL uses what are called \"GRANT TABLES\" for username/password information. Grant Tables are actually a table in a mysql database, and you\'ll have to maintain that. If I remember correctly the syntax is: GRANT * ON databasename FOR \'username\'@\'host they connect from\' IDENTIFIED BY \'password\' you can of course allow the user to connect from any host by using \'username\'@* and such. and instead of GRANT * you can use GRANT SELECT,UPDATE,INSERT etc. Hope this helps; if that isnt the right syntax atleast you know what to search for.
  21. Dreamweaver isn\'t free, and as such downloading it for free would be warez. This forum isn\'t here for such purposes, and if anyone links to a warez site or a crack to a specific application, they will be banned. no questions asked, and no acceptions.
×
×
  • 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.