php-general Digest 19 Feb 2008 16:05:46 -0000 Issue 5302

2008-02-19 Thread php-general-digest-help
php-general Digest 19 Feb 2008 16:05:46 - Issue 5302 Topics (messages 269587 through 269628): Re: mysql input 269587 by: Robert Cummings 269589 by: Bastien Koert 269590 by: Shawn McKenzie 269591 by: Robert Cummings 269598 by: Richard Heyes

[PHP] Re: Call PHP script from MySQL

2008-02-19 Thread Colin Guthrie
Mário Gamito wrote: Hi, Is it possible to call from within MySQL an external PHP script ? I've read MySQL Stored Procedure Programming from O'Reilly but found nothing :( How can I do this ? Any help would be appreciated. Could be that a Trigger does what you want?

Re: [PHP] www. not working

2008-02-19 Thread Christoph
Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent sysadmins, but there it is... Really? So games.yahoo.com blogreport.salon.com mirror1.downloads.com are examples of screwed up records by incompetent sysadmins? thnx,

[PHP] Re: Call PHP script from MySQL

2008-02-19 Thread Nathan Rixham
Mário Gamito wrote: Hi, Is it possible to call from within MySQL an external PHP script ? I've read MySQL Stored Procedure Programming from O'Reilly but found nothing :( How can I do this ? Any help would be appreciated. Warm Regards, Mário Gamito Mário, I'd really like to see an

Re: [PHP] Re: mysql input

2008-02-19 Thread Richard Heyes
Shawn McKenzie wrote: nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them so that they dont fuck up my mysql command? -e Have you tried: dont_fuck_up_my_mysql_command() Hrmph, I can't seem to find

[PHP] Call PHP script from MySQL

2008-02-19 Thread Mário Gamito
Hi, Is it possible to call from within MySQL an external PHP script ? I've read MySQL Stored Procedure Programming from O'Reilly but found nothing :( How can I do this ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] More than one values returned?

2008-02-19 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: On Monday 18 February 2008, Nick Stinemates wrote: I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of proper encapsulation. You mean

Re: [PHP] Call PHP script from MySQL

2008-02-19 Thread Zoltán Németh
2008. 02. 19, kedd keltezéssel 21.08-kor Mário Gamito ezt írta: Hi, Is it possible to call from within MySQL an external PHP script ? I've read MySQL Stored Procedure Programming from O'Reilly but found nothing :( How can I do this ? I think from MySQL you can not call outside

Re: [PHP] Re: mysql input

2008-02-19 Thread Zoltán Németh
2008. 02. 19, kedd keltezéssel 11.03-kor Nathan Rixham ezt írta: Richard Heyes wrote: Shawn McKenzie wrote: nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them so that they dont fuck up my mysql

[PHP] Re: fopen never ends?

2008-02-19 Thread Nathan Rixham
Paul van Brouwershaven wrote: When you run the folling script, it will never ends? I have seen this more then once, I know that there is no service running at the target host, but why is the script not printing the failed message? It's only with a few ip-number I have this problem. if ($fp

Re: [PHP] Re: mysql input

2008-02-19 Thread Nathan Rixham
Nathan Rixham wrote: Zoltán Németh wrote: 2008. 02. 19, kedd keltezéssel 11.03-kor Nathan Rixham ezt írta: Richard Heyes wrote: Shawn McKenzie wrote: nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them

Re: [PHP] Re: Call PHP script from MySQL

2008-02-19 Thread Mário Gamito
Hi Nathan, Is it possible to call from within MySQL an external PHP script ? I've read MySQL Stored Procedure Programming from O'Reilly but found nothing :( I'd really like to see an example of why you need this functionality, if that'd be okay. Not to judge, just to learn :) I'm

Re: [PHP] Re: mysql input

2008-02-19 Thread Nathan Rixham
Zoltán Németh wrote: 2008. 02. 19, kedd keltezéssel 11.03-kor Nathan Rixham ezt írta: Richard Heyes wrote: Shawn McKenzie wrote: nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them so that they dont fuck

Re: [PHP] Re: mysql input

2008-02-19 Thread Nathan Rixham
Richard Heyes wrote: Shawn McKenzie wrote: nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them so that they dont fuck up my mysql command? -e Have you tried: dont_fuck_up_my_mysql_command() Hrmph, I

Re: [PHP] www. not working

2008-02-19 Thread Børge Holen
On Tuesday 19 February 2008 10:43:04 Christoph wrote: Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent sysadmins, but there it is... Really? So games.yahoo.com blogreport.salon.com mirror1.downloads.com are

[PHP] fopen never ends?

2008-02-19 Thread Paul van Brouwershaven
When you run the folling script, it will never ends? I have seen this more then once, I know that there is no service running at the target host, but why is the script not printing the failed message? It's only with a few ip-number I have this problem. if ($fp = fopen('https://81.23.227.9',

[PHP] System errno in PHP

2008-02-19 Thread Michal Maras
Hello everybody Coud somebody tell me if it is possible to get integer value of variable which name in C is errno end in perl $!. I am PHP beginner so I am sorry if question is 'stupid'. By

Re: [PHP] More than one values returned?

2008-02-19 Thread tedd
At 6:06 PM -0800 2/18/08, Nick Stinemates wrote: Thats a good example, and a good reason for passing values by Reference instead of by Value. I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of proper encapsulation.

[PHP] Re: fopen never ends?

2008-02-19 Thread Paul van Brouwershaven
Nathan Rixham wrote: I don't think this is a php problem, just load the url up in a browser and you'll see the same, appears to be a misconfigured server at the otherside - probably confused about not being passed a name based host header in the request. I know that my browser is also waiting

Re: [PHP] System errno in PHP

2008-02-19 Thread Stut
Michal Maras wrote: Coud somebody tell me if it is possible to get integer value of variable which name in C is errno end in perl $!. I am PHP beginner so I am sorry if question is 'stupid'. What function are you calling where you expect to get a system error? Check the manual page for that

RE: [PHP] More than one values returned?

2008-02-19 Thread Andrés Robinet
-Original Message- From: Nathan Rixham [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 5:17 AM To: php-general@lists.php.net Subject: Re: [PHP] More than one values returned? Robert Cummings wrote: On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: On Monday 18

RE: [PHP] Hiding all browser toolbars - how?

2008-02-19 Thread Jay Blanchard
[snip] Greetings everyone! I am currently working on a web application (aren't we all?). The main page which users will look at is simply a login prompt, and upon logging in a new browser window will be launched. I would like that window to have no browser bars, etc so all of the space taken up by

Re: [PHP] Question about cURL, and iFrames...

2008-02-19 Thread Jason Pruim
On Feb 18, 2008, at 9:19 AM, Dan Joseph wrote: On Feb 15, 2008 9:43 AM, Jason Pruim [EMAIL PROTECTED] wrote: I am trying to think through something, I am writing a simple proxy script for my own knowledge and to simplify my life :) What I want to do is bring in multiple website by going to

RE: [PHP] mysql input

2008-02-19 Thread Bastien Koert
I agree, but they all provide some level of handling just might not be the 'most correct' way of handling it bastien Subject: RE: [PHP] mysql input From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED]; php-general@lists.php.net Date: Mon, 18 Feb 2008 23:31:21 -0500 On Mon,

Re: [PHP] System errno in PHP

2008-02-19 Thread Michal Maras
Hi I am asking about errno for Filesystems functions like fopen, fread, fclose, ... On 19/02/2008, Stut [EMAIL PROTECTED] wrote: Michal Maras wrote: Coud somebody tell me if it is possible to get integer value of variable which name in C is errno end in perl $!. I am PHP beginner so

[PHP] Hiding all browser toolbars - how?

2008-02-19 Thread Matty Sarro
Greetings everyone! I am currently working on a web application (aren't we all?). The main page which users will look at is simply a login prompt, and upon logging in a new browser window will be launched. I would like that window to have no browser bars, etc so all of the space taken up by the

RES: [PHP] Hiding all browser toolbars - how?

2008-02-19 Thread Thiago Pojda
quote [snip] Greetings everyone! I am currently working on a web application (aren't we all?). The main page which users will look at is simply a login prompt, and upon logging in a new browser window will be launched. I would like that window to have no browser bars, etc so all of the space taken

[PHP] js to php help

2008-02-19 Thread tedd
Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in javascript to POST? Thanks in advance for any suggestions. Cheers, tedd --

[PHP] Re: Call PHP script from MySQL

2008-02-19 Thread Colin Guthrie
Mário Gamito wrote: Hi Nathan, Is it possible to call from within MySQL an external PHP script ? I've read MySQL Stored Procedure Programming from O'Reilly but found nothing :( I'd really like to see an example of why you need this functionality, if that'd be okay. Not to judge, just to

Re: [PHP] Re: mysql input

2008-02-19 Thread Nathan Rixham
Bastien Koert wrote: thats awesome bastien To: php-general@lists.php.net Date: Tue, 19 Feb 2008 11:21:02 + From: [EMAIL PROTECTED] Subject: Re: [PHP] Re: mysql input Zoltán Németh wrote: 2008. 02. 19, kedd keltezéssel 11.03-kor Nathan Rixham ezt írta: Richard Heyes wrote: Shawn

RE: [PHP] Re: mysql input

2008-02-19 Thread Bastien Koert
thats awesome bastien To: php-general@lists.php.net Date: Tue, 19 Feb 2008 11:21:02 + From: [EMAIL PROTECTED] Subject: Re: [PHP] Re: mysql input Zoltán Németh wrote: 2008. 02. 19, kedd keltezéssel 11.03-kor Nathan Rixham ezt írta: Richard Heyes wrote: Shawn McKenzie wrote: nihilism

Re: [PHP] Question about cURL, and iFrames...

2008-02-19 Thread Daniel Brown
On Feb 19, 2008 9:44 AM, Jason Pruim [EMAIL PROTECTED] wrote: Hey Dan, Thanks for the response. Do you think that there is a better way to pull in another webpage other then curl? I mean, could I simply include 'HTTP://www.mykillersite.com'; and have all the link work? I'll have to try that

[PHP] Re: js to php help

2008-02-19 Thread Nathan Rixham
Nathan Rixham wrote: tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in javascript to POST? Thanks in advance for any

Re: [PHP] www. not working

2008-02-19 Thread Daniel Brown
On Feb 19, 2008 4:43 AM, Christoph [EMAIL PROTECTED] wrote: Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent sysadmins, but there it is... Really? So games.yahoo.com blogreport.salon.com mirror1.downloads.com

Re: [PHP] System errno in PHP

2008-02-19 Thread Michal Maras
I am now using filesystem functions fopen, fread, fclose, ... On 19/02/2008, Stut [EMAIL PROTECTED] wrote: Michal Maras wrote: Coud somebody tell me if it is possible to get integer value of variable which name in C is errno end in perl $!. I am PHP beginner so I am sorry if question

Re: [PHP] System errno in PHP

2008-02-19 Thread Nick Stinemates
Michal Maras wrote: I am now using filesystem functions fopen, fread, fclose, ... On 19/02/2008, Stut [EMAIL PROTECTED] wrote: Michal Maras wrote: Coud somebody tell me if it is possible to get integer value of variable which name in C is errno end in perl $!. I

Re: [PHP] Hiding all browser toolbars - how?

2008-02-19 Thread Daniel Brown
On Feb 19, 2008 9:10 AM, Matty Sarro [EMAIL PROTECTED] wrote: Greetings everyone! I am currently working on a web application (aren't we all?). The main page which users will look at is simply a login prompt, and upon logging in a new browser window will be launched. I would like that window

Re: [PHP] Re: mysql input

2008-02-19 Thread admin
Filter the data $data = str_replace(', , $data); I am sure there are many ways to filter the data before insert. (If you are SURE you have A.D.D. then it wont matter what I say to you.) Rick B. On Feb 18, 2008 11:24 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: nihilism machine wrote:

[PHP] MySQL Stored Procedures

2008-02-19 Thread admin
I want to thank all who helped me on this issue. My Problem was when I tried to return a parameter to the C++ script. CREATE PROCEDURE `tracinsert`(CaldNumber varchar(12), CaldTime varchar(50), CallerID varchar(12)) BEGIN INSERT INTO IncCalls (CaldNumber, CaldTime, CallerID) VALUES

Re: [PHP] Re: Call PHP script from MySQL

2008-02-19 Thread Sancar Saran
Hello, you may call external php script someting like that $val = asp's_fopen(http://www.example.com/calculate.php?var=password_field); php // calculate.php echo correct hash (vpopmail); ? Regards Sancar On Wednesday 20 February 2008 01:58:48 Mário Gamito wrote: Hi Nathan, Is it

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: On Monday 18 February 2008, Nick Stinemates wrote: I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of proper

Re: [PHP] Re: mysql input

2008-02-19 Thread Daniel Brown
On Feb 18, 2008 11:24 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them so that they dont fuck up my mysql command? -e Have you tried:

[PHP] Re: js to php help

2008-02-19 Thread tedd
At 3:23 PM + 2/19/08, Nathan Rixham wrote: Nathan Rixham wrote: tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in

Re: [PHP] www. not working

2008-02-19 Thread Philip Thompson
On Feb 19, 2008, at 3:43 AM, Christoph wrote: Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent sysadmins, but there it is... Really? So games.yahoo.com blogreport.salon.com mirror1.downloads.com are examples of

Re: [PHP] Question about cURL, and iFrames...

2008-02-19 Thread Dan Joseph
On Feb 19, 2008 9:44 AM, Jason Pruim [EMAIL PROTECTED] wrote: Thanks for the response. Do you think that there is a better way to pull in another webpage other then curl? I mean, could I simply include 'HTTP://www.mykillersite.com http://www.mykillersite.com/'; and have all the link work?

[PHP] Thread Safety

2008-02-19 Thread Thiago Pojda
Not quite sure if this is the right list, but here I am... I'm trying to use zend platform and it requires the Thread Safety option set to off. I just compiled php and I can't find what argument to build php that way, what am I missing? PHP 4.4.8 Thanks! Atenciosamente,

[PHP] Re: js to php help

2008-02-19 Thread Nathan Rixham
tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in javascript to POST? Thanks in advance for any suggestions. Cheers,

Re: [PHP] Thread Safety

2008-02-19 Thread Daniel Brown
On Feb 19, 2008 12:00 PM, Thiago Pojda [EMAIL PROTECTED] wrote: Not quite sure if this is the right list, but here I am... I'm trying to use zend platform and it requires the Thread Safety option set to off. I just compiled php and I can't find what argument to build php that way, what am I

Re: [PHP] js to php help

2008-02-19 Thread Brady Mitchell
On Feb 19, 2008, at 712AM, tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in javascript to POST? Have you tried

Re: [PHP] Thread Safety

2008-02-19 Thread Daniel Brown
On Feb 19, 2008 1:21 PM, Thiago Pojda [EMAIL PROTECTED] wrote: I was expecting that. I just compiled it to enable oci8 module and the source is ready for modifications. :) Isn't there any argument you pass to ./configure to disable Thread Safety? I didn't find any and neither google or

RES: [PHP] Thread Safety

2008-02-19 Thread Thiago Pojda
I was expecting that. I just compiled it to enable oci8 module and the source is ready for modifications. :) Isn't there any argument you pass to ./configure to disable Thread Safety? I didn't find any and neither google or php-install list answer anything. Thanks. -Mensagem original-

Re: [PHP] Re: Call PHP script from MySQL

2008-02-19 Thread Richard Lynch
On Tue, February 19, 2008 5:58 pm, Mário Gamito wrote: Is it possible to call from within MySQL an external PHP script ? I've read MySQL Stored Procedure Programming from O'Reilly but found nothing :( I'd really like to see an example of why you need this functionality, if that'd

[PHP] unable to unset reference

2008-02-19 Thread Sylvain Rabot
Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. As it can't be done I tried to unset an object by unsetting a reference of this object but it has no effect on

Re: [PHP] Hiding all browser toolbars - how?

2008-02-19 Thread Richard Lynch
With target and JS, yes. It's not PHP. It's not even ASP. It's just HTML and JavaScript. On Tue, February 19, 2008 8:10 am, Matty Sarro wrote: Greetings everyone! I am currently working on a web application (aren't we all?). The main page which users will look at is simply a login prompt,

Re: [PHP] System errno in PHP

2008-02-19 Thread Richard Lynch
On Tue, February 19, 2008 7:13 am, Michal Maras wrote: Coud somebody tell me if it is possible to get integer value of variable which name in C is errno end in perl $!. I am PHP beginner so I am sorry if question is 'stupid'. If you use exec() you can get that as a returned value for the

[PHP] RES: [PHP-INSTALL] Re: [PHP] Thread Safety

2008-02-19 Thread Thiago Pojda
-Mensagem original- quote. De: Daniel Brown [mailto:[EMAIL PROTECTED] Assunto: [PHP-INSTALL] Re: [PHP] Thread Safety On Feb 19, 2008 1:21 PM, Thiago Pojda [EMAIL PROTECTED] wrote: I was expecting that. I just compiled it to enable oci8 module and the source is ready for

[PHP] Re: Question about cURL, and iFrames...

2008-02-19 Thread Shawn McKenzie
Jason Pruim wrote: Happy friday to all of you! May the Beer[1] flow freely from the kegs to your lips after work! I am trying to think through something, I am writing a simple proxy script for my own knowledge and to simplify my life :) What I want to do is bring in multiple website by

Re: [PHP] System errno in PHP

2008-02-19 Thread Richard Lynch
PHP catches all thsoe and prints nifty error message. I presume the error number is in the guts somewhere, and could be exposed easily enough if you worked at it... But I don't think there is any kind of variable today with it in there. php_errmsg used to have the error message in it, but that

Re: [PHP] www. not working

2008-02-19 Thread Richard Lynch
On Tue, February 19, 2008 3:43 am, Christoph wrote: Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent sysadmins, but there it is... Really? So games.yahoo.com blogreport.salon.com mirror1.downloads.com are

Re: [PHP] mysql input

2008-02-19 Thread Richard Lynch
On Mon, February 18, 2008 10:05 pm, nihilism machine wrote: I have a user saving a VARCHAR(255) field in a mysql db which has single quotes in the text, how can i replace them so that they dont fuck up my mysql command? http://php.net/mysql_real_escape_string Google for SQL injection for

RE: [PHP] mysql input

2008-02-19 Thread Richard Lynch
On Mon, February 18, 2008 10:19 pm, Bastien Koert wrote: mysql_real_escape_string() Yes. addslashes() No, not right for different charsets. See above. htmlentities() Completely and wildly inappropriate. Might as well use a cannon to slice a tomato. -- Some people have a gift link here.

Re: [PHP] www. not working

2008-02-19 Thread Daniel Brown
These new kids have no respect. ;-P On Feb 19, 2008 2:33 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, February 19, 2008 3:43 am, Christoph wrote: Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent

[PHP] Re: unable to unset reference

2008-02-19 Thread Shawn McKenzie
Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. As it can't be done I tried to unset an object by unsetting a reference of this

Re: [PHP] www. not working

2008-02-19 Thread Wolf
Christoph [EMAIL PROTECTED] wrote: Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent sysadmins, but there it is... Really? So games.yahoo.com blogreport.salon.com mirror1.downloads.com are examples

[PHP] Re: unable to unset reference

2008-02-19 Thread Shawn McKenzie
Shawn McKenzie wrote: Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. As it can't be done I tried to unset an object by unsetting a

[PHP] Re: unable to unset reference

2008-02-19 Thread Shawn McKenzie
Shawn McKenzie wrote: Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. As it can't be done I tried to unset an object by unsetting a

Re: [PHP] Re: unable to unset reference

2008-02-19 Thread Wolf
Shawn McKenzie [EMAIL PROTECTED] wrote: Shawn McKenzie wrote: Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. As it

Re: [PHP] More than one values returned?

2008-02-19 Thread Greg Donald
On 2/18/08, Robert Cummings [EMAIL PROTECTED] wrote: I'd just return arrays unless I had a specific need for incurring object overhead for such simple datatypes. w0rd. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] More than one values returned?

2008-02-19 Thread Greg Donald
On 2/18/08, Nick Stinemates [EMAIL PROTECTED] wrote: I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of proper encapsulation. Yeah, that's probably why most popular scripting languages support it. In Ruby: def foo 1,

Re: [PHP] Thread Safety

2008-02-19 Thread Tom Rogers
Hi, Wednesday, February 20, 2008, 3:00:28 AM, you wrote: TP Not quite sure if this is the right list, but here I am... TP TP I'm trying to use zend platform and it requires the Thread Safety option set TP to off. TP TP I just compiled php and I can't find what argument to build php that way,

Re: [PHP] js to php help

2008-02-19 Thread tedd
At 10:18 AM -0800 2/19/08, Brady Mitchell wrote: On Feb 19, 2008, at 712AM, tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is

Re: [PHP] More than one values returned?

2008-02-19 Thread Steve Edberg
At 4:57 PM -0600 2/19/08, Greg Donald wrote: On 2/18/08, Nick Stinemates [EMAIL PROTECTED] wrote: I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of proper encapsulation. Yeah, that's probably why most popular

Re: [PHP] unable to unset reference

2008-02-19 Thread Chris
Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. I doubt the php-dev's will ever allow something like that, seems rather dangerous to me.

Re: [PHP] MySQL Stored Procedures

2008-02-19 Thread Chris
my only wish was that more people wrote more articles about the proper structure. You mean like the example on the mysql website? http://dev.mysql.com/doc/refman/5.0/en/stored-procedures.html -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List

Re: [PHP] Re: fopen never ends?

2008-02-19 Thread Chris
Perhaps concider moving to fsockopen or stream_socket_client with timeout parameters to solve your issue. fsockopen has no context Maybe I'm missing something but it returns a resource just like fopen. http://php.net/fsockopen -- Postgresql php tutorials http://www.designmagick.com/ --

Re: [PHP] unable to unset reference

2008-02-19 Thread Chris
Hence my previous gibberish, I would expect a reference to be destroyed when the object is, but obviously it's not. It has nothing specifically to do with objects, it's all about how references are handled. $ php -a Interactive mode enabled ?php $a = '12345'; $b = $a; unset($a);

Re: [PHP] Session destruction problem

2008-02-19 Thread Adil Drissi
Hi, Below you'll find my code. I think now that the problem is in my algorithm, because the is created anytime the page is refreshed. But i don't know how to check if the client was logged out or it is a real new connexion to the page. As you will see one can click on logout, then press the back

Re: [PHP] unable to unset reference

2008-02-19 Thread Shawn McKenzie
Chris wrote: Sylvain Rabot wrote: Hello, First of all I would like to know if one day we will be able to unset $this into a class in order to destroy the object. It could really be useful to prevent big memory usage. I doubt the php-dev's will ever allow something like that, seems rather

[PHP] xpath question

2008-02-19 Thread RJO
Hey guys, I have a form accepting a KML file from users and from there I want to draw polylines based on a KML file's PlacemarkerLineStringcoordinates element. The problem I am having is that sometimes the KML file can have a documentfolder or folderdocument or none of the above, or any number

Re: [PHP] classes

2008-02-19 Thread Richard Lynch
On Mon, February 18, 2008 2:25 pm, nihilism machine wrote: if i declare an instance of a class in the top of my php file, then have html, then later on user $myClassInstance-myMethod(); -- myMethod() does not execute, only when i have the instantiation of the class right before the call to the

[PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread TS
Hello everyone. I'm not sure what the budget is but, obviously inexpensive would be nice. Someone turned me on to PHPfox. Yet I don't have any others to compare it to. If you all would be so kind as to put a shout out and vote on your favorite, I'd be very grateful. Extendability would also be

Re: [PHP] More than one values returned?

2008-02-19 Thread Greg Donald
On Feb 19, 2008 5:23 PM, Steve Edberg [EMAIL PROTECTED] wrote: For completeness sake, this is pretty much the same in PHP: function test() { return array(1,2); } list($a,$b) = test(); Yup, just a few more keystrokes is all. -- Greg Donald http://destiney.com/ -- PHP

Re: [PHP] Re: open a secondary window/tab in the browser from php

2008-02-19 Thread Richard Lynch
On Mon, February 18, 2008 1:04 pm, Shawn McKenzie wrote: julian wrote: Hi, I have an application that along filling in some forms, it produces a pdf file, as confirmation of all entered data. I want to send this pdf file to a different window/tab of the browser, so it is displayed and

Re: [PHP] Re: fopen never ends?

2008-02-19 Thread Richard Lynch
On Tue, February 19, 2008 5:49 pm, Chris wrote: Perhaps concider moving to fsockopen or stream_socket_client with timeout parameters to solve your issue. fsockopen has no context Maybe I'm missing something but it returns a resource just like fopen. http://php.net/fsockopen And you can

Re: [PHP] Protected ZIP file with password

2008-02-19 Thread Richard Lynch
You can dig out what 127 means from perror, or you can just go with the usual suspects of paths and permissions. PHP does not run as you from the command line and does not use your shell and does not have your environment. Use FULL PATH everywhere. E.g.: exec(/usr/bin/zip

Re: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread Greg Donald
On Feb 19, 2008 8:41 PM, TS [EMAIL PROTECTED] wrote: Hello everyone. I'm not sure what the budget is but, obviously inexpensive would be nice. Someone turned me on to PHPfox. Yet I don't have any others to compare it to. If you all would be so kind as to put a shout out and vote on your

Re: [PHP] Protected ZIP file with password

2008-02-19 Thread Richard Lynch
On Mon, February 18, 2008 4:16 pm, Shawn McKenzie wrote: In your php code you'll need the full path to biblioteca.php and to t.zip and the web user will need write permissions to the dir where you create t.zip. nitpik: The user needs write permission to just t.zip Unless zip does something

Re: [PHP] Protected ZIP file with password

2008-02-19 Thread Richard Lynch
Use exec() and get any output that may be happening. I also suspect that the PATH you are using isn't a TRUE path, but some hacked up thing from your webhost. Look at the output of ?php phpinfo();? in biblioteca and see what PHP thinks is the current working directory. I had one webhost where

Re: [PHP] Converting tab delimited file to CSV

2008-02-19 Thread Richard Lynch
On Mon, February 18, 2008 12:08 pm, Graham Cossey wrote: proceed accordingly... My biggest gripe with tab delimited files is that they are quite a bit bigger than comma delimited files so I may have to split the large files I receive into smaller 'chunks' to allow them to be uploaded. This is

Re: [PHP] xpath question

2008-02-19 Thread Andrew Ballard
On Feb 19, 2008 8:13 PM, RJO [EMAIL PROTECTED] wrote: Hey guys, I have a form accepting a KML file from users and from there I want to draw polylines based on a KML file's PlacemarkerLineStringcoordinates element. The problem I am having is that sometimes the KML file can have a

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Greg Donald wrote: On 2/18/08, Nick Stinemates [EMAIL PROTECTED] wrote: I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of proper encapsulation. Yeah, that's probably why most popular scripting languages

Re: [PHP] www. not working

2008-02-19 Thread Larry Garfield
On Tuesday 19 February 2008, Daniel Brown wrote: On Feb 19, 2008 4:43 AM, Christoph [EMAIL PROTECTED] wrote: Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent sysadmins, but there it is... Really? So

RE: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread TS
Well security is an issue always IMHO. However, there's no full proof security. I'm hoping for the groups expertise while voting on this to consider all of these things of course. In other words, picking the lesser evil is where I'm stand with your previous question. Thankyou for your comment.

Re: [PHP] More than one values returned?

2008-02-19 Thread Greg Donald
On Feb 19, 2008 9:27 PM, Nick Stinemates [EMAIL PROTECTED] wrote: Support != good design habits. So you presume to have better design habits than the many language designers who implemented parallel assignment in their respective language? Right.

Re: [PHP] Re: fopen never ends?

2008-02-19 Thread Jim Lucas
Paul van Brouwershaven wrote: Nathan Rixham wrote: I don't think this is a php problem, just load the url up in a browser and you'll see the same, appears to be a misconfigured server at the otherside - probably confused about not being passed a name based host header in the request. I know

RE: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread Paul Scott
On Tue, 2008-02-19 at 23:21 -0500, TS wrote: On Feb 19, 2008 8:41 PM, TS [EMAIL PROTECTED] wrote: Hello everyone. I'm not sure what the budget is but, obviously inexpensive would be nice. Someone turned me on to PHPfox. Yet I don't have any others to compare it to. If you all would be so

Re: [PHP] More than one values returned?

2008-02-19 Thread Nathan Nobbe
On Feb 19, 2008 11:52 PM, Greg Donald [EMAIL PROTECTED] wrote: On Feb 19, 2008 9:27 PM, Nick Stinemates [EMAIL PROTECTED] wrote: Support != good design habits. So you presume to have better design habits than the many language designers who implemented parallel assignment in their

[PHP] unsure how to do this any help appreciated

2008-02-19 Thread Michael Seton
To Whom this may Concern, Basically what im try to do is this (please bear with me im a php noob) require a remote file, if its blank then instead display a comment or another file (which ever is easier) Example: *_if http://launcher.worldofwarcraft.com/alert; contains

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Nathan Nobbe wrote: On Feb 19, 2008 11:52 PM, Greg Donald [EMAIL PROTECTED] wrote: On Feb 19, 2008 9:27 PM, Nick Stinemates [EMAIL PROTECTED] wrote: Support != good design habits. So you presume to have better design habits than the many language designers who implemented

Re: [PHP] More than one values returned?

2008-02-19 Thread Robert Cummings
On Tue, 2008-02-19 at 21:24 -0800, Nick Stinemates wrote: I said, simply, returning an array of objects was usually an indication of poor design. Please elaborate as to the why of it being an indication of poor design. Cheers, Rob. --

  1   2   >