php-general Digest 8 Mar 2007 06:47:56 -0000 Issue 4665

2007-03-07 Thread php-general-digest-help
php-general Digest 8 Mar 2007 06:47:56 - Issue 4665 Topics (messages 250029 through 250051): Re: determine time in city using GMT offset 250029 by: Richard Kurth ldap change password 250030 by: Fabio Silva 250041 by: Holger Blasum Re: PHP Patch open_basedir for

Re: [PHP] List all files in directory

2007-03-07 Thread Tijnema !
On 3/6/07, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Oh, yes, about that, how do you _really_ use PHP to do some reading on the client machine... like say. listing files... ;D [/snip] You're kidding, right? Here's how, set up a PHP enabled.nah, never mind. Just repeat to yourself

Re: [PHP] Can i use DateTime Object with an timestamp as reference instead of an formated string.

2007-03-07 Thread Németh Zoltán
2007. 03. 7, szerda keltezéssel 12.58-kor Mathijs ezt írta: Hello there, I Use timestamps for logging etc.. But i need this timestamp to let is show the right time in different timezones. Now i wanted to use DateTime object, but it seems it needs a string as reference, so i can't use a

Re: [PHP] Can i use DateTime Object with an timestamp as referenceinstead of an formated string.

2007-03-07 Thread Mathijs
Németh Zoltán wrote: 2007. 03. 7, szerda keltezéssel 12.58-kor Mathijs ezt írta: Hello there, I Use timestamps for logging etc.. But i need this timestamp to let is show the right time in different timezones. Now i wanted to use DateTime object, but it seems it needs a string as reference,

Re: [PHP] Can i use DateTime Object with an timestamp as reference instead of an formated string.

2007-03-07 Thread Jochem Maas
Mathijs wrote: Hello there, I Use timestamps for logging etc.. so you do something like this no?: $stamp = mktime(); so if you want to use DateTime why not do this?: $stamp = new DateTime; alternatively if you are stuck with the original integer timestamp, then you can get round the issue

Re: [PHP] Re: Opinion on on-line payment and banking gateway

2007-03-07 Thread clive
That sounds good. Could I know more about this clearing service? I mean, to whom should my friend contact? Some bank? His company is in Chicago. So, is there any central banking organization in United-States that he should contact? Or some bank in Chicago? try worldpay, they are

[PHP] Textarea update problem

2007-03-07 Thread Delta Storm
Hi, I'd like to thank everybody who have helped me till now. All your advices were very helpfull... :) But I have a problem again I need to build a script which will have have the following functions: 1.Be able to select 3 columns from a MySQL database(idnetify the columns by ID) and put

[PHP] namespace equivalent in PHP

2007-03-07 Thread Alain Roger
Hi, Coming from C++ world, i would like to know what in PHP, is the equivalent of namespace in C++ ? I have several class which should work together, or Class B which is used to create a private property of class A. How can i do that without including the class B into the class A definition ?

Re: [PHP] Can i use DateTime Object with an timestamp as referenceinstead of an formated string.

2007-03-07 Thread Mathijs
Jochem Maas wrote: Mathijs wrote: Hello there, I Use timestamps for logging etc.. so you do something like this no?: $stamp = mktime(); so if you want to use DateTime why not do this?: $stamp = new DateTime; alternatively if you are stuck with the original integer timestamp, then you can

Re: [PHP] namespace equivalent in PHP

2007-03-07 Thread Jochem Maas
Alain Roger wrote: Hi, Coming from C++ world, i would like to know what in PHP, is the equivalent of namespace in C++ ? the closest you get to a namespace is a class (used purely as a static place holder for a set of functions, constants variables). namespaces is on the php dev list of

[PHP] Class and subclass

