Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Chris
Dave M G wrote: PHP List, Recently I wrote a piece of code to scrape data from an HTML page. Part of that code deleted all the unwanted text from the very top of the page, where it says !DOCTYPE, all the way down to the first instance of a ul tag. That code looks like this:

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Dave Goodchild
On 04/08/06, Chris [EMAIL PROTECTED] wrote: Dave M G wrote: PHP List, Recently I wrote a piece of code to scrape data from an HTML page. Part of that code deleted all the unwanted text from the very top of the page, where it says !DOCTYPE, all the way down to the first instance of a ul

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Dave M G
Chris, Ligaya, Dave, Thank you for responding. I understand the difference in principle between ereg and preg much better now. Chris wrote: ! in perl regular expressions means not so you need to escape it: \! Still, when including that escape character, the following preg expression does

RE: [PHP] The difference between ereg and preg?

2006-08-04 Thread Ford, Mike
On 04 August 2006 10:52, Dave M G wrote: Chris, Ligaya, Dave, Thank you for responding. I understand the difference in principle between ereg and preg much better now. Chris wrote: ! in perl regular expressions means not so you need to escape it: \! AFAIR, that's only true in the (?!

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Dave M G
Jochem, Thank you for responding. does this one work?: preg_replace('#^\!DOCTYPE(.*)ul[^]*#is', '', $htmlPage); Yes, that works. I don't think I would have every figured that out on my own - it's certainly much more complicated than the ereg equivalent. If I may push for just one more

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Robin Vickery
On 04/08/06, Dave M G [EMAIL PROTECTED] wrote: It seemed that the main difference was that preg_replace required forward slashes around the regular expression, like so: preg_replace(/!DOCTYPE(.*)ul/, , $htmlPage); It requires delimiters - slashes are conventional, but other characters can be

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Jochem Maas
Dave M G wrote: Chris, Ligaya, Dave, Thank you for responding. I understand the difference in principle between ereg and preg much better now. Chris wrote: ! in perl regular expressions means not so you need to escape it: \! Still, when including that escape character, the following

[PHP] Problem with wrapper script for Tidy

2006-08-04 Thread Frank Arensmeier
Hello. Since my ISP does not provide the tidy module for Apache, I tested writing a wrapper script for a locally installed tidy binary. In general, the script is triggered by a modification to the .htaccess file like so: AddHandler server-parsed .php Action server-parsed

RE: [PHP] The difference between ereg and preg?

2006-08-04 Thread Ford, Mike
On 04 August 2006 11:30, Dave M G wrote: Jochem, Thank you for responding. does this one work?: preg_replace('#^\!DOCTYPE(.*)ul[^]*#is', '', $htmlPage); Yes, that works. I don't think I would have every figured that out on my own - it's certainly much more complicated than the

[PHP] OT promotion candidates needed

2006-08-04 Thread Jay Blanchard
Good news/kinda' bad news (but not really); I am proud to say that I have been promoted to Director of IT in my little corner of the world. This creates an immediate opening for a creative applications developer with PHP, MySQL, Oracle, the usual web skills/experience in the San Antonio, Texas

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Jochem Maas
Dave M G wrote: Jochem, Thank you for responding. does this one work?: preg_replace('#^\!DOCTYPE(.*)ul[^]*#is', '', $htmlPage); Yes, that works. I don't think I would have every figured that out on my own - it's certainly much more complicated than the ereg equivalent. 1. the '^' at

[PHP] Regular Expresson for checking password strength

2006-08-04 Thread James Nunnerley
I want to have a regular expression that check the following criteria are met by $password: - contains at least 6 characters (any) - has at least 1 letter - has at least 1 number - other 6 characters can be anything... I'm happy to work out the structure of a postcode etc, but to be honest I'm

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Jochem Maas
Ford, Mike wrote: On 04 August 2006 11:30, Dave M G wrote: Jochem, ... That's where capturing expressions and backreferences come in handy: preg_replace (/.*li(.*)br.*/, $1, $htmlPage); (add qualifiers and other options to taste, as before!) ah yes, good point - you can do it

