php-general Digest 25 Jun 2006 11:27:26 -0000 Issue 4204

2006-06-25 Thread php-general-digest-help
php-general Digest 25 Jun 2006 11:27:26 - Issue 4204 Topics (messages 238579 through 238589): Re: STRING TO ASCII CHARACTERS 238579 by: John Hicks Re: Cookie Question 238580 by: John Meyer 238582 by: Robert Cummings 238585 by: Larry Garfield Re: Extracting

php-general Digest 25 Jun 2006 23:56:01 -0000 Issue 4205

2006-06-25 Thread php-general-digest-help
php-general Digest 25 Jun 2006 23:56:01 - Issue 4205 Topics (messages 238590 through 238598): New install platform 238590 by: Grae Wolfe - PHP 238591 by: Larry Garfield 238592 by: Joe Wollard 238593 by: tedd 238594 by: Johan Martin Problem Displaying

[PHP] mail() returns false but e-mail is sent ?

2006-06-25 Thread Leonidas Safran
Hello, I'm wondering about the behavior of the mail() function. $sent = mail($destination, $subject, $content, $headers); I use some optional header parameters: From:[EMAIL PROTECTED]: 1.0\r\nContent-Type: text/plain; charset=ISO-8859-1\r\nContent-Transfer-Encoding: quoted-printable\r\n. Can

[PHP] New install platform

2006-06-25 Thread Grae Wolfe - PHP
It has become evident that I need some form of local testing environment so that I can figure out what is wrong with one of my $sql statements. Can anyone tell me what the easiest platform is to set up a PHP/MySQL system? I have a PC and a Mac on OS X, and with the use of VirtualPC I have

Re: [PHP] New install platform

2006-06-25 Thread Larry Garfield
IME, any modern Linux distro will let you setup a viable Apache/PHP/MySQL configuration with a few clicks/commands in its package manager of choice. I am partial to Debian and Ubuntu, as that's where most of my experience is. And it's very easy to setup a barebones system that you just put

Re: [PHP] New install platform

2006-06-25 Thread Joe Wollard
For a simple OS X install you can either modify the existing Apache/PHP install and add MySQL or use entropy's package from http://www.entropy.ch/software/macosx/php/ On 6/25/06, Grae Wolfe - PHP [EMAIL PROTECTED] wrote: It has become evident that I need some form of local testing

Re: [PHP] New install platform

2006-06-25 Thread tedd
At 8:08 AM -0600 6/25/06, Grae Wolfe - PHP wrote: It has become evident that I need some form of local testing environment so that I can figure out what is wrong with one of my $sql statements. Can anyone tell me what the easiest platform is to set up a PHP/MySQL system? I have a PC and a Mac

Re: [PHP] New install platform

2006-06-25 Thread Johan Martin
On 25 Jun 2006, at 4:08 PM, Grae Wolfe - PHP wrote: It has become evident that I need some form of local testing environment so that I can figure out what is wrong with one of my $sql statements. Can anyone tell me what the easiest platform is to set up a PHP/ MySQL system? I have a PC

[PHP] Problem Displaying Images

2006-06-25 Thread Prathaban Mookiah
I am trying to manage images with a web database application. It works fine with MySQL 5.0.17 and PHP 5.1.1. But when I port it to another machine that runs MySQL 3.23.54 and PHP 4.2.2, I have problems viewing the images retrieved from the database in the browser. The relevant part of the

Re: [PHP] mail() returns false but e-mail is sent ?

2006-06-25 Thread Chris
Leonidas Safran wrote: Hello, I'm wondering about the behavior of the mail() function. $sent = mail($destination, $subject, $content, $headers); I use some optional header parameters: From:[EMAIL PROTECTED]: 1.0\r\nContent-Type: text/plain; charset=ISO-8859-1\r\nContent-Transfer-Encoding:

Re: [PHP] Problem Displaying Images

2006-06-25 Thread Chris
Prathaban Mookiah wrote: I am trying to manage images with a web database application. It works fine with MySQL 5.0.17 and PHP 5.1.1. But when I port it to another machine that runs MySQL 3.23.54 and PHP 4.2.2, I have problems viewing the images retrieved from the database in the browser.

[PHP] Protoeditor 1.0 (PHP editor)

2006-06-25 Thread Thiago Silva
Hello, I've just released version 1.0 of Protoeditor. Protoeditor is a small KDE text editor (so, for GNU/Linux desktops) developed for debugging scripts interactively. Currently you can use it to edit and debug PHP scripts interactively, with step into/over/out, breakpoints, inspecting

Re: [PHP] Problem Displaying Images

2006-06-25 Thread Prathaban Mookiah
Oh sorry. I use addslashes(). -- Original Message --- From: Chris [EMAIL PROTECTED] To: Prathaban Mookiah [EMAIL PROTECTED] Cc: php-general@lists.php.net php-general@lists.php.net Sent: Mon, 26 Jun 2006 07:14:42 +1000 Subject: Re: [PHP] Problem Displaying Images Prathaban

