Re: [PHP] bizzare duplicate mail() call

2005-01-06 Thread Chris
I had a similar problem once upon a time. I had a form, whose results were getting emailed, sending duplicate submissions occasionally. The cause, I surmised, was that someone was stopping the download of the page before it finished, so the code execution stopped, or they were double clicking t

Re: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] SELECT probrem

2005-01-06 Thread Josh Whiting
> Hello Phpu, > > Thursday, January 6, 2005, 10:42:15 AM, you wrote: > > P> I have an array, for ex: $products=array(1, 2, 5 , 7) > P> I want to select all products from the database that has the ids of > products. > P> I use this but doesn't work: > > $product_ids = implode(',', $products); >

[PHP] Propel Persistence Layer

2005-01-06 Thread Torsten Roehr
Hi, I'm considering the Propel DB Persistence Layer for an upcoming project. Does anyone have experience (good or bad) with it? Any things to watch out for? Haven't found much in the list archive. Any comments are much appreciated! Best regards, Torsten Roehr -- PHP General Mailing List (http:

[PHP] Re: PEAR Spreadsheet_Excel_Writer

2005-01-06 Thread Torsten Roehr
"Pedro Irán Méndez Pérez" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > somebody have a example of this class?, because the package don't have, > thank's :) > > = > "¿Acaso se olvidará la mujer de su bebé, y dejará de compadecerse del hijo > de su vientre? Aunque ellas se olvid

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Josh Whiting
> I think I understand where you're coming from. I've had a similar > problem and the best solution I've found is eAccelerator (previously > known as Turck MMCache). What EA does is keep the bytecodes PHP compiles > inshared memory so next time you need that script PHP doesn't need to > recompi

[PHP] Yahoo! Auto Response

