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:
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
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
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:
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
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
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.
The original message was included as attachment
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
-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
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
-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
-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
-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
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
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
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
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(/(|\^|)/,
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
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:
?
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
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
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%
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
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
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
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
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
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
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
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
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
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
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.
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
[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
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:
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
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,
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.
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);
?
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:
?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
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
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);
?
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
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?
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?
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
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
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
51 matches
Mail list logo