[PHP] Newbie Form Question

2006-08-04 Thread David Ellsworth
I was wondering how simple it would be to set up a script to provide a subscribe/unsubscribe form for a list serve. The form would send an email to the subscribe address or unsubscribe address as selected. Thanks David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] OT promotion candidates needed

2006-08-04 Thread Jochem Maas
Jay Blanchard wrote: Good news/kinda' bad news (but not really); I am proud to say that I have been promoted to Director of IT in my little corner of the world. did they give you some pointy hair to go with that title? ;-) congrats btw :-) This creates an immediate opening for a creative

Re: [PHP] PAYPAL TRANSACTION.

2006-08-04 Thread Shafiq Rehman
On 7/31/06, Chris [EMAIL PROTECTED] wrote: BBC wrote: Hi list.. Please any one point me to the web which talk about making transaction with paypal step by step. Some body offered me the source code and tutorial but until know he or she didn't send me. http://www.paypal.com I'm sure

RE: [PHP] Newbie Form Question

2006-08-04 Thread Jay Blanchard
[snip] I was wondering how simple it would be to set up a script to provide a subscribe/unsubscribe form for a list serve. The form would send an email to the subscribe address or unsubscribe address as selected. [/snip] I wondered about that the other day myself and came to the conclusion that

Re: [PHP] Newbie Form Question

2006-08-04 Thread Duncan Hill
On Friday 04 August 2006 13:27, Jay Blanchard wrote: [snip] I was wondering how simple it would be to set up a script to provide a subscribe/unsubscribe form for a list serve. The form would send an email to the subscribe address or unsubscribe address as selected. [/snip] I wondered about

Re: [PHP] Newbie Form Question

2006-08-04 Thread Russell Jones
In most cases, your PHP build is set up with mail() attached to whatever SMTP you have on the server. you would just use the following... mail($recipientemail,$subject,$message); On 8/4/06, Duncan Hill [EMAIL PROTECTED] wrote: On Friday 04 August 2006 13:27, Jay Blanchard wrote: [snip] I

Re: [PHP] Newbie Form Question

2006-08-04 Thread David Ellsworth
Yes, the list serve software has the opt-in/confirmation stuff covered. I'm just trying to get the sub/unsub form on the website going. Thanks David On 8/4/06 8:40 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: are you doing your own mailing list management, or using a package that includes

[PHP] Re: Regular Expresson for checking password strength

2006-08-04 Thread Al
James Nunnerley wrote: I want to have a regular expression that check the following criteria are met by $password: - contains at least 6 characters (any) - has at least 1 letter - has at least 1 number - other 6 characters can be anything... I'm happy to work out the structure of a postcode

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Dave M G
Jochem, Thank you for responding, and for explaining more about regular expressions. yes but you wouldn't use preg_replace() but rather preg_match() or preg_match_all() which gives you back an array (via 3rd/4th[?] reference argument) which contains the texts that matched (and therefore want

Re: [PHP] Newbie Form Question

2006-08-04 Thread David Ellsworth
what I need is what I would use after the form is submitted - responding to whether the form sent the value (post likely from a dropdown field) of subscribe or unsubscribe to the posted page for processing. On 8/4/06 8:52 AM, Duncan Hill [EMAIL PROTECTED] wrote: On Friday 04 August 2006 13:27,

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Jochem Maas
Dave M G wrote: Jochem, Thank you for responding, and for explaining more about regular expressions. yes but you wouldn't use preg_replace() but rather preg_match() or preg_match_all() which gives you back an array (via 3rd/4th[?] reference argument) which contains the texts that

[PHP] writing to fild on another server

2006-08-04 Thread blackwater dev
I have a web server and an images server. My web server doesn't have enought space for the images, hence the images server. I have to download properties from a realty database hourly and the data goes in to a db on my webserver while the image needs to be taken from a MSSQL db and written to