2005-01-06 Thread bustamam98
This email address is no longer valid. Original Message: X-YahooFilteredBulk: 211.31.87.204 Authentication-Results: mta104.mail.sc5.yahoo.com from=lists.php.net; domainkeys=neutral (no sig) X-Originating-IP: [211.31.87.204] Return-Path: Received: from 211.31.87.204 (EH

Re: [PHP] On large application organization [long and possibly boring]

2005-01-06 Thread Jamie Alessio
Correct me if I am wrong, but includes (and/or requires) will get all of the code in all of the cases regardless if the case is being processed. You're wrong. The include() and require() statements are only evaluated when they are reached in your application code, so there is a big difference betw

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Adrian Madrid
http://eaccelerator.sourceforge.net/Home Go there, you'll find more about it. In short, Zend hired the lead programmer of MMCache and the project eventually died off. Other people picked it up and developed patches to update it. I believe eAccelerator is the most advanced and stable for me in PH

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread daniel
> I've done some benchmaring and it is quite fast, specially compared to > talking to the DB. Also, phpbeans provides a daemon that can give you > the solution you are looking for, I believe. > > Adrian Hey I just checked out phpbeans, it looks pretty intense, it does have a php deamon that runs a

[PHP] Re: On large application organization [long and possibly boring]

2005-01-06 Thread Jason Barnett
Jay Blanchard wrote: Good afternoon gurus and gurettes, If I have a large app what is the difference, other than having a very large file, of doing this switch($action){ /* several dozen cases to follow */ case "foo": writing out all of the code break; } and

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread daniel
>> >>>From my PHP library I use shm_put_var() and shm_get_var(). If >> serialization is done this way then it is implicit... right? > > Yes, these functions serialize/unserialize behing the scenes. > > -Rasmus Hi, has anyone got an example on howto use the shared memory functions ? I currently

[PHP] Re: bizzare duplicate mail() call

2005-01-06 Thread Manuel Lemos
Hello, on 01/06/2005 07:45 PM Jed R. Brubaker said the following: Hello all - this problem is so wierd that I don't even know where to start. Hopefully you all can give me a couple leads. I have some reporting systems going on in various places on the server - mail() is called when a user does t

[PHP] Re: Subclassing website

2005-01-06 Thread Jason Barnett
Henning Sato von Rosen wrote: Hi all! I want to subclass a large website mainly written in PHP. The sublassing is useful for testing when you want to test a change, a bugfix or a new design, and only a few pages change. The subclass would consist of an almost empty representation of the website co

[PHP] bizzare duplicate mail() call

2005-01-06 Thread Jed R. Brubaker
Hello all - this problem is so wierd that I don't even know where to start. Hopefully you all can give me a couple leads. I have some reporting systems going on in various places on the server - mail() is called when a user does this or that. These scripts are farily simple, so I am next to cer

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Manuel Lemos
Hello, on 01/06/2005 05:24 PM William Lovaton said the following: El jue, 06-01-2005 a las 10:26 -0700, Adrian Madrid escribió: I think I understand where you're coming from. I've had a similar problem and the best solution I've found is eAccelerator (previously known as Turck MMCache). Hold on a

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread William Lovaton
El jue, 06-01-2005 a las 10:52 -0800, Rasmus Lerdorf escribió: > William Lovaton wrote: > >From my PHP library I use shm_put_var() and shm_get_var(). If > > serialization is done this way then it is implicit... right? > > Yes, these functions serialize/unserialize behing the scenes. Rasmus, I a

[PHP] Re: PHP 5 confusion

2005-01-06 Thread Jason Barnett
Don wrote: Hi, Reading the PHP 5 documentation at: HYPERLINK "http://www.php.net/manual/en/language.oop5.basic.php"http://www.php.net/man ual/en/language.oop5.basic.php, I am confused. In the example given, what is the difference between: $assigned = $instance; $reference =& $instance; I w

Re: [PHP] Php error with MySql

2005-01-06 Thread Janet Valade
Wil wrote: I get the following error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wilmail/public_html/elblog.php on line 7 &n=& //error ends here with the following bit of code $qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC"); $n

Re: [PHP] Php error with MySql

2005-01-06 Thread Richard Lynch
Wil Hitchman wrote: > I get the following error > > Warning: mysql_num_rows(): supplied argument is not a valid MySQL result > resource in /home/wilmail/public_html/elblog.php on line 7 > &n=& //error ends here > > with the following bit of code > > $qResult = mysql_query ("SELECT * FROM blog_ent

RE: [PHP] OpenSSL Problem

2005-01-06 Thread Richard Lynch
Gustafson, Tim wrote: > Actually, if you leave the code exactly as-is, but change the > openssl_csr_sign function to create a self-signed certificate, the > entire script executes perfectly. I know there is a lot of error > checking needed - I'm just making a "test" script to get a feel for how >

[PHP] Compiling PHP with external mySQL libraries

2005-01-06 Thread DAvid
1) Does adding 'shared,' as a ./configure option mean the module is compiled as an external, dynamically loaded module as compared to the module being statically linked into the 'exe' file? So that adding 'shared,' means I must add a line in the PHP ini file to load the extension (or load with a

Re: [PHP] Php error with MySql

2005-01-06 Thread Brian Tully
sounds like there's something up with the query, perhaps the wrong table name. as a debugging method I usually use the die() clause when performing a query so I can ensure the query is correct. try using this: $qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC") or die("could n

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Adrian Madrid
I've done some benchmaring and it is quite fast, specially compared to talking to the DB. Also, phpbeans provides a daemon that can give you the solution you are looking for, I believe. Adrian Rasmus Lerdorf wrote: Adrian Madrid wrote: I think I understand where you're coming from. I've had a si

RE: [PHP] Php error with MySql

2005-01-06 Thread Jay Blanchard
[snip] ...stuff... Wil [/snip] I replied to this over an hour ago, please do not repost. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] On large application organization [long and possibly boring]

