php-general Digest 30 Dec 2001 01:45:34 -0000 Issue 1081
Topics (messages 79014 through 79042):
Re: Session troubles
79014 by: Miles Thompson
79017 by: Sean LeBlanc
79018 by: David Jackson
79022 by: Sean LeBlanc
79023 by: David Jackson
79026 by: Sean LeBlanc
79028 by: David Jackson
Re: Windows 2000 Browse/upload problem
79015 by: Zeev Suraski
PHP + GD 2.0.1 + WIN2K
79016 by: Fredrik Arild Takle
php-4.1.0 and tomcat 4.x
79019 by: Vincent Stoessel
79031 by: Vincent Stoessel
Real Simple, but i'm new!!
79020 by: FiShcAkE
how to create html tables in php
79021 by: Sander Peters
79025 by: DL Neil
Re: WebServer
79024 by: Brent Rieck
79029 by: LaserJetter
Re: File upload memory useage.
79027 by: Jim Lucas [php]
pdflib
79030 by: Kunal Jhunjhunwala
79038 by: Brian Clark
79040 by: Kunal Jhunjhunwala
79042 by: Brian Clark
another tomcat 4.01 problem
79032 by: Vincent Stoessel
Templating solutions?
79033 by: Lauri Vain
79034 by: Bogdan Stancescu
79035 by: David Jackson
79036 by: David Jackson
How to copy a substring of a string
79037 by: Carlos Fernando Scheidecker Antunes
79039 by: Gerard Onorato
Re: Security bulletin?
79041 by: Brian Clark
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Sean,
What's going on in incl.php. Are you issuing a session_start()?
What if it's rearranged like so, as I understand you have to register the session
variable
before using it.
include("incl.php");
session_start();
session_register("mine");
$mine++;
echo $mine;
There's the divide and conquer approach too. What do you see if you comment out the
include,
then issue a phpinfo() and a die()?
HTH and Merry Christmas / Happy New Year - Miles Thompson
On Friday 28 December 2001 11:26 pm, Sean LeBlanc wrote:
> I asked this on php-install list, but got no response so here goes...
>
> I simply cannot get session to work correctly. Here's the test script:
>
> include("incl.php");
> session_start();
> $mine++;
> session_register("mine");
> echo $mine;
>
> incl.php includes code to save/retrieve session information to/from DB. It
> calles session_set_save_handler at the end.
>
> What happens is I get an error because it is trying to read the variable
> out and I get a DB error, but my session writing routine is never
> called...I know, because I have a print in there. And of course, the var
> doesn't increment upon refreshes - it remains 1.
>
> I've seen this before, and it was fixed, but I forget how it was done, as I
> didn't actually implement the solution (I hear and I forget, I do and I
> remember, I guess). About my system:
>
> FreeBSD 4.4
> Apache 1.3.20
> PHP 4.0.6
>
> Any and all help appreciated.
--- End Message ---
--- Begin Message ---
On 12-29 09:59, Miles Thompson wrote:
> Sean,
>
> What's going on in incl.php. Are you issuing a session_start()?
No, I was not.
> What if it's rearranged like so, as I understand you have to register the session
>variable
> before using it.
>
> include("incl.php");
> session_start();
> session_register("mine");
> $mine++;
> echo $mine;
No dice, either. Actually, I had tried several permutations of the order before
posting. :)
>
> There's the divide and conquer approach too. What do you see if you comment out the
>include,
> then issue a phpinfo() and a die()?
Okay, I tried commenting out include, resulting in this code:
session_start();
session_register("i");
$i++;
echo $i;
When I run the above, I get this:
Fatal error: Failed to initialize session module in
/usr/local/apache/htdocs/sesstest.php on line 6
Which is getting somewhere, in a way. Line 6 is session_start();
What part from phpinfo() output were you interested in? Or did you want to
see all of it?
Thanks for the help.
>
> HTH and Merry Christmas / Happy New Year - Miles Thompson
>
> On Friday 28 December 2001 11:26 pm, Sean LeBlanc wrote:
> > I asked this on php-install list, but got no response so here goes...
> >
> > I simply cannot get session to work correctly. Here's the test script:
> >
> > include("incl.php");
> > session_start();
> > $mine++;
> > session_register("mine");
> > echo $mine;
> >
> > incl.php includes code to save/retrieve session information to/from DB. It
> > calles session_set_save_handler at the end.
> >
> > What happens is I get an error because it is trying to read the variable
> > out and I get a DB error, but my session writing routine is never
> > called...I know, because I have a print in there. And of course, the var
> > doesn't increment upon refreshes - it remains 1.
> >
> > I've seen this before, and it was fixed, but I forget how it was done, as I
> > didn't actually implement the solution (I hear and I forget, I do and I
> > remember, I guess). About my system:
> >
> > FreeBSD 4.4
> > Apache 1.3.20
> > PHP 4.0.6
> >
> > Any and all help appreciated.
--
Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
One learns to itch where one can scratch.
-Ernest Bramah
Management QOTD:Get hopping on the domain expertise!!
--- End Message ---
--- Begin Message ---
Sean --
Don't know if this help but here's what I just worked for me.
What ver. of PHP are you using? It seem to me that 3.x.x needs
PHPLIB: http://sourceforge.net/projects/phplib
to handle sessions? -- David Jackson
--- sean.php -------
<?php include("seaninc.php"); ?>
--- seaninc.php ------
<?php
session_start();
session_register("i");
$i++;
echo $i;
?>
> On 12-29 09:59, Miles Thompson wrote:
>> Sean,
>>
>> What's going on in incl.php. Are you issuing a session_start()?
>
> No, I was not.
>
>> What if it's rearranged like so, as I understand you have to register
>> the session variable before using it.
>>
>> include("incl.php");
>> session_start();
>> session_register("mine");
>> $mine++;
>> echo $mine;
>
> No dice, either. Actually, I had tried several permutations of the
> order before posting. :)
>
>>
>> There's the divide and conquer approach too. What do you see if you
>> comment out the include, then issue a phpinfo() and a die()?
>
> Okay, I tried commenting out include, resulting in this code:
>
> session_start();
> session_register("i");
> $i++;
> echo $i;
>
> When I run the above, I get this:
> Fatal error: Failed to initialize session module in
> /usr/local/apache/htdocs/sesstest.php on line 6
>
> Which is getting somewhere, in a way. Line 6 is session_start();
>
> What part from phpinfo() output were you interested in? Or did you want
> to see all of it?
>
> Thanks for the help.
>
>>
>> HTH and Merry Christmas / Happy New Year - Miles Thompson
>>
>> On Friday 28 December 2001 11:26 pm, Sean LeBlanc wrote:
>> > I asked this on php-install list, but got no response so here
>> > goes...
>> >
>> > I simply cannot get session to work correctly. Here's the test
>> > script:
>> >
>> > include("incl.php");
>> > session_start();
>> > $mine++;
>> > session_register("mine");
>> > echo $mine;
>> >
>> > incl.php includes code to save/retrieve session information to/from
>> > DB. It calles session_set_save_handler at the end.
>> >
>> > What happens is I get an error because it is trying to read the
>> > variable out and I get a DB error, but my session writing routine is
>> > never called...I know, because I have a print in there. And of
>> > course, the var doesn't increment upon refreshes - it remains 1.
>> >
>> > I've seen this before, and it was fixed, but I forget how it was
>> > done, as I didn't actually implement the solution (I hear and I
>> > forget, I do and I remember, I guess). About my system:
>> >
>> > FreeBSD 4.4
>> > Apache 1.3.20
>> > PHP 4.0.6
>> >
>> > Any and all help appreciated.
>
> --
> Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
> ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
> One learns to itch where one can scratch.
> -Ernest Bramah
> Management QOTD:Get hopping on the domain expertise!!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
--
--- End Message ---
--- Begin Message ---
On 12-29 12:56, David Jackson wrote:
> Sean --
> Don't know if this help but here's what I just worked for me.
> What ver. of PHP are you using? It seem to me that 3.x.x needs
> PHPLIB: http://sourceforge.net/projects/phplib
> to handle sessions? -- David Jackson
>
> --- sean.php -------
> <?php include("seaninc.php"); ?>
>
> --- seaninc.php ------
> <?php
> session_start();
> session_register("i");
> $i++;
> echo $i;
> ?>
I'm using 4.0.6. I believe session handling was added as part of standard
4.x, right (if configured to compile it)?
Some more info: I tried with Konqueror, as I know a cookie needs to be sent
during the session_start() phase - I did get a dialog pop-up asking if I
wanted to accept the cookie, but I still got the error:
Fatal error: Failed to initialize session module in
/usr/local/apache/htdocs/sesstest.php on line 2
It says line 2 because I deleted some white space and commented out
code thas was before session_start().
I set logging errors on, and sent it to syslog. Here's what it says:
Dec 29 12:12:57 free httpd: PHP Fatal error: Failed to initialize session
module in /usr/local/apache/htdocs/sesstest.php on line 2
Dec 29 12:12:57 free httpd: PHP Warning: Failed to write session data
(user). Please verify that the current setting of session.save_path is
correct (/tmp) in Unknown on line 0
But /tmp exists, and is world writeable:
free# ls -ld /tmp
drwxrwxrwt 16 root wheel 1024 Dec 29 12:14 /tmp
> > On 12-29 09:59, Miles Thompson wrote:
> >> Sean,
> >>
> >> What's going on in incl.php. Are you issuing a session_start()?
> >
> > No, I was not.
> >
> >> What if it's rearranged like so, as I understand you have to register
> >> the session variable before using it.
> >>
> >> include("incl.php");
> >> session_start();
> >> session_register("mine");
> >> $mine++;
> >> echo $mine;
> >
> > No dice, either. Actually, I had tried several permutations of the
> > order before posting. :)
> >
> >>
> >> There's the divide and conquer approach too. What do you see if you
> >> comment out the include, then issue a phpinfo() and a die()?
> >
> > Okay, I tried commenting out include, resulting in this code:
> >
> > session_start();
> > session_register("i");
> > $i++;
> > echo $i;
> >
> > When I run the above, I get this:
> > Fatal error: Failed to initialize session module in
> > /usr/local/apache/htdocs/sesstest.php on line 6
> >
> > Which is getting somewhere, in a way. Line 6 is session_start();
> >
> > What part from phpinfo() output were you interested in? Or did you want
> > to see all of it?
> >
> > Thanks for the help.
> >
> >>
> >> HTH and Merry Christmas / Happy New Year - Miles Thompson
> >>
> >> On Friday 28 December 2001 11:26 pm, Sean LeBlanc wrote:
> >> > I asked this on php-install list, but got no response so here
> >> > goes...
> >> >
> >> > I simply cannot get session to work correctly. Here's the test
> >> > script:
> >> >
> >> > include("incl.php");
> >> > session_start();
> >> > $mine++;
> >> > session_register("mine");
> >> > echo $mine;
> >> >
> >> > incl.php includes code to save/retrieve session information to/from
> >> > DB. It calles session_set_save_handler at the end.
> >> >
> >> > What happens is I get an error because it is trying to read the
> >> > variable out and I get a DB error, but my session writing routine is
> >> > never called...I know, because I have a print in there. And of
> >> > course, the var doesn't increment upon refreshes - it remains 1.
> >> >
> >> > I've seen this before, and it was fixed, but I forget how it was
> >> > done, as I didn't actually implement the solution (I hear and I
> >> > forget, I do and I remember, I guess). About my system:
> >> >
> >> > FreeBSD 4.4
> >> > Apache 1.3.20
> >> > PHP 4.0.6
> >> >
> >> > Any and all help appreciated.
> >
> > --
> > Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
> > ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
> > One learns to itch where one can scratch.
> > -Ernest Bramah
> > Management QOTD:Get hopping on the domain expertise!!
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
>
>
> --
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
In most countries selling harmful things like drugs is punishable. Then
howcome people can sell Microsoft software and go unpunished?
-Hasse Skrifvars
Management QOTD:Work out a solution that fits with problem management!!
--- End Message ---
--- Begin Message ---
Sean --
Do you get the same errors, with Netscape 4.x?
> On 12-29 12:56, David Jackson wrote:
>> Sean --
>> Don't know if this help but here's what I just worked for me.
>> What ver. of PHP are you using? It seem to me that 3.x.x needs
>> PHPLIB: http://sourceforge.net/projects/phplib
>> to handle sessions? -- David Jackson
>>
>> --- sean.php -------
>> <?php include("seaninc.php"); ?>
>>
>> --- seaninc.php ------
>> <?php
>> session_start();
>> session_register("i");
>> $i++;
>> echo $i;
>> ?>
>
> I'm using 4.0.6. I believe session handling was added as part of
> standard 4.x, right (if configured to compile it)?
>
> Some more info: I tried with Konqueror, as I know a cookie needs to be
> sent during the session_start() phase - I did get a dialog pop-up
> asking if I wanted to accept the cookie, but I still got the error:
>
> Fatal error: Failed to initialize session module in
> /usr/local/apache/htdocs/sesstest.php on line 2
>
> It says line 2 because I deleted some white space and commented out
> code thas was before session_start().
>
> I set logging errors on, and sent it to syslog. Here's what it says:
> Dec 29 12:12:57 free httpd: PHP Fatal error: Failed to initialize
> session module in /usr/local/apache/htdocs/sesstest.php on line 2
> Dec 29 12:12:57 free httpd: PHP Warning: Failed to write session data
> (user). Please verify that the current setting of session.save_path is
> correct (/tmp) in Unknown on line 0
>
> But /tmp exists, and is world writeable:
>
> free# ls -ld /tmp
> drwxrwxrwt 16 root wheel 1024 Dec 29 12:14 /tmp
>
>> > On 12-29 09:59, Miles Thompson wrote:
>> >> Sean,
>> >>
>> >> What's going on in incl.php. Are you issuing a session_start()?
>> >
>> > No, I was not.
>> >
>> >> What if it's rearranged like so, as I understand you have to
>> >> register the session variable before using it.
>> >>
>> >> include("incl.php");
>> >> session_start();
>> >> session_register("mine");
>> >> $mine++;
>> >> echo $mine;
>> >
>> > No dice, either. Actually, I had tried several permutations of the
>> > order before posting. :)
>> >
>> >>
>> >> There's the divide and conquer approach too. What do you see if
>> >> you comment out the include, then issue a phpinfo() and a die()?
>> >
>> > Okay, I tried commenting out include, resulting in this code:
>> >
>> > session_start();
>> > session_register("i");
>> > $i++;
>> > echo $i;
>> >
>> > When I run the above, I get this:
>> > Fatal error: Failed to initialize session module in
>> > /usr/local/apache/htdocs/sesstest.php on line 6
>> >
>> > Which is getting somewhere, in a way. Line 6 is session_start();
>> >
>> > What part from phpinfo() output were you interested in? Or did you
>> > want to see all of it?
>> >
>> > Thanks for the help.
>> >
>> >>
>> >> HTH and Merry Christmas / Happy New Year - Miles Thompson
>> >>
>> >> On Friday 28 December 2001 11:26 pm, Sean LeBlanc wrote:
>> >> > I asked this on php-install list, but got no response so here
>> >> > goes...
>> >> >
>> >> > I simply cannot get session to work correctly. Here's the test
>> >> > script:
>> >> >
>> >> > include("incl.php");
>> >> > session_start();
>> >> > $mine++;
>> >> > session_register("mine");
>> >> > echo $mine;
>> >> >
>> >> > incl.php includes code to save/retrieve session information
>> >> > to/from DB. It calles session_set_save_handler at the end.
>> >> >
>> >> > What happens is I get an error because it is trying to read the
>> >> > variable out and I get a DB error, but my session writing routine
>> >> > is never called...I know, because I have a print in there. And of
>> >> > course, the var doesn't increment upon refreshes - it remains 1.
>> >> >
>> >> > I've seen this before, and it was fixed, but I forget how it was
>> >> > done, as I didn't actually implement the solution (I hear and I
>> >> > forget, I do and I remember, I guess). About my system:
>> >> >
>> >> > FreeBSD 4.4
>> >> > Apache 1.3.20
>> >> > PHP 4.0.6
>> >> >
>> >> > Any and all help appreciated.
>> >
>> > --
>> > Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
>> > ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
>> > One learns to itch where one can scratch.
>> > -Ernest Bramah
>> > Management QOTD:Get hopping on the domain expertise!!
>> >
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED] To
>> > contact the list administrators, e-mail:
>> > [EMAIL PROTECTED]
>>
>>
>> --
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail:
>> [EMAIL PROTECTED]
>
> --
> Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
> ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
> In most countries selling harmful things like drugs is punishable. Then
> howcome people can sell Microsoft software and go unpunished?
> -Hasse Skrifvars
> Management QOTD:Work out a solution that fits with problem management!!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
--
--- End Message ---
--- Begin Message ---
On 12-29 15:10, David Jackson wrote:
> Sean --
> Do you get the same errors, with Netscape 4.x?
Yep. The very same. I've tried Galeon, Mozilla, Netscape 4.x, and Konqueror.
They all result in the same error.
> > On 12-29 12:56, David Jackson wrote:
> >> Sean --
> >> Don't know if this help but here's what I just worked for me.
> >> What ver. of PHP are you using? It seem to me that 3.x.x needs
> >> PHPLIB: http://sourceforge.net/projects/phplib
> >> to handle sessions? -- David Jackson
> >>
> >> --- sean.php -------
> >> <?php include("seaninc.php"); ?>
> >>
> >> --- seaninc.php ------
> >> <?php
> >> session_start();
> >> session_register("i");
> >> $i++;
> >> echo $i;
> >> ?>
> >
> > I'm using 4.0.6. I believe session handling was added as part of
> > standard 4.x, right (if configured to compile it)?
> >
> > Some more info: I tried with Konqueror, as I know a cookie needs to be
> > sent during the session_start() phase - I did get a dialog pop-up
> > asking if I wanted to accept the cookie, but I still got the error:
> >
> > Fatal error: Failed to initialize session module in
> > /usr/local/apache/htdocs/sesstest.php on line 2
> >
> > It says line 2 because I deleted some white space and commented out
> > code thas was before session_start().
> >
> > I set logging errors on, and sent it to syslog. Here's what it says:
> > Dec 29 12:12:57 free httpd: PHP Fatal error: Failed to initialize
> > session module in /usr/local/apache/htdocs/sesstest.php on line 2
> > Dec 29 12:12:57 free httpd: PHP Warning: Failed to write session data
> > (user). Please verify that the current setting of session.save_path is
> > correct (/tmp) in Unknown on line 0
> >
> > But /tmp exists, and is world writeable:
> >
> > free# ls -ld /tmp
> > drwxrwxrwt 16 root wheel 1024 Dec 29 12:14 /tmp
> >
> >> > On 12-29 09:59, Miles Thompson wrote:
> >> >> Sean,
> >> >>
> >> >> What's going on in incl.php. Are you issuing a session_start()?
> >> >
> >> > No, I was not.
> >> >
> >> >> What if it's rearranged like so, as I understand you have to
> >> >> register the session variable before using it.
> >> >>
> >> >> include("incl.php");
> >> >> session_start();
> >> >> session_register("mine");
> >> >> $mine++;
> >> >> echo $mine;
> >> >
> >> > No dice, either. Actually, I had tried several permutations of the
> >> > order before posting. :)
> >> >
> >> >>
> >> >> There's the divide and conquer approach too. What do you see if
> >> >> you comment out the include, then issue a phpinfo() and a die()?
> >> >
> >> > Okay, I tried commenting out include, resulting in this code:
> >> >
> >> > session_start();
> >> > session_register("i");
> >> > $i++;
> >> > echo $i;
> >> >
> >> > When I run the above, I get this:
> >> > Fatal error: Failed to initialize session module in
> >> > /usr/local/apache/htdocs/sesstest.php on line 6
> >> >
> >> > Which is getting somewhere, in a way. Line 6 is session_start();
> >> >
> >> > What part from phpinfo() output were you interested in? Or did you
> >> > want to see all of it?
> >> >
> >> > Thanks for the help.
> >> >
> >> >>
> >> >> HTH and Merry Christmas / Happy New Year - Miles Thompson
> >> >>
> >> >> On Friday 28 December 2001 11:26 pm, Sean LeBlanc wrote:
> >> >> > I asked this on php-install list, but got no response so here
> >> >> > goes...
> >> >> >
> >> >> > I simply cannot get session to work correctly. Here's the test
> >> >> > script:
> >> >> >
> >> >> > include("incl.php");
> >> >> > session_start();
> >> >> > $mine++;
> >> >> > session_register("mine");
> >> >> > echo $mine;
> >> >> >
> >> >> > incl.php includes code to save/retrieve session information
> >> >> > to/from DB. It calles session_set_save_handler at the end.
> >> >> >
> >> >> > What happens is I get an error because it is trying to read the
> >> >> > variable out and I get a DB error, but my session writing routine
> >> >> > is never called...I know, because I have a print in there. And of
> >> >> > course, the var doesn't increment upon refreshes - it remains 1.
> >> >> >
> >> >> > I've seen this before, and it was fixed, but I forget how it was
> >> >> > done, as I didn't actually implement the solution (I hear and I
> >> >> > forget, I do and I remember, I guess). About my system:
> >> >> >
> >> >> > FreeBSD 4.4
> >> >> > Apache 1.3.20
> >> >> > PHP 4.0.6
> >> >> >
> >> >> > Any and all help appreciated.
> >> >
> >> > --
> >> > Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
> >> > ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
> >> > One learns to itch where one can scratch.
> >> > -Ernest Bramah
> >> > Management QOTD:Get hopping on the domain expertise!!
> >> >
> >> >
> >> > --
> >> > PHP General Mailing List (http://www.php.net/)
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED] To
> >> > contact the list administrators, e-mail:
> >> > [EMAIL PROTECTED]
> >>
> >>
> >> --
> >>
> >>
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> To contact the list administrators, e-mail:
> >> [EMAIL PROTECTED]
> >
> > --
> > Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
> > ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
> > In most countries selling harmful things like drugs is punishable. Then
> > howcome people can sell Microsoft software and go unpunished?
> > -Hasse Skrifvars
> > Management QOTD:Work out a solution that fits with problem management!!
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
>
>
> --
>
--
Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
Teddy bears: They don't eat your food, dance with your date, or trump your ace
lead.
-Garfield (Jim Davis)
Management QOTD:This is like the first lap of a four-lap race. We all have to
stop thrashing and take a broad horizontal view across the
realistic goals.
--- End Message ---
--- Begin Message ---
Sean --
Give the attached scripts a shot, a post the results.
Note: Xitami(server+WinMe) + IE5.5 or Mozilla 9.7 works
fine but with Netscape-4.9 it returns var names? But
when served from Unix/Linux and Apache all 3 work as expected !!
Anywhy give them shot. -- David
--- form.html ---
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>No title</title>
<meta name="GENERATOR" content="amaya 5.2" />
</head>
<body>
<form method="post" action="form.php">
<p><input type="text" size="20" name="stuff" /></p>
<p><input type="text" size="20" name="more_stuff" /></p>
<p><input type="text" size="20" name="still_more_stuff" /></p>
<p><input type="submit" value="Submit" /></p>
<p><input type="reset" value="Reset" /></p>
</form>
</body>
</html>
--- form.php ----
<?php
// sessions on 48 N. Random Rd.
session_start();
session_register('Green');
session_register('Yellow');
session_register('Red');
$Green = $stuff;
$Yellow = $more_stuff;
$Red = $still_more_stuff;
// basic echo of var from form
echo "We've just echoed var from form\n";
echo "<p>$Green</p>";
echo "<h2>$Yellow</h2>";
echo "<h3>$Red</h3>";
echo "<p><a href=\"form02.php\">Verify that session_vars were
passwd</a></p>";
// Get out of here
?>
--- form02.php -------------
<?php
session_start();
// sessions on 48 N. Random Rd.
// basic echo of var from form
echo "<html><head><title></title></head>";
echo "<body>";
echo "<h2>session_registers:";
echo "<p>Green:$Green</p>";
echo "<p>Yellow:$Yellow</p>";
echo "<p>Red:$Red</p>";
echo "</body></html>";
?>
--- End Message ---
--- Begin Message ---
Check the value of the upload_tmp_dir php.ini entry. That's the dir that
PHP would use for storing uploaded files. It can be the same as
session.save_path, but it doesn't have to be...
If it's not set, PHP would use the system-defined TEMP directory, which is
E:\WINNT\TEMP on your system (apparently).
Zeev
At 13:33 29/12/2001, Ben Edwards wrote:
>[Sorry if this is a re-post but I have been having some email problems and
>cant find original in the archive]
>
>I have a PHP application that is working fine on my Windows 98 system but
>when I try it on my Windows 2000 setup (which has recently had PHP/MySQL
>installed) there is a problem. When I post from a form with a Browse/File
>field when I check to see if the temp file exists it douse not. This
>check is being done in the page being posted to. The strange thing is that
>the file the varable is set to is something like E:\WINNT\TEMP\phpD4.tmp
>and I thought PHP used tmp (E:\tmp is where the session data is held).
>
>Any idea what is wrong.
>
>Regards,
>Ben
>
>**************************************************************
>* Ben Edwards +44 (0)7970 269 522 *
>* Homepage http://www.gifford.co.uk/~bedwards *
>* i-Contact Progressive Video http://www.videonetwork.org *
>* Smashing the Corporate image http://www.subvertise.org *
>* Bristol's radical news http://www.bristle.co.uk *
>* PGP : F0CA 42B8 D56F 28AD 169B 49F3 3056 C6DB 8538 EEF8 *
>**************************************************************
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I have a win2k machine set-up with iis 5.0, php 4.1.0 and now I want to use
image_copy_resample()
image_copy_resample() is not working in the version of gd included in php
4.1.0.
Where should I download the .dll for version 2.0.1?
Regards
Fredrik A. Takle
--- End Message ---
--- Begin Message ---
I am trying to get php compiled as a servlet. In the past (tomcat 3.x days)
one would point the php configure option (--with-servlet )to the location of the
servlet.jar
Tomcat 4 seems to have many many servlet jars and I cannot seem to find the correct one
to link against. Is Sam Ruby still out there somewhere?
Thanks in advance.
--
Vincent Stoessel [EMAIL PROTECTED]
Java Linux Apache Mysql Php (JLAMP) Engineer
(301) 362-1750 Mobile (410) 419-8588
AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica
--- End Message ---
--- Begin Message ---
found the answer:
point to $TOMCAT_HOME/common
Vincent Stoessel wrote:
>
> ------------------------------------------------------------------------
>
> Subject:
>
> [PHP] php-4.1.0 and tomcat 4.x
> From:
>
> Vincent Stoessel <[EMAIL PROTECTED]>
> Date:
>
> Sat, 29 Dec 2001 13:06:05 -0500
> To:
>
> Php General Mailing List <[EMAIL PROTECTED]>, Tomcat Users List
> <[EMAIL PROTECTED]>
>
> To:
>
> Php General Mailing List <[EMAIL PROTECTED]>, Tomcat Users List
> <[EMAIL PROTECTED]>
>
>
> I am trying to get php compiled as a servlet. In the past (tomcat 3.x days)
> one would point the php configure option (--with-servlet )to the
> location of the servlet.jar
> Tomcat 4 seems to have many many servlet jars and I cannot seem to find
> the correct one
> to link against. Is Sam Ruby still out there somewhere?
> Thanks in advance.
--
Vincent Stoessel [EMAIL PROTECTED]
Java Linux Apache Mysql Php (JLAMP) Engineer
(301) 362-1750 Mobile (410) 419-8588
AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica
--- End Message ---
--- Begin Message ---
Hey,
I've just started learning php and I need to know this... What are the
commands I use to get i.e. index.php?links and index.php?news to
work?
I have a site, with the menu down one side, and I need to have the
index.php?news
link to a "news.php" page, etc. etc. I hope this makes
sense to someone, I think it does to me?!?!?
Lee...
--- End Message ---
--- Begin Message ---
Hello,
I made a database with bookmarks, these bookmarks are catogarized by
type.
Now I want to display those bookmarks in tables by category. This works
already fine.
The only problem I have is that the tables are very difficult to handle.
I want to make 4 tables in a row (so that will be 4 dif categories with
bookmarks) and after that, the next table should start under the first
one.
Like this
category category category category
xxxxxxx xxxxxxx xxxxxxx xxxxxxx
xxxxxxx xxxxxxx xxxxxxx xxxxxxx
xxxxxxx xxxxxxx xxxxxxx xxxxxxx
category category category category
xxxxxxx xxxxxxx xxxxxxx xxxxxxx
xxxxxxx xxxxxxx xxxxxxx xxxxxxx
xxxxxxx xxxxxxx xxxxxxx xxxxxxx
(xxxxx = a weblink ;-)
The (dutch) website where you can find a full example for what I mean:
http://www.startpagina.nl/
Can anyone help me with this please?
Thanx!
--
Met vriendelijke groet / With Greetings,
Sander Peters
site: http://www.visionnet.nl/
email: mailto:[EMAIL PROTECTED]
webmail: mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi Sander,
> I made a database with bookmarks, these bookmarks are catogarized by
> type.
> Now I want to display those bookmarks in tables by category. This works
> already fine.
> The only problem I have is that the tables are very difficult to handle.
>
> I want to make 4 tables in a row (so that will be 4 dif categories with
> bookmarks) and after that, the next table should start under the first
> one.
> Like this
>
> category category category category
> xxxxxxx xxxxxxx xxxxxxx xxxxxxx
> xxxxxxx xxxxxxx xxxxxxx xxxxxxx
> xxxxxxx xxxxxxx xxxxxxx xxxxxxx
>
> category category category category
> xxxxxxx xxxxxxx xxxxxxx xxxxxxx
> xxxxxxx xxxxxxx xxxxxxx xxxxxxx
> xxxxxxx xxxxxxx xxxxxxx xxxxxxx
>
>
> (xxxxx = a weblink ;-)
>
> The (dutch) website where you can find a full example for what I mean:
> http://www.startpagina.nl/
The description (above) shows category-columns of a regular/uniform length/height, so
that the second set of
four category headings all appear on the same line. The web page example does not look
like this, but the next
category starts immediately under the last entry of its columnar predecessor...
How are you retrieving the bookmarks from the database - all in one query, or a series
of queries to retrieve a
category at a time? (I'll assume the former)
Here are two ways to implement in PHP (depending upon how you want to 'visualise' the
data):
1 table - see the data as four columns
Set up a two-dimensional array in RAM, and by working through the db-resultset a row
at a time populate the
table with column-row data by working down each column until the category changes and
then shifting over one
column, etc, then print the table with two (nested) loops to output one row at a time
across the columns until
all of the table data has been dealt with. (You could view the resultset as a 'buffer'
and really get
complicated to 'save' RAM, but my advice would be to get the above working first, and
then try any optimisation
ideas)
2 resultset
View the resultset as a single column of bookmarks (or read it into a single
one-dimensional array), depending
upon your chosen db and PHP's retrieval mechanism you could set up four 'pointers'
into the resultset - one for
each column, then read one result-row from each of the four pointers (incrementing as
you go) to immediately
output within each of the four output columns.
Programmatically, it would be a lot easier to implement the flow the categories
horizontally, eg
category xxxxxxx xxxxxxx xxxxxxx
category xxxxxxx xxxxxxx xxxxxxx xxxxxxx
xxxxxxx xxxxxxx
category xxxxxxx xxxxxxx xxxxxxx xxxxxxx
Enough to get you going?
Regards,
=dn
--- End Message ---
--- Begin Message ---
Ricardo,
I'd bet that behind a 256kbps connection you'll run out of bandwidth
long before you run out of CPU, memory, or disk on any machine that
costs more than about $500USD - but your mileage may vary depending on
your application. My personal experience is that behind my DSL
connection, I run out of bandwidth far before I run out of CPU and
memory on my PII 233 that's running a reasonably complex web app with
heavy DB usage.
--Brent
On Fri, 2001-12-28 at 05:30, rick wrote:
>
> Dear Members ,
>
> Does anybody of you have a webserver at home
> using ADSL or other connections ?
>
> If any , could you tell me What would be the acceptable Hardware to run
> 5 or more sites at home with an
> 256 k ADSL ? (Memory , proccesor , etc etc )
>
>
> Do I have to have Two Servers ? (The WebServer ) and the Intranet Server
> to access through my computer ?
>
> Would you help me please in a near future with a few questions about how
> to set up and so on .....???
>
>
> Thanks guys in advance
>
> Ricardo
>
>
--- End Message ---
--- Begin Message ---
AOL UK say their ADSL service isnt good for hosting because it is
asymmetrical: you can download data faster than you can send it out which is
fine for surfing the net but not so useful for running a server.(I just
think AOL dont want people hosting servers using their service though!)
We have a PHP webserver at school: It doesnt get heavy useage but we run
VNC, a chat server, ftp server, MySQL and Apache/PHP on Win98 and dont have
any problems with performance!!!!!
"Brent Rieck" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ricardo,
> I'd bet that behind a 256kbps connection you'll run out of bandwidth
> long before you run out of CPU, memory, or disk on any machine that
> costs more than about $500USD - but your mileage may vary depending on
> your application. My personal experience is that behind my DSL
> connection, I run out of bandwidth far before I run out of CPU and
> memory on my PII 233 that's running a reasonably complex web app with
> heavy DB usage.
>
> --Brent
>
>
> On Fri, 2001-12-28 at 05:30, rick wrote:
> >
> > Dear Members ,
> >
> > Does anybody of you have a webserver at home
> > using ADSL or other connections ?
> >
> > If any , could you tell me What would be the acceptable Hardware to run
> > 5 or more sites at home with an
> > 256 k ADSL ? (Memory , proccesor , etc etc )
> >
> >
> > Do I have to have Two Servers ? (The WebServer ) and the Intranet Server
> > to access through my computer ?
> >
> > Would you help me please in a near future with a few questions about how
> > to set up and so on .....???
> >
> >
> > Thanks guys in advance
> >
> > Ricardo
> >
> >
>
--- End Message ---
--- Begin Message ---
Well, I just finished a ftp program that originally used php to catch the
uploaded file, but soon realized the it did load it into memory then dump it
into a file. I finally ended up using perl running with xinetd to capture
the uploaded file and drop it into a file. then let php play with it from
there.
Jim
----- Original Message -----
From: "Jim Broughton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 29, 2001 10:30 AM
Subject: [PHP] File upload memory useage.
> I am involved with creating a website (i am the systems guy not the
> website programmer) on an older computer, a p133 with 80meg of
> ram. Since php is by default loaded with apache in the slackware
> installation I have chosen. I have told the website programmer that he
> will have to use php for file uploads to the site as mod_perl is eats too
> much system ram. I have to have setup that will allow the uploading of
some
> fairly large files > 50mb
> Because this is NOT clear in the php manual on file
> uploading I need to know if php uploads the file to a memory cache first
> then flushes the uploaded data to the chosen uploads directory or whether
it
> writes the file to disk as it is being uploaded?
> If it is the former I will have to look at another solution.
>
> JIM
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
Hey,
Has anyone successfully installed it with php 4.0.6 ? I have tried
everything from re-compiling php to compiling pdflib from scratch.. but im
totally lost.. any help would be great..
the pdflib site dint help much either.. :(
Regards,
Kunal Jhunjhunwala
--- End Message ---
--- Begin Message ---
* Kunal Jhunjhunwala ([EMAIL PROTECTED]) [Dec 29. 2001 17:17]:
> Has anyone successfully installed it with php 4.0.6 ? I have tried
> everything from re-compiling php to compiling pdflib from scratch.. but im
> totally lost.. any help would be great..
What OS/distribution? A few months ago I installed 4.0.6 and pdflib on a
SuSE server and it went just fine.
<http://www.pdflib.com/pdflib/download/index.html>
wget newest tarball.
$ cd pdflib-x.x.x
$ ./configure \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-tiff-dir=/usr/local \
--with-zlib-dir=/usr
$ make
$ make test
$ make install
And in the PHP configure:
--with-pdflib=/usr/local
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Therein lies the major problem facing the world.
--- End Message ---
--- Begin Message ---
I am using red hat 7.2...
Regards,
Kunal Jhunjhunwala
----- Original Message -----
From: "Brian Clark" <[EMAIL PROTECTED]>
To: "PHP is not a drug." <[EMAIL PROTECTED]>
Sent: Sunday, December 30, 2001 7:00 AM
Subject: Re: [PHP] pdflib
> * Kunal Jhunjhunwala ([EMAIL PROTECTED]) [Dec 29. 2001 17:17]:
>
> > Has anyone successfully installed it with php 4.0.6 ? I have tried
> > everything from re-compiling php to compiling pdflib from scratch.. but
im
> > totally lost.. any help would be great..
>
> What OS/distribution? A few months ago I installed 4.0.6 and pdflib on a
> SuSE server and it went just fine.
>
> <http://www.pdflib.com/pdflib/download/index.html>
>
> wget newest tarball.
>
> $ cd pdflib-x.x.x
> $ ./configure \
> --with-jpeg-dir=/usr/local \
> --with-png-dir=/usr/local \
> --with-tiff-dir=/usr/local \
> --with-zlib-dir=/usr
> $ make
> $ make test
> $ make install
>
> And in the PHP configure:
>
> --with-pdflib=/usr/local
>
> --
> Brian Clark | Avoiding the general public since 1805!
> Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
> Therein lies the major problem facing the world.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
--- End Message ---
--- Begin Message ---
* Kunal Jhunjhunwala ([EMAIL PROTECTED]) [Dec 29. 2001 20:39]:
> I am using red hat 7.2...
Then, what was the problem? IOW, how did you know it didn't work?
(Sounds like I'm asking a stupid question, but you didn't say
exactly what was happening. :-))) )
[...]
> > * Kunal Jhunjhunwala ([EMAIL PROTECTED]) [Dec 29. 2001 17:17]:
> > > Has anyone successfully installed it with php 4.0.6 ? I have tried
> > > everything from re-compiling php to compiling pdflib from scratch.. but
> im
> > > totally lost.. any help would be great..
> > What OS/distribution? A few months ago I installed 4.0.6 and pdflib on a
> > SuSE server and it went just fine.
[...]
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Fortune cookie: Outlook not so good, Microsoft ships anyway.
--- End Message ---
--- Begin Message ---
I got php4.1.0 sucessfully compiled in and now I get these
exceptions when I try to run the test php scripts.
java.lang.UnsatisfiedLinkError: send
at net.php.servlet.send(Native Method)
at net.php.servlet.service(servlet.java:162)
at net.php.servlet.service(servlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
I know that I am very close now. Any hints?
--
Vincent Stoessel [EMAIL PROTECTED]
Java Linux Apache Mysql Php (JLAMP) Engineer
(301) 362-1750 Mobile (410) 419-8588
AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica
--- End Message ---
--- Begin Message ---
Hi there!
During the last two weeks or so, I've been bugged by a question deep inside me.
It's about various templating solutions used with dynamic web applications.
Oftentimes simply embedding the code into the HTML template does the trick.
Othertimes the
<code>include("header.inc");</code> and
<code>include("footer.inc");</code> works its magic.
There are, however, also moments when such approaches aren't enough and
something else is required.
What does one do when the templates of most pages within one site differ in look
and feel? One possibility would be to specify a template, load it into a
variable and replace certain marked spots (a la "<!--left_navbar-->") with the
dynamically created code/text using eregi_replace() or something similar.
What are the templating solutions available? Pros and cons?
How do you solve your templating?
Yours,
Lauri
--
Tharapita Creations
[dynamic web applications]
[EMAIL PROTECTED]
Mobile: +372 53 410 610
--- End Message ---
--- Begin Message ---
A great solution for this kind of job is Midgard (www.midgard-project.org). It
provides heaps of features oriented to solving all your possible problems -- user
control/access; separate content and "style" templates, manages includes
automatically so you don't have to fiddle around tens or hundreds of files in order
to add the new php you want to include.
So, on the pro side there's much about everything you may wish.
On the con side, however, is that if you ever wish to export a site to a server
without Midgard you'll have a very hard time doing it because everything that was
done automatically by Midgard must be done manually in order to create the php files
comprising the site (had this experience recently, and it's a real pain).
However, these events are usually forseen, so if you have your own server you don't
need to worry about this problem.
HTH
Bogdan
Lauri Vain wrote:
> Hi there!
>
> During the last two weeks or so, I've been bugged by a question deep inside me.
> It's about various templating solutions used with dynamic web applications.
--- End Message ---
--- Begin Message ---
Lauri --
You might want to take a look at: http://www.thewebmasters.net/php/
there's a tutorial located here:
http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/page1.html
-- David
> Hi there!
>
> During the last two weeks or so, I've been bugged by a question deep
> inside me. It's about various templating solutions used with dynamic
> web applications.
>
> Oftentimes simply embedding the code into the HTML template does the
> trick. Othertimes the
> <code>include("header.inc");</code> and
> <code>include("footer.inc");</code> works its magic.
>
> There are, however, also moments when such approaches aren't enough and
> something else is required.
>
> What does one do when the templates of most pages within one site
> differ in look and feel? One possibility would be to specify a
> template, load it into a variable and replace certain marked spots (a
> la "<!--left_navbar-->") with the dynamically created code/text using
> eregi_replace() or something similar.
>
> What are the templating solutions available? Pros and cons?
>
> How do you solve your templating?
>
> Yours,
> Lauri
> --
> Tharapita Creations
> [dynamic web applications]
> [EMAIL PROTECTED]
> Mobile: +372 53 410 610
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
--
--- End Message ---
--- Begin Message ---
Woops -- first link is to the site for PHPFastTemplate.
> Lauri --
> You might want to take a look at: http://www.thewebmasters.net/php/
> there's a tutorial located here:
> http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/page1.html
>
> -- David
>> Hi there!
>>
>> During the last two weeks or so, I've been bugged by a question deep
>> inside me. It's about various templating solutions used with dynamic
>> web applications.
>>
>> Oftentimes simply embedding the code into the HTML template does the
>> trick. Othertimes the
>> <code>include("header.inc");</code> and
>> <code>include("footer.inc");</code> works its magic.
>>
>> There are, however, also moments when such approaches aren't enough
>> and something else is required.
>>
>> What does one do when the templates of most pages within one site
>> differ in look and feel? One possibility would be to specify a
>> template, load it into a variable and replace certain marked spots (a
>> la "<!--left_navbar-->") with the dynamically created code/text using
>> eregi_replace() or something similar.
>>
>> What are the templating solutions available? Pros and cons?
>>
>> How do you solve your templating?
>>
>> Yours,
>> Lauri
>> --
>> Tharapita Creations
>> [dynamic web applications]
>> [EMAIL PROTECTED]
>> Mobile: +372 53 410 610
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail:
>> [EMAIL PROTECTED]
>
>
> --
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
--
--- End Message ---
--- Begin Message ---
Hello All,
I've been searching on the online documentation and I'm pretty sure I've done it
before but I don't recall how.
The problem is. I have a string with 17 characteres and I want to copy from the fourth
character 6 characteres. Under Pascal I usually do copy(string,4,6). That means,
copying from the fourth characters a quantity of 6 characteres.
Is there any built in function that does that?
Could anyone tell me that?
Thanks,
Carlos Fernando.
--- End Message ---
--- Begin Message ---
http://www.php.net/manual/en/function.substr.php
On Sat, 29 Dec 2001 18:28:57 -0600, Carlos Fernando Scheidecker Antunes wrote:
>Hello All,
>
>I've been searching on the online documentation and I'm pretty sure I've done it
>before but I don't recall how.
>
>The problem is. I have a string with 17 characteres and I want to copy from the
>fourth character 6 characteres. Under Pascal I usually do copy(string,4,6).
That means, copying from the fourth characters a quantity of 6 characteres.
>
>Is there any built in function that does that?
>
>Could anyone tell me that?
>
>Thanks,
>
>Carlos Fernando.
>
--- End Message ---
--- Begin Message ---
* Bogdan Stancescu ([EMAIL PROTECTED]) [Dec 28. 2001 18:44]:
> Hello everybody!
Right back atcha
> Apart from the usual best wishes for 2002, I have a question: does
> anyone know of a good security list/newsletter/bulletin for PHP?
> Actually, any kind of good source would be great, even if it's net
> security in general -- what I'm looking for is:
> 1. Mostly PHP security (including PHP packages with vulnerabilities)
> and
> 2. A good source (I'd like to subscribe to an active
> list/newsletter/bulletin so they publish info from other sources as well
> -- not only original data they found out without any external info).
> Too much to ask? :-)
The only advice I can offer isn't going to be favorable if you only want
PHP related information, but..
I would advise subscribing to Bugtraq, and also the articles I mentioned
here for secure coding practices:
<http://marc.theaimsgroup.com/?l=php-general&m=100529130108021&w=2>
And I can't seem to bring up zend.com lately.. (is something amiss with
the site, by the way?) but if you can get there, I think Sterling Hughes
wrote a good article (at zend.com) on PHP security too. I think that's
who wrote it..
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Shin: A device for finding furniture in the dark.
--- End Message ---