php-general Digest 21 Jun 2006 15:47:43 -0000 Issue 4198

2006-06-21 Thread php-general-digest-help
php-general Digest 21 Jun 2006 15:47:43 - Issue 4198 Topics (messages 238452 through 238473): Re: comparing a string 238452 by: yangshiqi1089 helping people... 238453 by: Jochem Maas 238455 by: Barry 238456 by: Rob W. 238459 by: Matthew Pegg

[PHP] helping people...

2006-06-21 Thread Jochem Maas
helping some people will get you no end of trouble. and so it seems as though I'm going to be DoSSed by someone who uses Outlook Express as their mail client. I guess it's monday somewhere. Original Message From: - Wed Jun 21 01:47:39 2006 X-Mozilla-Status: 0001

[PHP] Re: session problem

2006-06-21 Thread Barry
weetat schrieb: Hi all, I have 2 php page , whenever i click the submit in 1st page , the $_SESSION['LIST_OF_DATA'] display nothing in the 2nd page. If i do echo print_r($_SESSION['LIST_OF_DATA']) in first page , it displayed the data correctly. Anybody have any ideas why php session

[PHP] Re: helping people...

2006-06-21 Thread Barry
Jochem Maas schrieb: helping some people will get you no end of trouble. and so it seems as though I'm going to be DoSSed by someone who uses Outlook Express as their mail client. I guess it's monday somewhere. It's the email from Rob W. See further down in this list. Barry -- Smileys

Re: [PHP] helping people...

2006-06-21 Thread Rob W.
No that wasnt a ddos threat you idiot, i dont play them games. And when you keep sending spam is when it starts to piss people off. - Original Message - From: Jochem Maas [EMAIL PROTECTED] To: [php] PHP General List php-general@lists.php.net Sent: Wednesday, June 21, 2006 1:55 AM

[PHP] Fails to enable dynamic library support

2006-06-21 Thread Artzi, Yoav \(Yoav\)
In my phpinfo() I get (under standard): Dynamic Library support not available I can't seem to get PHP to be configured to allow dynamic libraries. My php.ini is: enable_dl=1 extension_dir=/usr/local/lib/php/extensions/no-debug-zts-20050922/ extension=logmanager.so And myconfigure line is:

[PHP] Re: session problem

2006-06-21 Thread weetat
yes i am Thank for you help Barry wrote: weetat schrieb: Hi all, I have 2 php page , whenever i click the submit in 1st page , the $_SESSION['LIST_OF_DATA'] display nothing in the 2nd page. If i do echo print_r($_SESSION['LIST_OF_DATA']) in first page , it displayed the data correctly.

Re: [PHP] helping people...

2006-06-21 Thread Matthew Pegg
Subject: Re: [PHP] helping people... No that wasnt a ddos threat you idiot, i dont play them games. And when you keep sending spam is when it starts to piss people off. Rob W: Seriously mate, you are way... way outa line here. I've only used this list once and all I can say is...thank god

[PHP] Re: session problem

2006-06-21 Thread Barry
weetat schrieb: Let me take a guess: Your FORM action is action=http:// Barry yes i am Thank for you help Ookay ... no problem ... probably . Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Stream download problem

2006-06-21 Thread Jochem Maas
Michael Satterwhite wrote: Prathaban Mookiah wrote: Micheal, I ran into this problem too. A easy workaround is to right click and choose 'save as' which worked for me. I wish that would work. The URL is along the lines of a href=easy.php?download=streamdltype=full - and it's this that

[PHP] popen and pclose. Something changed in 4.4.2 ! ....Fixed