2005-01-06 Thread Jay Blanchard
Good afternoon gurus and gurettes, If I have a large app what is the difference, other than having a very large file, of doing this switch($action){ /* several dozen cases to follow */ case "foo": writing out all of the code break; } and this switch($acti

Re: [PHP] php ignores php_value from httpd.conf?

2005-01-06 Thread Jason Wong
On Friday 07 January 2005 01:46, Richard Lynch wrote: Just so that the OP has something to look forward to ... > Note, however, that the particular setting you are using, > upload_max_filesize is one of the "oddball" settings that can *NOT* be > over-ridden in .htaccess nor in your PHP script wit

[PHP] Subclassing website

2005-01-06 Thread Henning Sato von Rosen
Hi all! I want to subclass a large website mainly written in PHP. The sublassing is useful for testing when you want to test a change, a bugfix or a new design, and only a few pages change. The subclass would consist of an almost empty representation of the website containing only the changed fil

Re: [PHP] Php error with MySql

2005-01-06 Thread John Nichel
Wil Hitchman wrote: I get the following error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wilmail/public_html/elblog.php on line 7 &n=& //error ends here with the following bit of code $qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY i

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread William Lovaton
El jue, 06-01-2005 a las 10:26 -0700, Adrian Madrid escribió: > I think I understand where you're coming from. I've had a similar > problem and the best solution I've found is eAccelerator (previously > known as Turck MMCache). Hold on a second! I use Turck MMCache but I didn't know about the c

[PHP] PHP 5 confusion

2005-01-06 Thread Don
Hi, Reading the PHP 5 documentation at: HYPERLINK "http://www.php.net/manual/en/language.oop5.basic.php"http://www.php.net/man ual/en/language.oop5.basic.php, I am confused. In the example given, what is the difference between: $assigned = $instance; $reference =& $instance; I would expect

Re: [PHP] Php error with MySql

2005-01-06 Thread John Holmes
> From: "Wil Hitchman" <[EMAIL PROTECTED]> > > I get the following error > > Warning: mysql_num_rows(): supplied argument is not a valid MySQL result > resource in /home/wilmail/public_html/elblog.php on line 7 > &n=& //error ends here > > with the following bit of code > > $qResult = mysql

RE: [PHP] Php error with MySql

2005-01-06 Thread Jay Blanchard
[snip] I get the following error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wilmail/public_html/elblog.php on line 7 &n=& //error ends here with the following bit of code $qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC"); $

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Jason Barnett
What you are talking about is opcode caching. While it certainly speeds things up, it can be done much faster. When you cache a file that contains a large PHP array definition, all you are caching are the instructions to create that array. On every request these instructions need to be loade

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Rasmus Lerdorf
Adrian Madrid wrote: I think I understand where you're coming from. I've had a similar problem and the best solution I've found is eAccelerator (previously known as Turck MMCache). What EA does is keep the bytecodes PHP compiles inshared memory so next time you need that script PHP doesn't need

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Rasmus Lerdorf
William Lovaton wrote: Rasmus, El jue, 06-01-2005 a las 08:23 -0800, Rasmus Lerdorf escribió: On Thu, 6 Jan 2005, William Lovaton wrote: This is great. In my high performance web app I created a PHP library that abstracted this to use several backends. For instance I have a File backend and a SHM

[PHP] Php error with MySql

2005-01-06 Thread Wil
I get the following error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wilmail/public_html/elblog.php on line 7 &n=& //error ends here with the following bit of code $qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC"); $nRows =

[PHP] Php error with MySql

2005-01-06 Thread Wil
I get the following error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wilmail/public_html/elblog.php on line 7 &n=& //error ends here with the following bit of code $qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC"); $nRows =

[PHP] Re: Form to email with Special Characters

2005-01-06 Thread Manuel Lemos
Hello, on 01/06/2005 08:16 AM Hugo Tavares said the following: I'm new (very new) to php. I'm making a simple srcipt wich sends and email from a form. My problem is tha special characters like ç,á,à,é, etc don't work. Can anyone help me? Any 8 bit characters in the message have to be encoded in the

Re: [PHP] XML Filters for illegal characters

2005-01-06 Thread Richard Lynch
Jones, Douglas 1 wrote: > I'm wondering if anyone knows of a filter that can take data to be wrapped > in XML tags and filter this data encoding any illegal XML characters or, > if they cannot be encoded, remove them. The problem I have is a database > that contains text that must be wrapped in XM

Re: [PHP] migrating to PHP 5 + Apache 2 from PHP 4.3.8 + Apache 1.3.33.

2005-01-06 Thread John Nichel
Greg Donald wrote: On Thu, 06 Jan 2005 16:15:43 +, symbulos partners <[EMAIL PROTECTED]> wrote: We know that. We understood all of that. What we need to know is: Please, do not assimilate me. Who's going to clean up this Mt. Dew that I just shot out of my nose? *L* -- John C. Nichel ÜberGeek

Re: [PHP] Regexp help second

2005-01-06 Thread Andrew Kreps
On Thu, 06 Jan 2005 13:50:58 +0100, UroÅ Gruber <[EMAIL PROTECTED]> wrote: > > 1) this is some domain.com test > 2) domain.com > > I can make this work either for first example of fo second, but not for > both. What I want is replace of domain.com to get > > this is dome domain.com domain com te

