Slashdot Mirror


User: aint

aint's activity in the archive.

Stories
0
Comments
55
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 55

  1. Re:Does the book also cover the fact on PHP 5 Recipes · · Score: 1

    A version of the Hardened PHP patch will [most likely] exist in PHP (by default) as of PHP 6.0.0.

  2. How to Fix Mom's computer on Spam and Spyware Too Much for Some Users · · Score: 1

    There's an interesting article titled "How to fix Mom's computer", check it out. This is a ritual many of us go through during visits and this article sums it up beautifully.

  3. PHP 5.0.1 will have gif write support again on GIF Support Returns to GD · · Score: 1

    Just a FYI, barring any setbacks the PHP 5.0.1 image extension will again have GIF write support and it's always had GIF read support. Also, keep in mind that PHP bundles its own modified version of the GD library (from boutell), it's even recommended/preferred. Minor versions of PHP don't add new features but this is seen as a worthy exception.

    As for the code submitted in this thread, just use function_exists() on a GD2 specific function, such as imagecreatetruecolor(), much more efficient ;)

  4. PHP 5 Tutorials on PHP 5 Released; PHP Compiler, Too · · Score: 3, Informative

    For a list of PHP 5 related tutorials and articles check out this faqt or simply look around the faqts PHP 5 section.

  5. Re:the wonders of PHP: on PeopleAggregator - An Open Source Social Network · · Score: 1

    The password will never show up in any PHP error, ever. Username, it might. Host, possible. But never the password. Perhaps you mean the error will show a filename that contains the password and if some fool uses, for example, plain text files outside of the docroot to store them...well...they sorta deserve the headache ;) I agree about error handling (like not allowing PHP to spew ugly errors) but wanted to make it clear that PHP itself won't emit DB passwords (yes I know it was just an example, but I didn't like the example :).

  6. a little history on MySQL Writes Exception for PHP in License · · Score: 4, Informative

    MySQL client libraries have been included/bundled with PHP for a long time now, and MySQL support was enabled by default. As of PHP 5, these client libraries are no longer bundled, and MySQL is not enabled by default. This essentially makes MySQL support like any other PHP extension, nothing special. To install, simply download MySQL and configure PHP with --with-mysql. Not a big deal. You do the same for PgSQL, CURL, TIDY, GD, etc.

    An official FAQ on this issue can be seen here:
    http://us2.php.net/manual/en/faq.databases.php#faq .databases.mysql.php5

    You'll notice that the license issue isn't the only reason PHP 5 stopped bundling these MySQL libraries so I assume despite this license change PHP 5 will not bundle MySQL by default. One might say the marriage continues to exist...but that it's no longer "forced" onto people.

  7. unix tips site on Wicked Cool Shell Scripts · · Score: 1

    A resource where people post and view "unix tips" can be seen here: www.unixtips.org

  8. Microsoft Team Picture from 1978 on Internet History In Pictures · · Score: 1

    Not sure where I got this classic but I believe it's the Microsoft team from 1978:

    Microsoft Team - 1978

  9. ActiveState Awards on OSI Announces Open Source Awards · · Score: 1

    There's a similar Open Source award (although no fat sacks of cash included). Just a few days ago the ActiveState Active Awards were handed out at OSCON. These awards are given to those actively contributing in the Open Source world.

  10. Re:REGISTER_GLOBALS and why fixing is not fixing on PHP 5 Beta 1 · · Score: 1

    It doesn't overwrite existing variables, which is why inializing variables is a good thing. register_globals is only dangerous to poorly written code, which sometimes newbies like to do.

  11. Re:REGISTER_GLOBALS and why fixing is not fixing on PHP 5 Beta 1 · · Score: 1

    The point isn't that the data is insecure, or that turning it off will magically make scripts more secure, but the point is users can write code with no clue where the variables are coming from, and this is especially dangerous for newbies. How many newbies initialize variables? Or even validate request data? Not very many. One can write insecure code with it on, and insecure code with it off. And secure code with it on or off. Also turning it off makes your PHP consume much less memory from hundreds of variables that you'll never use.

    You should read this:
    http://www.php.net/manual/en/security.registerglob als.php

    You don't really understand the true argument for the change, or how difficult of a decision it was.

  12. Re:PHP fragmentation, lack of cohesion on PHP 5 Beta 1 · · Score: 2, Insightful

    BOGUS.

    First of all, the superglobals you speak of were introduced in PHP 4.1.0 not 4.2.0, and register_globals was turned off by DEFAULT (default being the keyword there) as of PHP 4.2.0, not 4.0.6. And this is not the reason why ISP's don't upgrade as configurations can be changed. This is why announcements announce these changes, why ./configure mentions it, and why it's so heavily documented. This is also why PHP has a file named php.ini

    Regarding complexity, the new PHP 5 features are OPTIONAL, you do NOT have to use OOP at all. It's your choice. You, the user, are given choices, so it's up to you to use whatever you want. The backwards compatibility remark is funny as a typical member of the PHP-DEV team is very aware of BC and tries abnormally hard to keep it. There is even a PHP 5 directive named zend2.implicit_clone to help out with these ZE2 changes.

    Basically, this post is silly and the "insightful" rating is bogus. Your typical naysayer hard at work.

  13. Re:Advice & Observation on PHP 5 Beta 1 · · Score: 2, Informative

    This post has some problems as there is no such thing as a CLI dll... In Windows you have two php.exe binaries, the cli in the cli/ folder, and the cgi in the root php source folder. The CLI WILL NOT work with the web server, it's a Command Line Interface.

    Regarding the DLL, you are referring to SAPI modules, not CLI. And yes, using them is preferred (although depends on who you ask :) but this topic is not related to this thread on the PHP 5 Beta.

  14. PHP 5 Documentation update on PHP 5 Beta 1 · · Score: 4, Informative

    PHP 5 isn't really documented in the PHP 5 manual yet as there are still a few features on the move, and new features to come, but here's a list of PHP 5 related articles and presentations:

    Faq: Where can I get more information about PHP5?

    Enjoy!

  15. full url for redirect on Introduction to PHP5 · · Score: 1
    Regarding the full url, how about something like:
    <?php
    function make_fullurl ($url) {

    if (!stristr($url, 'http://')) {
    $tmp = 'http://' . $_SERVER['SERVER_NAME'];

    if ($url{0} !== '/') {
    $tmp .= dirname($_SERVER['PHP_SELF']) . '/';
    }

    return $tmp . $url;
    }
    return $url;
    }
    ?>
    Should work for you although keep in mind it took just a few minutes so it's currently a "hack" ;-)
  16. Re:Where are the OO improvements? on PHP 4.3.0 Released · · Score: 1

    It's always been the plan to put the zend2 engine in PHP5. Most likely PHP5 will follow 4.3.x so stay tuned :-)

  17. Re:Most needed feature for newbies...... on PHP 4.3.0 Released · · Score: 1

    And for people unable to read a prototype yet, this too is documented here:

    How to read a function definition (prototype)

  18. Re:Most needed feature for newbies...... on PHP 4.3.0 Released · · Score: 2, Informative

    This is on the TODO but all the information is included on every man page currently. New parameters and changes to parameters are in the form of notes on each given doc page. So all the information you ask for is already available, just not in a consistant form. Yet. This is a big job, would you like to help? :)

  19. Re:Fix "Google Groups" on Google Plans an IPO · · Score: 2
    Check out this interview, it explains a bit about what happened with deja/google : Interview with Monika Henzinger Essentially, here's an excerpt :
    We had Google engineers working very, very hard to get the service out by the time that Deja said they would shut down, in February.

    At first it was not clear when Deja actually would shut down. Suddenly it was like, "Now it's going to happen next week," so we had to go live with whatever we had. We did not want the service to be down at all, so we decided to go live and then gradually improve it. You couldn't post initially, but now people can post again. We had to rewrite all the code.



    -- .sig --
  20. the glass is half full on Google Plans an IPO · · Score: 1

    Everyone here is so negative, sheesh.

    -- .sig --

  21. Re:They already sold out! on A Pair of Google Bits · · Score: 1

    What is your definition of "non sellout" ? It's easy to say "boo" but how about a potential solution? I guess selling out for you means "earning any sort of revenue" whether for profit or expenses. That said, I disagree and feel you're mixing facts with assumptions.

    -- .sig --

  22. Re:Where the money goes on Theo de Raadt Responds · · Score: 1

    Obviously you've not seen Strange Brew.

    -- .sig --

  23. View the PRINTABLE page - one page on Open Source Databases Revisited · · Score: 1

    Well, the printable version is one page, read it.

    -- .sig --

  24. link to cnn exit polls in FL on And The Winner Is... Nobody! · · Score: 2
    All Florida exit polls here :

    link: Florida Exit Polls by CNN.

    Although imho exit polls are bogus.

    -- .sig --

  25. funny segfault link - vote trading humor on The Politics Guillotine Descends · · Score: 5
    Hi! I saw this funny segfault link today, thought some would appreciate it :

    Link : A Vote For Nader Is .36 Of A Vote For Bush

    It really is pretty damn funny.

    -- .sig --