2006-06-21 Thread Venkatesh M. S.
On windows, allow Apache service to interact with the desktop... in the services manager GUI Rgds Venkat ** Greetings! I was using popen and pclose on a previous version of PHP on Windows with an older version of Apache (2.x). ( I think it was 4.4.1 but will need to check as

Re: [PHP] Processing HTML in mail form

2006-06-21 Thread Joe Wollard
(sorry for the duplicate response Parathaban, forgot to reply to the list) Look at example 4 from http://us3.php.net/function.mail $headers = 'MIME-Version: 1.0' . \r\n; $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n; That should get you started. On Jun 20, 2006, at

[PHP] xhtml to pdf conversion

2006-06-21 Thread Manoj Singh
Hello all, I am developing a script which converts the xhtml to pdf. Now the problem is : I am applying multiple fonts in this script according to HTML Font Tag but when pdf is generated the pdf file gives error The Font Name of font Contain a bad /BBox.. So please advice me what should i do

[PHP] Custom static extension compilation

2006-06-21 Thread Artzi, Yoav \(Yoav\)
After trying to compile my custom extension as a dynamic extension, I decided to try to compile it as a static one. I found out that I have to copy the directory with the sources and the config.m4 to the ext directory under the source dir and call ./buildconf --force to rebuild the configure

Re: [PHP] Custom static extension compilation

2006-06-21 Thread Jochem Maas
sounds like you know more about this stuff than I do, but I thought I might suggest to remove the threadsafe/pthreads/optimization related configure options to see if the problem then goes away... this suggestion is based on the fact that php and threadsafety stuff is kind of 'bleedingedge' ...

Re: [PHP] Stream download problem

2006-06-21 Thread Michael Satterwhite
Jochem Maas wrote: Michael Satterwhite wrote: Prathaban Mookiah wrote: Micheal, I ran into this problem too. A easy workaround is to right click and choose 'save as' which worked for me. I wish that would work. The URL is along the lines of a href=easy.php?download=streamdltype=full - and

Re: [PHP] helping people...

2006-06-21 Thread John Nichel
Rob W. wrote: No that wasnt a ddos threat you idiot, i dont play them games. So what was your threat then Robbie? Here's an idea, do your own damn homework. And if all you're going to do here is cry like a little girl*, do us a favor and STFU. *sorry to give all the little girls a bad

Re: [PHP] Stream download problem

2006-06-21 Thread chris smith
On 6/21/06, Michael Satterwhite [EMAIL PROTECTED] wrote: Jochem Maas wrote: Michael Satterwhite wrote: Prathaban Mookiah wrote: Micheal, I ran into this problem too. A easy workaround is to right click and choose 'save as' which worked for me. I wish that would work. The URL is along the

Re: [PHP] Stream download problem

2006-06-21 Thread Jochem Maas
Michael Satterwhite wrote: Jochem Maas wrote: Michael Satterwhite wrote: Prathaban Mookiah wrote: Micheal, I ran into this problem too. A easy workaround is to right click and choose 'save as' which worked for me. I wish that would work. The URL is along the lines of a

Re: [PHP] A way to stop spam on this list

2006-06-21 Thread Jochem Maas
this is a weird thread, so I thought I'd add another OT comment :-)... MOKULEN_IMADICA wrote: Dear Lyan and Tedd. yes,it is exactly.We,the japanese,don't create one like PHP and Linux sushi, samurai, walkman, ruby - +4 for the japanese :-) oh and I saw the craziest japanese robots in a

Re: [PHP] helping people...

2006-06-21 Thread Adam Zey
Rob W. wrote: No that wasnt a ddos threat you idiot, i dont play them games. And when you keep sending spam is when it starts to piss people off. - Original Message - From: Jochem Maas [EMAIL PROTECTED] To: [php] PHP General List php-general@lists.php.net Sent: Wednesday, June 21, 2006

[PHP] Re: comparing a string

2006-06-21 Thread Adam Zey
Rafael wrote: (inline) Adam Zey wrote: Rafael wrote: A single = it's an assignment, not a comparison; and though it sometimes work, you shouldn't compare strings with ==, but using string functions, such as strcmp()... or similar_text(), etc. This is PHP, not C. Operators such as ==

RE: [PHP] Stream download problem

