Re: [PHP] Encode e-mail text in UTF-8

2012-11-21 Thread MC
with the Microsoft's SMTP server results in malformed e-mail. MC On 21. 11. 2012 11:30, MC wrote: what is the recommended way to encode e-mail text in UTF-8? When the site were running in a single byte code page like iso-8859-2 I were happy with the imap_8bit function and quoted-prin

Re: [PHP] Encode e-mail text in UTF-8

2012-11-21 Thread MC
8bit or imap_mail_compose function? Parts/attachements which are rendered as BASE64 are not being malformed, just the quoted printable ones. Thanks, MC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Encode e-mail text in UTF-8

2012-11-20 Thread MC
pages like UTF-8. I have tried to search for alternatives but failed to find anything useful. Thanks in advance for any tips. MC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to parse PHP tags in a string?

2007-02-07 Thread Zak Mc Kracken
Hi all, Is there a PHP function that parses a string as it was the content of a PHP file? I have a CMS application and editors write the news items text into a text area. Since they have some knowledge of PHP, I'd like to allow them to insert or and have the content blocks parsed and executed.

[PHP] php code to upload a url correctly

2007-01-26 Thread Corden James (RW3) CM&MC Manchester
I have a form in which users submit a url. I am having problems as some people submit the url in the format http://www.blah.blah.org while others submit in the format www.blah.blah.org I have designed the form so that it seems fairly obvious

Re: [PHP] memory leak when referencing associative arrays

2006-02-14 Thread Gonzalo MC
Gonzalo MC escribió: Jochem Maas escribió: Gonzalo MC wrote: Hi Jochem, Thank you very much for your reply! no problem :-) Your reply lend me this morning to had a look again at the code, and I have solved more than half of the trouble caused by a leak on a PhpGtk function

Re: [PHP] memory leak when referencing associative arrays

2006-02-14 Thread Gonzalo MC
Jochem Maas escribió: Gonzalo MC wrote: Hi Jochem, Thank you very much for your reply! no problem :-) Your reply lend me this morning to had a look again at the code, and I have solved more than half of the trouble caused by a leak on a PhpGtk function! :-) Sorry for the more long

Re: [PHP] memory leak when referencing associative arrays

2006-02-14 Thread Gonzalo MC
ication is active receiving data -that was really the more compromising thing- I'll have to find the time to refactor carefully the main processing loop to plain functions -a 170kb. code class- and not get caught by bugs... again :-) Just a matter of processing a lot of global data within

Re: [PHP] memory leak when referencing associative arrays

2006-02-14 Thread Gonzalo MC
ication is active receiving data -that was really the more compromising thing- I'll have to find the time to refactor carefully the main processing loop to plain functions -a 170kb. code class- and not get caught by bugs... again :-) Just a matter of processing a lot of global data within

[PHP] memory leak when referencing associative arrays

2006-02-12 Thread Gonzalo MC
Hi all, I'm having some pain with this process. I'll try to explain it well, my english is little bad... :-) I've got two main loops, handled by timeouts. One loop calls to an object method every half second to do a computation. It reads from external device, creates helper arrays for calcu

Re: [PHP] PHP and Post Data

2004-12-21 Thread Shane Mc Cormack
other products. Just redistrbute it according to the license. - Original Message - From: "Shane Mc Cormack" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 21, 2004 10:36 PM Subject: Re: [PHP] PHP and Post Data That works on a normal webser

Re: [PHP] PHP and Post Data

2004-12-21 Thread Shane Mc Cormack
That works on a normal webserver yes. However, I am programming my own, and I have the Posted Data stored in the memory of the webserver, and when i execute the PHP.exe i need to tell it what the PostData is somehow. - Shane John Nichel wrote: Shane Mc Cormack wrote: Hi I'm trying to inte

[PHP] PHP and Post Data

2004-12-21 Thread Shane Mc Cormack
Hi I'm trying to integrate PHP Support into a basic webserver i am creating for personal use (Windows). However i've run into a problem. I've got the _GET vars working, (using the QUERY_STRING Environment Variable), yet i can't figure out how to get the _POST vars set. my webserver has the POST

[PHP] Attachments with Mail()