Re: [PHP] Apache won't start after upgrading to 4.3.10

2005-01-06 Thread Richard Lynch
Matt Blasinski wrote: > I recently upgraded from PHP 4.3.4 to 4.3.10 with Apache 1.3.29 on > Solaris. Before the upgrade, everything was working fine. After, > Apache won't start up correctly. > > 'apachectl start' works correctly, but doesn't load any of the SSL > components. > > 'apachectl star

Re: [PHP] SSL

2005-01-06 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > Thinking of going from http to https on the server. My question is: Would > there be any differences in my php-code from now? No. Well, maybe. You might want to use PHP to detect that you *ARE* on a secure connection. You also migth want to isolate your *need* for SS

[PHP] Php error with MySql

2005-01-06 Thread Wil Hitchman
I get the following error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/wilmail/public_html/elblog.php on line 7 &n=& //error ends here with the following bit of code $qResult = mysql_query ("SELECT * FROM blog_entries ORDER BY id DESC"); $nRows

Re: [PHP] php ignores php_value from httpd.conf?

2005-01-06 Thread Richard Lynch
Steve Kieu wrote: > I am trying to debug the problem I have; which is that php seems to > ignore all php_value I set in httpd.conf. Example I have: > > but when I access http://10.0.44.254:800/some_upload.php > it still sees that the file upload size if 2M (set in global php.ini). > If I comment ou

[PHP] Re: Apologies for the last e-mail concerning (Re: [PHP] migrating to PHP 5 + Apache 2 from PHP 4.3.8 + Apache 1.3.33)

2005-01-06 Thread Richard Lynch
Plan on doing a LOT of testing -- My guesses on the probability of thread-safety were just that: GUESSES Thread-safe bugs are the kind of thing that can remain hidden for *YEARS* or even *DECADES* and not get triggered but once in a million executions of your scripts. By definition, they rely on

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Adrian Madrid
I think I understand where you're coming from. I've had a similar problem and the best solution I've found is eAccelerator (previously known as Turck MMCache). What EA does is keep the bytecodes PHP compiles inshared memory so next time you need that script PHP doesn't need to recompile, EA ret

Re: Re[3]: [PHP] How to argue with ASP people...

2005-01-06 Thread Matthew Sims
> It should be noted that the MS KnowledgeBase article about trying to do a > dynamic include (as of when I last used ASP, years ago) made absolutely NO > mention of using: > >

Re: [PHP] Regexp help second

2005-01-06 Thread Richard Lynch
You could maybe cheat and add an X at the beginning and end of the string before your Regex, then you will have: X\1 \2 \3X and you can strip off the initial X from \1 and the trailing X from \3 There's probably some fancy Regexp way to do it though. Uroš Gruber wrote: > Hi! > > Last help about