Re: [PHP] writing to fild on another server

2006-08-04 Thread Brad Bonkoski
blackwater dev wrote: I have a web server and an images server. My web server doesn't have enought space for the images, hence the images server. I have to download properties from a realty database hourly and the data goes in to a db on my webserver while the image needs to be taken from

Re: [PHP] writing to fild on another server

2006-08-04 Thread Duncan Hill
On Friday 04 August 2006 15:50, blackwater dev wrote: I have a web server and an images server. My web server doesn't have enought space for the images, hence the images server. I have to download properties from a realty database hourly and the data goes in to a db on my webserver while the

Re: [PHP] writing to fild on another server

2006-08-04 Thread Paul Scott
On Fri, 2006-08-04 at 10:50 -0400, blackwater dev wrote: Fopen, however, won't let me write using the http protocol. How can I open and write files between servers? This scenario would be one of the times that I would use LOB's for the image data. That way you could simply drop in another

Re: [PHP] writing to fild on another server

2006-08-04 Thread Robert Cummings
On Fri, 2006-08-04 at 10:50 -0400, blackwater dev wrote: I have a web server and an images server. My web server doesn't have enought space for the images, hence the images server. I have to download properties from a realty database hourly and the data goes in to a db on my webserver while

[PHP] Re: Regular Expresson for checking password strength

2006-08-04 Thread Adam Zey
Al wrote: James Nunnerley wrote: I want to have a regular expression that check the following criteria are met by $password: - contains at least 6 characters (any) - has at least 1 letter - has at least 1 number - other 6 characters can be anything... I'm happy to work out the structure of a

Re: [PHP] writing to fild on another server

2006-08-04 Thread Ray Hauge
On Friday 04 August 2006 10:07, Robert Cummings wrote: You mean the http protocol won't let you write. At any rate, you can try using ftp instead of http (you'll need to make sure it's set up on the images server). Alternatively you can use a network file system or use CURL or low level

[PHP] Re: The difference between ereg and preg?

2006-08-04 Thread Adam Zey
Dave M G wrote: PHP List, Recently I wrote a piece of code to scrape data from an HTML page. Part of that code deleted all the unwanted text from the very top of the page, where it says !DOCTYPE, all the way down to the first instance of a ul tag. That code looks like this:

[PHP] php behind firewall

2006-08-04 Thread Andrew Senyshyn
Hi all, I need to get local user IP, but server with apache and php is in another subnetwork. So from server environment I can get only router's IP. The only solution that I see - is getting with some magic algorithm local IP from brouser and sending it to server. My application is for

Re: [PHP] php behind firewall

