php-general Digest 30 May 2005 09:01:34 -0000 Issue 3483

2005-05-30 Thread php-general-digest-help
php-general Digest 30 May 2005 09:01:34 - Issue 3483 Topics (messages 215967 through 215978): Re: novice: how to run .sql script from php? 215967 by: M. Sokolewicz 215968 by: Rory Browne 215971 by: Marek Kilimajer Free penetration test: my 2¢ 215969 by:

Re: [PHP] Dummy question about gettion select option choosen

2005-05-30 Thread Jochem Maas
Mário Gamito wrote: Hi, Thank you all who have helped me in the checkbox's question. This is an area to which i'm very fresh in PHP. I now have this code in a form: --- select name=interesse[] option1/option option2/option option3/option (etc...) /select if the form

RE: [PHP] Can't Get PHP to work

2005-05-30 Thread Shaw, Chris - Accenture
Morning, Check the extension path in the php.ini file in your c:\winnt directory. I can remember that I had to change that when setting up php5 because the directory was c:\php\extension and the path in the php.ini was c:\php\ext. hth C. -Original Message- From: Subscriber

[PHP] Re: Dummy question about gettion select option choosen

2005-05-30 Thread Satyam
Add the 'value' argument to the option tag. option value=11/option Mário Gamito [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Thank you all who have helped me in the checkbox's question. This is an area to which i'm very fresh in PHP. I now have this code in a form:

[PHP] Returned mail: see transcript for details

2005-05-30 Thread Bounced mail
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner

[PHP] reporting software

2005-05-30 Thread Angelo Zanetti
HI guys, Do any of you use any really good reporting software? Preferably PHP or open source reporting tool that will allow dynamic generation of charts/graphs, also with drill down and roll up functionality. Please also list software that you have used and you would not recommend, basically what

Re: [PHP] novice: how to run .sql script from php?

2005-05-30 Thread tony yau
at the depth of execQuery(), an in-house function, it has already selected a database, (default for the project). my apologise for saying problem with using mysql_query( ...), it was my misunderstanding of this in-house function. Now I can run the script with Create database ... in the script.

[PHP] delivery failed

2005-05-30 Thread The Post Office
The original message was included as attachment -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Free penetration test

2005-05-30 Thread Manuel Lemos
Hello, on 05/27/2005 11:50 PM Ryan A said the following: I have requested the free test several times and it was very useful because it brought my attention to aspects that I was not considering, some related to PHP in specific and other related to Internet in general. fair enough, you could

RE: [PHP] Stopping users to see uploaded files

2005-05-30 Thread Kim Madsen
-Original Message- From: symbulos [mailto:[EMAIL PROTECTED] Sent: Friday, May 27, 2005 6:50 PM To: php-general@lists.php.net Subject: RE: [PHP] Stopping users to see uploaded files Thanks everybody for all the useful suggestions. That way´s just fine. You could upload directly

Re: [PHP] DOM: browse childnodes but not recursively

2005-05-30 Thread Victor Spång Arthursson
28 maj 2005 kl. 19.32 skrev Jared Williams: childNodes contains the textnodes too, in this case the whitespace between each of element. So, to put it in short words; how do I do to browse the content of the element id=5 withuot doing it recursively? I want to receive a list when I call

RE: [PHP] Re: Free penetration test

2005-05-30 Thread Kim Madsen
-Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] Sent: Saturday, May 28, 2005 3:48 PM To: Ryan A Cc: php Subject: Re: [PHP] Re: Free penetration test Ryan A wrote: That is extremly generious of you as I didnt really think you would have the time considering

RE: [PHP] Warning: filemtime() (errno=75 - Value too large for defined data type)

2005-05-30 Thread Kim Madsen
-Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED] Sent: Sunday, May 29, 2005 7:36 PM Hi, I'm receiving the following warning: Warning: filemtime(): Stat failed for master.log (errno=75 - Value too large for defined data type) in test.php on line 5 when I do

RE: [PHP] Dummy question about gettion select option choosen

2005-05-30 Thread Kim Madsen
-Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, May 30, 2005 10:28 AM To: Mário Gamito I now have this code in a form: --- select name=interesse[] option1/option option2/option option3/option (etc...) /select if

Re: [PHP] Replacing 2 strings