Re: [PHP] Problem Displaying Images

2006-06-25 Thread Chris
Prathaban Mookiah wrote: Oh sorry. I use addslashes(). Then you'll probably need to use stripslashes before printing out the data. echo stripslashes($Result[data]); -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] CLI - php shell script worked under php4, breaks under php5

2006-06-25 Thread weston
A while back I wrote a little read-eval-print loop that essentially constituted a very basic php shell: http://weston.canncentral.org/misc/phpsh.txt This has almost always run fine for me with the cgi versions of php 4, and often proves to be a great help in quickly testing various snippets of

[PHP] xmldoc issue

2006-06-25 Thread weetat
Hi all , I have two server . In first server , which PHP version 4.3.2, the code below is ok : function validatexmlfile($xmlfilename) { $_logger = new Log4jLogger(); $_logger-logdebug(starting validate xml); $_logger-logdebug(starting validate xml

Re: [PHP] xmldoc issue

2006-06-25 Thread Chris
weetat wrote: Hi all , I have two server . In first server , which PHP version 4.3.2, the code below is ok : function validatexmlfile($xmlfilename) { $_logger = new Log4jLogger(); $_logger-logdebug(starting validate xml); $_logger-logdebug(starting validate

[PHP] Array to String

2006-06-25 Thread weetat
Hi all, I have the error below in my PHP version 4.3.2: PHP Notice: Array to string conversion in /data/html/library/config.php on line 45 If i have turned on the magic_quotes in php.ini, it is ok . Any ideas? It cause by the code below: if (!get_magic_quotes_gpc()) { if

Re: [PHP] Array to String

2006-06-25 Thread Chris
You are probably passing some variables into POST or GET using the array notation: /mypage.php?var[]=fredvar[]=wilma $_GET['var'] will be an array inside mypage.php, You should probably check to see if it's an array then, if it is, loop through each element of the var array Chris weetat

Re: [PHP] CLI - php shell script worked under php4, breaks under php5

2006-06-25 Thread David Tulloh
[EMAIL PROTECTED] wrote: A while back I wrote a little read-eval-print loop that essentially constituted a very basic php shell: http://weston.canncentral.org/misc/phpsh.txt This has almost always run fine for me with the cgi versions of php 4, and often proves to be a great help in

[PHP] Sad PHP Poem

2006-06-25 Thread Martin Alterisio
offtopic type=slightly offtopic class=poetic literary A sad poem of an algorithm where solitude brought excessive use of cpu cycles and memory allocation for redundant data (it copied over and over again the same image till all memory was filled with it) --

RE: [PHP] xmldoc issue

2006-06-25 Thread Yeo Wee Tat
Thanks you are right. Btw, I have another question: How to modified value in xml file using php ? Thanks. Yeo Wee Tat Tel: +65-62730049 Fax: +65-62734934 Cxrus Solutions Pte Ltd (Singapore . Thailand) 1003 Bukit Merah Central #05-20 Singapore 159836 System Integration . Business Solutions .

Re: [PHP] Sad PHP Poem

2006-06-25 Thread Robert Cummings
On Mon, 2006-06-26 at 00:25, Martin Alterisio wrote: I hope you enjoyed the poem and the fact that I didn't ask you to fix it or find the bug in it =D That's great, thanks for the laugh. Cheers, Rob. -- .. | InterJinn Application

Re: [PHP] xmldoc issue

2006-06-25 Thread Chris
Yeo Wee Tat wrote: Thanks you are right. Btw, I have another question: How to modified value in xml file using php ? http://www.php.net/manual/en/ref.xmlwriter.php -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Problem Displaying Images

2006-06-25 Thread Prathaban Mookiah
I wish it would work. But id doesn't. But this time I do get a heavily distorted image being displayed. But as I said earlier, in combination of MySQL 5 and PHP 5 works good. The problem is with PHP4 and MySQL 5. Thanks. Prathap -- Original Message --- From: Chris [EMAIL

Re: [PHP] Problem Displaying Images

2006-06-25 Thread Chris
Prathaban Mookiah wrote: I wish it would work. But id doesn't. But this time I do get a heavily distorted image being displayed. But as I said earlier, in combination of MySQL 5 and PHP 5 works good. The problem is with PHP4 and MySQL 5. I doubt the php5/php4 thing is an issue, I think it's

Re: [PHP] Sad PHP Poem

2006-06-25 Thread Ligaya Turmelle
Martin Alterisio wrote: offtopic type=slightly offtopic class=poetic literary A sad poem of an algorithm where solitude brought excessive use of cpu cycles and memory allocation for redundant data (it copied over and over again the same image till all memory was filled with it)