2006-08-04 Thread Jochem Maas
Andrew Senyshyn wrote: Hi all, I need to get local user IP, but server with apache and php is in another subnetwork. So from server environment I can get only router's IP. The only solution that I see - is getting with some magic algorithm local IP from brouser and sending it to server.

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread John Nichel
Dave M G wrote: PHP List, Recently I wrote a piece of code to scrape data from an HTML page. Part of that code deleted all the unwanted text from the very top of the page, where it says !DOCTYPE, all the way down to the first instance of a ul tag. That code looks like this:

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Robert Cummings
On Fri, 2006-08-04 at 13:03 -0400, John Nichel wrote: Perl compatible regexs are faster* and more powerful. Course, writing a good Perl regex is an art form in itself (probably why O'Reilly released a book just on regexs), and takes some time (and headaches) to master (if one ever does

Re: [PHP] php behind firewall

2006-08-04 Thread tedd
At 12:55 PM -0400 8/4/06, John Nichel wrote: Wait, are you telling me that I can't auth my customers based on IP alone? Great, now how do I let them view their sensitive data? ;) Okay, how do you? tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP

Re: [PHP] php behind firewall

2006-08-04 Thread John Nichel
tedd wrote: At 12:55 PM -0400 8/4/06, John Nichel wrote: Wait, are you telling me that I can't auth my customers based on IP alone? Great, now how do I let them view their sensitive data? ;) Okay, how do you? Retina scan, and DNA sample. Seriously though, not by IP in any way, shape or

Re: [PHP] php behind firewall

2006-08-04 Thread John Nichel
Jochem Maas wrote: Andrew Senyshyn wrote: Hi all, I need to get local user IP, but server with apache and php is in another subnetwork. So from server environment I can get only router's IP. The only solution that I see - is getting with some magic algorithm local IP from brouser and sending

Re: [PHP] php behind firewall

2006-08-04 Thread tedd
At 1:26 PM -0400 8/4/06, John Nichel wrote: tedd wrote: At 12:55 PM -0400 8/4/06, John Nichel wrote: Wait, are you telling me that I can't auth my customers based on IP alone? Great, now how do I let them view their sensitive data? ;) Okay, how do you? Retina scan, and DNA sample.

RE: [PHP] php behind firewall

2006-08-04 Thread Jim Moseby
Thanks. Not that I have done this on the net, but has anyone thought about using a fuzzy logic approach to the problem? While it wouldn't be a perfect solution, you could set a threshold you're comfortable with. Also while your DNA comment was meant to be humorous, it's not a bad

Re: [PHP] php behind firewall

2006-08-04 Thread Austin Denyer
Jim Moseby wrote: I recently read an article about IP fingerprinting. The concept is that every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable differences in the way they communicate. It was very in-depth, but it worked amazingly well. If I can find the article, I'll post

RE: [PHP] Saving a dynamic file

2006-08-04 Thread Miguel Guirao
Using the OB functions I got it done!! Thanks y'all!! Miguel -Original Message- From: Weber Sites [mailto:[EMAIL PROTECTED] Behalf Of WeberSites LTD Sent: Sabado, 29 de Julio de 2006 02:00 p.m. To: 'MIGUEL ANTONIO GUIRAO AGUILERA'; php-general@lists.php.net Subject: RE: [PHP] Saving a

RE: [PHP] php behind firewall

2006-08-04 Thread Jim Moseby
Jim Moseby wrote: I recently read an article about IP fingerprinting. The concept is that every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable differences in the way they communicate. It was very in-depth, but it worked amazingly well. If I can find the article,

Re: [PHP] php behind firewall

2006-08-04 Thread Jochem Maas
Jim Moseby wrote: Jim Moseby wrote: I recently read an article about IP fingerprinting. The concept is that every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable differences in the way they communicate. It was very in-depth, but it worked amazingly well. If I can find the

Re: [PHP] php behind firewall

2006-08-04 Thread John Nichel
Jochem Maas wrote: Jim Moseby wrote: Jim Moseby wrote: I recently read an article about IP fingerprinting. The concept is that every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable differences in the way they communicate. It was very in-depth, but it worked amazingly well.

Re: [PHP] php behind firewall

2006-08-04 Thread Jochem Maas
John Nichel wrote: Jochem Maas wrote: Jim Moseby wrote: Jim Moseby wrote: I recently read an article about IP fingerprinting. The concept is that every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable differences in the way they communicate. It was very in-depth, but it

Re: [PHP] php behind firewall

2006-08-04 Thread Austin Denyer
Jochem Maas wrote: John Nichel wrote: Well, if you would stop using the Vic20, and upgrade! how dare you call my altair a vic20. new-fangled rubbish. ;-) you want real authentication? get some carrier pidgeons like us real programmers. So, how many different tunes did you get your Altair

Re: [PHP] php behind firewall

2006-08-04 Thread Adam Zey
tedd wrote: At 1:26 PM -0400 8/4/06, John Nichel wrote: tedd wrote: At 12:55 PM -0400 8/4/06, John Nichel wrote: Wait, are you telling me that I can't auth my customers based on IP alone? Great, now how do I let them view their sensitive data? ;) Okay, how do you? Retina scan, and DNA

Re: [PHP] php behind firewall