2005-05-30 Thread W Luke
On 30/05/05, Brian V Bonini [EMAIL PROTECTED] wrote: On Sun, 2005-05-29 at 12:22, W Luke wrote: Hi, I have some text in a file which, when it's dumped to a var, needs to be replaced. In its raw form, it looks like this: ^JIM_JONES and I need to remove the ^_ and characters and have it

RE: [PHP] Re: Free penetration test

2005-05-30 Thread Murray @ PlanetThoughtful
For me, of course there is nothing wrong on the PHP Group help themselves making money with referrals. My point is that it is pretty common to not distract people with the details of who gets what with referrals because it does not change anything for who follows a link with our without the

Re: [PHP] Dummy question about gettion select option choosen

2005-05-30 Thread M. Sokolewicz
Kim Madsen wrote: -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, May 30, 2005 10:28 AM To: Mário Gamito I now have this code in a form: --- select name=interesse[] option1/option option2/option option3/option (etc...) /select

RE: [PHP] Replacing 2 strings

2005-05-30 Thread Murray @ PlanetThoughtful
Someone much more clever that I can probably come up with something much cleaner and efficient but This works... Definitely not more clever and arguably not more efficient, but a different way of handling this might be: ? function replace($string){ $string = preg_replace(/(|\^|)/,

[PHP] Japanese with UTF-8 and mysql

2005-05-30 Thread Mark Sargent
Hi All, I have my settings in php.ini set for UTF-8, and the encoding for the mysql database table's column that is using Japanese to UTF-8. Now, if I view the data stored in that column in phpmyadmin, via say, firefox, it displays in UTF-8, but, if I pull the code from the database and

RE: [PHP] Replacing 2 strings

2005-05-30 Thread Brian V Bonini
On Mon, 2005-05-30 at 11:13, Murray @ PlanetThoughtful wrote: Someone much more clever that I can probably come up with something much cleaner and efficient but This works... Definitely not more clever and arguably not more efficient, but a different way of handling this might be: ?

RE: [PHP] Replacing 2 strings

2005-05-30 Thread Murray @ PlanetThoughtful
AHHH! ucwords(); I probably looked right at it a million times.. I knew there had to be something to do that Lol, I know that feeling well! One thing, btw, looking at the solution you provided. Once you'd preg_split()ed the string into component words, you could have simply applied

Re: [PHP] Re: Free penetration test

2005-05-30 Thread Ryan A
Hi, This is getting pretty irritating because by now even a stone would have understood what I was trying to say...so either you are playing dumb or you just dont want to understand, that said, this is my last response as I have much better things to do than say the same thing over and

Re: [PHP] Re: Free penetration test

2005-05-30 Thread Manuel Lemos
Hello, on 05/30/2005 02:21 PM Ryan A said the following: Not really, the service is still the same... true, but what happens if he decides to buy one more scan (49$) from that site or decides to buy a 1 month scanning option ($119) or 1 year scanning ($899)? Does a little birdie get 35%

Re: [PHP] Re: Free penetration test

2005-05-30 Thread Ryan A
BTW, what do you call to a person that throws stones to another and then runs away to not face the consequences?! Fine, I'll play your game a little longer...but offlist as I think the list has had enough of this, I'm also a bit busy now so expect a reply from me after a few hours. Regards, Ryan

RE: [PHP] Replacing 2 strings

2005-05-30 Thread Brian V Bonini
On Mon, 2005-05-30 at 12:58, Murray @ PlanetThoughtful wrote: ? $string = this; $string{0} = strtoupper($string{0}); echo $string; // should return value of This ? I knew you could access but I didn't realize your could assign/replace specific chars like that, i.e. $string{x} = I can

Re: [PHP] Replacing 2 strings

2005-05-30 Thread W Luke
On 30/05/05, Brian V Bonini [EMAIL PROTECTED] wrote: On Mon, 2005-05-30 at 11:13, Murray @ PlanetThoughtful wrote: Someone much more clever that I can probably come up with something much cleaner and efficient but This works... Definitely not more clever and arguably not more

Re: [PHP] Re: Same sessions / different domains

2005-05-30 Thread Marek Kilimajer
mbneto wrote: Hi Richard, The setcookie manual and the cookie specification tells otherwise. bool setcookie ( string name [, string value [, int expire [, string path [, string domain [, bool secure] ) the domain parameter is restricted to third level domains (or 4 for top level domains

RE: [PHP] Replacing 2 strings

2005-05-30 Thread Murray @ PlanetThoughtful
This is a great help, thanks to both. One question I have though. How do I just leave the formatting as is? In the loop you gave me, Brian...: [snippage] I can't see how I can disregard strtolower without disrupting the rest of the function! My problem is $string contains a whole load

[PHP] Code Check

2005-05-30 Thread janbro
Hi List, I don't know where else to look. I've got PHP 5.0.0 and MySQL 4.1.3. (on Windwows XP with Apache 2.0.50) Here is my Code: the Query with the delete is not executed and I don't know why. If I copy it into the MySQL Command line like it is here, everything works fine. I have another

[PHP] Re: Dummy question about knowing marked checkboxes

2005-05-30 Thread info
The name property currrently set as the value of name='interesses' ... should be different for each different checkbox. Then you test for the value of 'on' or 'off'. If the checkbox is checked then the default value will be 'on'. In your code you have set values but those are not strictly

RE: [PHP] Replacing 2 strings

2005-05-30 Thread Brian V Bonini
On Mon, 2005-05-30 at 15:24, Murray @ PlanetThoughtful wrote: This is a great help, thanks to both. One question I have though. How do I just leave the formatting as is? In the loop you gave me, Brian...: [snippage] I can't see how I can disregard strtolower without disrupting the

Re: [PHP] Replacing 2 strings

2005-05-30 Thread W Luke
On 30/05/05, Brian V Bonini [EMAIL PROTECTED] wrote: [...] Again, an example that is as close to your real-world needs as possible would be very helpful. The original request was: the text-to-replace is just in a var named $text1. I read that to mean you'd already extracted ^JIM_JONES

[PHP] Returned mail: see transcript for details

2005-05-30 Thread Bounced mail
ALERT! This e-mail, in its original form, contained one or more attached files that were infected with a virus, worm, or other type of security threat. This e-mail was sent from a Road Runner IP address. As part of our continuing initiative to stop the spread of malicious viruses, Road Runner

Re: [PHP] Replacing 2 strings

2005-05-30 Thread Brian V Bonini
On Mon, 2005-05-30 at 16:24, W Luke wrote: On 30/05/05, Brian V Bonini [EMAIL PROTECTED] wrote: [...] Again, an example that is as close to your real-world needs as possible would be very helpful. The original request was: the text-to-replace is just in a var named $text1.

Re: [PHP] Re: Free penetration test

2005-05-30 Thread Ryan A
Hehe, well put...a few things you forgot to write: Ryan A and Rory Browne got so irritated because its like talking to a tree.in english when the tree only understands some other language :-D that they tried to throw in the towel I was so fed up I was going to drop the whole thing because

Re: [PHP] Re: Dummy question about knowing marked checkboxes

2005-05-30 Thread Mikey
[EMAIL PROTECTED] wrote: The name property currrently set as the value of name='interesses' ... should be different for each different checkbox. Then you test for the value of 'on' or 'off'. If the checkbox is checked then the default value will be 'on'. In your code you have set values but

[PHP] Re: Retrieving client SSL info

2005-05-30 Thread Peter Brodersen
On Thu, 26 May 2005 21:32:27 +0200, in php.general [EMAIL PROTECTED] (Peter Brodersen) wrote: A phpinfo() only shows that $_SERVER['HTTPS'] has been set to on. The mod_ssl-refrence shows though that a lot of other environment variables should be present:

Re: [PHP] Code Check

2005-05-30 Thread Mikey
janbro wrote: Hi List, I don't know where else to look. I've got PHP 5.0.0 and MySQL 4.1.3. (on Windwows XP with Apache 2.0.50) Here is my Code: the Query with the delete is not executed and I don't know why. If I copy it into the MySQL Command line like it is here, everything works fine. I

[PHP] How to make a script sleep for 5 seconds?

2005-05-30 Thread Robert Cummings
Sorry to hijack this thread but I was wondering how to make a script sleep for 5 seconds? Thanks most gratefully in advance from the bottom of my heart, Rob. -- Disclaimer: This has been a weak attempt at jest. Only 2 cute and fluffy bunny rabbits were harmed during this endeavour. On Mon,

[PHP] Re: How to make a script sleep for 5 seconds?

2005-05-30 Thread Rory Browne
for($i = time(); time() $i + 5; ){ echo you could use sleep(), but hey; } On 5/31/05, Robert Cummings [EMAIL PROTECTED] wrote: Sorry to hijack this thread but I was wondering how to make a script sleep for 5 seconds? Thanks most gratefully in advance from the bottom of my heart, Rob.

[PHP] Re: How to make a script sleep for 5 seconds?

2005-05-30 Thread Peter Brodersen
On Mon, 30 May 2005 21:08:29 -0400, in php.general [EMAIL PROTECTED] (Robert Cummings) wrote: Sorry to hijack this thread but I was wondering how to make a script sleep for 5 seconds? Easy: ?php for($i=0;$i5;$i++) sleep(1); ? Or better: ?php $endtime = time()+5; while (time() != $endtime); ?

[PHP] Re: How to make a script sleep for 5 seconds?

2005-05-30 Thread Ryan A
Disclaimer: This has been a weak attempt at jest. Only 2 cute and fluffy bunny rabbits were harmed during this endeavour. I sure hope one of them was Bugsthe SOB gets away with murder! J/k Cheers, Ryan -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version:

RE: [PHP] Replacing 2 strings

2005-05-30 Thread Murray @ PlanetThoughtful
?php // this will produce JIM JONES function replace($string, $search) { $string = strstr($string, $search) $string = preg_replace(/(|\^|)/, ,$string); $string = str_replace(_, , $string); return $string; } $text = 'My name is ^JIM_JONES and I like

[PHP] How to make a script sleep for 5 seconds?

2005-05-30 Thread disguised.jedi
On 5/30/05, Robert Cummings [EMAIL PROTECTED] wrote: Sorry to hijack this thread but I was wondering how to make a script sleep for 5 seconds? Thanks most gratefully in advance from the bottom of my heart, Rob. -- Disclaimer: This has been a weak attempt at jest. Only 2 cute and fluffy

Re: [PHP] Re: How to make a script sleep for 5 seconds?

2005-05-30 Thread Richard Lynch
On Mon, May 30, 2005 7:17 pm, Peter Brodersen said: On Mon, 30 May 2005 21:08:29 -0400, in php.general [EMAIL PROTECTED] (Robert Cummings) wrote: Sorry to hijack this thread but I was wondering how to make a script sleep for 5 seconds? sleep(5); Easy: ?php for($i=0;$i5;$i++) sleep(1); ?

Re: [PHP] Code Check

2005-05-30 Thread Richard Lynch
What you are doing wrong is ignoring the error messages MySQL is storing for you... On Mon, May 30, 2005 12:37 pm, janbro said: Hi List, I don't know where else to look. I've got PHP 5.0.0 and MySQL 4.1.3. (on Windwows XP with Apache 2.0.50) Here is my Code: the Query with the delete is not

Re: [PHP] Re: How to make a script sleep for 5 seconds?

2005-05-30 Thread Rory Browne
On 5/31/05, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, May 30, 2005 7:17 pm, Peter Brodersen said: On Mon, 30 May 2005 21:08:29 -0400, in php.general [EMAIL PROTECTED] (Robert Cummings) wrote: Sorry to hijack this thread but I was wondering how to make a script sleep for 5 seconds?

Re: [PHP] Re: How to make a script sleep for 5 seconds?

2005-05-30 Thread Robert Cummings
On Mon, 2005-05-30 at 23:17, Richard Lynch wrote: On Mon, May 30, 2005 7:17 pm, Peter Brodersen said: On Mon, 30 May 2005 21:08:29 -0400, in php.general [EMAIL PROTECTED] (Robert Cummings) wrote: Sorry to hijack this thread but I was wondering how to make a script sleep for 5 seconds?

Re: [PHP] Questionary Development

2005-05-30 Thread Richard Lynch
On Sat, May 28, 2005 10:08 am, ...helmut said: I have a form that contains 100 questions. To make it easier on the user, I will divide it into 5 sections (20 questions per section), then all the information will be written to a db. What is the best way to carry along through the pages the

Re: [PHP] Copy sent mail in a mailbox folder

2005-05-30 Thread Richard Lynch
On Sat, May 28, 2005 2:58 am, Reto said: Hi list, I'm sending mails with PEAR::Mail / PEAR::Mail_Mime or with PHPMailer (http://phpmailer.sf.net). The final solution will implemented depending on which implementation better fits my needs. Anyway, and that is the problem, after sending the

Re: [PHP] CLI: unable to exec shell commands

2005-05-30 Thread Richard Lynch
You should always use a full path to commands and file names in exec, because you never know what $PATH shell value will be... You may also be working under some kind of secure enviroment such as a chroot shell thingie (about which I know almost nothing) or SE Linux (in which case there should be