[PHP] PHP Magazine
Hello, Two PHP magazines available are: - php|arch (www.phparch.com) - phpMag (www.php-mag.net) Want to subscribe to one of these 2. Please help me decide by sending your comments on these 2 mags. Regards, Nadim Attari Alienworkers.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Technology Forums
Hi all, We've our new Technology Forums started from India. http://forums.mediasworks.com/ I invite you all to join our community. http://forums.mediasworks.com/ Thanks regards. This mail is not a SPAM or solicitation badly. This is a one-time notification news. You won't recieve this message again. Delete this message, if you don't like it. - Original Message - From: Jasper Bryant-Greene [EMAIL PROTECTED] To: php-general@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Technology Forums
On Fri, 2005-07-01 at 02:20, anshul wrote: Hi all, We've our new Technology Forums started from India. http://forums.mediasworks.com/ I invite you all to join our community. http://forums.mediasworks.com/ My eyes, my eyes!!! It's like someone ran over kermit. FYI it's still spam since it's a big net to get people to use your forum... and while your forum does have a PHP category it also has a crapload of other unrelated categories. I for one would rather not go to such a diluted source for information. Cheers, Rob. Ps. Is it me or is the spam on PHP list growing rather rapidly of late? -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Technology Forums
Considering it dont even have 1 post... spam it is.. :P And yes i am getting a heap of spam recently... can someone do something about this.. :P CK On Fri, 2005-07-01 at 02:45 -0400, Robert Cummings wrote: On Fri, 2005-07-01 at 02:20, anshul wrote: Hi all, We've our new Technology Forums started from India. http://forums.mediasworks.com/ I invite you all to join our community. http://forums.mediasworks.com/ My eyes, my eyes!!! It's like someone ran over kermit. FYI it's still spam since it's a big net to get people to use your forum... and while your forum does have a PHP category it also has a crapload of other unrelated categories. I for one would rather not go to such a diluted source for information. Cheers, Rob. Ps. Is it me or is the spam on PHP list growing rather rapidly of late? -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Magazine
On Thu, June 30, 2005 11:23 pm, Nadim Attari said: Two PHP magazines available are: - php|arch (www.phparch.com) - phpMag (www.php-mag.net) Want to subscribe to one of these 2. Please help me decide by sending your comments on these 2 mags. Can you afford the digital version of both?... :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Conversion of period and space for $_GET, $_REQUEST, etc. is rather senseless
On Thu, June 30, 2005 8:47 pm, Joe Krahn said: PHP imports GET and POST data to array elements by senselessly converting periods and spaces to underscore. The intent is to make strings variable-name compatible for conversion directly into global variables via import_request_variables or register_globals. Honestly?... Why in the world would you have variable names or even array keys with such weird keys anyway, other than the imagemaps, of course? [shrug] String-to-variable name mangling should only occur when being converted to variable names, but should be left as is when accessed as array elements. The current implementation is particularly bad because it mangles only periods and spaces, but leaves alone other special/unusual characters. Furthermore, the direct conversion into global name space is discouraged for security reasons. A feature-request was made related to this, but it was marked as Won't Fix, primarily due to compatibility concerns. However, I think it's a poor design, and there must be some compatible way to move beyond this misfeature. You'd break an awful lot of backwards-compatibility, for anybody actually relying on it... The biggest one being for INPUT TYPE=IMAGE and image map ,x and ,y variables. If it weren't for those, I'd day go ahead and change it. There probably aren't THAT many users affected by anything else. It would be nice if the original design had only mangled the variable names and not the array keys, but changing it now... Just too many applications are gonna get broken big-time. Do other people really want to keep the period/space name mangling for array keys, and not just for variable names? And, what happens when importing other special characters to variable names? You could always get the RAW_POST_DATA and roll your own parser to preserve/mangle things any way you like. It would take you, what?, an hour of coding, including reasonable QA? Yes, that's a work-around but it's not that ugly. I'm not unsympathic to your plight, and you're absolutely right it would have been a better Design had somebody thought to do it that way, oh, 10 years ago... HEY! Just noticed your email address... Can you turn off that stupid auto-responder thingie from rr.com that keeps spamming the list about viruses it deleted? Thanks. [I think it's rr.com, right?...] -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload and Read pdf file
On Thu, June 30, 2005 8:53 pm, Bagus Nugroho said: is possible to upload pdf file into MySQL database, then read in web browser using php? And how? Yes, but... Yes, it's possible. You'd do it just like the people do images in MySQL. But, it's probably *WAY* better to just store the PDF in a non web directory somewhere, and put the PATH in your database. Then you can just use http://php.net/readfile to spew it out. Actually, you'll want to do some URL munging so browsers (IE) can't screw up and insist it's not a PDF just because the URL doesn't *look* like what they expect a PDF URL to look like. You can find my posts in the archives about PATHINFO, or an FDF article in php architect I wrote that covers this (and more) or... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Writing a PHP Web application
Philip Hallstrom [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What are the options to get code to run on the server (every XX minutes), without any user interaction, etc. If you are running on a unix like system (linux, freebsd, solaris, etc.) cron can do this for you. See this: http://en.wikipedia.org/wiki/Cron If on windows there are probably scheduling applications, but I don't know anything about them. Start--Settings--Control Panel--Scheduled Tasks You can use this to run scripts written in whatever language you like to perform the sort of tasks you want to. Example 1: If I have a directory that contains files, can I write a script that will delete all files older that 5 days? Yes. Write the script to do what you want it to do and then have cron execute it on the time period you define. Example 2: If I write an email web application, and the user wants to send an email to 50 people, can I write a script that will send emails individually XX seconds apart from each other, but have the progress interfaced with the web page the user is on so they can see the percentage progress of sent emails. Yes. This is a bit trickier as you would need to coordinate with a backend process that looks for emails that are ready to send them, does the sending and also writes out some status info (either to a temp file or to a database, or to shared memory). Then your web page would need to repeatedly check that status to update the user on the progress. Also, back to the email example, is it possible that once an email is composed and sent, that the web application can scan the email for viruses, then show a message to the user if a virus was found in their email, if no virus found, the email is then sent to the users as above. Yes. You could install a virus scanner such as ClamAV (http://www.clamav.net/) and have it scan the message prior to handing it off to the backend process that does the sending. How would I scan an email for viruses (or spam?)? Same idea, but use something like SpamAssassin (http://spamassassin.apache.org/) And, scan it only once so that system resources are not used to scan unnecessarily for every recipient? Sure. Just do it before handing it off to the script that actually does the mailing... -philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs. ColdFusion
When you reply please include the list in the recipients! Andrew Scott wrote: Well at least I know that there are a few developers in here that are not very savvy when it comes to Enterprise Solutions with J2EE then. That's a fair point, but rather than pointing it out it would be helpful if you elaborated on your points rather than taking the if you don't know then I'm not going to tell you approach. Multiple instances, what do you think this means or I guess you don't have the concept of instantiation? Again, meaning what? Running several copies of the application on a single server? Why would I want to do that? I am aware of the installation package for php for windows, but why is it not part of the main package to begin with, why a separate package. I asked this once before and was told because of security issues, can only go by what I have been told. I did say correct me if I am wrong! Ok, let's start with the main package. For PHP the main package is the source code. You're clearly not very familiar with the way software is distributed in the OSS world. In addition to the source code the PHP site generously distributes two other packages for the Win32 platform - a zip file and an installation package. Personally when I'm forced to use Win32 as a server platform I always use the zip package because I'm very picky about what gets installed where. As for the security issues I'm not familiar with any security issues that arise from using the installation package. If there were any I'm sure they would have been published and almost certainly fixed by now. As far as Shared hosting, I can only say that you have led a sheltered life in your development cycle and don't know that applications that run in a shared environment such as one server running 13 websites can be a security risk. I think that if you understood what J2EE is all about first, then I wouldn't be having to explain myself on what J2EE is in depth. Hmm, maybe I have led a sheltered life. I mean I've only been involved with hosting companies for the past 15 years and have been running my own hosting company for nearly 9 years, what would I know?!! I won't disagree that shared hosting environments have a lot of implications for security. I won't disagree that I don't know very much about J2EE. What I would question is your assertion that J2EE provides any extra security in a shared hosting environment than you can get with any other system if the server is properly set up and your application takes reasonable precautions. Having your application on a shared server is never going to be as secure as having your own dedicated server just as much as having a dedicated server in a third parties facility will never be as secure as hosting it in your own facility. Again if J2EE does provide extra security that cannot be achieved with PHP please let me know. I urge you not to come back with another J2EE is better but rather to explain why with specific features that make it better. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] postgres - mysql last_inserted_id
Hi I'm migrating also to posgresql. The easyest way to manage incrementation with postgres is to use sequences. How to : Create a sequence for each table that need autoincrementation. use pgMyAdmin, to make all needed changes before any insert call the id. select nextval('tablename_seq'); and pass this id to your insert. if you used a database wrapper like PEAR::DB it is easy cause it integrate a function to perform it, and those function are auto-portable. The sequence management is the most common incrementation system across all sgbd. Few like to make the mess like mysql, and sqlite (maybe other than I don't know). regards david Le Thu, 30 Jun 2005 20:55:52 +0200, Uroš Kristan [EMAIL PROTECTED] a écrit: Hello, I have an application in production, build on mysql database. I decided to migrate to postgres because of numerous reasons. Can you guys please guide me into the right direction? the main problem is the missing autoincrement of pgsql and getting the last record from the tabel, for linking to another tabel. How do you deal with that? also, can you please recommend me some good manual, explanation or book to help me with this problem. Because the application uses around 250 tables in mysql and I would like to make it righ t the first time when migrating to pgsql.. I was thinking about using the pear db wrapper class, but Regards, Uroš KRISTAN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MySQL error
Hi, I'm having a problem with the following code: $sql = LOAD DATA LOCAL INFILE '/path/to/file.txt' INTO TABLE `mytable` FIELDS TERMINATED BY '\t' ESCAPED BY '\' LINES TERMINATED BY '\n'; mysql_query($sql) or die('brbr'.mysql_error()); I get this MySQL error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 2 What am I doing wrong? Doing this from phpMyAdmin works fine. Thanks, wes ··· Wessley Roche · Icon Designer · [EMAIL PROTECTED] · www.iconizer.com ··· -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: MySQL error
Wessley Roche wrote: I'm having a problem with the following code: $sql = LOAD DATA LOCAL INFILE '/path/to/file.txt' INTO TABLE `mytable` FIELDS TERMINATED BY '\t' ESCAPED BY '\' LINES TERMINATED BY '\n'; mysql_query($sql) or die('brbr'.mysql_error()); I get this MySQL error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 2 You're on the wrong list. You want the MySQL mailing list. Just as a pointer, you probably want ESCAPED BY '\'' rather than ESCAPED BY '\' (added a ' to close the first quote, as the second one is escaped. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Magazine
Hello Nadim, Friday, July 1, 2005, 7:23:44 AM, you wrote: NA Two PHP magazines available are: NA - php|arch (www.phparch.com) NA - phpMag (www.php-mag.net) NA Want to subscribe to one of these 2. Please help me decide by sending your NA comments on these 2 mags. They're both good. I only read the PDF version of php|a, which is much cheaper and lets me print out only the pages I want to scribble notes on. php mag is nicely laid out and the content quality is as high as php|a, but it's pretty expensive. Why not just buy a couple of issues of each and see which you prefer? On the topic of PHP Magazines, they are maturing quite a lot but still suffer badly from coming across more as a collection of un-related articles written by developers about their latest projects. Because all the contributions come in from across the world, there's very little consistency either in writing style or theme of content each issue, and sometimes authors whose native language isn't English create works that are harder to read. They're both a great read and I appreciate nearly all of the articles in them, and the people who've spent the time writing them. The disjointed nature of the content isn't the authors fault, it's just the way they are edited at the moment. Regular columns (such as Security Corner in php|a or Guru Speak in php-mag) are helping to address this, but what you won't find in them are all the authors working together to address a specific topic. For example in most development magazines I read they'll often have a theme for the issue, i.e. security, and then the articles will be centered around that theme from differing levels of complexity and scope. I am sure the current crop of PHP magazines will migrate towards something more coherent in structure as time goes on (and their circulations increase), rather than feeling like a grab-bag of non-specific PHP goodies as they do today. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear the lack of them. - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MySQL error
Hello Wessley, Friday, July 1, 2005, 10:55:16 AM, you wrote: WR $sql = LOAD DATA LOCAL INFILE '/path/to/file.txt' INTO TABLE WR `mytable` FIELDS TERMINATED BY '\t' ESCAPED BY '\' LINES TERMINATED WR BY '\n'; WR mysql_query($sql) or die('brbr'.mysql_error()); WR I get this MySQL error: WR You have an error in your SQL syntax. Check the manual that WR corresponds to your MySQL server version for the right syntax to use WR near ''' at line 2 It looks to me like the \n (linefeed) character is actually being turned into a line-feed character, because you've quoted the $sql variable with - hence it's gone and turned \t into a tab, \n into a line-feed, etc. I may be wrong, but I don't think MySQL likes this, and given the error you are receiving it looks like that might be the case. Quote it with ' ' to avoid translation of the \n and \t. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear the lack of them. - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newline and pregreplace
On 7/1/05, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, June 24, 2005 3:18 pm, Dotan Cohen said: I've got a line like this: $str=preg_replace( -regex here-, '\nnote\1/note', $str); Which has one of two problems: If I leave the single quotes around the second argument, then it returns as \n and not a newline. If I change the single quotes to double quotes, then the info from the regex is not inserted in place of the \1. What is one to do in these situations? Single quotes have only two (2) special characters: ' and \ You need \' to get a ' buried inside a single quote. Since you use \ as the escape character, but you might want \ in the string, you also want to use \\ to get a single \ in your string. That's pretty much *IT* for single quotes. Double quotes have much for flexibility. Embedded variables, special characters like \n \r \t ..., embedded 1-D arrays and object dereferences (-) and even (in recent times) an {} construct to evaluate an expression and splice it in. In PHP, you need \n inside double quotes to get a newline. [Okay, there are other ways, but it's the most common way.] \n inside of single quotes don't mean squat. So, in PHP \n is newline. I think \1 just turns into 1 because 1 is not special following \... But I can't begin to remember *ALL* the characters that are special following \ especially when you start getting into octal/hex representations. The trick to remember is that if you want \ in PHP, you need \\ to get a single \ Now, both PHP *and* RegEx use \ as a special character. So, not only do you need \\ in PHP to get a single \, you *ALSO* may need one (or more) \ characters to feed into your RegEx. In your case: \n...\1 turns into this in PHP internally: [newline]...1 Because \1 don't mean squat to PHP either, really. It just means 1 [Unless it means ASCII charcter 1, which I doubt...] Anyway, the \ is being used by PHP as an escape character, and you need a \ to get down to the RegEx parser. \n...\\1 will do that. PHP will see the \\ and turn it into \ internally. The \ gets handed to the RegEx parser, and it sees: [newline]...\1 for its input string. That's what you want. Always try to see your PHP / RegEx strings in three stages: 1. What you type in PHP. 2. What PHP stores internally, which is what it hands to RegEx 3. What RegEx is going to parse #2 into. -- Like Music? http://l-i-e.com/artists.htm Thanks, Richard. I understand now that php doesn't do the regex stuff itself- it has a module/apple/program called RegEx do the dirty work. So I have to pay attention to what RegEx will get. Like paying attention to the source code of html files and not what we see in the browser. Thank you for that explanation. I'm just begining to get familiar enough with php to have the need (and the ability) to understand what goes on internally. By the way, I see that you advertise offices on all the planets and most of the major moons, but when I try to get in contact with the Uranus branch, I'm told that the nearest operating office is on Earth. There's 3 planets and over 20 big moons between those planets, why the gap in coverage? Dotan Cohen http://song-lirics.com/sl/index.php Song Lirics -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] I have mails in text plain, how i can imap_fetchstructure() ?
Hello, I have a list of mails taken from my old host in cPanel Now i want read this messages, and they are in text plain. Wath i can do ? I submit each message to me BD MySQL, but when i do this:[PHPNET]SELECT * FROM mails WHERE...[/PHPNET] And after[PHPNET]imap_fetchstructure($mail);[PHPNET]This only ERROR. Say: Warning: imap_fetchstructure(): supplied argument is not a valid imap resource in /home... AND [PHPNET]imap_fetchstructure($mail,0);[PHPNET]Is = AND [PHPNET]imap_fetchstructure($mail,1);[PHPNET]Is = How i can read this mail in MySQL or textfile ? The point is do imap_fetchstructure() becouse some mails have Files. Thanks. My english is bad, sorry, here the message with other words: Hello, can you helpme with my PHP please? Hello, i taken a message from my mailbox, (cPanel). And after i arrange this in a $var; and when i run imap_fetchstructure($var); OR imap_fetchstructure($var,0); This = error. I read in PHP.net but i no understand please help, thanks. I used Linux Thanks. THANKS BY ALL. ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Removing nonlatin characters
On 6/29/05, Rene Brehmer [EMAIL PROTECTED] wrote: I think you mean something like this: function stripAccents($string) { $returnString = strtr($string, 'àáâãäçèéêëìíîïñòóôõöšùúûüýÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖŠÙÚÛÜÝ', 'acnosyACNOSY'); $returnString = str_replace('æ','ae',str_replace('Æ','AE',$returnString)); $returnString = str_replace('ø','oe',str_replace('Ø','OE',$returnString)); $returnString = str_replace('ß','ss',$returnString); return $returnString; } This function is part using code once posted on this list, part my own creation. HTH Rene -- Rene Brehmer aka Metalbunny We have nothing to fear from free speech and free information on the Internet, but pop-up advertising! http://metalbunny.net/ My little mess of things... Thank you Rene. Does this approach have any special advantages over recode_string? Dotan Cohen http://song-lirics.com/sl/artist/167/the-doors-lirics.php The Doors Lirics
Re: [PHP] Technology Forums
Hi, We've our new Technology Forums started from India. http://forums.mediasworks.com/ I invite you all to join our community. http://forums.mediasworks.com/ Thanks regards. This mail is not a SPAM or solicitation badly. This is a one-time notification news. You won't recieve this message again. Delete this message, if you don't like it. I would rather say go screw yourself you dirty spammer than just deleting it...but thats just me. -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strange is_dir() behavior
Well, i´ll check it out, but i think i don´t have that code anymore. Since it wasn´t working i did the same using opendir instead of dir. Thanx anyway. On 6/30/05, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, June 25, 2005 8:54 am, Marcos Mendonça said: Yes, if i try to to echo the variable $entry outside the if is returns the expected directories list. I tried giving it the full path and it still doesn't work. Show us that source code. Cuz I wouldn't expect it to work without the full path for is_dir() But if it's not working with the full path... You've done something wrong. Okay, maybe you've found a bug in PHP that 1,238,874,988 other users have missed... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] postgres - mysql last_inserted_id
On Friday 01 July 2005 09:55, Richard Lynch wrote: There are innumerable on-line forums that (incorrectly) state that an OID could be returned that is not connection-specific, so two HTTP requests in parallel would criss-cross OIDs. This is patently false, and any user of PostgreSQL can demonstrate that in minutes (okay, an hour for a newbie) of coding. Someone with more time than me can go search for those above-mentioned forums and judge for themselves. However regardless of whether OIDs cross-pollination is possible or not ... OIDs *can* get re-used *IF* you end up having more than 32-bits (2 billion plus) of objects in the lifetime of your application. For normal usage, that ain't a big problem, honestly... Though I should have stated it for the record, cuz maybe the OP has a site where 2 BILLION INSERTs are gonna happen. ... 4 billion (I'm assuming the postgresql guys are smart enough to use unsigned integers) isn't really as much as it looks. Remember this is shared amongst all the tables in your database making these oids even more of a precious resource ... The solutions there are the same as for not having OID in the first place -- Have some other unique identifier you generate yourself in the INSERT, or use that *with* the OID to be 100% certain you get back the same row from your 2 billion plus data set. ... and that's exactly what sequences are for. And that's why using oids for a unique id is not a smart choice when sequences are available and were designed explicitly to provide unique ids. If there's a reliable, web-safe, connection-dependent way of getting the sequence ID used in an INSERT, it sure ain't documented, and I've never seen it discussed on the PostgreSQL list (which I dropped off awhile ago, so maybe it's something new). I have already given an example(!) Though that also limits you to 2 billion plus records per table -- The current versions of postgresql allows for 8 byte sequences which provides 1.8E19 unique ids. Now *this* will take some serious database work to cycle through all the ids. Assuming you generate a million ids per second it will take only half a million years for you to start worrying about running out of ids. But by that time I'm sure you would be more worried about the billennium bug :) If you are dealing in 2 billion object PostgreSQL databases, and you don't know all this already, you're in DEEP trouble... I think I'll be quite safe as I'm using sequences ;-) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- New Year Resolution: Ignore top posted posts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Magazine
Richard Davey a écrit dans le message Hello Nadim, Friday, July 1, 2005, 7:23:44 AM, you wrote: NA Two PHP magazines available are: NA - php|arch (www.phparch.com) NA - phpMag (www.php-mag.net) NA Want to subscribe to one of these 2. Please help me decide by sending your NA comments on these 2 mags. They're both good. I only read the PDF version of php|a, which is much cheaper and lets me print out only the pages I want to scribble notes on. Someone (Richard Lynch) advised me to subscribe to the PDF versions of both magazines if i can afford. I think it's a possibility ! php mag is nicely laid out and the content quality is as high as php|a, but it's pretty expensive. Why not just buy a couple of issues of each and see which you prefer? On the topic of PHP Magazines, they are maturing quite a lot but still suffer badly from coming across more as a collection of un-related articles written by developers about their latest projects. Because all the contributions come in from across the world, there's very little consistency either in writing style or theme of content each issue, and sometimes authors whose native language isn't English create works that are harder to read. They're both a great read and I appreciate nearly all of the articles in them, and the people who've spent the time writing them. The Seems that i'll subscribe to both, PDF versions !!! disjointed nature of the content isn't the authors fault, it's just the way they are edited at the moment. Regular columns (such as Security Corner in php|a or Guru Speak in php-mag) are helping to address this, but what you won't find in them are all the authors working together to address a specific topic. For example in most development magazines I read they'll often have a theme for the issue, i.e. security, and then the articles will be centered around that theme from differing levels of complexity and scope. I am sure the current crop of PHP magazines will migrate towards something more coherent in structure as time goes on (and their circulations increase), rather than feeling like a grab-bag of non-specific PHP goodies as they do today. Best regards, Richard Davey Best Regards and thanks, Nadim Attari Alienworkers.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Technology Forums
On Friday 01 July 2005 20:19, Ryan A wrote: I would rather say go screw yourself you dirty spammer than just deleting it...but thats just me. People, if you feel you *need* to respond to spam, could you please snip out the spam so that it doesn't receive more coverage than it deserves? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- New Year Resolution: Ignore top posted posts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP vs. ColdFusion
Hey it's not my fault that this stupid list needs a reply all! I am going to guess Stut, that you don't know even know what the difference between a singleton instantiated object is to a standard instantiated object? You know for a php developer your really don't know your own product to well, and by your statement of no known security issues with an installer package (one file to execute to setup everything you need and in the right locations) not 3 packages one with the binaries one with the libraries and the third with partial of the other 2. And if you bothered to read the text in your chosen language you would know about the security issues. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Technology Forums
My bad, sorry. Have a habit of hitting the reply all button, used to only reply to the person who sent the email but then got told to reply to the list too as others too can follow the help thread.. so made a habit of that Damned if i do, damned if i dont :-) -Ryan I would rather say go screw yourself you dirty spammer than just deleting it...but thats just me. People, if you feel you *need* to respond to spam, could you please snip out the spam so that it doesn't receive more coverage than it deserves? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- New Year Resolution: Ignore top posted posts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP vs. ColdFusion
[snip] Hey it's not my fault that this stupid list needs a reply all! [/snip] That's enough. This has begun to degrade into a pissing contest. Personal attacks don't fly here. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs. ColdFusion
Andrew Scott wrote: Hey it's not my fault that this stupid list needs a reply all! snip Learn how to use your mail client instead of expecting someone to bastardize the email headers. Andrew, meet /dev/null; /dev/null this is Andrew. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP vs. ColdFusion
John you're funny. No serious, these php lists don't work like the normal mailing lists where it send to an email address that is then broadcast to subscribers. But I guess you get what you pay for:-) -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Saturday, 2 July 2005 12:15 AM To: php-general@lists.php.net Subject: Re: [PHP] PHP vs. ColdFusion Andrew Scott wrote: Hey it's not my fault that this stupid list needs a reply all! snip Learn how to use your mail client instead of expecting someone to bastardize the email headers. Andrew, meet /dev/null; /dev/null this is Andrew. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] postgres - mysql last_inserted_id
El Vie 01 Jul 2005 06:27, david forums escribió: before any insert call the id. select nextval('tablename_seq'); and pass this id to your insert. No. Best is to but a DEFAULT clause of nextval('tablename_seq') in the table definition. -- select 'mmarques' || '@' || 'unl.edu.ar' AS email; - Martín Marqués | Programador, DBA Centro de Telemática| Administrador Universidad Nacional del Litoral - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Object Oriented PHP (5)
On 6/30/05, Richard Lynch [EMAIL PROTECTED] wrote: snip great post I was going to comment on a few of these points, but found I mostly wanted to add ++ after each one. I do want to echo the comments about fun projects and working with other developers. You can really learn a lot by playing around. Try out that crazy idea you have. Even if someone (or many people) have said that it won't work, try it anyway. Seeing for yourself, or maybe finding that it does work, will help you understand why. I recently did some work with another developer and we had different opinions on how a core piece of the application should be implemented. It was a good exercise in understanding where my opinions came from. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP vs. ColdFusion
You need to define 'normal mailing list'. I'm on about 20 different lists and only one of them has a default of 'reply to all'. George -Original Message- From: Andrew Scott [mailto:[EMAIL PROTECTED] Sent: 1 July 2005 3:22 pm To: 'John Nichel'; php-general@lists.php.net Subject: RE: [PHP] PHP vs. ColdFusion John you're funny. No serious, these php lists don't work like the normal mailing lists where it send to an email address that is then broadcast to subscribers. But I guess you get what you pay for:-) -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Saturday, 2 July 2005 12:15 AM To: php-general@lists.php.net Subject: Re: [PHP] PHP vs. ColdFusion Andrew Scott wrote: Hey it's not my fault that this stupid list needs a reply all! snip Learn how to use your mail client instead of expecting someone to bastardize the email headers. Andrew, meet /dev/null; /dev/null this is Andrew. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Object Oriented PHP (5)
Richard Lynch wrote: ... Ooooh. At the risk of being branded a heretic, try to pick up another language or two. Start with something a whole lot like PHP. Maybe Perl, or even C. You'll have to shove all your PHP knowledge over to one side of your brain, cram all the new stuff into the other half of your brain, and then compare/contrast. Then, for real fun, try to learn something totally whacked-out different like Lisp, Scheme, Forth, Logo, or even (blech) COBOL. This will require even more compartmentalization in your brain-space, and some serious deep thinking on what makes a program tick. Only after you really get it in a totally different programming paradigm do you achieve that deep comprehension of Programming with a capital P. Hmmm how does declensional based programming sound? Remember back when our ParrotHeadPoster was alive and squawking and ready to flap his wings right out into the news server? Well doing some searching for text classifiers led me to this really funky, weird, unusual... twisted... programming tool. The program is called crm114. It's not ugly like Perl; it's a whole different *kind* of ugly. I still am not an expert with this program (hell, the development is finally getting to where it can use autoconf), but it fits in really well as a new / active tool that does everything different. And I mean almost everything. Everything is a regex. The default regex engine is called TRE (which supports approximate matches). The language is declensional instead of parameterized. For the most part the order that you use for your arguments just don't matter. Variables look like :*:yourvariable: Releases don't follow the typical naming convention; instead, people get blamed for releases. crm114-20050628.BlameCochrane is the new release that just came out and it is the CRM114 Galactica Buzzphrase Compliant Version. It makes use of the new hyperspatial classification... just read the manual on it, ok?!?! At least one similarity to PHP though: it makes use of a JIT compiler. In short, it's a useful and interesting utility. Not just because it can sort your spam / nonspam email with greater than 99% accuracy... but because you can adapt it to other tasks by writing your own crm filters. This is no simple task (I'm still learning how to use it!), but this is mostly because the way of doing things is just different. The whole thing is like a computer science project gone mad, but at the same time it's actually very useful for something. For those that are interested, grab the new version released today: http://crm114.sourceforge.net/ H. That came out kinda stronger than I meant it... I mean, sure, the guy who learns C, and knows only C, and codes C all day is a Programmer, and I'm not knocking that. But there's this sort of hole in a guy like that, and while it doesn't hurt them or make them less a Programmer, it's there, and it's just not the same as a guy who actually groks something as bass-ackwards (that's a compliment) as Lisp as well as they do C. Well, that got long and philosophical, didn't it? Indeed. But those are some of my favorite posts to read. :) -- NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP vs. ColdFusion
Well I am on about 20-30 as well, and when I press reply it goes to a mailinglist address for broadcasting not the posters email address. -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Saturday, 2 July 2005 12:26 AM To: Andrew Scott; 'John Nichel'; php-general@lists.php.net Subject: RE: [PHP] PHP vs. ColdFusion You need to define 'normal mailing list'. I'm on about 20 different lists and only one of them has a default of 'reply to all'. George -Original Message- From: Andrew Scott [mailto:[EMAIL PROTECTED] Sent: 1 July 2005 3:22 pm To: 'John Nichel'; php-general@lists.php.net Subject: RE: [PHP] PHP vs. ColdFusion John you're funny. No serious, these php lists don't work like the normal mailing lists where it send to an email address that is then broadcast to subscribers. But I guess you get what you pay for:-) -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Saturday, 2 July 2005 12:15 AM To: php-general@lists.php.net Subject: Re: [PHP] PHP vs. ColdFusion Andrew Scott wrote: Hey it's not my fault that this stupid list needs a reply all! snip Learn how to use your mail client instead of expecting someone to bastardize the email headers. Andrew, meet /dev/null; /dev/null this is Andrew. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs. ColdFusion
George Pitcher wrote: You need to define 'normal mailing list'. I'm on about 20 different lists and only one of them has a default of 'reply to all'. 'Normal', as in 'point and click users' mailing lists. You know the lists where they have to _hack_ the headers to add a Reply-To because the users of said list don't know how to use their mail clients. That kind of 'normal'. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs. ColdFusion
On 7/1/05, Andrew Scott [EMAIL PROTECTED] wrote: Hey it's not my fault that this stupid list needs a reply all! My reply-to-all button is right next to my reply button. Sounds like the pebkac to me. -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs. ColdFusion
On 7/1/05, Andrew Scott [EMAIL PROTECTED] wrote: But I guess you get what you pay for:-) Feel free to go away if the deal isn't working for you. -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs. ColdFusion
Greg Donald wrote: snip Sounds like the pebkac to me. What is my marketing manager doing over there? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] PHP vs. ColdFusion
Hello Andrew, Friday, July 1, 2005, 3:32:14 PM, you wrote: AS Well I am on about 20-30 as well, and when I press reply it goes to a AS mailinglist address for broadcasting not the posters email address. Most likely because they've bastardised the mail headers to force in a reply-to address that wasn't ever there. Thankfully most people on this list understand that when an email arrives from an address, reply will reply to it. Having said that, it does catch a lot of noobs out. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear the lack of them. - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs. ColdFusion
Andrew Scott wrote: Hey it's not my fault that this stupid list needs a reply all! While I agree with Jay that this is degrading into a meaningless slanging match (of which I hope I have not caused) but I feel that I must respond to your comments despite your personal attacks. I am going to guess Stut, that you don't know even know what the difference between a singleton instantiated object is to a standard instantiated object? I don't see the relevance of singletons when it comes to this discussion. The architecture that PHP utilises means it can handle as many concurrent requests as the web server will allow it to. If I understand the J2EE model correctly, and I've said before that my knowledge of it is sketchy at best, you create a number of instances of the application and the application server handles distributing requests between them. This is the same model as PHP except that there is an extra layer between the web server and the application itself in J2EE - namely the application server. If I have this completely wrong please say so, but for $DEITYs sake don't simply say I have it wrong again without explaining why. You seem to be intent on skirting around telling us precisely what makes J2EE a better solution in your opinion. I would be more than happy to hear about it and take it on board because it might convince me to investigate whether it might be worth getting to know it better. I'm sure most other people on this list are also open to learning about alternatives. But until you actually back up your statements rather than turning to personal attacks there will be no benefit to anyone. You know for a php developer your really don't know your own product to well, and by your statement of no known security issues with an installer package (one file to execute to setup everything you need and in the right locations) not 3 packages one with the binaries one with the libraries and the third with partial of the other 2. And if you bothered to read the text in your chosen language you would know about the security issues. Ok that was an extraordinarily spectacular sentence that means very little. The text?? What text? I see no reference to security issues directly related to the Win32 installer on the PHP website. If I'm suffering from temporary blindness I would appreciate a URL or other reference so I can see more clearly. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] PHP vs. ColdFusion
Hello Andrew, Friday, July 1, 2005, 3:06:49 PM, you wrote: AS You know for a php developer your really don't know your own product to AS well (blah blah blah) Isn't it time to run off and write another check to Adobe or something? Rather than personally attacking other list members. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear the lack of them. - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] reading PDF's
Richard Lynch wrote: On Fri, June 24, 2005 12:10 pm, Jon said: Is it possible to read text from a PDF file with PHP? How? ... There may be a free one, or even an OpenSource one, but I've never heard of it, possibly because they'd have to pay a license to Adobe (Macromedia this week?) to be legal... Free (as in beer): http://sourceforge.net/projects/pdfcreator/ It's built on top of Ghostscript... which AFAIK does most of the heavy lifting. Several licensing options too. ... You don't want to get to launch and find out 90% of the real PDFs simply don't work. :-( I've been using it for about 3 months with very few problems. In fact, I can't think of any problems that I've had with the library (but I don't use it with PHP... I just know that bindings are there for you to go do it yourself). -- NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Delivery reports about your e-mail
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner scans all outbound e-mail attachments. If a virus, worm, or other security threat is found, Road Runner cleans or deletes the infected attachments as necessary, but continues to send the original message content to the recipient. Further information on this initiative can be found at http://help.rr.com/faqs/e_mgsp.html. Please be advised that Road Runner does not contact the original sender of the e-mail as part of the scanning process. Road Runner recommends that if the sender is known to you, you contact them directly and advise them of their issue. If you do not know the sender, we advise you to forward this message in its entirety (including full headers) to the Road Runner Abuse Department, at [EMAIL PROTECTED] Ϫ྾ü¯÷±ÓµÖ2Â8r}_XÊeÅ Üæµ{Óh5»à0{0»~¶gç$/é%ñ7Ú´öÈ sW ã'ãRûJÆö¢ÊÙSË3é8PLíÉ`[ÁsìÔMUqµ).#ûétYıÞcýFØXá\¼EãÊà¼Ã)¢)àNõü'¦ÏÎB.ÏhObâÎÜR¸¹?ìÒrD)*ñ×4³³?ØuqóÅFóãªÚöJÙ§qHá³t¯rèhDÞÝK÷¢¡gæÐhTtßAÉüô¨Ä ×k¸§ËçóñаgÀçó楱©à.Ù%dT´Ûð¦;\;B5¯å ~Iùä?µÂÔäOèDêS!ôèµMm?Iï-ÑVKýi)öPMÒÑAÞ¯ÜÎË#ïÂÀÛõGn|Ù|3vÝX¥waJ9n¢ì!ÕIªZV ÙôÈ·ên ºþDa£c4½Ó¦.¨MIXTH,fQÔJÏ95Ù6Wø,s®hïÔ¿ObÇPûsÄÝ;`Î$´JÖ ø¹¼ËÙkÛÚÙª!ºe¥ùÞ5Iï þÖÅÂÍ7æ%ÚÕò÷ ©ÆìàYE[£¦ÉÛd$Ë£ P.îÓ#Ý u ÎwÃÇÇñd§Âp¾Ì¯1úm!ðÓoΨgS5íʯCÀðÞPxÁ°Ñ¯ElrçZ9zµgYæ!ßìÖ5 ¢3c1ÔäæRáï4JZ'ãæÑ(m4Ó°[è©Ïá-ÃÊSNf#njµÇÝBÝ*õÓ9×èu¢«©ªôÒM4îbÐLzS4p`g무P¦¯¤¢[bÙÁøÈ(Óò9ùÅö0´FÊ8¨ 6FÚ¦Íd0:Ë?X ng´$~£ÙÍFçcÊoýZiwFÃ.EÕ îË,ÒWeÅT©¡¾Á{CädïÄê²zrá©ÝÎÛ/Äãïßj®ªUeø¡~jHHØ[eþ`NïÑ4âÃ-þiR|K£µxÉ^ÇF4P^GøïmäȨâÄ¢QÉÀ¸¾Áë lJàÓÚH òÌjí¤ÁTÞ¾Hå×f,I|·OÁXèQ¯4¶Jü,×ÜK$÷¼$i¯øs|Ï2y L:_G{éÒñ í^ç1Ù}¾k8Ï%Î쥦ÀôÝ ú¶U\§ãÄõfmÃÕªv¬éu¬òHòxj%Ù6TfÆ4F¹Õ#JsP©K*\Ae¨7¨ÒráÙÞAD}ª!PÕáXõó`Ñ|ác8r|¡H©íZóMGÝåsqð÷ß~«áØ/`¦3WY¹Ã$éÁ KP ú7z~8]ѱUw]]ã×QÜYò¥Ùýh %3± J´^ÍU#;IæT´?ÖxUhGâEµr è³kGC«x-FMD¬çüµoÌÎõ$¯UB¢à{7÷3p#Ú²Tæ¦4[J½÷¡¥ÎØ.m`!£Áe7wTÞª·ºNR槱êdF0¿ÜÆ¥ÚOϧÁ*åÈL.´h/NRX³¾×]jn[ÓA^ϳÐOf$L»#ú¥§zË ,¤Ï»/,é ×/Ñ? U*q¥Ây¦;5pí±¡ÝÞ/M7©!;ý² ·cÏGT¶ ¿]Aà¸Õöר5®xÖ.Á-Ø!z0^qòk¡}V~ ÉúC»·0¡Wy*«^ ¿A4ݲJ¡*ïÔ¢Þ짶ÁOu¬áÃqL 6ûSÙYYZ%ùÐoçÌõ¿³TN 5ñ È05â°Ñ¿KµyWqzdpÍ.÷ô¿1¡Û¸/CjM ?çLãTµ¡#^[Z8«û·ô;sýSÉáÌjú7_mGyæðUEDqu3þGXäÞ «1eO²Ûêzk%ZæöR`òqzO2%³~gðyFºm4eP½£¦¾Ö¤N2ô4çÚéÍÅ¬Í :*öü_Ç)çÁkË'Ïjó5þ§¨Çû°ûQ¾þ2fÌÌyþãjøÑ«åc^¬J,¤Ú)jg_I7mF*?OÏ-9JJåRPõ]jï«D2Ð2o ùåKDxå·TÄIc({µì[Úê~(¼0à°ôAPlÀ¦SòÓóyï;7;Ìî ¥KI^»b2{©¹¶Ç£§°z2ZmeuµÂ´¾Ùë$ÜÜûÈ.uí;,mtõdçúÉb áYÓ»Î׸Ⱐ9Pä$}äðb ó]ývjüáXÇê¿!nÈ¥î¢8Î浯 k$YU_È© file attachment: aqo.com This e-mail in its original form contained one or more attached files that were infected with the [EMAIL PROTECTED] virus or worm. They have been removed. For more information on Road Runner's virus filtering initiative, visit our Help Member Services pages at http://help.rr.com, or the virus filtering information page directly at http://help.rr.com/faqs/e_mgsp.html. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php OOP book ¿...?
I´m looking for a book dedicated to OOP in PHP ... Now I´m reading ¨Core PHP Programming (Third Edition) (2003)¨ but it has just a few information about OOP. Do you know another book? ¿Do you have it? If anyone wants this book (Core PHP Programming (Third Edition) (2003)) just email me ... I´ll send it ... Best regards Enrique
RE: [PHP] PHP vs. ColdFusion
Stut, FYI here is a copy of the text after installing php. Windows Installer The Windows PHP installer is available from the downloads page at http://www.php.net/downloads.php. This installs the CGI version of PHP and for IIS, PWS, and Xitami, it configures the web server as well. The installer does not include any extra external PHP extensions (php_*.dll) as you'll only find those in the Windows Zip Package and PECL downloads. Note: While the Windows installer is an easy way to make PHP work, it is restricted in many aspects as, for example, the automatic setup of extensions is not supported. Use of the installer isn't the preferred method for installing PHP. First, install your selected HTTP (web) server on your system, and make sure that it works. Run the executable installer and follow the instructions provided by the installation wizard. Two types of installation are supported - standard, which provides sensible defaults for all the settings it can, and advanced, which asks questions as it goes along. The installation wizard gathers enough information to set up the php.ini file, and configure certain web servers to use PHP. One of the web servers the PHP installer does not configure for is Apache, so you'll need to configure it manually. Once the installation has completed, the installer will inform you if you need to restart your system, restart the server, or just start using PHP. Warning Be aware, that this setup of PHP is not secure. If you would like to have a secure PHP setup, you'd better go on the manual way, and set every option carefully. This automatically working setup gives you an instantly working PHP installation, but it is not meant to be used on online servers. -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Saturday, 2 July 2005 12:50 AM To: Andrew Scott Cc: php-general@lists.php.net Subject: Re: [PHP] PHP vs. ColdFusion Andrew Scott wrote: Hey it's not my fault that this stupid list needs a reply all! While I agree with Jay that this is degrading into a meaningless slanging match (of which I hope I have not caused) but I feel that I must respond to your comments despite your personal attacks. I am going to guess Stut, that you don't know even know what the difference between a singleton instantiated object is to a standard instantiated object? I don't see the relevance of singletons when it comes to this discussion. The architecture that PHP utilises means it can handle as many concurrent requests as the web server will allow it to. If I understand the J2EE model correctly, and I've said before that my knowledge of it is sketchy at best, you create a number of instances of the application and the application server handles distributing requests between them. This is the same model as PHP except that there is an extra layer between the web server and the application itself in J2EE - namely the application server. If I have this completely wrong please say so, but for $DEITYs sake don't simply say I have it wrong again without explaining why. You seem to be intent on skirting around telling us precisely what makes J2EE a better solution in your opinion. I would be more than happy to hear about it and take it on board because it might convince me to investigate whether it might be worth getting to know it better. I'm sure most other people on this list are also open to learning about alternatives. But until you actually back up your statements rather than turning to personal attacks there will be no benefit to anyone. You know for a php developer your really don't know your own product to well, and by your statement of no known security issues with an installer package (one file to execute to setup everything you need and in the right locations) not 3 packages one with the binaries one with the libraries and the third with partial of the other 2. And if you bothered to read the text in your chosen language you would know about the security issues. Ok that was an extraordinarily spectacular sentence that means very little. The text?? What text? I see no reference to security issues directly related to the Win32 installer on the PHP website. If I'm suffering from temporary blindness I would appreciate a URL or other reference so I can see more clearly. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re[2]: [PHP] PHP vs. ColdFusion
Actually that's not true, reply to: is not a hack and is very much a standard to include in the headers, its part of the rfc standard, after having written a mail server as a project its not hard to create a mailinglist option that sets this info up properly. If you setup your mail client with the reply to field different to your email address, your email client will add this line or did you not know that? -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: Saturday, 2 July 2005 12:49 AM To: php-general@lists.php.net Subject: Re[2]: [PHP] PHP vs. ColdFusion Hello Andrew, Friday, July 1, 2005, 3:32:14 PM, you wrote: AS Well I am on about 20-30 as well, and when I press reply it goes to a AS mailinglist address for broadcasting not the posters email address. Most likely because they've bastardised the mail headers to force in a reply-to address that wasn't ever there. Thankfully most people on this list understand that when an email arrives from an address, reply will reply to it. Having said that, it does catch a lot of noobs out. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear the lack of them. - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] postgres - mysql last_inserted_id
OIDs *can* get re-used *IF* you end up having more than 32-bits (2 billion plus) of objects in the lifetime of your application. For normal usage, that ain't a big problem, honestly... Though I should have stated it for the record, cuz maybe the OP has a site where 2 BILLION INSERTs are gonna happen. ... 4 billion (I'm assuming the postgresql guys are smart enough to use unsigned integers) isn't really as much as it looks. Remember this is shared amongst all the tables in your database making these oids even more of a precious resource ... The solutions there are the same as for not having OID in the first place -- Have some other unique identifier you generate yourself in the INSERT, or use that *with* the OID to be 100% certain you get back the same row from your 2 billion plus data set. ... and that's exactly what sequences are for. And that's why using oids for a unique id is not a smart choice when sequences are available and were designed explicitly to provide unique ids. Just for some added info... from the FAQ: http://www.postgresql.org/docs/faqs.FAQ.html#4.12 4.12) What is an OID? What is a CTID? Every row that is created in PostgreSQL gets a unique OID unless created WITHOUT OIDS. OIDs are autotomatically assigned unique 4-byte integers that are unique across the entire installation. However, they overflow at 4 billion, and then the OIDs start being duplicated. PostgreSQL uses OIDs to link its internal system tables together. To uniquely number columns in user tables, it is best to use SERIAL rather than OIDs because SERIAL sequences are unique only within a single table. and are therefore less likely to overflow. SERIAL8 is available for storing eight-byte sequence values. CTIDs are used to identify specific physical rows with block and offset values. CTIDs change after rows are modified or reloaded. They are used by index entries to point to physical rows. I seem to remember reading that PostgreSQL is going to get rid of OIDS entirely sometime in the future, but I can't find anything right now to confirm that... (too lazy to look) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] PHP vs. ColdFusion
Hello, I followed the discussions closely. I wanted to reply to some questions I saw in the discussions. I am using both PHP and Coldfusion, but both on Linux platforms. So, I am not bound to Microsoft technologies, and CF runs faster on Linux/Unix than on Windows. Like PHP, there is no need for a dedicated IDE to code/script on CF. You may use Macromedia software to build web pages only if you want, except if you want to make Flash movies/animations. You can edit files manually to configure CF (XML files) with a ssh access on the server (at least the Linux version I am used to), or use a web interface to manage it. Both languages have pros and cons, and I cannot say that one is superior to the other. It is a matter of taste. I know that someone coming from a programming background will be more comfortable with PHP, while someone coming from a web design background may be more comfortable with CF, but even that is changing. Once you get to do very advanced things, you need to code using Object Oriented approaches, modular programming, web services, etc. which both products allow you to do. It is true that Coldfusion offers a lot of functionality 'out of the box', and sometimes you need to look around to find equivalent functionality, extensions for PHP. These functionalities are more geared towards displaying data, managing forms, etc. PHP also offers a lot of functionalities out of the box also. For example, PHP is really flexible about how you want to retrieve a query, in what format, etc. The functionalities are more geared towards programming utilities. You can extend Coldfusion functionalities easily by creating 'custom tags' in Perl, C, C++ or Java without having to recompile the product. You can also instantiate any classes in Java because Coldfusion is based on Java since version 5. So, it's really a matter of personal taste and the background of each one. I personally take pleasure developing applications on both Coldfusion and PHP. Stéphane On Fri, 2005-07-01 at 09:50, Richard Davey wrote: Hello Andrew, Friday, July 1, 2005, 3:06:49 PM, you wrote: AS You know for a php developer your really don't know your own product to AS well (blah blah blah) Isn't it time to run off and write another check to Adobe or something? Rather than personally attacking other list members. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear the lack of them. - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] reading PDF's
Is it possible to read text from a PDF file with PHP? How? There may be a free one, or even an OpenSource one, but I've never heard of it, possibly because they'd have to pay a license to Adobe (Macromedia this week?) to be legal... Free (as in beer): http://sourceforge.net/projects/pdfcreator/ It's built on top of Ghostscript... which AFAIK does most of the heavy lifting. Several licensing options too. This doesn't appear to read text from a PDF but, rather, create the PDF from text. Another, easy way to create PDFs with PHP is to use PDML: http://pdml.sourceforge.net/ As for reading the text from a PDF, maybe there's some sort of OCR library for PHP out there, but I don't know about it. It'd be a great thing to see, though. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: cUrl and proxies
Hello, on 06/30/2005 01:27 PM Mark Rees said the following: UPDATE: I think it is a bug in cURL, according to this link (I am using an ISA proxy). https://sourceforge.net/tracker/?func=detailatid=100976aid=1188280group_i d=976 In that case you may want to try this PHP HTTP client class that supports access via proxies, proxy authentication and SSL as you need. http://www.phpclasses.org/httpclient -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [case closed][Fwd: Re: [PHP-DEV] [Fwd: [PHP] constant() - php5]]
thanks for that explanation, case closed. :-) Original Message Return-Path: [EMAIL PROTECTED] X-Original-To: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] [Fwd: [PHP] constant() - php5] X-Virus-Scanned: amavisd-new at moulin.nl Due to PHPs dynamic typing, unquoted strings are treated as strings unless a constant by that name exists. Thankfully it's clever enough to raise a notice to tell you it couldn't find a constant by that name, which makes debugging much easier. The reason constant() throws a warning rather than a notice is because PHP knows you're looking for a constant by that name and flags it as a more serious error, wheras before, it could just be that you want to use an unquoted string :) If you think it's a bit strange, it may seem so, but logically, if an unquoted number is equivilent to it's quoted counter-part, the same must be true for strings. Nicholas Telford Jochem Maas wrote: Derick Rethans wrote: On Fri, 1 Jul 2005, Jochem Maas wrote: echo constant('CNST'); when: echo CNST; only triggers an E_NOTICE. (assuming, in both cases that CNST is not defined). IMHO it should at most trigger an E_NOTICE. Did you compare the output of the two statements? I did. echo constant('CNST'); shows nothing (except the warning) echo CNST; shows CNST (and a notice). This makes perfect sense to me to differentiate between them like this. ok - agreed that the echo behaviour is logical - but I wasn't actually pertaining to the echo behaviour (and what was being echo'ed wasn't relevant to my original question). my point is that using a constant directly in your code when that constant doesn't exist only causes an E_NOTICE but passing a string to constant() when a constant of the given name doesn't exist causes an E_WARNING. I would either expect both to cause the same level of error OR that trying to use an undefined constant directly in code would cause a lower level of error. but if you say the error output behaviour is expected/correct/desired then I'm happy to except it (and adjust my expectations accordingly) - if you (anyone) could explain why (because I don't grok the logic behind this behaviour) I would be very grateful, maybe it will bring me one step closer to being able to call myself a real programmer. :-/ anyway thanks for taking the time to reply, I gather that you, Derick (amongst others!), have a plate full of PHP work in the form of unicode and date related stuff (which I am very much looking forward to!) - i.e. you are busy-busy, time is short, etc etc. kind rgds, Jochem Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs. ColdFusion
On 01/07/05, Andrew Scott [EMAIL PROTECTED] wrote: Stut, FYI here is a copy of the text after installing php. snip Warning Be aware, that this setup of PHP is not secure. If you would like to have a secure PHP setup, you'd better go on the manual way, and set every option carefully. This automatically working setup gives you an instantly working PHP installation, but it is not meant to be used on online servers. Ok, now I see the root of your comment. Maybe it's just me but I never assume that any automatic installation will create a secure environment. The reason for that is that the installer cannot possibly know what it needs to do to make the system secure - that's what sysadmins are for. I must also point out that a system that used this installer to set up PHP can be secured in exactly the same way as any other in much the same way as anyone doing it manually can create a setup that is less secure than using the installer to do it for them. So, I was technically wrong but IMHO the point is flawed since nothing should be assumed to be secure out of the box. With that convenient diversion hopefully settled you are still yet to convince me that CF offers any significant advantage over PHP. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Magazine
On Fri, July 1, 2005 6:36 am, Nadim Attari said: Richard Davey a écrit dans le message disjointed nature of the content isn't the authors fault, it's just the way they are edited at the moment. Regular columns (such as Security Corner in php|a or Guru Speak in php-mag) are helping to address this, but what you won't find in them are all the authors working together to address a specific topic. For example in most development magazines I read they'll often have a theme for the issue, i.e. security, and then the articles will be centered around that theme from differing levels of complexity and scope. I am sure the current crop of PHP magazines will migrate towards something more coherent in structure as time goes on (and their circulations increase), rather than feeling like a grab-bag of non-specific PHP goodies as they do today. I actually PREFER the disjointed nature, myself. One issue is that if your Editor decides to focus on XYZ, then really good timely articles may get bumped back, or even permanently ignored, because they never quite fit in to any given theme... With the current grab-bag, I feel like I'm getting whatever somebody finds intersting right now, which I happen to like in a magazine. If I wanted a more structured themed topical approach, I'd go looking for a book or Google for that topic and survey what's out there I could easily be the lone wolf on this one... Well, nothing new to me on that score :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] postgres - mysql last_inserted_id
On Fri, July 1, 2005 6:24 am, Jason Wong said: On Friday 01 July 2005 09:55, Richard Lynch wrote: If there's a reliable, web-safe, connection-dependent way of getting the sequence ID used in an INSERT, it sure ain't documented, and I've never seen it discussed on the PostgreSQL list (which I dropped off awhile ago, so maybe it's something new). I have already given an example(!) I caught the example later as I worked my way back through the postings. You're right. I'm wrong. Use currval. God only knows how I missed it all these years. It's been there, connection-specific thread-safe, since at least version 7.2... Maybe it was missing in 6.x days when I started. Maybe I'm just stupid. Use currval. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newline and pregreplace
On Fri, July 1, 2005 3:35 am, Dotan Cohen said: By the way, I see that you advertise offices on all the planets and most of the major moons, but when I try to get in contact with the Uranus branch, I'm told that the nearest operating office is on Earth. There's 3 planets and over 20 big moons between those planets, why the gap in coverage? Because I cannot remember any fictional character who lived on Uranus (or many of the other planets) to fix my site up. In theory, it would tell you that our Uranus representative is [insert fictional character here] at [insert fictional address here]. It would STILL direct you to our Earth office, since our analysis of your IP address indicates that would be closer to you. Anybody sci-fi buffs wanna help me out with a suggestion for a fictional character to be my representative on their home planets? I got Luna (aka the Moon) covered with Adam Selene of Luna City. I've even got his address written down somewhere here. How come I never have the time/money to fix up my own sites? Is that just me? :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newline and pregreplace
On Fri, July 1, 2005 3:35 am, Dotan Cohen said: By the way, I see that you advertise offices on all the planets and most of the major moons, but when I try to get in contact with the Uranus branch, I'm told that the nearest operating office is on Earth. There's 3 planets and over 20 big moons between those planets, why the gap in coverage? PS Didja notice that if you re-load, the planet alignment changes in real-time to show you a view of our Solar System from a randomly-selected point in Space? :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newline and pregreplace
On 7/2/05, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, July 1, 2005 3:35 am, Dotan Cohen said: By the way, I see that you advertise offices on all the planets and most of the major moons, but when I try to get in contact with the Uranus branch, I'm told that the nearest operating office is on Earth. There's 3 planets and over 20 big moons between those planets, why the gap in coverage? Because I cannot remember any fictional character who lived on Uranus (or many of the other planets) to fix my site up. In theory, it would tell you that our Uranus representative is [insert fictional character here] at [insert fictional address here]. It would STILL direct you to our Earth office, since our analysis of your IP address indicates that would be closer to you. Anybody sci-fi buffs wanna help me out with a suggestion for a fictional character to be my representative on their home planets? I got Luna (aka the Moon) covered with Adam Selene of Luna City. I've even got his address written down somewhere here. How come I never have the time/money to fix up my own sites? Is that just me? :-) -- Like Music? http://l-i-e.com/artists.htm STFW: http://www.east-haven.k12.ct.us/eha/alien/alien8/uranuscs/uranuscs.htm http://www.cssd.ab.ca/tech/science/alien/titania.htm I should mention that Nukka is great on the barbeque, but you have to cut away a lot of fat. This is getting as OT as the 2-stroke thread... Dotan http://lyricslist.com/lyrics/artist_albums/156/destiny_s_child.php Destiny's Child Song Lyrics -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shell expansion (globbing) from inside php cli script
On Thu, 2005-06-30 at 10:47, Bob Winter wrote: Brian, Is /www/files/services/ the correct relative path?? You could try using the absolute path to see if it fixes the problem. Also, and maybe more significant, I use tcsh . . . if you use bash this could be the conflict. I see that the echo of the $cmd string from PHP is missing the '\}' that is in my test. Nope, paths are definitely correct, I also use tcsh.. I that instance I did not use the same syntax as yours but I had tried it in one of the passes. This is a SunOs system and php 4.x so that might be the difference there. Will keep digging. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] reading PDF's
Ben Ramsey wrote: Another, easy way to create PDFs with PHP is to use PDML: http://pdml.sourceforge.net/ As for reading the text from a PDF, maybe there's some sort of OCR library for PHP out there, but I don't know about it. It'd be a great thing to see, though. You wouldn't need OCR in most cases, as the text is stored as real text, not as images of text, in the PDF. Surely there must be a PDF-to-text utility out there somewhere, because there's plenty of open-source PDF reading utils around... Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP vs. ColdFusion
Stéphane Bruno wrote: Once you get to do very advanced things, you need to code using Object Oriented approaches, modular programming, web services, etc. which both products allow you to do. I guess those non-linear crash codes I wrote in Fortran not so many years ago aren't very advanced ... :) It is always funny to read that one needs OO approches to do anything useful. What one needs is a modular approach, re-factoring, and knowing how and why to make tradeoffs when writing code. In any programming language. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] New Free PHP Framework: Lampshade
Hi everyone, We've been charging for our PHP framework, Lampshade, for a long time, but we just decided to make it free for personal and academic use: http://www.thinkcomputer.com/corporate/news/pressreleases.html?id=22 If you have any questions or would like a copy for yourself, let me know. Thanks, Aaron Aaron Greenspan President CEO Think Computer Corporation http://www.thinkcomputer.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] WebHosting suggestions
Hi, hope you have a good programming: I'm still a novice in php topics and I'm looking forward to find a FREE hosting site to publish my .php's, so I hope you could give me an advise, and if the service provides MySQL hosting too, it would be great. That's all, greetings from a really php fan. Thanks in advance. John -- Too much fantasy loses reality, too much hope may seem somehow empty -Toriyama Akira