2006-08-04 Thread Jochem Maas
Austin Denyer wrote: Jochem Maas wrote: John Nichel wrote: Well, if you would stop using the Vic20, and upgrade! how dare you call my altair a vic20. new-fangled rubbish. ;-) you want real authentication? get some carrier pidgeons like us real programmers. So, how many different tunes did

Re: [PHP] php behind firewall

2006-08-04 Thread Austin Denyer
Jim Moseby wrote: Found it: http://www.caida.org/publications/papers/2005/fingerprinting/ Thanks! Interesting stuff... Regards, Austin. signature.asc Description: OpenPGP digital signature

RE: [PHP] php behind firewall

2006-08-04 Thread Jim Moseby
Jim Moseby wrote: Found it: http://www.caida.org/publications/papers/2005/fingerprinting/ Thanks! Interesting stuff... Regards, Austin. No problem. My recollection of the technique was a bit off, but the concept was still there. ;-) JM -- PHP General Mailing List

Re: [PHP] php behind firewall

2006-08-04 Thread Richard Lynch
On Fri, August 4, 2006 10:25 am, Andrew Senyshyn wrote: I need to get local user IP, but server with apache and php is in another subnetwork. So from server environment I can get only router's IP. The only solution that I see - is getting with some magic algorithm local IP from brouser and

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-04 Thread Manuel Lemos
Hello, on 08/03/2006 02:49 PM Robert Cummings said the following: The point of the post is that there is no framework in particular to recommend. I use my own packages for my needs. They suit me well. It does not mean they will suit everybody. How would you know that there is no framework to

Re: [PHP] Newbie Form Question

2006-08-04 Thread Richard Lynch
On Fri, August 4, 2006 7:14 am, David Ellsworth wrote: I was wondering how simple it would be to set up a script to provide a subscribe/unsubscribe form for a list serve. The form would send an email to the subscribe address or unsubscribe address as selected. It's pretty simple: ?php if

Re: [PHP] Problem with wrapper script for Tidy

2006-08-04 Thread Richard Lynch
Did you try to use - as the file and pipe the output?... That might work... As far as the Tidy not validating the included PHP, I'm not sure what you mean, but I don't see this making the PHP code any less secure than it was before you wrapped Tidy around it... On Fri, August 4, 2006 6:21 am,

Re: [PHP] Postcode proximity classes

2006-08-04 Thread Richard Lynch
On Thu, August 3, 2006 4:27 pm, tedd wrote: At 2:23 PM -0500 8/3/06, Richard Lynch wrote: Note that the number of zip codes is around 60K in the TIGER data, and there have been a whole mess of zip codes added since then. Can you get the postal code by themselves? The last time I looked at

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-04 Thread Robert Cummings
On Fri, 2006-08-04 at 17:15 -0300, Manuel Lemos wrote: Hello, on 08/03/2006 02:49 PM Robert Cummings said the following: The point of the post is that there is no framework in particular to recommend. I use my own packages for my needs. They suit me well. It does not mean they will suit

RE: [PHP] php behind firewall

2006-08-04 Thread Richard Lynch
On Fri, August 4, 2006 1:08 pm, Jim Moseby wrote: Jim Moseby wrote: I recently read an article about IP fingerprinting. The concept is that every PC-NIC-CABLE-FIREWALL combination has subtle, but measurable differences in the way they communicate. It was very in-depth, but it

[PHP] Re: Regular Expresson for checking password strength

2006-08-04 Thread Al
Adam Zey wrote: Al wrote: James Nunnerley wrote: I want to have a regular expression that check the following criteria are met by $password: - contains at least 6 characters (any) - has at least 1 letter - has at least 1 number - other 6 characters can be anything... I'm happy to work out

Re: [PHP] problem using