Re: [PHP] migrating to PHP 5 + Apache 2 from PHP 4.3.8 + Apache 1.3.33.

2005-01-06 Thread Greg Donald
On Thu, 06 Jan 2005 16:15:43 +, symbulos partners <[EMAIL PROTECTED]> wrote: > We know that. We understood all of that. > > What we need to know is: Please, do not assimilate me. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] OpenSSL Problem

2005-01-06 Thread Richard Lynch
Gustafson, Tim wrote: > I am trying to use the OpenSSL module for PHP on a FreeBSD 4.10 server. > I have CVS'd everything, so I have the most current version of the > FreeBSD port. > > I have attached the PHP file that I'm running. Here's the error message > I get: > > openssl_csr_sign(): cannot g

Re: [PHP] migrating to PHP 5 + Apache 2 from PHP 4.3.8 + Apache 1.3.33.

2005-01-06 Thread Rasmus Lerdorf
On Thu, 6 Jan 2005, Jason Barnett wrote: > Symbulos Partners wrote: > > We know that. We understood all of that. > > > > Let me ask you this. Do you know what underlying libraries are associated > with the extensions you want to use (in your list below)? If you do then you > *should* be able to

Re: [PHP] call a function within the same class

2005-01-06 Thread Richard Lynch
kalinga wrote: > Dear all, > I recently started PHP OOP and I'm bit confused about best and the most > efficient methods when 'declaring a class' and 'calling function', > could somebody > explain me with following sample code, it would be great.. > > thanks.. > > class classLdap{ > > $rslt

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Rasmus Lerdorf
On Thu, 6 Jan 2005, Josh Whiting wrote: > > Anything you do in the MINIT hook is basically free, so it would be > > trivial to load the data for the array from somewhere. Like a database, > > an xml file, etc. So you wouldn't need to hardcode a complex array > > structure in your MINIT hook,

Re: [PHP] endless while loop

2005-01-06 Thread Gunter Sammet
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thursday 06 January 2005 05:17, Gunter Sammet wrote: > >> I am having some trouble getting the following code to work: >> >> if (is_array($bundle_attributes)) { >> >> reset($bundle_attributes); >> >> while (list($option,

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Rasmus Lerdorf
On Thu, 6 Jan 2005, William Lovaton wrote: > Hi Rasmus, > > El lun, 03-01-2005 a las 14:13 -0500, Rasmus Lerdorf escribió: > > If you need to do something fancier you can stick things in shared > > memory. Many of the accelerators give you access to their shared memory > > segments. For examp

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread William Lovaton
Rasmus, El jue, 06-01-2005 a las 08:23 -0800, Rasmus Lerdorf escribió: > On Thu, 6 Jan 2005, William Lovaton wrote: > > This is great. In my high performance web app I created a PHP library > > that abstracted this to use several backends. For instance I have a > > File backend and a SHM backend

RE: [PHP] OpenSSL Problem

2005-01-06 Thread Gustafson, Tim
I figured it out! I had to change the key references to something like this: file://../falconsoft.com.crt Using an absolute path seems to break it. :\ Tim Gustafson MEI Technology Consulting, Inc [EMAIL PROTECTED] (516) 379-0001 Office (516) 480-1870 Mobile/Emergencies (516) 908-4185 Fax http:

Re: [PHP] Image copying

2005-01-06 Thread Richard Lynch
Liam Gibbs wrote: > print(" "\">"); > > So I'm calling the function straight from the SRC attribute of the IMG > tag. Here's what's in my function: > > function copy_pic($sourcepic) { >if(file_exists($sourcepic)) { > $destinationpic = imagecreatetruecolor(imagesx($sourcepic), > imagesy($s

Re: [PHP] migrating to PHP 5 + Apache 2 from PHP 4.3.8 + Apache 1.3.33.

2005-01-06 Thread Jason Barnett
Symbulos Partners wrote: We know that. We understood all of that. Let me ask you this. Do you know what underlying libraries are associated with the extensions you want to use (in your list below)? If you do then you *should* be able to google for each library individually and see if that libr

RE: [PHP] OpenSSL Problem

2005-01-06 Thread Gustafson, Tim
Richard, Actually, if you leave the code exactly as-is, but change the openssl_csr_sign function to create a self-signed certificate, the entire script executes perfectly. I know there is a lot of error checking needed - I'm just making a "test" script to get a feel for how OpenSSL operates in PH

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Josh Whiting
> Anything you do in the MINIT hook is basically free, so it would be > trivial to load the data for the array from somewhere. Like a database, > an xml file, etc. So you wouldn't need to hardcode a complex array > structure in your MINIT hook, just have this generic little extension > that c

Re: [PHP] migrating to PHP 5 + Apache 2 from PHP 4.3.8 + Apache 1.3.33.

2005-01-06 Thread symbulos partners
We know that. We understood all of that. What we need to know is: 1)Are php core function thread safe? 2)Does php have internal mechanisms in php for protecting thread safety (memory leak, threads overwriting memory in use by another thread, blah, blah)? 3)Are the function in this LIMITED LIST