2003-10-23 Thread Don Mc Nair
Hi Can anyone tell me how to add a file as an attachment to an email sent with something like the following ? $headers = "From: <".$fromaddress.">\r\n"; $headers .= "Reply-To: <$fromaddress>\r\n"; mail($toaddress, $subject, $mailcontent, $headers); Thanks Don --- Outgoing mail is certifie

[PHP] How to know wheter a message will be logged or not

2003-10-02 Thread Zak Mc Kracken
Hi all, I'm using syslog() function to log messages. My problem is enough typical. An example: syslog ( LOG_DEBUG, "The function output is: " . very_slow_func () ); Since very_slow_func() is, as written, very slow, I would like to know in advance if this message will be actually logged or not, so

Re: [PHP] Attention: List Administrator

2003-09-19 Thread Don Mc Nair
I got 21 emails with attachments today from Microsoft. Don "Payne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Raquel Rice wrote: > > >On Fri, 19 Sep 2003 15:39:12 + > >Curt Zirzow <[EMAIL PROTECTED]> wrote: > > > > > > > >>* Thus wrote Chris Sherwood ([EMAIL PROTECTED]):

[PHP] Arrays and Alphabetical order

2003-07-22 Thread Don Mc Nair
Hi folks I am trying to print out a table of elements in alphabetical order. I have an SQL query which sorts out the data in order and am using 'while ($info =(mysql_fetch_row...etc)) to read the data array. I need it to echo out a table with all the A's first, then a blank line, then all the B's,

[PHP] file creation (again)

2003-01-24 Thread Don Mc Nair
Thanks for all the help so far folks. I have finally got PHP to create a page on the web server now but the owner is set to apache. As it uses an include() function it will not allow me to display the page giving Warning: SAFE MODE Restriction in effect. uid not allowed to etc. I dont seem to

[PHP] Re: value not displayed

2003-01-24 Thread Don Mc Nair
Use "Rahul" <[EMAIL PROTECTED]> wrote in message 00b301c2c38e$c9d83f80$[EMAIL PROTECTED]">news:00b301c2c38e$c9d83f80$[EMAIL PROTECTED]... > Hello All, > > When i pass a value through browser to a php page as below > > http://www.xyz.com/test.php?abc=test > > But when i try to display the variab

[PHP] File Permissions

2003-01-24 Thread Don Mc Nair
Sorry if this is not really PHP related but I can't get it to work. I am using fopen and I get the following: Warning: fopen("testfile2.php", "w") - Permission denied in /usr/local/psa/home/vhosts/complementarymedicines.net/httpdocs/reg/regformte st.php on line 411 I have tried setting this part

[PHP] Re: Auto Incrementing in PHP

2003-01-19 Thread Don Mc Nair
t; SET number = '".($auto_number +1)."'"; $result = mysql_query($query); } Simple when someone tells you what to do :o) Thanks and regards. "Don Mc Nair" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

[PHP] Auto Incrementing in PHP

2003-01-18 Thread Don Mc Nair
Hi Is there a way for a php page to automatically increment a number and store it every time the page is loaded. I want to generate an invoice number that goes up 1 everytime the HTML form is sent to it. Thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http:/

[PHP] Dumping Tables from MySQL

2003-01-14 Thread Don Mc Nair
Hi folks I am having trouble writing a script to dump the data from tables in MYSQL. Can anyone provide help on how to use the mysqldump command within PHP (4.2). Many thanks Don www.complementarymedicines.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http:/

[PHP] phpOpenTracker.

2002-12-05 Thread Dave Mc
Hi, Is anyone on the list using this package? I've searched and can find no examples of its use, outside those provided on the OpenTracker Website. Is it possible to use the package on multiple hosted sites? All my virtuals show up as one site and the referers include my site. Confu

[PHP] Unique Array

2001-09-10 Thread Deirdre Mc Cann
Hi Can anyone help me? I need to produce a random and uniques array using numbersbetween 0 and 9. I tried to create a random array and them make it unique. for ($i = 0; $i<100; $i++){ $a[$i] = rand(0,9); $test=$a[$i]; } $ra = array_unique($test); I keep getting an err