2006-08-04 Thread Richard Lynch
On Wed, July 26, 2006 8:40 am, Jochem Maas wrote: How did you know that he had an extra space in $u? Actually... Since he's getting them from a file, and since fread() and friends INCLUDE the newline at the end, I would now suggest that the extra character is a single newline, and not a space.

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-04 Thread Manuel Lemos
Hello, on 08/03/2006 02:53 PM Robert Cummings said the following: The main thing in Manual's post that got me writing this in the first place was : Imagine if there would be only one PDBC (JDBC for PHP). Instead of that we have a never ending choice of PHP database abstraction layers that

Re: [PHP] Big files management

2006-08-04 Thread Richard Lynch
On Wed, July 26, 2006 5:16 am, Yannick Warnier wrote: I'm trying to deal with big files (over 4GB) with PHP4.3.9 ans PHP4.4 but obviously it's not really possible. You can't use something like file_get_contents() or file() because it would pull the whole 4GB into RAM, but http://php.net/fopen

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-04 Thread Manuel Lemos
Hello, on 08/03/2006 02:52 PM Kilbride, James P. said the following: I admit I have not expressed myself clearly. What I meant is not that people should be disallowed to implement alternative APIs, but rather that they should not feel the need to do it. In the Java world, JDBC is the de

RE: [PHP] pop up save dialog box

2006-08-04 Thread Richard Lynch
On Wed, July 26, 2006 7:00 am, Jay Blanchard wrote: [snip] I have code below which save MYSQL to csv file. I am using ADODB library to do this. The saving MYSQL to csv file is ok . However i need to allow the the user to enter file name for csv file. Anybody have any ideas how to

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-04 Thread Robert Cummings
On Fri, 2006-08-04 at 17:23 -0300, Manuel Lemos wrote: Hello, on 08/03/2006 02:53 PM Robert Cummings said the following: The main thing in Manual's post that got me writing this in the first place was : Imagine if there would be only one PDBC (JDBC for PHP). Instead of that we have a

Re: [PHP] mail headers

2006-08-04 Thread Richard Lynch
On Tue, July 25, 2006 11:47 pm, Chris wrote: There's a default for reply-to in the php.ini? What's the variable called - I can't see one. I can see these: ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ; For Unix only. You may supply arguments as well (default: 'sendmail -t -i').

Re: [PHP] Lots of queries!

2006-08-04 Thread Richard Lynch
Put this at the top of the script: ?php error_reporting(E_ALL);? Also, it's possible that the browser is timing out if the script is too slow. Another issue is that if you are closing/reopening the 2 database connections between steps 2 and 3, then it's probably not very efficient. Keeping them

Re: [PHP] Error Reporting for file commands

2006-08-04 Thread Richard Lynch
On Tue, July 25, 2006 10:32 am, James Nunnerley wrote: We've created a file manager which allows users to access their web space on a server. It's working brilliantly, except that it would seem there are some caching issues, either by the system cache or the web server cache that are

Re: [PHP] PHP Developer Needed in San Jose, CA w/ Occasional Travel to Palo Alto

2006-08-04 Thread Richard Lynch
On Mon, July 24, 2006 11:58 pm, Paul Scott wrote: On Mon, 2006-07-24 at 14:17 -0500, Franco Pawlisz wrote: My Client is specifically looking for a developer with strong front end PHP experience knowledge of Java and or Ruby is a major plus. What the heck is front end PHP, or am I

[PHP] Please help me with in_array