[PHP] OpenSSL Problem

2005-01-06 Thread Gustafson, Tim
Hello I am trying to use the OpenSSL module for PHP on a FreeBSD 4.10 server. I have CVS'd everything, so I have the most current version of the FreeBSD port. I have attached the PHP file that I'm running. Here's the error message I get: openssl_csr_sign(): cannot get cert from parameter 2 The

Re: [PHP] Re: Total Server Sessions

2005-01-06 Thread William Lovaton
Additionally you can check the access time to see which of those sessions has been accessed in the last, let's say, 10 minutes or something. But there are several problems with this. Relying on session files is not good enough, they might be stored in a database or in shared memory. Other problem

Re: [PHP] Setting Up PHP

2005-01-06 Thread John Nichel
George McGuey wrote: I am using SAMS Teach Yourself on PHP,MYSQL and Apache. Everything has gone well except for the final step to test the PHP by creating in Apache htdocs file called phpinfo.php. When I do this and then go to the http://localhost/phpinfo.php to view the information page all

Re: [PHP] Persistent PHP web application?

2005-01-06 Thread William Lovaton
Hi Rasmus, El lun, 03-01-2005 a las 14:13 -0500, Rasmus Lerdorf escribió: > If you need to do something fancier you can stick things in shared > memory. Many of the accelerators give you access to their shared memory > segments. For example, the CVS version of pecl/apc provides apc_store() >

Re: [PHP] Re: apache 1 vs 2 w/php

2005-01-06 Thread William Lovaton
Rasmus, I see much better performance with Apache 2. I'm not an expert in the internals of Apache nor PHP but I guess one of the improvements in apache is the log mechanism, I think it use a different technique that makes it faster that Apache 1.3 The reason I say this is because Apache 1.3 log

Re: [PHP] Re: apache 1 vs 2 w/php

2005-01-06 Thread William Lovaton
My experience dictates the contrary. Apache 2 is much faster with PHP that Apache 1.3. I run an enterprise web application in my company with about 950 users concurrently. I configured the apache logs to add the execution time for each request (this is done with %T in the LogFormat). We started

Re: [PHP] Setting Up PHP

2005-01-06 Thread Mike Smith
You'll need to modify your httpd.conf. Depending on you OS/Apache version it will be different. For Windows/Apache1.3.x: http://us2.php.net/manual/en/install.windows.apache1.php For Windows/Apache2.x: http://us2.php.net/manual/en/install.windows.apache2.php For Linux/Apache1.3.x: http://us2.php.

[PHP] Regexp help second

2005-01-06 Thread UroÅ Gruber
Hi! Last help about regexp solve my problem, but I have another one. I've made some regexp but it does not work always Let say I have some strings 1) this is some domain.com test 2) domain.com I can make this work either for first example of fo second, but not for both. What I want is replace of d