2007-03-07 Thread Alain Roger
Hi, i have a class A with some properties. i have a class B with several public functions (i.e : Render()) i would like to do something like that : class B() { B() { } public function Render() { ... } } class A { private $myotherclass; A() { $this-myotherclass = new classB(); } public

Re: [PHP] Class and subclass

2007-03-07 Thread Robert Cummings
On Wed, 2007-03-07 at 14:23 +0100, Alain Roger wrote: Hi, i have a class A with some properties. i have a class B with several public functions (i.e : Render()) i would like to do something like that : class B() { B() I'm pretty sure you mean function B() or in PHP 5 function

Re: [PHP] Class and subclass

2007-03-07 Thread Alain Roger
A() or B() mean constructors of th class A and B respectively. Al. On 3/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-03-07 at 14:23 +0100, Alain Roger wrote: Hi, i have a class A with some properties. i have a class B with several public functions (i.e : Render()) i would

[PHP] create and save file to folder

2007-03-07 Thread Ross
Hi, I am trying to create a file with php. I want to enter the value of a string into it and then browse (if possible) and save to a specified folder with the filename/extension (.php/.txt) entered in the dialog box. R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Class and subclass

2007-03-07 Thread Tijnema !
On 3/7/07, Alain Roger [EMAIL PROTECTED] wrote: A() or B() mean constructors of th class A and B respectively. Al. Yes but they are functions. On 3/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-03-07 at 14:23 +0100, Alain Roger wrote: Hi, i have a class A with some

Re: [PHP] Class and subclass

2007-03-07 Thread Alain Roger
Yes, for sure. On 3/7/07, Tijnema ! [EMAIL PROTECTED] wrote: On 3/7/07, Alain Roger [EMAIL PROTECTED] wrote: A() or B() mean constructors of th class A and B respectively. Al. Yes but they are functions. On 3/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-03-07 at

Re: [PHP] create and save file to folder

2007-03-07 Thread Tijnema !
On 3/7/07, Ross [EMAIL PROTECTED] wrote: Hi, I am trying to create a file with php. I want to enter the value of a string into it and then browse (if possible) and save to a specified folder with the filename/extension (.php/.txt) entered in the dialog box. R. Sure it is possible, but it

Re: [PHP] Class and subclass

2007-03-07 Thread Robert Cummings
On Wed, 2007-03-07 at 14:31 +0100, Alain Roger wrote: A() or B() mean constructors of th class A and B respectively. Obviously, but you appear to have declared them incorrectly by not including the function keyword. Cheers, Rob. -- ..

[PHP] db query not working

2007-03-07 Thread Ed Curtis
I have this code: mysql_connect ($local_host, $local_user, $local_pass); mysql_select_db ($local_db); mysql_query (DELETE FROM tmphitsmag); $result = mysql_query (SELECT DISTINCT company FROM view_log WHERE company != ''); if ($row = mysql_fetch_array($result)) { do {

RE: [PHP] db query not working

2007-03-07 Thread Jim Moseby
snip It dumps the table fine, works the explode, outputs the string in the echo command the way I expect, but doesn't place the value in tmphitsmag table. Does it insert an empty record? JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] db query not working

2007-03-07 Thread Tijnema !
On 3/7/07, Ed Curtis [EMAIL PROTECTED] wrote: I have this code: mysql_connect ($local_host, $local_user, $local_pass); mysql_select_db ($local_db); mysql_query (DELETE FROM tmphitsmag); $result = mysql_query (SELECT DISTINCT company FROM view_log WHERE company != ''); if ($row =

[PHP] db query not working as expected

2007-03-07 Thread Ed Curtis
I have this code: mysql_connect ($local_host, $local_user, $local_pass); mysql_select_db ($local_db); mysql_query (DELETE FROM tmphitsmag); $result = mysql_query (SELECT DISTINCT company FROM view_log WHERE company != ''); if ($row = mysql_fetch_array($result)) { do {

Re: [PHP] db query not working as expected

2007-03-07 Thread Tijnema !
On 3/7/07, Ed Curtis [EMAIL PROTECTED] wrote: I have this code: mysql_connect ($local_host, $local_user, $local_pass); mysql_select_db ($local_db); mysql_query (DELETE FROM tmphitsmag); $result = mysql_query (SELECT DISTINCT company FROM view_log WHERE company != ''); if ($row =

Re: [PHP] db query not working as expected

2007-03-07 Thread Tijnema !
On 3/7/07, Ed Curtis [EMAIL PROTECTED] wrote: I have this code: mysql_connect ($local_host, $local_user, $local_pass); mysql_select_db ($local_db); mysql_query (DELETE FROM tmphitsmag); $result = mysql_query (SELECT DISTINCT company FROM view_log WHERE company != ''); if ($row =

Re: [PHP] db query not working as expected

2007-03-07 Thread cajbecu
try: mysql_query (INSERT INTO tmphitsmag (magazine) VALUES ('{$magazine_path[2]}')); cajb. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class and subclass

2007-03-07 Thread Jochem Maas
$ php -r ' class A { function render() { echo foo\n; } } class B { function __construct() { $this-a = new A; } function test() { $this-a-render(); } } $b = new B; $b-test(); ' foo ... works for me. Alain Roger wrote: Hi, i have a class A with some properties. i have a class B with

Re: [PHP] db query not working as expected

2007-03-07 Thread Stut
Ed Curtis wrote: mysql_query (INSERT INTO tmphitsmag (magazine) VALUES ('$magazine_path[2]')); Replace that with this... mysql_query (INSERT INTO tmphitsmag (magazine) VALUES ('.mysql_real_escape_string($magazine_path[2]).')); -Stut

Re: [PHP] Password Protect Directory

2007-03-07 Thread Jochem Maas
Jason Karns wrote: I'm trying to find a way to password protect a directory. I currently have an authentication and authorization system in place for pages in my directory. I'd prefer to use my existing system somehow (as it includes OpenID authentication) as opposed to using htaccess and

Re: [PHP] Class and subclass

2007-03-07 Thread Stut
Alain Roger wrote: i have a class A with some properties. i have a class B with several public functions (i.e : Render()) i would like to do something like that : class B() { B() { } public function Render() { ... } } class A { private $myotherclass; A() { $this-myotherclass = new

Re: [PHP] Textarea update problem

2007-03-07 Thread Delta Storm
[EMAIL PROTECTED] wrote: is there a question here, or are you asking us to write the script for you? - Rick Original Message Date: Wednesday, March 07, 2007 01:54:04 PM +0100 From: Delta Storm [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP]

Re: [PHP] Textarea update problem

2007-03-07 Thread Tijnema !
The file permissions are not set right, Apache is not able to read the PHP file you've just uploaded to your server, chmod it to 644. That should fix it. Tijnema On 3/7/07, Delta Storm [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: is there a question here, or are you asking us to write

[PHP] Save and Continue

2007-03-07 Thread Dan Shirah
Hello All, I am trying to think through my new forms process. I want to allow a customer to submit multiple orders using the same credit card. At the bottom of my form I will have a Save link and a Save and Submit Additional link/checkbox. Basically what I want to happen is that if the user

Re: [PHP] Save and Continue

2007-03-07 Thread Tijnema !
Hi, i was more thinking about automatically going to save.php, and if checked (the code u used) redirect back to your shop, cart, etc. using header function. Tijnema On 3/7/07, Dan Shirah [EMAIL PROTECTED] wrote: Hello All, I am trying to think through my new forms process. I want to allow

Re: [PHP] Textarea update problem

2007-03-07 Thread Németh Zoltán
2007. 03. 7, szerda keltezéssel 16.28-kor Delta Storm ezt írta: [EMAIL PROTECTED] wrote: is there a question here, or are you asking us to write the script for you? - Rick Original Message Date: Wednesday, March 07, 2007 01:54:04 PM +0100 From:

Re: [PHP] Save and Continue

2007-03-07 Thread Robert Cummings
On Wed, 2007-03-07 at 10:39 -0500, Dan Shirah wrote: then return to the same screen with the credit card information still populated You should treat credit card information like a hot potato... get rid of it as soon as possible. What happens if Johnny Forgetful forgets to log out of his

Re: [PHP] db query not working

2007-03-07 Thread Satyam
I saw two people pointing two errors on the SQL insert statement which you would have found yourself had you put the 'or die()' at the end of the query, as someone else suggested. Do never leave any query without the 'or die()' after it (or any other means to check if mysql_query returns

[PHP] php and javascript error

2007-03-07 Thread Ed Curtis
I've just run into this problem this morning a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo $real_company_name; ?', 'Web Site'); This produces an Error on Page in IE 7, but works perfectly in Firefox and

Re: [PHP] php and javascript error

2007-03-07 Thread Németh Zoltán
2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: I've just run into this problem this morning a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo $real_company_name; ?', 'Web Site'); This

Re: [PHP] php and javascript error

2007-03-07 Thread Tijnema !
Open the page with IE 7, and open the source, if it doesn't show any ? or ? tags, then it is a IE problem.. Tijnema On 3/7/07, Németh Zoltán [EMAIL PROTECTED] wrote: 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: I've just run into this problem this morning a href=#

RE: [PHP] php and javascript error

2007-03-07 Thread Edward Kay
I've just run into this problem this morning a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo $real_company_name; ?', 'Web Site'); This produces an Error on Page in IE 7, but works perfectly in Firefox

Re: [PHP] db query not working

2007-03-07 Thread Ed Curtis
Satyam wrote: I saw two people pointing two errors on the SQL insert statement which you would have found yourself had you put the 'or die()' at the end of the query, as someone else suggested. Do never leave any query without the 'or die()' after it (or any other means to check if

Re: [PHP] db query not working

2007-03-07 Thread Jochem Maas
Satyam wrote: I saw two people pointing two errors on the SQL insert statement which you would have found yourself had you put the 'or die()' at the end of the query, as someone else suggested. Do never leave any query without the 'or die()' after it (or any other means to check if

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
Németh Zoltán wrote: 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: I've just run into this problem this morning a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo $real_company_name; ?', 'Web

Re: [PHP] php and javascript error

2007-03-07 Thread Tijnema !
On 3/7/07, Ed Curtis [EMAIL PROTECTED] wrote: Németh Zoltán wrote: 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: I've just run into this problem this morning a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent;

Re: [PHP] Save and Continue

2007-03-07 Thread Jochem Maas
Robert Cummings wrote: On Wed, 2007-03-07 at 10:39 -0500, Dan Shirah wrote: then return to the same screen with the credit card information still populated You should treat credit card information like a hot potato... get rid of it as soon as possible. What happens if Johnny Forgetful

RE: [PHP] php and javascript error

2007-03-07 Thread afan
I've just run into this problem this morning a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo $real_company_name; ?', 'Web Site'); This produces an Error on Page in IE 7, but works perfectly in Firefox

Re: [PHP] Save and Continue

2007-03-07 Thread Tijnema !
But ofcourse you could add a lot of things to a shopping cart and checkout once btw, it's safer to use things like Paypal... Tijnema -- To the full PHP list now On 3/7/07, Jochem Maas [EMAIL PROTECTED] wrote: Robert Cummings wrote: On Wed, 2007-03-07 at 10:39 -0500, Dan Shirah wrote:

Re: [PHP] Save and Continue

2007-03-07 Thread Dan Shirah
Rght, that is similar to what I am trying to do...let them inout several items to be paid on and let them all be tied to the same credit card to be charged. On 3/7/07, Tijnema ! [EMAIL PROTECTED] wrote: But ofcourse you could add a lot of things to a shopping cart and checkout once btw,

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo $real_company_name; ?', 'Web Site'); This produces an Error on Page in IE 7, but works perfectly in Firefox and Netscape. I have several other javascript calls on

Re: [PHP] Save and Continue

2007-03-07 Thread Tijnema !
So, what is your actual problem? you can simple add all items to a session, and then when checking out, getting all data from the session. *means all data is lost when user leaves page... Tijnema On 3/7/07, Dan Shirah [EMAIL PROTECTED] wrote: Rght, that is similar to what I am trying to

[PHP] help with script needed

2007-03-07 Thread Bruce Gilbert
I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for example. How do I go about doing this? -- ::Bruce:: -- PHP

Re: [PHP] help with script needed

2007-03-07 Thread Tijnema !
On 3/7/07, Bruce Gilbert [EMAIL PROTECTED] wrote: I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for example.

Re: [PHP] help with script needed

2007-03-07 Thread afan
try this if ($i%5 == 0) echo foobr; -afan I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for

RE: [PHP] php and javascript error

2007-03-07 Thread Brad Fuller
-Original Message- From: Ed Curtis [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 11:47 AM To: php-general@lists.php.net Subject: Re: [PHP] php and javascript error a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent;

Re: [PHP] Textarea update problem

2007-03-07 Thread Jim Lucas
Delta Storm wrote: [EMAIL PROTECTED] wrote: is there a question here, or are you asking us to write the script for you? - Rick Original Message Date: Wednesday, March 07, 2007 01:54:04 PM +0100 From: Delta Storm [EMAIL PROTECTED] To: php-general@lists.php.net

RE: [PHP] php and javascript error

2007-03-07 Thread Brad Fuller
-Original Message- From: Brad Fuller [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 12:02 PM To: 'Ed Curtis'; 'php-general@lists.php.net' Subject: RE: [PHP] php and javascript error -Original Message- From: Ed Curtis [mailto:[EMAIL PROTECTED] Sent:

[PHP] Re: Save and Continue

2007-03-07 Thread Mark
Dan Shirah wrote: Hello All, I am trying to think through my new forms process. I want to allow a customer to submit multiple orders using the same credit card. At the bottom of my form I will have a Save link and a Save and Submit Additional link/checkbox. Basically what I want to

RE: [PHP] php and javascript error

2007-03-07 Thread Edward Kay
a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo $real_company_name; ?', 'Web Site'); This is a JavaScript issue, but may have something to do with the data you are echoing out in PHP. Look at the source in

Re: [PHP] help with script needed

2007-03-07 Thread Tijnema !
oops, ofcourse whe have the modular :) On 3/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: try this if ($i%5 == 0) echo foobr; -afan I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to

Re: [PHP] php and javascript error

2007-03-07 Thread Seak, Teng-Fong
Ed Curtis wrote: Németh Zoltán wrote: 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: I've just run into this problem this morning a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent; ?real_company_name=? echo

[PHP] PHP Patch open_basedir for dynamic virtualhost

2007-03-07 Thread DoM
Hi all, it's a lot of time that i am trying to let Jason Greene open_basedir patch work with apache massive virtualhost. This is direct link to patch when it was developed: http://www.phpbuilder.com/lists/php-developer-list/2000101/0994.php This is a FreeBSD port more recent with same code:

Re: [PHP] db query not working

2007-03-07 Thread Satyam
- Original Message - From: Jochem Maas [EMAIL PROTECTED] Satyam wrote: I saw two people pointing two errors on the SQL insert statement which you would have found yourself had you put the 'or die()' at the end of the query, as someone else suggested. Do never leave any query without

Re: [PHP] Enclosing fields in MySQL queries with ` or '

2007-03-07 Thread Dotan Cohen
On 05/03/07, Chris [EMAIL PROTECTED] wrote: Dotan Cohen wrote: Are there any advantages/disadvantages to using and of the ` or ' punctuation symbols in MySQL queries? I usually only put them around variables (after being sanitized, of course): INSERT INTO places (country, city) VALUES

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
Edward Kay wrote: you've got a stay quote mark in one of your PHP vars. Not it, I looked and there's nothing there. I'm sure it's because you've got some stray characters in your output that mess it up. It would help if you actually posted the source rather than just saying it's OK, when

Re: [PHP] help with script needed

2007-03-07 Thread Martin Marques
Tijnema ! escribió: On 3/7/07, Bruce Gilbert [EMAIL PROTECTED] wrote: I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for example. How do I go about doing this? I've seen that question a lot, what i use is fairly simple if( intval($number

Re: [PHP] db query not working

2007-03-07 Thread Ed Curtis
It is an old guy thing, at least in my case (trivia: I was born the day after the ENIAC was turned off) Aha! October 3, 1955 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] determine time in city using GMT offset

2007-03-07 Thread Jim Lucas
Richard Kurth wrote: How would I determine the time in a different city If I know the GMT offset in both placesSay GMT -1 in one city and GMT -7 in another city. What would the math and code look like for this show us what you have so far... -- Enjoy, Jim Lucas Different eyes see

Re: [PHP] PHP Patch open_basedir for dynamic virtualhost

2007-03-07 Thread Jim Lucas
DoM wrote: Hi all, it's a lot of time that i am trying to let Jason Greene open_basedir patch work with apache massive virtualhost. This is direct link to patch when it was developed: http://www.phpbuilder.com/lists/php-developer-list/2000101/0994.php This is a FreeBSD port more recent with

RE: [PHP] determine time in city using GMT offset

2007-03-07 Thread Richard Kurth
That is what I am asking where do I start. I just need to be pointed in the right direction. I have looked thru the manual for time and date and I have searched this user group. Maybe I am not asking the question correctly. -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED]

[PHP] ldap change password

2007-03-07 Thread Fabio Silva
Hi all, i would like to know if anybody has a script in php that change the password of the users in ldap??? That the user can do it by yourself the user put your username old pass new pass confirm new pass Somebody can help me? Regards, -- Fabio S. Silva -- PHP General Mailing List

Re: [PHP] PHP Patch open_basedir for dynamic virtualhost

2007-03-07 Thread DoM
Jim Lucas wrote: http://us3.php.net/manual/en/features.safe-mode.php#ini.open-basedir Read the first line of the first paragraph. /tmp/ is not with-in /var/www/php.net/%1 it is out side Yes, of course i know this :) As i wrote i would like to include static path after dynamic path like

Re: [PHP] zipArchive - corrupting files?

2007-03-07 Thread KMiller
Downloaded latest php_zip.dll; fixed! KMiller wrote: Been playing with this for a few hours and it seems that anything but a plain text file (doc,xls,pdf,etc.) is being trashed by ZipArchive. Has anyone had similar experiences or am I just doing something stupid and can't see it?

Re: [PHP] PHP Patch open_basedir for dynamic virtualhost

2007-03-07 Thread Jim Lucas
DoM wrote: Jim Lucas wrote: http://us3.php.net/manual/en/features.safe-mode.php#ini.open-basedir Read the first line of the first paragraph. /tmp/ is not with-in /var/www/php.net/%1 it is out side Yes, of course i know this :) As i wrote i would like to include static path after dynamic

[PHP] DOM File Permissions

2007-03-07 Thread CK
The following code returns a permisson error: Quote: Warning: DOMDocument::save(./save1.xml) [function.DOMDocument-save]: failed to open stream: Permission denied in /Users/username/Sites/ xmlphp/dom/appendData/appendData.php on line 17 DOMCharacterData-appendData example I attempted

Re: [PHP] DOM File Permissions

2007-03-07 Thread Edward Vermillion
PHP needs read/write access to the files. More than likely PHP is running as Apache so the files would need to be owned by Apache* (or whatever PHP is running at), not System. *Or at least give the Apache group (or whatever PHP is running at) r/ w access, that way you don't have to resort

Re: [PHP] help with script needed

2007-03-07 Thread Bruce Gilbert
Thanks for the responses so far. This is what I have come up with [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; if ($i%3 == 0) echo Foo ; elseif ($i%5 == 0) echo Bar; } ? [/php] and the results can be seen here http://www.inspired-evolution.com/image_test/numbers_output.php I

Re: [PHP] PHP Patch open_basedir for dynamic virtualhost

2007-03-07 Thread DoM
Jim Lucas wrote: DoM wrote: I mean something like this: /var/www/php.net/%1/:/tmp/:/usr/local/xxx/ and so on. does this work? The manual says it should. And it works for static path like /tmp/:/var/www/: but not for dynamic path like /var/www/%0/%1 . I need Jason Greene patch to let it

Re: [PHP] DOM File Permissions

2007-03-07 Thread Edward Vermillion
I would bet it's the www, sorry about that. I've had to change the user/group name for mine so it will sync up with the linux file server permissions across NFS. On Mar 7, 2007, at 2:56 PM, CK wrote: Hi, Thanks, attempted to use appServer without luck, these are the choices: Picture

Re: [PHP] help with script needed

2007-03-07 Thread Jake McHenry
Are you only using 3 and 5? just echo 3 and 5 instead of Foo and Bar. and for both, just have a 3rd condition including both ... if (($i%3 ==0) ($i%5 == 0)) echo both or foobar.. does this help? Jake - Original Message - From: Bruce Gilbert [EMAIL PROTECTED] To: Martin

Re: [PHP] help with script needed

2007-03-07 Thread Stut
Bruce Gilbert wrote: Thanks for the responses so far. This is what I have come up with [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; if ($i%3 == 0) echo Foo ; elseif ($i%5 == 0) echo Bar; } ? [/php] and the results can be seen here

Re: [PHP] ldap change password

2007-03-07 Thread Holger Blasum
Hi Fabio, On 03-07, Fabio Silva wrote: Hi all, i would like to know if anybody has a script in php that change the password of the users in ldap??? That the user can do it by yourself http://logout.sh/computers/ldap/ looks like a starting point. In that example, however the connection

[PHP] Monitoring download, detecting completion?

2007-03-07 Thread Skip Evans
Hey all, I have a need to monitor a download from the server to the client's machine. I'm not familiar with any mechanisms for doing so. If anyone has any hints to point me towards I'll get a' researching. -- Skip Evans Big Sky Penguin, LLC 61 W Broadway Butte, Montana 59701 406-782-2240

[PHP] Links

2007-03-07 Thread StainOnRug
Hello.. I searched for an answer on the simple quesiton but I am only finding complex answers... I simply just want to add a link in my database so when my results display you can see the information.. and when they click the link it takes them to the webpage of the article. I tried inserting

Re: [PHP] php and javascript error

2007-03-07 Thread jekillen
On Mar 7, 2007, at 10:24 AM, Ed Curtis wrote: Edward Kay wrote: you've got a stay quote mark in one of your PHP vars. Not it, I looked and there's nothing there. I'm sure it's because you've got some stray characters in your output that mess it up. It would help if you actually posted the

Re: [PHP] Links

2007-03-07 Thread fedt
:| if i want link 3, $result = mysql_query(SELECT address FROM db.links WHERE link_id=3); $foo = mysql_fetch_assoc($result); echo 'a href='.$foo['address'].'this is link 3/a'; On 3/7/07, StainOnRug [EMAIL PROTECTED] wrote: Hello.. I searched for an answer on the simple quesiton but I am

Re: [PHP] db query not working

2007-03-07 Thread David Robley
Satyam wrote: It is an old guy thing, at least in my case (trivia: I was born the day after the ENIAC was turned off) Young kids these days :-) I was born the month before it was turned _on_! Cheers -- David Robley Why do we read left to right yet turn pages right to left? Today is

Re: [PHP] help with script needed

2007-03-07 Thread Jake McHenry
LOL I told'ya I rememberd it from my 2nd semester :) Ok, this is commonly known as the FizzBuzz problem and is used a lot as a university project or interview question. If you can't do it, be afraid!! http://dev.stut.net/php/fizzbuzz.php -Stut -- PHP General Mailing List

Re: [PHP] Links

2007-03-07 Thread Jake McHenry
You have to add the href tags in the html output for the text to be a link in your while statement or whatever your using to obtains the links from the database already, instead of just displaying $link_value, change it to a href=$link_value$link_value/a Jake - Original

[PHP] Problem with APC

2007-03-07 Thread steve
Hi, I upgraded to PHP 4.4.6 and APC 3.0.13 at the same time. Every day at some point, it starts having a problem and the load on that machine styrockets. It does not happen with the opcode cache in Zend Platform for PHP 4.4.6. Also, in the error log I see a lot of things like this:

[PHP] Is there a way to un include a file

2007-03-07 Thread jekillen
Hello; Is there a way to un include a file once it has been included in a script. My concern is where two php files might be included in another php file they might have code or variables that conflict. I am thinking of including files with different names but follow the same pattern of code

Re: [PHP] Is there a way to un include a file

2007-03-07 Thread Børge Holen
On Thursday 08 March 2007 07:18, jekillen wrote: Hello; Is there a way to un include a file once it has been included in a script. You seems to want the wrong thing... I could be mistaken, but from my point of view you would NOT include the file if not apropriate at that moment. My

Re: [PHP] Is there a way to un include a file

2007-03-07 Thread Tijnema !
AFAIK there's no function to un include a file, but i don't see a problem here, as when you include your second file, everything (all conflicting variables) will be overwritten. If you still have problems, you might want to use classes around your functions and variables. Tijnema On 3/8/07,

Re: [PHP] Monitoring download, detecting completion?

2007-03-07 Thread Tijnema !
Hi, I think that cURL would do the job, starting the transfer with curl_init ,curl_setopt and curl_exec then you can get the info about the download with curl_getinfo Also take a look at the other curl functions, and have a look at the curl_setopt function page, as there are a lot of options

Re: [PHP] php and javascript error

2007-03-07 Thread Tijnema !
Just a little side note, you said that firefox wasn't giving an error, i think it does, but that it hides the error. Open your page, and then go to Tools-javascript console. There it will display all javascript errors. And gives a nice detailed error. Tijnema

Re: [PHP] Is there a way to un include a file

2007-03-07 Thread Larry Garfield
No there is not, because an included file *executes* at the time it is included and is then done. Any memory-resident objects (function/class definitions, variables, etc.) that it defies then exist until you make them un-exist (with unset() for variables or, well, you can't with functions and