2006-06-21 Thread Kristen G. Thorson
-Original Message- From: Michael Satterwhite [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 8:32 PM To: PHP Users Subject: [PHP] Stream download problem I have a site that generates a file to be streamed down. The relevant code is:

[PHP] Re: [MailServer Notification]Content Filtering Notification

2006-06-21 Thread Adam Zey
[EMAIL PROTECTED] wrote: Content Filter @ AIT Batam has detect violation of the PROFANITY rule, and Quarantine entire message has been taken on 21-Jun-2006 22:49:25. Message details: Server:BTMAIL Sender: [EMAIL PROTECTED]; Recipient:[EMAIL PROTECTED];php-general@lists.php.net; Subject:Re:

RE: [PHP] Stream download problem

2006-06-21 Thread Kristen G. Thorson
-Original Message- From: Michael Satterwhite [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 12:11 PM To: Kristen G. Thorson Subject: Re: [PHP] Stream download problem Kristen G. Thorson wrote: -Original Message- From: Michael Satterwhite [mailto:[EMAIL

[PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Ryan A
Hello, First off, I admit this is not going to be as interesting as the helping someone thread, and hopefully there is not going to be any talk of DDOS or flaming :-p Ok, here goes, I have never done anything _exactly_ like this but since typo 3 has this kind of functionality (and i have never

Re: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Philip Thompson
Quoting Ryan A [EMAIL PROTECTED]: Hello, First off, I admit this is not going to be as interesting as the helping someone thread, and hopefully there is not going to be any talk of DDOS or flaming :-p Ok, here goes, I have never done anything _exactly_ like this but since typo 3 has this

RE: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread KermodeBear
Hello, There is an EXCELLENT article at MySQL.com that talks about storing hierarchal data, which is exactly what you want to do. The theory is not MySQL specific, so you can apply it to any database system. It covers two techniques, one of which Philip Thompson covered, and another that I

Re: [PHP] Re: [MailServer Notification]Content Filtering Notification

2006-06-21 Thread John Nichel
Adam Zey wrote: [EMAIL PROTECTED] wrote: Content Filter @ AIT Batam has detect violation of the PROFANITY rule, and Quarantine entire message has been taken on 21-Jun-2006 22:49:25. Message details: Server:BTMAIL Sender: [EMAIL PROTECTED]; Recipient:[EMAIL

[PHP] XML_Serializer and creating multi-level XML

2006-06-21 Thread Graham Anderson
How can you use XML_Serializer to generate XML with multiple levels ? XML_Serializer seems really useful for single level XML docs like: parent child/ child/ child/ /parent How can I get XML_Serializer to do something like the below ? parent child

Re: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Ryan A
Ryan, I have run into a similar problem with one of the sites I'm designing. Here's the approach I took. You can see if it fits your needs. Here's an example of what I have: MID NAMEPARENT_ID LOCATION 1Homenull index.php 2Productsnull

RE: [PHP] GD problems

2006-06-21 Thread Beauford
This is the output from ?php var_dump(gd_info()); ?. As far as I can tell, jpeg support is enabled. It also says it is if I run phpinfo(). Yet is still doesn't work. Anyone know of a way I can test this further. A small script perhaps. Thanks array(11) { [GD Version]= string(27) bundled

RE: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Mark Steudel
You could use a recursive function and keep it all in one table. My Table is similar to the one below: ID NAMEPID DISPLAY_ORDER Here's crude recursive function to display this in a list typical of what you used to style a menu. The great thing about this is that you could have

Re: [PHP] Re: [MailServer Notification]Content Filtering Notification

2006-06-21 Thread Jochem Maas
my mail server just overheated John :-) John Nichel wrote: Adam Zey wrote: [EMAIL PROTECTED] wrote: Content Filter @ AIT Batam has detect violation of the PROFANITY rule, and Quarantine entire message has been taken on 21-Jun-2006 22:49:25. Message details: Server:BTMAIL Sender: [EMAIL

Re: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Jochem Maas
hi Ryan, (btw: if this thread needs spicing up with DoS threats give me a shout and I'll see if can come up with something ;-) with regard to your original question/comments - do not go the route of using 2 tables... you will very quickly find it unwieldy and limiting (e.g. one table for each

RE: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED] on Wednesday, June 21, 2006 10:51 AM said: @K. Bear - Thanks for the link, I'll check it out as soon as i get a little time. Read that article. I personally like the Nested Set (also called Modified Preorder Tree Traversal) method. It may at first be a

RE: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Ryan A
Hey Chris, It may at first be a little daunting but once you understand how it works, it all makes sense. Only one table is needed and you can have as many children, grand children, etc. as want/need. Sounds good, I will def have a look at the article, I came here asking for help, will

Re: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread D. Dante Lorenso
If you are using PostgreSQL, there is a 'connectby' function (part of contrib) which will recursively join hierarchical data where you have PID -- ID recursive joins. Oracle also has CONNECT BY built into the SQL language. I do not know if MySQL natively supports anything similar but maybe

Re: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Ryan A
Hey, If you are using PostgreSQL, there is a 'connectby' function (part of contrib) which will recursively join hierarchical data where you have PID -- ID recursive joins. Oracle also has CONNECT BY built into the SQL language. I do not know if MySQL natively supports anything

Re: [PHP] GD problems

2006-06-21 Thread Chris
Beauford wrote: This is the output from ?php var_dump(gd_info()); ?. As far as I can tell, jpeg support is enabled. It also says it is if I run phpinfo(). Yet is still doesn't work. Show us some code that doesn't work and you'll probably get some suggestions. -- Postgresql php tutorials

Re: [PHP] Fails to enable dynamic library support

2006-06-21 Thread Chris
Artzi, Yoav (Yoav) wrote: In my phpinfo() I get (under standard): Dynamic Library support not available I can't seem to get PHP to be configured to allow dynamic libraries. My php.ini is: enable_dl=1 extension_dir=/usr/local/lib/php/extensions/no-debug-zts-20050922/ extension=logmanager.so

[PHP] sort multidimension array

2006-06-21 Thread weetat
Hi all, I have multi-arrays as shown below: I implemented usort() to sort the array by 'country' field in the array. However there some empty string value in the array and i setup my cmpcountry() function to sort array, however , some country empty string value are sort first . Any ideas

Re: [PHP] sort multidimension array

2006-06-21 Thread David Tulloh
Examine your function for the case of cmpcountry(Thailand, ); if($country2 == '') is true if($country1 $country2) is false Then ($country1 $country2) is false again and 1 is returned. This means that is less than Thailand, and should be sorted higher. The easiest way to fix this is actually

Re: [PHP] Fails to enable dynamic library support

2006-06-21 Thread David Tulloh
From the dl page of the manual, Note: dl() is not supported in multithreaded Web servers... By passing the --enable-maintainer-zts flag you are forcing PHP into running in multithreaded mode. David Artzi, Yoav (Yoav) wrote: In my phpinfo() I get (under standard): Dynamic Library support not

[PHP] Re: comparing a string

2006-06-21 Thread Rafael
(inline --and last post on this thread) Adam Zey wrote: Rafael wrote: (inline) Adam Zey wrote: Rafael wrote: A single = it's an assignment, not a comparison; and though it sometimes work, you shouldn't compare strings with ==, but using string functions, such as strcmp()... or

Re: [PHP] sort multidimension array

2006-06-21 Thread weetat
Hi David , Thanks for your input, it solve my problem. David Tulloh wrote: Examine your function for the case of cmpcountry(Thailand, ); if($country2 == '') is true if($country1 $country2) is false Then ($country1 $country2) is false again and 1 is returned. This means that is less

RE: [PHP] GD problems

2006-06-21 Thread Beauford
There is something wonky with gd. I completely reinstalled Slackware today, including PHP, gd, and all the other stuff - and still nothing. I downloaded 5 separate captcha scripts and only got one to work. The code in all of them is very similar in that it creates a graphic with random letters