2006-08-04 Thread Chris G
Hi all I have been stuck on this problem for 4 hours. Please anyone that can help here I would appreciate it. If I print_r($_GET) I have Array ([question] = Array ( [10] = 1 [11] = 2 [12] = 1 [13] = 1)' So now I try foreach($_GET['question'] as $key) { if(!in_array($key,

Re: [PHP] Efficiency question

2006-08-04 Thread Richard Lynch
On Tue, July 25, 2006 11:41 pm, Paul Scott wrote: I have googled around a bit, but not really found anything useful... Which is more efficient? A case switch or a $$method style method? An example: switch($action) { case 'edit': //do some stuff ... return

Re: [PHP] database connections

2006-08-04 Thread Richard Lynch
On Mon, July 24, 2006 10:46 am, Ryan A wrote: This is not really a problem, more like a slightly OT question. Recently I have been testing some CMS/carts/BB boards and other related software, sometimes at the end of the page the software outputs the time it took to generate the page and the

Re: [PHP] Please help me with in_array

2006-08-04 Thread Jochem Maas
Chris G wrote: Hi all I have been stuck on this problem for 4 hours. Please anyone that can help here I would appreciate it. If I print_r($_GET) I have Array ([question] = Array ( [10] = 1 [11] = 2 [12] = 1 [13] = 1)' So now I try foreach($_GET['question'] as $key) {

Re: [PHP] database connections

2006-08-04 Thread Richard Lynch
On Mon, July 24, 2006 1:33 pm, Ryan A wrote: Hey Rob, Thanks for replying. It's usually a sign of poor programming and/or purist OOP programming. When I say purist OOP programming... I saw one really retarded implementation of this kind of system where an excess of 2 queries were

Re: [PHP] xml v php question

2006-08-04 Thread Richard Lynch
On Tue, July 25, 2006 8:33 am, David Tulloh wrote: Larry Garfield wrote: Disable short tags. The correct answer is (b). (PHP 6 won't even have short tags, so get used to not having them.) Can you find anywhere where this was announced? I don't recall seeing any decision on it. A quick

Re: [PHP] Please help me with in_array

2006-08-04 Thread Jochem Maas
Chris G wrote: I have already tried using foreach($_GET['question'] as $key = $value) the in_array function does not work with it for some reason. 'does not work with it' ?? use var_dump(); to see what's actually in your variables. On 8/5/06, *Jochem Maas* [EMAIL PROTECTED]

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-04 Thread Manuel Lemos
Hello, on 08/03/2006 05:18 PM Martin Alterisio said the following: Anyway, you may want to read this more in depth reflection of the state of the PHP framework world and recommendations on how to pick what suits best for you:

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Dave M G
Jochem Thank you for your continued assistance. ^--- remove the caret as you dont want to only match when the line starts with li (the li can be anywhere on the line) Ah, I get it now. I was confused about the meaning of the caret. I'll assume you also have the mb extension setup.

Re: [PHP] The difference between ereg and preg?

2006-08-04 Thread Robert Cummings
On Sat, 2006-08-05 at 10:50 +0900, Dave M G wrote: Jochem Thank you for your continued assistance. ^--- remove the caret as you dont want to only match when the line starts with li (the li can be anywhere on the line) Ah, I get it now. I was confused about the meaning of the caret.

[PHP] Upload files problem with IIS server

2006-08-04 Thread Mace Eliason
Hi, I am having problems with uploading files to a windows server using php. I have used the same script on other server with no problems. From what I can tell this new server is running windows with IIS. I think the problem is with the path. Does anyone have any suggestions? Here is a

[PHP] Strip non-alphanumerics from beginning and end?

2006-08-04 Thread Brian Dunning
Is there a command to strip all non-alphanumerics form the beginning and end of a string? Ex.: '^%kj.h,kj..*(' becomes 'kj.h,kj' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strip non-alphanumerics from beginning and end?

2006-08-04 Thread Robert Cummings
On Fri, 2006-08-04 at 19:12 -0700, Brian Dunning wrote: Is there a command to strip all non-alphanumerics form the beginning and end of a string? Ex.: '^%kj.h,kj..*(' becomes 'kj.h,kj' ?php $text = ereg_replace( '^[^[:alnum:]]+', '', $text ); $text = ereg_replace( '[^[:alnum:]]+$', '',

Re: [PHP] Upload files problem with IIS server

2006-08-04 Thread chris smith
On 8/5/06, Mace Eliason [EMAIL PROTECTED] wrote: Hi, I am having problems with uploading files to a windows server using php. I have used the same script on other server with no problems. From what I can tell this new server is running windows with IIS. I think the problem is with the path.