Berkeley CSUA MOTD:Entry 43423
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2006/6/17-21 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:43423 Activity:nil
6/17    dbushong and php xml gurus, thanks so much for your help! I don't
        know what I'd do without you guys. Google and http://php.net are clearly
        _insuperior_ than the motd. Anyways I have just a few more question.
          What's the proper way to embed text and binaries into XML? Should
        I simply call htmlspecialchars() on each item or just HEX it? Second
        question is, if I let users do "SELECT *" and want to return as
        XML how do I check the mySQL type for each field(column) name? I
        tried using mysql_field_type(...) but when it sees a TEXT field, it
        returns it as a BLOB, wtf?
        \_ "insuperior than"?
        \_ Putting binary data in XML sucks.  You'll have to basically &#NNN;
           every out-of-charset byte.  Probably best to just base64_encode() it
           and throw that into the entity.  TEXT columns are BLOB columns, they
           just are searched differently, essentially (case insensitive, respect
           charset, yadda).  I don't know the PHP way to do introspection on
           your table, offhand, but you could always parse the result of
           DESC table or SHOW CREATE TABLE table.  --dbushong
2025/05/25 [General] UID:1000 Activity:popular
5/25    

You may also be interested in these entries...
2010/12/11-2011/2/19 [Computer/SW/Languages/Perl] UID:53984 Activity:nil
12/11   Anyone have experience with Perl PDF::API2 or PDF::API3?  Can you
        point me to a good tutorial for creating a simple document (a small
        table of 2-3 rows and a single image)?
	...
2010/7/21-8/9 [Computer/SW/OS/FreeBSD] UID:53890 Activity:nil
7/21    Can I just use ifconfig to expand my netmask on a FreeBSD box?
        Are there any gotchas here? Linux forces me to restart my network
        to expand my netmask.
        \_ yes... and no, you don't have to restart your network on linux either
           \_ Rebooting is the Ubootntoo way!
              \_ Oooboot'n'tootin!
	...
Cache (3211 bytes)
php.net -> www.php.net/
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the 11 introductory tutorial. After that, check out the online 12 manual, and the example archive sites and some of the other resources available in the 13 links section. This mostly bug fix release improves PHP 5's stability and irons out some of the remaining issues before PHP 5 can be deemed release quality. Note that it is still not recommended for mission-critical use but people are encouraged to start playing with it and report any problems. This includes SQLite, SOAP, Reflection API, Ming and others. For backwards compatibility, re-implementing regular methods with the wrong prototype will only result in an E_STRICT warning. For changes since Release Candidate 1, please consult the 37 ChangeLog. This is is a bug fix release whose primary goal is to address two bugs which may result in crashes in PHP builds with thread-safety enabled. All users of PHP in a threaded environment (Windows) are strongly encouraged to upgrade to this release. Instead of receiving the problems and composing your solutions offline, it all takes place online and within a specific timeframe. The Marathon is kindly sponsored by Zend Technologies and will now feature a problem on PHP 5. The move from Beta stage to RC stage means that PHP 5 is now feature complete, and is quite stable - stable enough for everyone to start playing with. Note that it is still not recommended for mission-critical use. Some of the key features of PHP 5 include: * The 44 Zend Engine II with a new object model and dozens of new features. This new extension includes an object-oriented interface in addition to a traditional interface; For more information on SQLite, please visit 46 their website. It can also interface with the DOM extension and vice-versa. For changes since Beta 4, please consult the 47 ChangeLog. If you would like to subscribe to the list, you can do it via our 48 mailing lists page. The Conference features 32 sessions and two power workshops. It will happen again at 53 the RAI Conference Centre, Amsterdam. Open Source PHP projects can present themselves, like in the last years, for free on the Conference at the exhibition area between the commercial exhibitors. Take your chance and contact 54 Frank Stepan from Software & Support. The conference features 20 sessions over 2 days, in English and French. Students and Small Businesses are eligible for reduced prices. Buy your tickets early to get rebates and discount with the DVD! We are offering Weekend tickets (Saturday 21st and Sunday 22nd only) as well as Conference tickets (Friday 20th - Tuesday 24th) for the entire length of the event. Additionally, we also have Daily tickets available for each day of the conference. Tickets will also be available on the door for those that simply want to drop in. For ticket and accommodation Prices, look over our 62 pricing guide for more information. Call for Papers Reminder: O'Reilly Open Source Convention 03-Feb-2004 The 64 2004 O'Reilly Open Source Convention will be in Portland OR, July 26-30.