[PHP] Re: Form to email with Special Characters

2005-01-06 Thread Hugo Tavares
Here it is: $headers = "From: $name <$email>\r\n"; $headers .= "Reply-to: $email\r\n"; $headers .= "Return-Path: $email\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: multipart/alternative; charset=\"iso-8859-1\"; boundary=\"$mime_boundary\";\r\n\r\n"; $headers .= "Th

[PHP] Re: Form to email with Special Characters

2005-01-06 Thread Bogomil Shopov
Hello Can you show me the script? Please look first at mail functions on php.net/mail to see how to use headers (and encodings too) Best Regards Bogomil Shopov http://purplerain.org Hugo Tavares wrote: > Hello: > > I'm new (very new) to php. > > I'm making a simple srcipt wich sends and email f

[PHP] Form to email with Special Characters

2005-01-06 Thread Hugo Tavares
Hello: I'm new (very new) to php. I'm making a simple srcipt wich sends and email from a form. My problem is tha special characters like ç,á,à,é, etc don't work. Can anyone help me? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] SELECT probrem

2005-01-06 Thread Richard Davey
Hello Phpu, Thursday, January 6, 2005, 10:42:15 AM, you wrote: P> I have an array, for ex: $products=array(1, 2, 5 , 7) P> I want to select all products from the database that has the ids of products. P> I use this but doesn't work: $product_ids = implode(',', $products); $sql = "SELECT product

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] SELECT probrem

2005-01-06 Thread Phpu
Hi, I have an array, for ex: $products=array(1, 2, 5 , 7) I want to select all products from the database that has the ids of products. I use this but doesn't work: $sql = ''; foreach($products AS $products_id){ if(strlen($sql)){ $sql .= ' OR '; } $sql .= "product_id = '$products_id'"; }

Re: [PHP] Removing all tag

2005-01-06 Thread Christophe Chisogne
Binoy AV a écrit : Hi, I have an html file containing a table. I applied eregi(".*",$contents,$temp) through my Php.I am getting > (...) The code removing only the first and last <(/)tr>. Expected behaviour : regex are 'greedy', ie the .* matches the longuest string possible How to do it usin

RE: [PHP] multiple deleting and updating raw mysql via php

2005-01-06 Thread Sejati Opreker
> [snip] > I meet a problem when I want to deleting a multiple > row, I have a table that contain columns UserID, > name, > company name, and bill. UserID is uniq. > perhaps, some of UserID, say it five UserID I have > to > delete, how to delete all raw that contain that > UserID > ? and if I want

[PHP] Removing all tag

2005-01-06 Thread Binoy AV
Hi, I have an html file containing a table. I applied eregi(".*",$contents,$temp) through my Php.I am getting the output like this- AB CD EF But my expected output is - AB CD EF The code removing only the

Re: [PHP] endless while loop

2005-01-06 Thread Jason Wong
On Thursday 06 January 2005 05:17, Gunter Sammet wrote: > I am having some trouble getting the following code to work: > > if (is_array($bundle_attributes)) { > > reset($bundle_attributes); > > while (list($option, $value) = each($bundle_attributes)) { > > reset($value); > > while (list($option2,

Re: [PHP] Weird search and replace

2005-01-06 Thread Jason Wong
On Thursday 06 January 2005 14:24, Liam Gibbs wrote: Please fix your mail client so that in word wraps properly! > Here's what I need. I have a string such as this: > > "Yadda yadda yadda yadda '32'(l) yadda yadda yadda '2'(l) yadda '419'(l)." > (#2) > > I need to find the strings like '32'(l), '

Re: [PHP] Image copying

2005-01-06 Thread Jason Wong
On Thursday 06 January 2005 14:24, Liam Gibbs wrote: > What I'm trying to do is copy one JPEG to another JPEG (as mentioned) on > the fly. I don't want to have a new file produced, just a modified JPEG (a > few circles here and there) held in a resource. Here's how I call my > function and how I d