Re: RE: [PHP] Calling C functions

2002-10-08 Thread Sharad Tiwari

Thank you Paul ... thanks a lot for the help

Warm Regards,

Sharad

- Original Message -
From: "Paul Maine" <[EMAIL PROTECTED]>
Date: Wednesday, October 9, 2002 9:00 am
Subject: RE: [PHP] Calling C functions

> I am including a code snippet that will aid you.
> 
> # Location of your binary.
> $yourbinary = "/usr/bin/yourprogram";
> 
> # Location of the libs for your c program if needed
> $yourlib = YOUR_LIB . ":" . getenv("LD_LIBRARY_PATH");
> putenv("LD_LIBRARY_PATH=$yourlib");
> 
> # The args to call the binary with
> # For example:   
> $arg1 = 10;
> $arg2 = 15;
> 
> # Put together the command string
> $command = "$yourbinary $arg1 $arg2";
> 
> $result = `$command`;
>
> Be sure to check the return result from your program.
> 
> Hope this helps
> Paul
> -Original Message-
> From: Sharad Tiwari [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 10:07 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Calling C functions
> 
> 
> hi all,
> 
> I have just started working on PHP ... (just a couple of days back)
> I had posted a question yesterday and could not get any rep from 
> anyone
> 
> My problem is this ... I have to take inputs from a web-based 
> interfaceand pass them as parameters to a C function (or an 
> executable program)
> Could anyone of you kindly let me know how can I invoke such C library
> functions or executables from php.
> 
> thanks for the help in advance.
> 
> Warm Regards,
> 
> Sharad
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Speeding up a Mysql Select

2002-10-08 Thread Owen Prime

Have a look into indexes I'm running selects on tables with about 4.5 
million rows on a desktop without problems.

Bob Irwin wrote:

> G'day,
> 
> I'm doing a select on a database that has about 45000 records and growing
> and its a bit SLOW.
> 
> Its using a unix timestand to mark the beginning of a call and the end of
> a
> call.  This is also used so I know what date the call was received.
> 
> When I do a
> 
> select * from support where begintime between 'timestamp1' and
> 'timestamp2';
> 
> It takes a while to execute...  The timestamp fieldtype is varchar(10)...
> Will I see any speed difference with a different column type?
> 
> Any advice on how to speed this up would be greatly appreciated! :)
> 
> Best Regards
> Bob Irwin
> Server Admin & Web Programmer
> Planet Netcom

-- 
Cheers,

Owen Prime
http://www.noggin.com.au

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Speeding up a Mysql Select

2002-10-08 Thread Bob Irwin

G'day,

I'm doing a select on a database that has about 45000 records and growing
and its a bit SLOW.

Its using a unix timestand to mark the beginning of a call and the end of a
call.  This is also used so I know what date the call was received.

When I do a

select * from support where begintime between 'timestamp1' and 'timestamp2';

It takes a while to execute...  The timestamp fieldtype is varchar(10)...
Will I see any speed difference with a different column type?

Any advice on how to speed this up would be greatly appreciated! :)

Best Regards
Bob Irwin
Server Admin & Web Programmer
Planet Netcom



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] ZE2 nested classes question

2002-10-08 Thread Brad Bulger

Question about a change coming in PHP 5 / ZendEngine2 :

I'm not clear on exactly why you would want to nest class definitions,
especially if the proposed change to namespace handling goes away
- i.e. you still have to do $this->otherclassfunc() inside a class
function, instead of just otherclassfunc().

What is the difference between

class Foo
{
class Bar()
{
...
}
...
}

and

class Foo
{
...
}
class Bar
{
...
}

?? In the Foo::Bar() example (the first one), it's not like
Foo::Bar() inherits anything from Foo. You still have to
explicitly say that Bar extends Foo for that to happen.

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Steve Yates

> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
> register_globals to on, so i don't have to go through 15 pages of code
> and change all my variables to $_POST['foo']

Try extract($HTTP_POST_VARS) which will create $foo for you.

 - Steve Yates
 - Your karma just ran over my dogma.

~ Do you like my taglines? Add them to your messages and
~ laugh through hundreds more by downloading Taglinator
~ at www.srtware.com today!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek

i didn't install from source, i installed from an OS X binary i found 
in the php website, i got a php.ini from someone else which i
'm suing, thanks guys!

Jule

On Tuesday, Oct 8, 2002, at 23:54 US/Eastern, CC Zona wrote:

> In article <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED] (Jule Slootbeek) wrote:
>
>> Yeah that's the path to where php.ini should be (/usr/local/lib, in my
>> case, but the Jaguar version of PHP doesn't use a php.ini file, so
>> there's nothing there.
>
> Jaguar uses php.ini if it's in the expected location.  That you don't 
> have
> one yet is a matter easily resolved.
>
> You can use an ASCII text editor (BBEdit Lite, for instance
> ) to 
> create
> a new document and fill it with your favorite options.
>
> Or do as others have recommended and download a prewritten one from 
> php.net
> and place it in the designated location (renamed to "php.ini" if 
> necessary).
>
> Or see the configuration page  for
> descriptions of other alternatives (ini_set(), .htaccess).
>
> -- 
> CC
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Jule Slootbeek
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re[2]: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Tom Rogers

Hi,

Wednesday, October 9, 2002, 1:58:50 PM, you wrote:
BL> On 10/8/02 11:54 PM, "CC Zona" <[EMAIL PROTECTED]> wrote:

>>> Yeah that's the path to where php.ini should be (/usr/local/lib, in my
>>> case, but the Jaguar version of PHP doesn't use a php.ini file, so
>>> there's nothing there.


BL> There is no php.ini file included w/ Mac OS X.. But that's no big deal! Just
BL> create a simle text file with BBEdit or pico or something with the PHP
BL> options that you need in it, and put it in the directory you mention.
>From the manual..

copy and rename the php.ini-dist file to your "bin" directory from your
PHP 4 source directory:
cp php.ini-dist /usr/local/bin/php.ini 

or (if your don't have a local directory) 

cp php.ini-dist /usr/bin/php.ini


might be of help  strange place to put it ...but then :)







-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Bill Leonard

On 10/8/02 11:54 PM, "CC Zona" <[EMAIL PROTECTED]> wrote:

>> Yeah that's the path to where php.ini should be (/usr/local/lib, in my
>> case, but the Jaguar version of PHP doesn't use a php.ini file, so
>> there's nothing there.


There is no php.ini file included w/ Mac OS X.. But that's no big deal! Just
create a simle text file with BBEdit or pico or something with the PHP
options that you need in it, and put it in the directory you mention.

Good luck!

Bill



-- 
Bill Leonard   [EMAIL PROTECTED]
www.machinemen.com407.464.0147

XrackHosting.com - Mac OS X hosting on Apple's Xserve!
http://www.xrackhosting.com/




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Jule Slootbeek) wrote:

> Yeah that's the path to where php.ini should be (/usr/local/lib, in my 
> case, but the Jaguar version of PHP doesn't use a php.ini file, so 
> there's nothing there.

Jaguar uses php.ini if it's in the expected location.  That you don't have 
one yet is a matter easily resolved.

You can use an ASCII text editor (BBEdit Lite, for instance 
) to create 
a new document and fill it with your favorite options.

Or do as others have recommended and download a prewritten one from php.net 
and place it in the designated location (renamed to "php.ini" if necessary).

Or see the configuration page  for 
descriptions of other alternatives (ini_set(), .htaccess).

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Calling C functions

2002-10-08 Thread Paul Maine

I am including a code snippet that will aid you.

# Location of your binary.
$yourbinary = "/usr/bin/yourprogram";

# Location of the libs for your c program if needed
$yourlib = YOUR_LIB . ":" . getenv("LD_LIBRARY_PATH");
putenv("LD_LIBRARY_PATH=$yourlib");

# The args to call the binary with
# For example:   
$arg1 = 10;
$arg2 = 15;

# Put together the command string
$command = "$yourbinary $arg1 $arg2";

$result = `$command`;

Be sure to check the return result from your program.

Hope this helps
Paul
-Original Message-
From: Sharad Tiwari [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 10:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Calling C functions


hi all,

I have just started working on PHP ... (just a couple of days back)
I had posted a question yesterday and could not get any rep from anyone


My problem is this ... I have to take inputs from a web-based interface
and pass them as parameters to a C function (or an executable program)
Could anyone of you kindly let me know how can I invoke such C library
functions or executables from php.

thanks for the help in advance.

Warm Regards,

Sharad


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: mysql_num_rows error

2002-10-08 Thread David Robley

In article <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> I have a file. I'll paste from line 32 to 34
> 
>  .
> $sql = "select USUARIO from docente where USUARIO = '$usuario'";
> $result = mysql_query($sql, $link);

Replace the above line with (all on one line)

$result = mysql_query($sql, $link) or die("Error: " . 
mysql_error()."Query: ".$sql);


> if (mysql_num_rows($result) == 1) { // line 34
> 
> ?>
> 
> I get the next warning:
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/olimpiad/public_html/base/alta1.php on line 34
> 
> I'm running the script on a linux server.
> could someone help me.
> Thank you.

And when you get the error message, you will have the actual query to 
check.

Cheers
-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Installing both static and dynamic modules

2002-10-08 Thread David Robley

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> In the INSTALL file notes for PHP is says:
> 
> "1: Only install either the static module or the dynamic one.  Do not
>install both."
> 
> No reasoning is given for this statement.  Does anyone know what the reason
> for this is?
> 
> The reason I want to know is because I run both the Apache module and the
> static cgi module on my server and I haven't had any problems.  I have the
> cgi module for running php scripts as cron jobs.
> 
> Anyone know why the statement?
> 
> Thanks,
> Jonathan Duncan

You seem to be confusing the static (Apache) module with the standalone 
php binary, sometimes referred to as the CGI version and which is what I 
think you mean by 'static cgi module'.

Cheers
-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: =Next to last record in a file=

2002-10-08 Thread David Robley

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> Anthony Ritter wrote:
> > I am trying to access a website that has tab delimited data and use
> > PHP to open the file, read from the
> > file for output.
> >
> > I'd like to then place this data into an array, loop through the
> > array and output only the next to last record.
> >
> > Is there any way to loop through the following records - there are 96
> > - and keep only the *next to last last one* (which would be the most
> > current record) before hitting EOF.
> >
> > They store the records every 15 minutes for a 24 hour span.
> >
> > I do not need all 96 records - only the most current -  or - next to
> > last - record.
> 
> Read the file with the file function (http://www.php.net/file). This will
> give you an array, with each element representing a line in the original
> file.
> Pop the last element away (http://www.php.net/array_pop) twice. The second
> time you do this, store the element you will gain (pop will return the
> element it popped). There you have it...
> 
> In code:
> 
>  $content = file(
> 'http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01420500' 
> );
> array_pop( $content );
> $current = array_pop( $content );
> ?>

OK - this is a fine candidate for 'how many ways can it be done?'. My 
contribution [NB untested]:

http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01420500
');
$current = $content{count($content)-2};

Use count to find the number of elements and use count-2 to select the 
second-to-last element. Recall that the first element is [0].

Cheers
-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Inheritance Question

2002-10-08 Thread Bogdan Stancescu

Hi!

I don't know about the memory, but I think the "recommended" way would 
be your first choice because you might want to redefine method jk() in 
class bar... I would suspect that would also be recommended 
performance-wise as well - since that's the typical way to call methods, 
I think it's better optimised.

Just my 2c, of course.

Bogdan

Jarrad Kabral wrote:
> Hi all,
> 
> Was just wondering which is the better way to call an inherited method from
> a child class?
> 
> Example:
> 
> class foo {
> function jk() {
> echo "In here!";
> }
> }
> 
> class bar extends foo {
> function do_something() {
> //Either this one...
> $this->jk();
> 
> //Or this one...??
> foo::jk();
> }
> }
> 
> Which is the best way? Is one a way a less memory intensive way than the
> other?
> 
> 
> Thanks in advance
> Jarrad Kabral
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Calling C functions

2002-10-08 Thread Rasmus Lerdorf

Read README.EXT_SKEL in the source distribution and also the online
manual.  There is a chapter on extending PHP.

-Rasmus

On Wed, 9 Oct 2002, Sharad Tiwari wrote:

> hi all,
>
> I have just started working on PHP ... (just a couple of days back)
> I had posted a question yesterday and could not get any rep from anyone
> 
>
> My problem is this ... I have to take inputs from a web-based interface
> and pass them as parameters to a C function (or an executable program)
> Could anyone of you kindly let me know how can I invoke such C library
> functions or executables from php.
>
> thanks for the help in advance.
>
> Warm Regards,
>
> Sharad
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Installing both static and dynamic modules

2002-10-08 Thread Tom Rogers

Hi,

Wednesday, October 9, 2002, 1:24:31 AM, you wrote:
JD> In the INSTALL file notes for PHP is says:

JD> "1: Only install either the static module or the dynamic one.  Do not
JD>install both."

JD> No reasoning is given for this statement.  Does anyone know what the reason
JD> for this is?

JD> The reason I want to know is because I run both the Apache module and the
JD> static cgi module on my server and I haven't had any problems.  I have the
JD> cgi module for running php scripts as cron jobs.

JD> Anyone know why the statement?

JD> Thanks,
JD> Jonathan Duncan

They are not talking about the cgi version, they mean don't compile
php into apache as a permanent module and also try to load it as a
dynamic one at the same time cgi is treated as a completely seperate
program so it can co-exist with an internal apache php module.

-- 
regards,
Tom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Calling C functions

2002-10-08 Thread Timothy J Hitchens

If it is a command line executable just do:



Notice the backward ` they send it to the shell.

Have fun!!



Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]

HITCHO has Spoken!






-Original Message-
From: Sharad Tiwari [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 9 October 2002 1:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Calling C functions


hi all,

I have just started working on PHP ... (just a couple of days back) I
had posted a question yesterday and could not get any rep from anyone


My problem is this ... I have to take inputs from a web-based interface
and pass them as parameters to a C function (or an executable program)
Could anyone of you kindly let me know how can I invoke such C library
functions or executables from php.

thanks for the help in advance.

Warm Regards,

Sharad


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] register_global variables on Mac OS X

2002-10-08 Thread John W. Holmes

I checked and it's actually php.ini-dist or php.ini-recommended. You can
get them from within the source download from php.net or if you can take
a zip/rar, I'll send them to you.

---John Holmes...

> -Original Message-
> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 10:55 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] register_global variables on Mac OS X
> 
> well, there is no such file, i searched all over my drive, and there
is
> no php-ini.* php_ini.*
> i guess i could try getting a php.ini file from somewhere and putting
> it in the /usr/local/lib dir
> but i wouldn't know where to get a 'standard' php.ini file
> 
> Jule
> 
> On Tuesday, Oct 8, 2002, at 22:43 US/Eastern, John W. Holmes wrote:
> 
> > You may not have one right now and PHP is using it's defaults. Look
for
> > a php-ini.dist or php-ini.recommended in the php folder. Modify one
of
> > those and save it as php.ini. But, I have no idea where to save it
on a
> > Mac.
> >
> > Like the other poster said, load up a  page through
> > your
> > browser and PHP may tell you where it thinks php.ini should be.
It'll
> > be
> > in the first block that appears on the page created by phpinfo().
> >
> > ---John Holmes...
> >
> >> -Original Message-
> >> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, October 08, 2002 10:32 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: [PHP] register_global variables on Mac OS X
> >>
> >> Hi,
> >> i just installed PHP under Mac OS X and now i was looking around
> > trying
> >> to find the php.ini file, or its equivalent, in order to turn
> >> register_globals to on, so i don't have to go through 15 pages of
code
> >> and change all my variables to $_POST['foo'] but i couldn't find
> >> anywhere where this action could be done. So i was wondering if
> > anybody
> >> had experience with PHP under Jaguar, and could lend me a hand.
> >>
> >> TIA,
> >>
> >> Jule Slootbeek
> >> [EMAIL PROTECTED]
> >>
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> Jule Slootbeek
> [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Calling C functions

2002-10-08 Thread Sharad Tiwari

hi all,

I have just started working on PHP ... (just a couple of days back)
I had posted a question yesterday and could not get any rep from anyone


My problem is this ... I have to take inputs from a web-based interface
and pass them as parameters to a C function (or an executable program)
Could anyone of you kindly let me know how can I invoke such C library
functions or executables from php.

thanks for the help in advance.

Warm Regards,

Sharad


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek

well, there is no such file, i searched all over my drive, and there is 
no php-ini.* php_ini.*
i guess i could try getting a php.ini file from somewhere and putting 
it in the /usr/local/lib dir
but i wouldn't know where to get a 'standard' php.ini file

Jule

On Tuesday, Oct 8, 2002, at 22:43 US/Eastern, John W. Holmes wrote:

> You may not have one right now and PHP is using it's defaults. Look for
> a php-ini.dist or php-ini.recommended in the php folder. Modify one of
> those and save it as php.ini. But, I have no idea where to save it on a
> Mac.
>
> Like the other poster said, load up a  page through 
> your
> browser and PHP may tell you where it thinks php.ini should be. It'll 
> be
> in the first block that appears on the page created by phpinfo().
>
> ---John Holmes...
>
>> -Original Message-
>> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, October 08, 2002 10:32 PM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] register_global variables on Mac OS X
>>
>> Hi,
>> i just installed PHP under Mac OS X and now i was looking around
> trying
>> to find the php.ini file, or its equivalent, in order to turn
>> register_globals to on, so i don't have to go through 15 pages of code
>> and change all my variables to $_POST['foo'] but i couldn't find
>> anywhere where this action could be done. So i was wondering if
> anybody
>> had experience with PHP under Jaguar, and could lend me a hand.
>>
>> TIA,
>>
>> Jule Slootbeek
>> [EMAIL PROTECTED]
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Jule Slootbeek
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] register_global variables on Mac OS X

2002-10-08 Thread John W. Holmes

You may not have one right now and PHP is using it's defaults. Look for
a php-ini.dist or php-ini.recommended in the php folder. Modify one of
those and save it as php.ini. But, I have no idea where to save it on a
Mac. 

Like the other poster said, load up a  page through your
browser and PHP may tell you where it thinks php.ini should be. It'll be
in the first block that appears on the page created by phpinfo().

---John Holmes...

> -Original Message-
> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 10:32 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] register_global variables on Mac OS X
> 
> Hi,
> i just installed PHP under Mac OS X and now i was looking around
trying
> to find the php.ini file, or its equivalent, in order to turn
> register_globals to on, so i don't have to go through 15 pages of code
> and change all my variables to $_POST['foo'] but i couldn't find
> anywhere where this action could be done. So i was wondering if
anybody
> had experience with PHP under Jaguar, and could lend me a hand.
> 
> TIA,
> 
> Jule Slootbeek
> [EMAIL PROTECTED]
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] =array within an html table=

2002-10-08 Thread John W. Holmes

Umm...take another look at your HTML book. If you print $content after
, then, yes, the content will appear under the table. If you
don't put it between  and  tags, then it'll appear
above the table (may depend on browser). 

---John Holmes...

> -Original Message-
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 11:35 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] =array within an html table=
> 
> I'd like to have the record data - $current - *within* the html table
but
> if
> I run this script it is on a line outside of the table:
> 
>  $content =
>
file("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=0
14
> 27
> 510");
> array_pop($content);
> $current = array_pop($content);
> print("");
>
print("USGSStationDateTimeHe
ig
> ht
> CFSTemperature");
> print("");
> print($current);
> ?>
> ...
> 
> ...and if I run this script, the record - $current - is outside above
the
> table - not within it.
> 
>  $content =
>
file("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=0
14
> 27
> 510");
> array_pop($content);
> $current = array_pop($content);
> print("");
>
print("USGSStationDateTimeHe
ig
> ht
> CFSTemperature");
> print($current);
> print("");
> ?>
> .
> 
> Any help would be greatly appreciated.
> Tony Ritter
> 
> 
> 
> 
> 
> 
> --
> 
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek

Yeah that's the path to where php.ini should be (/usr/local/lib, in my 
case, but the Jaguar version of PHP doesn't use a php.ini file, so 
there's nothing there.

Jule

On Tuesday, Oct 8, 2002, at 22:34 US/Eastern, Timothy J Hitchens wrote:

> Make a page with  then display
> the page threw the server into the browser... and it should
> like the location in the top area.
>
>
>
>
> Timothy Hitchens (HITCHO)
> [EMAIL PROTECTED]
>
> HITCHO has Spoken!
>
>
>
>
>
>
> -Original Message-
> From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 9 October 2002 12:32 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] register_global variables on Mac OS X
>
>
> Hi,
> i just installed PHP under Mac OS X and now i was looking around trying
> to find the php.ini file, or its equivalent, in order to turn
> register_globals to on, so i don't have to go through 15 pages of code
> and change all my variables to $_POST['foo'] but i couldn't find
> anywhere where this action could be done. So i was wondering if anybody
> had experience with PHP under Jaguar, and could lend me a hand.
>
> TIA,
>
> Jule Slootbeek
> [EMAIL PROTECTED]
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Jule Slootbeek
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Transfer to another server - my sessions don't work!

2002-10-08 Thread John W. Holmes

You need a session_start() on your second page.

---John Holmes...

> -Original Message-
> From: Adam Royle [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 10:06 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Transfer to another server - my sessions don't work!
> 
> Hi,
> 
> I transferred a small php site from my localhost to a new server
> (commercial server). However, after I transferred it over, my sessions
> would no longer work. Just as a test - here is some code I tried.
> Please tell me I'm doing it the wrong way. Also, at the bottom of this
> email this info from phpinfo(); if that helps. If I echo
> $GLOBALS['PHPSESSID'] it looks like a regular session id. I can get
the
> info on the first page after I have chucked it into the session, but
it
> doesn't seem to get it when I go to the next page.
> 
> Thanks.
> Adam
> 
> --- page1.php ---
>  
> session_start();
> 
> $_SESSION['adam'] = "something secret here";
> 
> ?>
> Page 2
> 
> 
> --- page2.php ---
>  
> echo $_SESSION['adam']; // this don't do anything
> 
> echo "Thats all."; // this prints fine
> 
> echo $PHPSESSID; // this prints fine
> 
> ?>
> 
> 
> 
> 
> Configure Command './configure' '--with-mysql'
> '--with-apache=../apache_1.3.26' '--enable-track-vars' '--with-xml'
> '--enable-memory-limit=yes' '--enable-bcmath' '--with-gd=../gd-2.0.1'
> '--enable-gd-native-tt' '--enable-gd-imgstrttf'
> '--with-gdbm=/usr/include' '--enable-calendar'
> '--with-png-dir=/usr/lib' '--with-zlib-dir=/usr/include'
> '--with-freetype-dir=/usr/local/include/freetype2'
> '--with-jpeg-dir=/usr/local/lib' '--with-mcrypt' '--enable-trans-sid'
> '--with-sablot=/usr/local/lib' '--with-imap' '--enable-xslt'
> '--with-xslt-sablot' '--with-gettext' '--enable-sockets'
'--enable-ftp'
> '--enable-sablot-errors-descriptive'
> 
> session
> Session Support   enabled
> Directive Local Value Master Value
> session.auto_startOff Off
> session.cache_expire  180 180
> session.cache_limiter nocache nocache
> session.cookie_domain no valueno value
> session.cookie_lifetime   0   0
> session.cookie_path   /   /
> session.cookie_secure Off Off
> session.entropy_file  no valueno value
> session.entropy_length0   0
> session.gc_maxlifetime14401440
> session.gc_probability1   1
> session.name  PHPSESSID   PHPSESSID
> session.referer_check no valueno value
> session.save_handler  files   files
> session.save_path /tmp/tmp
> session.serialize_handler php php
> session.use_cookies   On  On
> session.use_trans_sid 1   1



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: =array within an html table=

2002-10-08 Thread @ Edwin
I think this is more of an HTML problem than a PHP...

Put it inside $here (or $here whichever you need)
and I'm sure the problem will go away.

- E

"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'd like to have the record data - $current - *within* the html table but
if
> I run this script it is on a line outside of the table:
> 
>  $content =
>
file("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427
> 510");
> array_pop($content);
> $current = array_pop($content);
> print("");
>
print("USGSStationDateTimeHeight
> CFSTemperature");
> print("");
> print($current);
> ?>
> ...
>
> ...and if I run this script, the record - $current - is outside above the
> table - not within it.
>
>  $content =
>
file("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427
> 510");
> array_pop($content);
> $current = array_pop($content);
> print("");
>
print("USGSStationDateTimeHeight
> CFSTemperature");
> print($current);
> print("");
> ?>
> .
>
> Any help would be greatly appreciated.
> Tony Ritter
>
>
>
>
>
>
> --
>
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Timothy J Hitchens

Make a page with  then display
the page threw the server into the browser... and it should
like the location in the top area.




Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]

HITCHO has Spoken!






-Original Message-
From: Jule Slootbeek [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 9 October 2002 12:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] register_global variables on Mac OS X


Hi,
i just installed PHP under Mac OS X and now i was looking around trying 
to find the php.ini file, or its equivalent, in order to turn 
register_globals to on, so i don't have to go through 15 pages of code 
and change all my variables to $_POST['foo'] but i couldn't find 
anywhere where this action could be done. So i was wondering if anybody 
had experience with PHP under Jaguar, and could lend me a hand.

TIA,

Jule Slootbeek
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek

Hi,
i just installed PHP under Mac OS X and now i was looking around trying 
to find the php.ini file, or its equivalent, in order to turn 
register_globals to on, so i don't have to go through 15 pages of code 
and change all my variables to $_POST['foo'] but i couldn't find 
anywhere where this action could be done. So i was wondering if anybody 
had experience with PHP under Jaguar, and could lend me a hand.

TIA,

Jule Slootbeek
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] =array within an html table=

2002-10-08 Thread Anthony Ritter

I'd like to have the record data - $current - *within* the html table but if
I run this script it is on a line outside of the table:

http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427
510");
array_pop($content);
$current = array_pop($content);
print("");
print("USGSStationDateTimeHeight
CFSTemperature");
print("");
print($current);
?>
...

...and if I run this script, the record - $current - is outside above the
table - not within it.

http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427
510");
array_pop($content);
$current = array_pop($content);
print("");
print("USGSStationDateTimeHeight
CFSTemperature");
print($current);
print("");
?>
.

Any help would be greatly appreciated.
Tony Ritter






--





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Transfer to another server - my sessions don't work!

2002-10-08 Thread Adam Royle

Hi,

I transferred a small php site from my localhost to a new server 
(commercial server). However, after I transferred it over, my sessions 
would no longer work. Just as a test - here is some code I tried. 
Please tell me I'm doing it the wrong way. Also, at the bottom of this 
email this info from phpinfo(); if that helps. If I echo 
$GLOBALS['PHPSESSID'] it looks like a regular session id. I can get the 
info on the first page after I have chucked it into the session, but it 
doesn't seem to get it when I go to the next page.

Thanks.
Adam

--- page1.php ---

Page 2


--- page2.php ---





Configure Command   './configure' '--with-mysql' 
'--with-apache=../apache_1.3.26' '--enable-track-vars' '--with-xml' 
'--enable-memory-limit=yes' '--enable-bcmath' '--with-gd=../gd-2.0.1' 
'--enable-gd-native-tt' '--enable-gd-imgstrttf' 
'--with-gdbm=/usr/include' '--enable-calendar' 
'--with-png-dir=/usr/lib' '--with-zlib-dir=/usr/include' 
'--with-freetype-dir=/usr/local/include/freetype2' 
'--with-jpeg-dir=/usr/local/lib' '--with-mcrypt' '--enable-trans-sid' 
'--with-sablot=/usr/local/lib' '--with-imap' '--enable-xslt' 
'--with-xslt-sablot' '--with-gettext' '--enable-sockets' '--enable-ftp' 
'--enable-sablot-errors-descriptive'

session
Session Support enabled
Directive   Local Value Master Value
session.auto_start  Off Off
session.cache_expire180 180
session.cache_limiter   nocache nocache
session.cookie_domain   no valueno value
session.cookie_lifetime 0   0
session.cookie_path /   /
session.cookie_secure   Off Off
session.entropy_fileno valueno value
session.entropy_length  0   0
session.gc_maxlifetime  14401440
session.gc_probability  1   1
session.namePHPSESSID   PHPSESSID
session.referer_check   no valueno value
session.save_handlerfiles   files
session.save_path   /tmp/tmp
session.serialize_handler   php php
session.use_cookies On  On
session.use_trans_sid   1   1



[PHP] Re: Converting a Java into php

2002-10-08 Thread Seairth Jacobs

If you are specifically trying to use UTF-8 encoding, look at encode_utf8().

---
Seairth Jacobs
[EMAIL PROTECTED]

"Umut Ozan Basar" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i am converting a java class into php.. almost everything is done... but i
> cant find a java functions equivalent in php, thats getBytes()... is
anybody
> knows that a function in php that exactly does the same job ?
>
> for more info about getBytes()
> http://java.sun.com/docs/books/tutorial/i18n/text/string.html
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: :( This fact ruins my understanding of php :( please explain!

2002-10-08 Thread Seairth Jacobs

I have a couple thoughts...

1) In some other languages, passing an array by value only passes the first
element value, not the whole array.  This may be happening here, which would
explay the fast execution times.  I don't know this for sure, but it could
easily be tested by seeing what's in $a inside the function f().

2) Try returning the array by reference...

function &f(&$a){return $a;}

for ($i=0; $i < 100; $i++){$a = & f($big);}

---
Seairth Jacobs
[EMAIL PROTECTED]


"Markas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I tried some trivial expirements:
>
> /* here I define an array $big, which I guess would "eat" ~100kb of memory
> */
> for($i=0; $i<1; $i++)
> {
>  $big[$i] = "1234567890";
> }
>
> /* this func only returns the value it gets as a param...*/
> function f($a){return $a;}
>
> $start = microtime();
>
> /* here all the job is done */
> for ($i=0; $i < 100; $i++){$a = f($big);} /* <--- every iteration I just
> pass $big array to this func and it simply returns it*/
>
> $end = microtime();
>
> /* here I find out the time the job above takes to run, similar to the
code
> from the help:*/
> function
> microtime($time){
> list($usec, $sec) = explode(" ",$time);
> return ((float)$usec + (float)$sec);
> }
>
> $time_start = getmicrotime($start);
> $time_end = getmicrotime($end);
> $time = $time_end - $time_start;
>
> echo "Did nothing in $time seconds";
>
> So the script above takes on my server ~0.00115 sec, so as far as I
understand, it takes php to copy that $big array which is rather large, at
least 100 times... So I decided to change the function f($a):
>  function f($a){return $a;} changed to  function f(&$a){return $a;},
> as you can see, I only wanted to pass that $a param by reference, without
copying it, so I thought I win in performance and the 100 iterations will
work faster, as no copying of such a large array $big (which is this time
going to be passed by refernce) will be involved,... BUT this case the job
took ~3.75093 seconds, which is  3262 times SLOWER !!! I also found out,
that while using refernces, the time of job's run strictly depends on the
$big array dimension, and while NOT using references, the time doesn't
depend on that, but I thought just on the contrary. I thought, that while
using references, we dont copy the data and therefore do not depend on that
data amount, but the example above shows just the opposite results...
>
> What's going on,  if anybody gets interested, please explain?
>
>
>
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTTP_USER_AGENT - list of possibilities

2002-10-08 Thread @ Edwin

I'm not aware of any but I'm sure you'll find this interesting: (if you
haven't been there yet, at least)

  http://sourceforge.net/projects/phpsniff/

- E

On Wednesday, October 09, 2002 9:20 AM
Support @ Fourthrealm.com wrote:

> Hey everyone... do you know where I can find a list of the common returns
> of the $_SERVER["HTTP_USER_AGENT"] variable?
>
> For example:
> I.E. 5.0 = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR
> 1.0.3705)
> Netscape 4.08 = Mozilla/4.08 [en] (WinNT; U ;Nav)
>
>
> Thanks,
> Peter
>
>
> - - - - - - - - - - - - - - - - - - - - -
> Fourth Realm Solutions
> [EMAIL PROTECTED]
> http://www.fourthrealm.com
> Tel: 519-739-1652
> - - - - - - - - - - - - - - - - - - - - -
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Inheritance Question

2002-10-08 Thread Martin Towell

If you need to use variables that are stored in the object, then use
$this->jk();

If you're calling bar::do_something(); then $this wont be set, so you'll
need to use foo::jk() instead.

If you're calling jk() from an object, and you don't need to use any object
attributes, then either way would be okay... but I'd use $this->jk() anyway,
just to keep it all in the object (just in case...)

Martin

-Original Message-
From: Jarrad Kabral [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Inheritance Question


Hi all,

Was just wondering which is the better way to call an inherited method from
a child class?

Example:

class foo {
function jk() {
echo "In here!";
}
}

class bar extends foo {
function do_something() {
//Either this one...
$this->jk();

//Or this one...??
foo::jk();
}
}

Which is the best way? Is one a way a less memory intensive way than the
other?


Thanks in advance
Jarrad Kabral


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Inheritance Question

2002-10-08 Thread Jarrad Kabral

Hi all,

Was just wondering which is the better way to call an inherited method from
a child class?

Example:

class foo {
function jk() {
echo "In here!";
}
}

class bar extends foo {
function do_something() {
//Either this one...
$this->jk();

//Or this one...??
foo::jk();
}
}

Which is the best way? Is one a way a less memory intensive way than the
other?


Thanks in advance
Jarrad Kabral


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] updated tutorials? do they exist?

2002-10-08 Thread Peter Houchin

Howdy

does any one know of any site(s) any where that has UPDATED tutorials? I
have alooked @ phpbuilder, phpwizard, hotscripts, php.resourceindex.com,
zend for updated examples etc.. but they only seem to have them for earlier
versions of php and not for any verson after php 4.2.1?

Cheers

Peter
"the only dumb question is the one that wasn't asked"



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php.net bug system

2002-10-08 Thread Sascha Cunz

sure, it is :-)

Try: http://cvs.php.net/cvs.php/php-bugs-web?login=2

or go to:
http://www.php.net/anoncvs.php and check out "php-bugs-web"

Happy Hacking

(I'd personally prefer bugzilla... You won't need to adjust as much)

Sascha

Am Mittwoch, 9. Oktober 2002 02:52 schrieb Jason Morehouse:
> Anyone know if the source is available for the bug system use on php.net?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] php.net bug system

2002-10-08 Thread Jason Morehouse

Anyone know if the source is available for the bug system use on php.net?

-- 
 Jason Morehouse (jm[ät]netconcepts[döt]com)
 Netconcepts - http://www.netconcepts.com
 Auckland, New Zealand
 Linux: Because rebooting is for adding hardware.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTTP_USER_AGENT - list of possibilities

2002-10-08 Thread Sascha Cunz

Hi,

> Hey everyone... do you know where I can find a list of the common returns
> of the $_SERVER["HTTP_USER_AGENT"] variable?
>
> For example:
> I.E. 5.0 = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR
> 1.0.3705)
> Netscape 4.08 = Mozilla/4.08 [en] (WinNT; U ;Nav)

On one side - i've never seen such a list. (I'd suggest to record them by 
yourself) - on the other side: wouldn't it be a bit better to have regular 
expressions (or at least some rules), that map the Useragent text into the 
individual data it contents:
  1. Browser Manufacturer
  2. Browser Version
  3. Browser Language
  4. OS
  5. Buildtime
  6. other propritary information some companies supply in Useragent text.
  ...

Consider: 
  The last value of your first example can be anything. ".NET CLR" indicates 
that the version of Microsoft's Common Language Runtime will follow. 
Meanwhile i had about 20 of them installed on my windows machine. Even, if I 
never changed the browser, on ever CLR Update Mircosoft's UserAgent-String 
had changed.
 
Sascha
  

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Converting a Java into php

2002-10-08 Thread Umut Ozan BASAR

i am converting a java class into php.. almost everything is done... but i
cant find a java functions equivalent in php, thats getBytes()... is anybody
knows that a function in php that exactly does the same job ?

for more info about getBytes()
http://java.sun.com/docs/books/tutorial/i18n/text/string.html





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] HTTP_USER_AGENT - list of possibilities

2002-10-08 Thread Support @ Fourthrealm.com

Hey everyone... do you know where I can find a list of the common returns 
of the $_SERVER["HTTP_USER_AGENT"] variable?

For example:
I.E. 5.0 = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR 
1.0.3705)
Netscape 4.08 = Mozilla/4.08 [en] (WinNT; U ;Nav)


Thanks,
Peter


- - - - - - - - - - - - - - - - - - - - -
Fourth Realm Solutions
[EMAIL PROTECTED]
http://www.fourthrealm.com
Tel: 519-739-1652
- - - - - - - - - - - - - - - - - - - - -


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] For my next bug... Upload filename gets blanked out

2002-10-08 Thread Justin French

Or look at the manual for a perfect working example of file uploading.

Why people keep trying to reinvent the wheel is beyond me...


Justin French


on 09/10/02 6:35 AM, 1LT John W. Holmes ([EMAIL PROTECTED]) wrote:

> Just do a print_r($_FILES) and see what all of the contents are.
> 
> ---John Holmes...
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 08, 2002 2:28 PM
> Subject: RE: [PHP] For my next bug... Upload filename gets blanked out
> 
> 
>> <> array.>>
>> 
>> I don't think that's it. Tell me if I'm using it improperly, but I tried
> to
>> print out the filename:
>> 
>> print("[".$_FILES['uploadfile']['name']."]");
>> 
>> Is that it?
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Date to find next Friday

2002-10-08 Thread Justin French

Ummm, I've read this twice, and don't get it!!!

You want to make:

- an 'A' file available on the first friday of the month
- an 'B' file available on the second friday of the month
- an 'C' file available on the third friday of the month
- an 'D' file available on the fourth friday of the month
- an 'E' file available on the fifth friday of the month, or on the 4th
friday if the 5th doesn't exist???

correct?

Are they ONLY published on that day, or are they made available permanently
from that date onwards?

How are these files stored?  Are these files created by a human? Or a
program?


It seems to me that your aim is to:
- find out if today is a friday
- find out if it's the 1st/2md/3rd/4th/5th friday of the month
- look for a file that needs to be made available or displayed
- if it exists, display it
... and it sounds like you'd need to do this EVERYTIME the script runs.


Instead, perhaps what you need to do is AT THE POINT OF CREATING THE FILE,
name it 2002-11-10.txt (the date of next friday), and then all you have to
do is search for files with a date == today or in the past, and display
them.


I think you need to think the problem through clearly, and generally the
problem can solve itself, or at the very least, the question becomes clear.


Justin




on 09/10/02 1:28 AM, [EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:

> Responding to my own message. This is making me a little ticked. I can't
> think it through. Here's exactly what I need:
> 
> There are a bunch of series of files (A series, B series, and so on) that
> are to be released on the first, second, third, fourth, or (if it exists for
> that month) fifth Friday of a given month. The A series does not necessarily
> get released on the same Friday of each month as the B series, so the A
> series could come out on the fourth Friday, while the B series comes out on
> the third and the C on the fifth, etc. or whatever. I need to know the
> Next_Release_Friday of a specified series.
> 
> If there are only four Fridays that month, all those fifth-Friday releases
> happen on the fourth Friday.
> 
> Obviously, if a file is released on the first Friday and it so happens that
> the first Friday for this month has passed, the Next_Release_Friday will be
> next month, and if it's December, the Next_Release_Friday will be next
> year's January.
> 
> Does everybody follow me? It's even confusing trying to ask the question,
> let alone derive the proper date.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] This fact ruins my understanding of php :( please explain!

2002-10-08 Thread Rasmus Lerdorf

This has been explained a few times.  PHP does shallow copies, or
copy-on-write which means that the data is not actually copied until you
change it.  That is:

  $a = "1234567890";
  $b = $a;

internally we do not copy the data from $a to $b until you change $b.

We you use references we have a bit more work to do as we need to decouple
this and indicate that copy-on-write should not be taking place.

Basically things are optimized for the most common case.

-Rasmus

On Tue, 8 Oct 2002, Markas wrote:

> I tried some trivial expirements:
>
> /* here I define an array $big, which I guess would "eat" ~100kb of memory */
> for($i=0; $i<1; $i++)
> {
>  $big[$i] = "1234567890";
> }
>
> /* this func only returns the value it gets as a param...*/
> function f($a){return $a;}
>
> $start = microtime();
>
> /* here all the job is done */
> for ($i=0; $i < 100; $i++){$a = f($big);} /* <--- every iteration I just pass $big 
>array to this func and it simply returns it*/
>
> $end = microtime();
>
> /* here I find out the time the job above takes to run, similar to the code from the 
>help:*/
> function getmicrotime($time){
> list($usec, $sec) = explode(" ",$time);
> return ((float)$usec + (float)$sec);
> }
>
> $time_start = getmicrotime($start);
> $time_end = getmicrotime($end);
> $time = $time_end - $time_start;
>
> echo "Did nothing in $time seconds";
>
> So the script above takes on my server ~0.00115 sec, so as far as I understand, it 
>takes php to copy that $big array which is rather large, at least 100 times... So I 
>decided to change the function f($a):
>  function f($a){return $a;} changed to  function f(&$a){return $a;},
> as you can see, I only wanted to pass that $a param by reference, without copying 
>it, so I thought I win in performance and the 100 iterations will work faster, as no 
>copying of such a large array $big (which is this time going to be passed by 
>refernce) will be involved,... BUT this case the job took ~3.75093 seconds, which is  
>3262 times SLOWER !!! I also found out, that while using refernces, the time of job's 
>run strictly depends on the $big array dimension, and while NOT using references, the 
>time doesn't depend on that, but I thought just on the contrary. I thought, that 
>while using references, we dont copy the data and therefore do not depend on that 
>data amount, but the example above shows just the opposite results...
>
> What's going on,  if anybody gets interested, please explain?
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] :( This fact ruins my understanding of php :( please explain!

2002-10-08 Thread Markas

I tried some trivial expirements:

/* here I define an array $big, which I guess would "eat" ~100kb of memory
*/
for($i=0; $i<1; $i++)
{
 $big[$i] = "1234567890";
}

/* this func only returns the value it gets as a param...*/
function f($a){return $a;}

$start = microtime();

/* here all the job is done */
for ($i=0; $i < 100; $i++){$a = f($big);} /* <--- every iteration I just
pass $big array to this func and it simply returns it*/

$end = microtime();

/* here I find out the time the job above takes to run, similar to the code
from the help:*/
function
microtime($time){ 
list($usec, $sec) = explode(" ",$time); 
return ((float)$usec + (float)$sec); 
} 

$time_start = getmicrotime($start);
$time_end = getmicrotime($end);
$time = $time_end - $time_start;

echo "Did nothing in $time seconds";

So the script above takes on my server ~0.00115 sec, so as far as I understand, it 
takes php to copy that $big array which is rather large, at least 100 times... So I 
decided to change the function f($a):
 function f($a){return $a;} changed to  function f(&$a){return $a;},
as you can see, I only wanted to pass that $a param by reference, without copying it, 
so I thought I win in performance and the 100 iterations will work faster, as no 
copying of such a large array $big (which is this time going to be passed by refernce) 
will be involved,... BUT this case the job took ~3.75093 seconds, which is  3262 times 
SLOWER !!! I also found out, that while using refernces, the time of job's run 
strictly depends on the $big array dimension, and while NOT using references, the time 
doesn't depend on that, but I thought just on the contrary. I thought, that while 
using references, we dont copy the data and therefore do not depend on that data 
amount, but the example above shows just the opposite results...

What's going on,  if anybody gets interested, please explain?








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] This fact ruins my understanding of php :( please explain!

2002-10-08 Thread Markas

I tried some trivial expirements:

/* here I define an array $big, which I guess would "eat" ~100kb of memory
*/
for($i=0; $i<1; $i++)
{
 $big[$i] = "1234567890";
}

/* this func only returns the value it gets as a param...*/
function f($a){return $a;}

$start = microtime();

/* here all the job is done */
for ($i=0; $i < 100; $i++){$a = f($big);} /* <--- every iteration I just
pass $big array to this func and it simply returns it*/

$end = microtime();

/* here I find out the time the job above takes to run, similar to the code
from the help:*/
function
microtime($time){ 
list($usec, $sec) = explode(" ",$time); 
return ((float)$usec + (float)$sec); 
} 

$time_start = getmicrotime($start);
$time_end = getmicrotime($end);
$time = $time_end - $time_start;

echo "Did nothing in $time seconds";

So the script above takes on my server ~0.00115 sec, so as far as I understand, it 
takes php to copy that $big array which is rather large, at least 100 times... So I 
decided to change the function f($a):
 function f($a){return $a;} changed to  function f(&$a){return $a;},
as you can see, I only wanted to pass that $a param by reference, without copying it, 
so I thought I win in performance and the 100 iterations will work faster, as no 
copying of such a large array $big (which is this time going to be passed by refernce) 
will be involved,... BUT this case the job took ~3.75093 seconds, which is  3262 times 
SLOWER !!! I also found out, that while using refernces, the time of job's run 
strictly depends on the $big array dimension, and while NOT using references, the time 
doesn't depend on that, but I thought just on the contrary. I thought, that while 
using references, we dont copy the data and therefore do not depend on that data 
amount, but the example above shows just the opposite results...

What's going on,  if anybody gets interested, please explain?





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] This fact ruins my understanding of php :( please explain!

2002-10-08 Thread Markas

I tried some trivial expirements:

/* here I define an array $big, which I guess would "eat" ~100kb of memory */
for($i=0; $i<1; $i++)
{
 $big[$i] = "1234567890";
}

/* this func only returns the value it gets as a param...*/
function f($a){return $a;}

$start = microtime();

/* here all the job is done */
for ($i=0; $i < 100; $i++){$a = f($big);} /* <--- every iteration I just pass $big 
array to this func and it simply returns it*/

$end = microtime();

/* here I find out the time the job above takes to run, similar to the code from the 
help:*/
function getmicrotime($time){ 
list($usec, $sec) = explode(" ",$time); 
return ((float)$usec + (float)$sec); 
} 

$time_start = getmicrotime($start);
$time_end = getmicrotime($end);
$time = $time_end - $time_start;

echo "Did nothing in $time seconds";

So the script above takes on my server ~0.00115 sec, so as far as I understand, it 
takes php to copy that $big array which is rather large, at least 100 times... So I 
decided to change the function f($a):
 function f($a){return $a;} changed to  function f(&$a){return $a;},
as you can see, I only wanted to pass that $a param by reference, without copying it, 
so I thought I win in performance and the 100 iterations will work faster, as no 
copying of such a large array $big (which is this time going to be passed by refernce) 
will be involved,... BUT this case the job took ~3.75093 seconds, which is  3262 times 
SLOWER !!! I also found out, that while using refernces, the time of job's run 
strictly depends on the $big array dimension, and while NOT using references, the time 
doesn't depend on that, but I thought just on the contrary. I thought, that while 
using references, we dont copy the data and therefore do not depend on that data 
amount, but the example above shows just the opposite results...

What's going on,  if anybody gets interested, please explain?



[PHP] Re: HTML and text email

2002-10-08 Thread Owen Prime

My advice would be to set your mail program's preferences to send messages 
in text & html (you can do it in NS or Moz), send yourself a message with a 
link or bold or something to make it an html message, then view the source.

Cheers,

Owen Prime
http://www.noggin.com.au


Chris Cook wrote:

> Hello all,
> 
> I am trying to send out a multi-part email that is both text and HTML. The
> HTML is so I can embed links into the email. However, some of my clients
> have text-only email programs and all the HTML tags are visible. Is there
> a way that I can display HTML in the HTML enabled programs and text in the
> text-only email programs?
> 
> This is the header that I currently use.
> 
> $headers  = "MIME-Version: 1.0\r\n";
> $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
> 
> Thanks for any help,
> Chris
> 
> 
> _
> Join the world’s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com

-- 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP socket connections with SSL

2002-10-08 Thread Marco Tabini

Hi Darren--

4.3 is not out yet; the reference is to the current CVS version (which
will, eventually, become 4.3, I suppose), which you can check out and
use, although it is not an "official" release and will therefore
probably be a bit unstable (I've been running it on my dev server for a
while without much in the way of problems).

An alternative would be to compile the curl library in a 4.2 release and
use that one to pull SSL pages.


Marco

On Tue, 2002-10-08 at 18:49, Darren Gamble wrote:
> Good day,
> 
> I'm trying to create a PHP app to connect to a remote port that uses SSL.
> 
> According to the documentation for fsockopen() ...
> 
> 
> 
> As of PHP 4.3.0, if you have compiled in OpenSSL support, you may prefix the
> hostname with either 'ssl://' or 'tls://' to use an SSL or TLS client
> connection over TCP/IP to connect to the remote host. 
> 
> 
> 
> I don't see a 4.3.0 version available for download.  The CVS changelog
> refers to a 4_3 branch someplace, so I presume I could get this feature by
> compiling from CVS, but there are a number of other applications that
> upgrading could break so I'd like to try to avoid using CVS if possible.
> 
> Is there any other way to do this via PHP, other than calling stunnel via a
> shell command and using fsockopen to the unencrypted endpoint?  I have
> Googled and searched though the PHP site, but I haven't come up with
> anything else.
> 
> I don't need to supply a client certificate, if that helps any...
> 
> Thanks in advance,
> 
> 
> Darren Gamble
> Planner, Regional Services
> Shaw Cablesystems GP
> 630 - 3rd Avenue SW
> Calgary, Alberta, Canada
> T2P 4L4
> (403) 781-4948
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP socket connections with SSL

2002-10-08 Thread Darren Gamble

Good day,

I'm trying to create a PHP app to connect to a remote port that uses SSL.

According to the documentation for fsockopen() ...



As of PHP 4.3.0, if you have compiled in OpenSSL support, you may prefix the
hostname with either 'ssl://' or 'tls://' to use an SSL or TLS client
connection over TCP/IP to connect to the remote host. 



I don't see a 4.3.0 version available for download.  The CVS changelog
refers to a 4_3 branch someplace, so I presume I could get this feature by
compiling from CVS, but there are a number of other applications that
upgrading could break so I'd like to try to avoid using CVS if possible.

Is there any other way to do this via PHP, other than calling stunnel via a
shell command and using fsockopen to the unencrypted endpoint?  I have
Googled and searched though the PHP site, but I haven't come up with
anything else.

I don't need to supply a client certificate, if that helps any...

Thanks in advance,


Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] "The application could not initialize correctly" ...

2002-10-08 Thread Jean-Marc Godart

Hello !

I installed for the third time EasyPHP on my computer (with Windows XP), and
I keep having the same little problem : when I turn off my computer with
EasyPHP (Apache) on, I get an error message saying "cmd.exe : the
application could not initialize correctly ...". This is no big deal as the
computer turns off anyway, but that kind of bugs me. Can anyone tell me why
it is doing this and how I can possibly change that ? By advance, thank you
!

Best regards,

Jean-Marc, Belgium



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: MySQL back up

2002-10-08 Thread David Robley

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> Hi All!
> 
> Anyone know how to code the MySQL command in PHP to make the database script
> download to your local hard disk, without writing 100 lines of code?
> 
> I tried the mysqldump without any luck, but I think there is an easy way to
> do it, just not sure how to code it.
> 
> Thanks in advance!

passthru and mysqldump should be able to do that for you - perhaps if you 
were to show the code you tried, someone might be able to suggest 
improvements.

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Database help

2002-10-08 Thread David Robley

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> I am querying a database to populate a list. The list is suppose to start
> with the first line of information in the database and continue untill have
> been displayed.
> 
> The problem I am having is the first line in the database is not being
> displayed. The display starts on the second line.
> 
> Here are the MySQL commands to retrieve the data...
> 
>  $fSelect = "SELECT lot,size,price FROM properties WHERE status =
> 'Available' ORDER BY lot ASC";
>  $fSql = mysql_query($fSelect, $db) or DIE("Unable to retrieve data");
> $useFields = mysql_fetch_array($fSql, MYSQL_ASSOC);

The previous line gets the first record. Any further requests to the 
result set will get the second and subsequent records.
> 
> The next line prints the lot field to the screen. The number printed to the
> screen is the second lot number that matches this database query.
> 
> Any suggestions on how to get the first information displayed to the screen?

There is a perfectly good example in the docs for mysql_fetch_array - but 
to paraphrase it for your circumstance:

$fSql = mysql_query($fSelect, $db) or DIE("Unable to retrieve data" . 
mysql_error() ); //Add debugging aid
while($usefields = mysql_fetch_array($fSql, MYSQL_ASSOC) {
  extract($usefields);  //Read the docs for extract()
// do whatever here
}

Cheers
-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: Re[2]: [PHP] File download doesn't work with SSL

2002-10-08 Thread John W. Holmes

No, I hadn't realized that's what controlled the "no-cache" being sent.
I switched it to "none" and it works now. Thanks.

---John Holmes...

> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 9:55 AM
> To: John W. Holmes
> Cc: 'Tom Rogers'; [EMAIL PROTECTED]
> Subject: RE: Re[2]: [PHP] File download doesn't work with SSL
> 
> Right, I figured you knew this as it is documented.  You can change
that
> in your php.ini file using the session.cache_limiter directive.
> 
> -Rasmus
> 
> On Tue, 8 Oct 2002, John W. Holmes wrote:
> 
> > Also, FYI, pages without session_start do not send that
cache-control
> > header.
> >
> > ---John Holmes...
> >
> > > -Original Message-
> > > From: John W. Holmes [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, October 08, 2002 8:08 AM
> > > To: 'Rasmus Lerdorf'; 'Tom Rogers'
> > > Cc: [EMAIL PROTECTED]
> > > Subject: RE: Re[2]: [PHP] File download doesn't work with SSL
> > >
> > > Okay, I tried just a page with only session_start() in it and the
page
> > > does send a no-cache, no-store header.
> > >
> > >  output from wget 
> > >
> > > D:\wget>wget -S http://coconut/usap/test.php
> > > --08:04:13--  http://coconut/usap/test.php
> > >=> `test.php.2'
> > > Resolving coconut... done.
> > > Connecting to coconut[192.168.2.124]:80... connected.
> > > HTTP request sent, awaiting response...
> > >  1 HTTP/1.1 200 OK
> > >  2 Server: Microsoft-IIS/5.1
> > >  3 Date: Tue, 08 Oct 2002 12:04:13 GMT
> > >  4 Content-type: text/html
> > >  5 X-Powered-By: PHP/4.2.3
> > >  6 Set-Cookie: PHPSESSID=9c3229d0448971b469b1af2af66a19b8; path=/
> > >  7 Expires: Thu, 19 Nov 1981 08:52:00 GMT
> > >  8 Cache-Control: no-store, no-cache, must-revalidate,
post-check=0,
> > > pre-check=0
> > >
> > >  9 Pragma: no-cache
> > >
> > > [ <=> ] 0 --.--K/s
> > >
> > > 08:04:13 (0.00 B/s) - `test.php.2' saved [0]
> > >
> > >  end output from wget 
> > >
> > > This is on my test server at home, under normal HTTP, but I
imagine it
> > > would be the same under HTTPS at work.
> > >
> > > Is there any way to change this without messing with the source
code?
> > >
> > > ---John Holmes...
> > >
> > > > -Original Message-
> > > > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, October 08, 2002 1:00 AM
> > > > To: Tom Rogers
> > > > Cc: John W. Holmes; [EMAIL PROTECTED]
> > > > Subject: Re[2]: [PHP] File download doesn't work with SSL
> > > >
> > > > Why not just a simple wget -S https://... to see the headers?
> > > >
> > > > On Tue, 8 Oct 2002, Tom Rogers wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > Tuesday, October 8, 2002, 1:32:16 PM, you wrote:
> > > > > JWH> Thanks for the help guys. Like I said, the download works
> > fine
> > > as
> > > > long
> > > > > JWH> as it's not over SSL. I will try to disable it and see if
I
> > can
> > > > look at
> > > > > JWH> the headers sent to see if a no-cache header is being
sent,
> > > even
> > > > though
> > > > > JWH> I haven't specified it. Regardless, even if it is, I have
no
> > > way of
> > > > > JWH> stopping it, since I'm not controlling the sending of it,
do
> > I?
> > > If
> > > > it is
> > > > > JWH> the session doing it, maybe I can send a no-store header
> > before
> > > I
> > > > call
> > > > > JWH> session_start?
> > > > >
> > > > > JWH> Hopefully upgrading to SP2 for IE6 will fix this. It's a
lot
> > of
> > > > work to
> > > > > JWH> update all the computers, though, but I don't have to do
the
> > > grunt
> > > > work,
> > > > > JWH> at least. :)
> > > > >
> > > > > Maybe this will help
> > > > >
> > > > >  > > > > $ch = curl_init();
> > > > > curl_setopt ($ch, CURLOPT_URL,
> > > > "https://www.melbourneit.com.au/maintenance/";);
> > > > > curl_setopt ($ch, CURLOPT_VERBOSE, 1);
> > > > > curl_setopt ($ch, CURLOPT_HEADER, 1);
> > > > > echo '';
> > > > > if(!curl_exec ($ch)){
> > > > > echo 'Error: '.curl_error($ch).'';
> > > > > }
> > > > > echo '';
> > > > > curl_close ($ch);
> > > > > ?>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > regards,
> > > > > Tom
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Weird, weird, weird!

2002-10-08 Thread Jennifer Swofford

--- Mike At Spy <[EMAIL PROTECTED]> wrote:
>
> Anyone ever have the experience of working on a
> site, working with MySQL and
> then having something almost inexplicable happen?

Hmmm, yes, that would be a daily exercise for me.  Ah, but I see that your
inexplicable problem has been explained... lucky.  Never mind.

Jen


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Function is_readable doesn't work correctly

2002-10-08 Thread David Freeman


 >  if (is_readable("owner.php"))
 > echo "READABLE";
 > else
 > echo "UNREADABLE";
 > include ("owner.php");
 > ?>

According to the manual, the results of is_readable() is cached.  So, if
you've been testing this and have both readable and unreadable you may
have the wrong one cached.  Perhaps a check of the manual to see what
you should do about it?

(I've not used this function so I don't have any personal experience of
what should happen)

CYA, Dave




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Drop down Menu

2002-10-08 Thread Wilmar Perez

This is a function I made which covers my needs.  May be of some help for 
you.  This is a "select" box but I'm sure you can modify it for a combo box.

$form_fiel_name is the name you want the box to have in your web form.
$table is the table from you want to retrieve the information
$field is the specific field from the table
$kind could be simple or multiple

function show_list_field($form_field_name, $table, $field, $kind)
{
$list_result = "";
$list_result .= "";
$query = "select $field from $table";
$result = mysql_query($query) or die($mysql_error());

while($row = mysql_fetch_array($result))
{
$list_result .= "".htmlspecialchars(stripslashes($row["$field"]))."";
}

$list_result .= "";

return $list_result;
}


Hope it helps
***
 Wilmar Pérez
 Network Administrator
   Library System
  Tel: ++57(4)2105145
University of Antioquia
   Medellín - Colombia
  2002
***
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: HTML and text email

2002-10-08 Thread Manuel Lemos

Hello,

On 10/08/2002 05:26 PM, Chris Cook wrote:
> Hello all,
> 
> I am trying to send out a multi-part email that is both text and HTML. 
> The HTML is so I can embed links into the email. However, some of my 
> clients have text-only email programs and all the HTML tags are visible. 
> Is there a way that I can display HTML in the HTML enabled programs and 
> text in the text-only email programs?
> 
> This is the header that I currently use.
> 
> $headers  = "MIME-Version: 1.0\r\n";
> $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

Either you send separate messages to the users that prefer each format 
or you send multipart alternative messages that contain both versions.

Anyway, even when users prefer HTML you should send multipart 
alternative because some SPAM filters reject HTML only messages.

In any case you may want to try this class that is able to compose and 
send multipart alternative messages even with attachments or images 
embeded in the HTML.

http://www.phpclasses.org/mimemessage


-- 

Regards,
Manuel Lemos


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Weird, weird, weird!

2002-10-08 Thread Mike At Spy


Damn! I should have seen that!

Oh well, at least it was something obvious.  ;-)

Thanks to you Jason, and everyone who replied to point out the obvious to my
tired brain (excuses, excuses!).

-Mike


> -Original Message-
> From: Jason Young [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 4:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Weird, weird, weird!
>
>
> You're doubling up on your mysql_query's .. the first one runs, and I
> don't know the ins and outs of PHP, but the second mysql_query causes
> the resource to not be available... had a similar problem recently.
>
> Take the mysql_query out of the $cartquery assignment.
>
> -Jason
>
> Mike At Spy wrote:
> > Anyone ever have the experience of working on a site, working
> with MySQL and
> > then having something almost inexplicable happen?
> >
> > I was working on a script, and had this weird event.  A very
> simple script
> > with this:
> >
> > mysql_connect("localhost","user","pass");
> > mysql_select_db("dbname")
> > or die("Query Connection Database failed");
> > $old=date("z")-1;
> > mysql_query("DELETE FROM Users WHERE Date < $old");
> >
> > $cartquery = mysql_query("SELECT CartItemsID,Date FROM CartItems")
> > or die("Query failed");
> > $cartnow  = mysql_query($cartquery);
> > $cr=0;
> > $cartme = mysql_num_rows($cartnow);  <<< is failing!
> > while ($cr < $cartme){
> > $cartrow=mysql_fetch_row($cartnow);
> > $CII=$cartrow[0];
> > $CDa=$cartrow[1];
> > $pieces=explode(":",$CDa);
> > $DCHK=$pieces[1];
> > if ($DCHK < $old) {
> > mysql_query("DELETE FROM CartItems WHERE CartItemsID = '$CII'");
> > }
> > }
> >
> > Started spitting this error at me:
> >
> > Warning: Supplied argument is not a valid MySQL result resource
> in (exact
> > location snipped)
> >
> > This is the line containing mysql_num_rows that is getting this error.
> >
> > Someone please tell me I'm missing something obvious!  Yes, the
> connects to
> > MySQL database are fine.  I can run the query right in
> phpMyAdmin with no
> > issues.
> >
> > If mysql_num_rows returns 0, or empty, it shouldn't be
> complaining, should
> > it?  It would just skip the loop, correct?
> >
> > Thanks,
> >
> > -Mike
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] For my next bug... Upload filename gets blanked out

2002-10-08 Thread 1LT John W. Holmes

Just do a print_r($_FILES) and see what all of the contents are.

---John Holmes...

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 2:28 PM
Subject: RE: [PHP] For my next bug... Upload filename gets blanked out


> < array.>>
>
> I don't think that's it. Tell me if I'm using it improperly, but I tried
to
> print out the filename:
>
> print("[".$_FILES['uploadfile']['name']."]");
>
> Is that it?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Weird, weird, weird!

2002-10-08 Thread 1LT John W. Holmes

You have these two lines:

$cartquery = mysql_query("SELECT CartItemsID,Date FROM CartItems")
or die("Query failed");
$cartnow  = mysql_query($cartquery);

You're trying to run the second query with the result of the first
queryI'm pretty sure that's not what you want to do.

---John Holmes...

- Original Message -
From: "Mike At Spy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 4:13 PM
Subject: [PHP] Weird, weird, weird!


>
> Anyone ever have the experience of working on a site, working with MySQL
and
> then having something almost inexplicable happen?
>
> I was working on a script, and had this weird event.  A very simple script
> with this:
>
> mysql_connect("localhost","user","pass");
> mysql_select_db("dbname")
> or die("Query Connection Database failed");
> $old=date("z")-1;
> mysql_query("DELETE FROM Users WHERE Date < $old");
>
> $cartquery = mysql_query("SELECT CartItemsID,Date FROM CartItems")
> or die("Query failed");
> $cartnow  = mysql_query($cartquery);
> $cr=0;
> $cartme = mysql_num_rows($cartnow);  <<< while ($cr < $cartme){
> $cartrow=mysql_fetch_row($cartnow);
> $CII=$cartrow[0];
> $CDa=$cartrow[1];
> $pieces=explode(":",$CDa);
> $DCHK=$pieces[1];
> if ($DCHK < $old) {
> mysql_query("DELETE FROM CartItems WHERE CartItemsID = '$CII'");
> }
> }
>
> Started spitting this error at me:
>
> Warning: Supplied argument is not a valid MySQL result resource in (exact
> location snipped)
>
> This is the line containing mysql_num_rows that is getting this error.
>
> Someone please tell me I'm missing something obvious!  Yes, the connects
to
> MySQL database are fine.  I can run the query right in phpMyAdmin with no
> issues.
>
> If mysql_num_rows returns 0, or empty, it shouldn't be complaining, should
> it?  It would just skip the loop, correct?
>
> Thanks,
>
> -Mike
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] HTML and text email

2002-10-08 Thread Jason Wong

On Wednesday 09 October 2002 04:26, Chris Cook wrote:
> Hello all,
>
> I am trying to send out a multi-part email that is both text and HTML. The
> HTML is so I can embed links into the email. However, some of my clients
> have text-only email programs and all the HTML tags are visible. Is there a
> way that I can display HTML in the HTML enabled programs and text in the
> text-only email programs?
>
> This is the header that I currently use.
>
> $headers  = "MIME-Version: 1.0\r\n";
> $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

Goto www.phpclasses.org for some classes which does the job properly.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
The man who runs may fight again.
-- Menander
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Weird, weird, weird!

2002-10-08 Thread Kevin Stone

To reitterate what Jason said, this is assignment is invalid.

---
$cartquery = mysql_query("SELECT CartItemsID,Date FROM CartItems");
$cartnow  = mysql_query($cartquery);



$cartnow will contain FALSE.  And mysql_num_rows(false) will give the error
you are recieving.

-Keivn


- Original Message -
From: "Mike At Spy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 2:13 PM
Subject: [PHP] Weird, weird, weird!


>
> Anyone ever have the experience of working on a site, working with MySQL
and
> then having something almost inexplicable happen?
>
> I was working on a script, and had this weird event.  A very simple script
> with this:
>
> mysql_connect("localhost","user","pass");
> mysql_select_db("dbname")
> or die("Query Connection Database failed");
> $old=date("z")-1;
> mysql_query("DELETE FROM Users WHERE Date < $old");
>
> $cartquery = mysql_query("SELECT CartItemsID,Date FROM CartItems")
> or die("Query failed");
> $cartnow  = mysql_query($cartquery);
> $cr=0;
> $cartme = mysql_num_rows($cartnow);  <<< while ($cr < $cartme){
> $cartrow=mysql_fetch_row($cartnow);
> $CII=$cartrow[0];
> $CDa=$cartrow[1];
> $pieces=explode(":",$CDa);
> $DCHK=$pieces[1];
> if ($DCHK < $old) {
> mysql_query("DELETE FROM CartItems WHERE CartItemsID = '$CII'");
> }
> }
>
> Started spitting this error at me:
>
> Warning: Supplied argument is not a valid MySQL result resource in (exact
> location snipped)
>
> This is the line containing mysql_num_rows that is getting this error.
>
> Someone please tell me I'm missing something obvious!  Yes, the connects
to
> MySQL database are fine.  I can run the query right in phpMyAdmin with no
> issues.
>
> If mysql_num_rows returns 0, or empty, it shouldn't be complaining, should
> it?  It would just skip the loop, correct?
>
> Thanks,
>
> -Mike
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] HTML and text email

2002-10-08 Thread Chris Cook

Hello all,

I am trying to send out a multi-part email that is both text and HTML. The 
HTML is so I can embed links into the email. However, some of my clients 
have text-only email programs and all the HTML tags are visible. Is there a 
way that I can display HTML in the HTML enabled programs and text in the 
text-only email programs?

This is the header that I currently use.

$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

Thanks for any help,
Chris


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Bugs in php 4.2.3.?

2002-10-08 Thread Hendrik Daldrup

Yes,

the basic settings are, but some modules differ.

Regards,
Hendrik

Jason Wong wrote:

>On Wednesday 09 October 2002 03:14, Hendrik Daldrup wrote:
>  
>
>>Hi,
>>
>>i recently had a problem with a script on a server, which uses php 4.2.3.
>>I couldn't find the problem and so installed it on a different server
>>and it worked right away.
>>Only difference on that server was: php 4.2.2.
>>
>>
>
>Are the php.ini the same?
>
>  
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] shell_exec('cp...

2002-10-08 Thread Marco Tabini

Have you tried redirecting stderr to a file?

On Tue, 2002-10-08 at 11:50, Alec Solway wrote:
> I'm having problems running cp from shel_exec(). Nothing is returned, but 
> the copy is unsuccessful. The same call works as user nobody from the 
> actual shell. Any ideas?
> 
> -Alec
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Weird, weird, weird!

2002-10-08 Thread Jason Young

You're doubling up on your mysql_query's .. the first one runs, and I 
don't know the ins and outs of PHP, but the second mysql_query causes 
the resource to not be available... had a similar problem recently.

Take the mysql_query out of the $cartquery assignment.

-Jason

Mike At Spy wrote:
> Anyone ever have the experience of working on a site, working with MySQL and
> then having something almost inexplicable happen?
> 
> I was working on a script, and had this weird event.  A very simple script
> with this:
> 
> mysql_connect("localhost","user","pass");
> mysql_select_db("dbname")
> or die("Query Connection Database failed");
> $old=date("z")-1;
> mysql_query("DELETE FROM Users WHERE Date < $old");
> 
> $cartquery = mysql_query("SELECT CartItemsID,Date FROM CartItems")
>   or die("Query failed");
> $cartnow  = mysql_query($cartquery);
> $cr=0;
> $cartme = mysql_num_rows($cartnow);  <<< while ($cr < $cartme){
> $cartrow=mysql_fetch_row($cartnow);
> $CII=$cartrow[0];
> $CDa=$cartrow[1];
> $pieces=explode(":",$CDa);
> $DCHK=$pieces[1];
> if ($DCHK < $old) {
> mysql_query("DELETE FROM CartItems WHERE CartItemsID = '$CII'");
>   }
> }
> 
> Started spitting this error at me:
> 
> Warning: Supplied argument is not a valid MySQL result resource in (exact
> location snipped)
> 
> This is the line containing mysql_num_rows that is getting this error.
> 
> Someone please tell me I'm missing something obvious!  Yes, the connects to
> MySQL database are fine.  I can run the query right in phpMyAdmin with no
> issues.
> 
> If mysql_num_rows returns 0, or empty, it shouldn't be complaining, should
> it?  It would just skip the loop, correct?
> 
> Thanks,
> 
> -Mike
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Weird, weird, weird!

2002-10-08 Thread Mike At Spy


Anyone ever have the experience of working on a site, working with MySQL and
then having something almost inexplicable happen?

I was working on a script, and had this weird event.  A very simple script
with this:

mysql_connect("localhost","user","pass");
mysql_select_db("dbname")
or die("Query Connection Database failed");
$old=date("z")-1;
mysql_query("DELETE FROM Users WHERE Date < $old");

$cartquery = mysql_query("SELECT CartItemsID,Date FROM CartItems")
or die("Query failed");
$cartnow  = mysql_query($cartquery);
$cr=0;
$cartme = mysql_num_rows($cartnow);  <<

Re: [PHP] Bugs in php 4.2.3.?

2002-10-08 Thread Jason Wong

On Wednesday 09 October 2002 03:14, Hendrik Daldrup wrote:
> Hi,
>
> i recently had a problem with a script on a server, which uses php 4.2.3.
> I couldn't find the problem and so installed it on a different server
> and it worked right away.
> Only difference on that server was: php 4.2.2.

Are the php.ini the same?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Radial Telemetry Infiltration
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PDF Templates?

2002-10-08 Thread Seth Northrop


Yes, I saw PDI - I'm perfectly open to paying $ for a solution - but, is 
there any PHP integration with pdflib+pdi?  



On Tue, 8 Oct 2002, SHEETS,JASON (HP-Boise,ex1) wrote:

> I believe the authors of PDFlib have a utility that allows you to edit PDF
> files on the fly, I don't think it is free though but you could look at it
> for at least a starting point.
> 
> Jason Sheets, CCNA, MCSE
> Exploratory Team Lead
> Manpower Managed Service
> R14-C35 Post E6
> 396-7336
> 
> -Original Message-
> From: Seth Northrop [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, October 08, 2002 1:31 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PDF Templates?
> 
> 
> Can they be used?  Ie, can you open up an existing PDF and execute 
> pdf_show*s on it and dump out the modified buffer?
> 
> We have several blank PDF forms laying around and I'd like to be able to 
> populate them without having to regenerate the PDFs everytime (which, in 
> some cases would be impossible)
> 
> I see in the archives (old) that this functionality wasn't available -
> just seeing if someone has implemented it yet (or, even just functionality
> that reads in a PDF, parses, and rebuilds it within a new PDF document
> which can be edited)
> 
> Thanks for any info.
> 
> 
> 

-- 
Seth Northrop
Manager of Information Technology
Reflectivity, Inc.
350 Potrero Ave.
Sunnyvale, CA 94085
voice:  408-737-8100 x147
fax:408-737-8153
http://www.reflectivity.com/

This email message (and any attached document) contains information from
Reflectivity, Inc. which3 may be considered confidential by Reflectivity,
or which may be privileged or otherwise exempt from disclosure under law,
and is for the sole use of the individual or entity to whom it is
addressed.  Any other dissemination, distribution or copying of this
message is strictly prohibited.  If you receive this message in error,
please notify me and destroy the attached message (and all attached
documents) immediately.   
--


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PDF Templates?

2002-10-08 Thread Seth Northrop


Can they be used?  Ie, can you open up an existing PDF and execute 
pdf_show*s on it and dump out the modified buffer?

We have several blank PDF forms laying around and I'd like to be able to 
populate them without having to regenerate the PDFs everytime (which, in 
some cases would be impossible)

I see in the archives (old) that this functionality wasn't available -
just seeing if someone has implemented it yet (or, even just functionality
that reads in a PDF, parses, and rebuilds it within a new PDF document
which can be edited)

Thanks for any info.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Bugs in php 4.2.3.?

2002-10-08 Thread Jose


Yes, is there an issue? Just see my post under

RE: [PHP] For my next bug... Upload filename gets blanked out

Of a couple minutes ago

Cheers,
 
Jose 

> -Original Message-
> From: Hendrik Daldrup [mailto:[EMAIL PROTECTED]]
> Sent: 08 October 2002 20:15
> To: [EMAIL PROTECTED]
> Subject: [PHP] Bugs in php 4.2.3.?
> 
> Hi,
> 
> i recently had a problem with a script on a server, which uses php
4.2.3.
> I couldn't find the problem and so installed it on a different server
> and it worked right away.
> Only difference on that server was: php 4.2.2.
> 
> I checked some sites and it seems there are some issues with postnuke,
> xoops and several other scripts with php 4.2.3.
> 
> Is this a known bug, or is it s.th. like the register_globals thing,
> where you either need to update the script or set it to "On" in
php.ini?
> 
> Regards,
> Hendrik
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] global variables that are arrays

2002-10-08 Thread Christopher J. Crane

I didn't do it yet.
The script I am working on is large with many variables so I was hoping
someone else would know before I do it.

"Chris Hewitt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Christopher J. Crane wrote:
>
> >Can I do this?
> >global $Ticker=array();
> >
> I don't know, what happens when you try it?
>
> HTH
> Chris
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Bugs in php 4.2.3.?

2002-10-08 Thread Hendrik Daldrup

Hi,

i recently had a problem with a script on a server, which uses php 4.2.3.
I couldn't find the problem and so installed it on a different server 
and it worked right away.
Only difference on that server was: php 4.2.2.

I checked some sites and it seems there are some issues with postnuke, 
xoops and several other scripts with php 4.2.3.

Is this a known bug, or is it s.th. like the register_globals thing, 
where you either need to update the script or set it to "On" in php.ini?

Regards,
Hendrik


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] For my next bug... Upload filename gets blanked out

2002-10-08 Thread Jose

I've been having the same problem, sort of. I.e. the blanking out of
POST data when uploading a file, though it also happens in some
instances when using phpMyAdmin when sending an SQL query through its
interface.

I run the whole thing under WindowsXP with PHP 4.2.3, MySQL 3.23.52-nt
(though that has no bearing in the code to upload the file), and PHP
running as a module of Apache 1.3.27 and 1.3.26 before that. phpMyAdmin
is 2.3.1. I have checked and rechecked everything, and can't seem to
find the problem. I do believe that is a bug in the PHP engine, and
possibly the one mentioned at the top of the phpMyAdmin home page at
www.phpmyadmin.net. But not sure how that affects the file uploads.

It happens most of the time, but not always. I do ocasionally get to
upload the file (an image). Same file can succeed or fail. This is in
the windows XP, that I use for development. On the real servers, running
on Solaris and Red Hat Linux but with the same version of PHP and Apache
the same scripts work perfectly!

I posted before and someone suggested to check for the upload dir. I did
and it worked the first time, so I went to claim victory, only to
realize that it was again one off.

I do use register_globals = off (though I have tested with
register_globals = on and the result is the same, even in the error
log). I have checked for sizes of different things where they
correspond. I have also disabled mod_gzip in case it was an issue. I
also set implicit_flush = On to see if that would help, but it didn't.
Set the logs of Apache to debug and yet can't see anything wrong in
there. In this environment I have everything set to report all errors
and notices. The only thing that I see in the error logs is a couple
undefined variables when the POST information dissapears. In the
access.log there is hardly any difference between successful and
unsuccessful uploads.

I have read over 2700 posts (all that has been collected since I
subscribed to the list with my original post) in the hopes that
something would give me a clue as to what is happening, and this thread
is the closest.

I could only think of it being some environment variable limiting some
kind of buffer size or similar, but given that sometimes it works,
sometimes it doesn't with files in different size ranges and coming from
different folders in the system, I had to ditch that idea, for the time
being.

I could also go back to php 4.2.2, but I'm lazy ;) but if that could
help debug? Any ideas when the next version of PHP is coming out? Or can
anyone confirm that there is a bug of PHP on Windows which would
manifest this way?

Any help or further hints deeply appreciated!  :)

Cheers,
 
Jose 

PS. I have attached the httpd.conf and php.ini file. As for the PHP code
I can include it if requested, but it reproducible with a simple upload
form in my system, nothing special.


> -Original Message-
> From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
> Sent: 08 October 2002 19:06
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] For my next bug... Upload filename gets blanked out
> 
> Is register_globals off? If it is, you should be using the $_FILES
array.
> 
> ---John Holmes...
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 08, 2002 1:35 PM
> Subject: [PHP] For my next bug... Upload filename gets blanked out
> 
> 
> > In the form below, when I specify a file to upload (in $filename),
it
> gets
> > blanked out by the time I hit the Upload button and the page
refreshes.
> My
> > test file is a text file that certainly does *not* exceed the
> max_file_size
> > (it goes to about 27 k).
> >
> >  "index.php?page=Uploadfile"
> > METHOD = "POST">
> > =
> > "0">
> >   
> >  
> > Upload
> > Upload (filename):  =
> > "FILE" NAME = "filename">
> >  > "102400">
> > 
> >  
> >   
> >
> > 
> >
> >
> 
> 
>

--
> --
> 
> 
> 
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



httpd.zip
Description: Zip compressed data


php.zip
Description: Zip compressed data

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Drop down Menu

2002-10-08 Thread Liam . Gibbs

<>

Well, to start you off, the select would have to be this:
SELECT salesman FROM salesman_database;
(You may have to check out a MySQL site for some specifics, such as what
other information do you need than the name--number? Department?--and are
there any filters you need--some have left?).

For the rest of it (as in how do you make your results into a dropdown list)
that's not a PHP question. You can spit it out by doing a
mysql_query/fetch_mysql_row combo, but that will be a straight HTML list.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Drop down Menu

2002-10-08 Thread The New Source

Hi, I need to do a drop down menu that loads the contents from a msql
database.
Like this: I need a select that has the name of every salesman of a
certain department, and this info is dynamic and is recorded in a
database (MySql). 
So what would the select have to be like?
Also the load value is obvious diferent from the value that is sent from
the form when the submit button is pressed, this value would be another
column in the same table of the name.
Thanks,
Rodrigo
 



Re: [PHP] For my next bug... Upload filename gets blanked out

2002-10-08 Thread Kevin Stone

If there is any doubt print the array to find the indexes you need to recall
the filename..

echo "";
print_r($_FILES);
echo "";

You'll figure it out quickly enough.  ::)

-Kevin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 12:28 PM
Subject: RE: [PHP] For my next bug... Upload filename gets blanked out


> < array.>>
>
> I don't think that's it. Tell me if I'm using it improperly, but I tried
to
> print out the filename:
>
> print("[".$_FILES['uploadfile']['name']."]");
>
> Is that it?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] encryption

2002-10-08 Thread Bryan Koschmann - GKT

Hello,

I was wondering if anyone has some examples of encrypting credit card
numbers in a database?

Basically, someone goes to a secure site, enters their information, and
then it is stored locally in a mysql database until it can be entered
(this is all we have for now until we setup a merchant account).

Any ideas?

Thanks,

Bryan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] global variables that are arrays

2002-10-08 Thread Chris Hewitt

Christopher J. Crane wrote:

>Can I do this?
>global $Ticker=array();
>
I don't know, what happens when you try it?

HTH
Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] For my next bug... Upload filename gets blanked out

2002-10-08 Thread Liam . Gibbs

<>

I don't think that's it. Tell me if I'm using it improperly, but I tried to
print out the filename:

print("[".$_FILES['uploadfile']['name']."]");

Is that it?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Database help

2002-10-08 Thread Jef

The code works fine for displaying the information in the database. However,
the first line of information is still skipped.




Jef

++

"Davy Obdam" <[EMAIL PROTECTED]> wrote in message
000801c26e63$8622cb00$960a@davy">news:000801c26e63$8622cb00$960a@davy...
> Hi Jef,
>
> This is what i would do:
>
> $fSelect = "SELECT lot,size,price FROM properties WHERE status =
> 'Available' ORDER BY lot ASC";
> $fSql = mysql_query($fSelect, $db) or DIE("Unable to retrieve data");
> for ($i=0;$i {
> $useFields = mysql_fetch_assoc($fSql);
> file://Your table
> echo "".$useFields['lot']."";
> file://The rest of your table
> }
>
> I hope this helps
>
> Best regards,
>
> Davy Obdam,
> mailto:[EMAIL PROTECTED]
>
>
>
>
> -Original Message-
> From: Jef [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 12:53 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Database help
>
>
> I am querying a database to populate a list. The list is suppose to
> start with the first line of information in the database and continue
> untill have been displayed.
>
> The problem I am having is the first line in the database is not being
> displayed. The display starts on the second line.
>
> Here are the MySQL commands to retrieve the data...
>
>  $fSelect = "SELECT lot,size,price FROM properties WHERE status =
> 'Available' ORDER BY lot ASC";  $fSql = mysql_query($fSelect, $db) or
> DIE("Unable to retrieve data"); $useFields = mysql_fetch_array($fSql,
> MYSQL_ASSOC);
>
> The next line prints the lot field to the screen. The number printed to
> the screen is the second lot number that matches this database query.
>
> Any suggestions on how to get the first information displayed to the
> screen?
>
>
>
>
> Jef
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> 
> Deze e-mail is door E-mail VirusScanner van Planet Internet
> gecontroleerd op virussen. Op http://www.planet.nl/evs staat een
> verwijzing naar de actuele lijst waar op wordt gecontroleerd.
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] String Help PLEASE!

2002-10-08 Thread Robert Cummings

Shane wrote:
> 
> Greetings gang, this should be an easy one but it's kicking my butt today.
> 
> I need to build a member number in the format of -00- from an auto increment 
>ID field from my DB.
> 
> I can get the last ID value easy enough, but how the heck can I tag the new ID on to 
>the end of the string -00-.
> 
> I looked in the manual at chr(), Parse_str() and str_replace() thinking that would 
>do it, but no luck.
> 
> Can someone point me in the right direction please?

Easy peasy...

$foo = sprintf( '%010ld', 1001223003 );
echo $foo."\n";

$fee =
 substr( $foo, 0, 4 ).'-'
.substr( $foo, 4, 2 ).'-'
.substr( $foo, 6, 4 );

echo $fee."\n";

Cheers,
Rob.
-- 
.-.
| Robert Cummings |
:-`.
| Webdeployer - Chief PHP and Java Programmer  |
:--:
| Mail  : mailto:[EMAIL PROTECTED] |
| Phone : (613) 731-4046 x.109 |
:--:
| Website : http://www.webmotion.com   |
| Fax : (613) 260-9545 |
`--'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mail problem Sendmail 8.12.4

2002-10-08 Thread Chris Hewitt

Devin Atencio wrote:

>to sendmail in my /usr/local/lib/php.ini. I am using PHP 4.2.3
>but it fails to send mail. My /var/log/maillog shows the attempt
>but nothing happens:
>
>Oct  8 11:12:18 stardust sendmail[84142]: g98HCIsQ084142: from=nobody,
>size=331, class=0, nrcpts=0,
>msgid=<[EMAIL PROTECTED]>,
>relay=nobody@localhost
>
Can an ordinary user send email? It sounds from the nobody@localhost as 
though it may not be configured. The "From" address may need to be a 
real user.

HTH
Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] String Help PLEASE!

2002-10-08 Thread Shane

Greetings gang, this should be an easy one but it's kicking my butt today.

I need to build a member number in the format of -00- from an auto increment 
ID field from my DB.

I can get the last ID value easy enough, but how the heck can I tag the new ID on to 
the end of the string -00-.

I looked in the manual at chr(), Parse_str() and str_replace() thinking that would do 
it, but no luck.

Can someone point me in the right direction please?
Thanks a bunch folks!!!
- NorthBayShane

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] For my next bug... Upload filename gets blanked out

2002-10-08 Thread Liam . Gibbs

<>

Hmm. Not sure about register_globals, but I'm not using $_FILES. I assume
its use is $_FILES["name_of_file || size_of_file"]? I'll check it out.

Is there a disadvantage to using it? Ie. If register_globals is on, will it
still work? If there's no disadvantage, I might just go with it anyway
Avoids the hassle the next time I reinstall or switch servers.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] global variables that are arrays

2002-10-08 Thread Christopher J. Crane

Can you global a variable at the same time as making it an array?

I usually do this:
$Ticker = array(); global $Ticker;

Can I do this?
global $Ticker=array();

Thank you.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] For my next bug... Upload filename gets blanked out

2002-10-08 Thread 1LT John W. Holmes

Is register_globals off? If it is, you should be using the $_FILES array.

---John Holmes...

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 1:35 PM
Subject: [PHP] For my next bug... Upload filename gets blanked out


> In the form below, when I specify a file to upload (in $filename), it gets
> blanked out by the time I hit the Upload button and the page refreshes. My
> test file is a text file that certainly does *not* exceed the
max_file_size
> (it goes to about 27 k).
>
>  METHOD = "POST">
> "0">
>   
>  
> Upload
> Upload (filename):  "FILE" NAME = "filename">
>  "102400">
> 
>  
>   
>
> 
>
>






> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Undefined variable: blabla ?

2002-10-08 Thread Chris Hewitt

Hkan wrote:

>I just reinstalled the system and everything on my computer, and thought I
>should get the latest versions of apache, php and mysql, and now I get this
>message everywhere on my pages.. hehe.. :P
>how do I "define variables" ?
>
If you have reinstalled with latest versions, maybe your earlier version 
had register_globals on. Its off by default in newer versions (see the 
README with your source). Either turn it on or better, use $var = 
$_GET['varname'] for GET variables and $var = $_POST['varname'] for 
POSTED variables.

The "undefined" means that you are using a variable before giving it a 
value. Probably caused by the above, but you may also have errors set at 
E_ALL. This is good for development as it gives warnings, not just errors.

HTH
Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] For my next bug... Upload filename gets blanked out

2002-10-08 Thread Liam . Gibbs

In the form below, when I specify a file to upload (in $filename), it gets
blanked out by the time I hit the Upload button and the page refreshes. My
test file is a text file that certainly does *not* exceed the max_file_size
(it goes to about 27 k).


   
  
 
Upload
Upload (filename): 


 
  
   




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Sessions and Cookies

2002-10-08 Thread 1LT John W. Holmes

> On Tuesday 08 October 2002 23:34, R. Z. wrote:
> > I've just read on MSDN that ASP sessions only work if the client has
> > cookies enabled,
> >
> > Is that true for PHP as well.
>
> Yes.
>
> Note that some browsers actually differentiate between session cookies
(stored
> in memory) and 'permanent' cookies (stored on disk).

You don't _have_ to use cookies. Sessions will attempt to use them by
default, but you can configure it to not use cookies at all.

If you don't use cookies, though, it's up to you to pass the session ID to
each page, though all the links and all the forms. For the session to work,
the session ID must get passed everywhere so it knows what session file to
load. PHP will attempt to rewrite your URLs and forms for you if you compile
it with a certain flag and turn that option on.

More and better info in the manual, of course: http://www.php.net/sessions

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] mail problem Sendmail 8.12.4

2002-10-08 Thread Devin Atencio

Yes I do have -t -i at the end of the path but it still doesn't
work. Any other ideas?

On Tue, 2002-10-08 at 11:17, Adam Voigt wrote:
> In your sendmail path, do you have -t -i appended to the path?
> Like: /usr/bin/sendmail -t -i
> 
> Adam Voigt
> [EMAIL PROTECTED]
> 
> On Tue, 2002-10-08 at 13:15, Devin Atencio wrote:
> > 
> > I am trying to get PHP to send mail through my FreeBSD machine
> > and my machine is running Sendmail 8.12.4, and I have the path
> > to sendmail in my /usr/local/lib/php.ini. I am using PHP 4.2.3
> > but it fails to send mail. My /var/log/maillog shows the attempt
> > but nothing happens:
> > 
> > Oct  8 11:12:18 stardust sendmail[84142]: g98HCIsQ084142: from=nobody,
> > size=331, class=0, nrcpts=0,
> > msgid=<[EMAIL PROTECTED]>,
> > relay=nobody@localhost
> > 
> > Any ideas about what could be going on here? 
> > 
> > Devin Atencio
> > 
> > 
> > 
> > 
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Image Problem

2002-10-08 Thread Jason Wong

On Tuesday 08 October 2002 20:08, Mark Colvin wrote:
> I have just upgraded php from 4.0.6 to 4.2.3. Everything works OK apart
> from the line below -
>
> echo '';
>
> The thumbnail.php script uses php functions imagecreate,
> imagecreatefromjpeg, imagecopyresized. The script created a thumbnail OK
> before the upgrade and now I get no image. Is this because php has to be
> configured with the GD Library?

If you had error reporting ON, it would be pretty obvious if that was the 
problem (you would either see the error on screen or it would be in the 
logs).

Use phpinfo() to find out whether PHP was compiled with GD library support.

> If so, can I add this in without having to
> reinstall php? I am running on a Red Hat 7.2 box.

If it wasn't, you would have to reconfigure/recompile PHP (after installing 
the GD library).


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
When the blind lead the blind they will both fall over the cliff.
-- Chinese proverb
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: [PHP-WIN] odbc_fetch_array function

2002-10-08 Thread Pascal

Thanks for your message. The database on which I ran the query which result I am 
trying to fetch with this function is Pervasive 7. However, the PHP parser does not 
recognize the function name, so I don't believe the issue is with the db.

Even on the php.net site, the function is not documented 
(http://www.php.net/manual/en/function.odbc-fetch-array.php). I still haven't found 
out why it doesn't seem to be implemented in the PHP version that I am using.

Pascal

>what database are you using? that problem is a database connection from 
>your php to your db. i have been using the same as your for a couple of 
>months but i have no problem since my db is placed on my cygwin.its a 
>postgresql db.





Re: [PHP] mail problem Sendmail 8.12.4

2002-10-08 Thread Adam Voigt

In your sendmail path, do you have -t -i appended to the path?
Like: /usr/bin/sendmail -t -i

Adam Voigt
[EMAIL PROTECTED]

On Tue, 2002-10-08 at 13:15, Devin Atencio wrote:
> 
> I am trying to get PHP to send mail through my FreeBSD machine
> and my machine is running Sendmail 8.12.4, and I have the path
> to sendmail in my /usr/local/lib/php.ini. I am using PHP 4.2.3
> but it fails to send mail. My /var/log/maillog shows the attempt
> but nothing happens:
> 
> Oct  8 11:12:18 stardust sendmail[84142]: g98HCIsQ084142: from=nobody,
> size=331, class=0, nrcpts=0,
> msgid=<[EMAIL PROTECTED]>,
> relay=nobody@localhost
> 
> Any ideas about what could be going on here? 
> 
> Devin Atencio
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mail problem Sendmail 8.12.4

2002-10-08 Thread Devin Atencio


I am trying to get PHP to send mail through my FreeBSD machine
and my machine is running Sendmail 8.12.4, and I have the path
to sendmail in my /usr/local/lib/php.ini. I am using PHP 4.2.3
but it fails to send mail. My /var/log/maillog shows the attempt
but nothing happens:

Oct  8 11:12:18 stardust sendmail[84142]: g98HCIsQ084142: from=nobody,
size=331, class=0, nrcpts=0,
msgid=<[EMAIL PROTECTED]>,
relay=nobody@localhost

Any ideas about what could be going on here? 

Devin Atencio





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sessions and Cookies

2002-10-08 Thread Jason Wong

On Tuesday 08 October 2002 23:34, R. Z. wrote:
> I've just read on MSDN that ASP sessions only work if the client has
> cookies enabled,
>
> Is that true for PHP as well.

Yes.

Note that some browsers actually differentiate between session cookies (stored 
in memory) and 'permanent' cookies (stored on disk).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
"The algorithm to do that is extremely nasty.  You might want to mug
someone with it."
-- M. Devine, Computer Science 340
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Undefined variable: blabla ?

2002-10-08 Thread Håkan

I just reinstalled the system and everything on my computer, and thought I
should get the latest versions of apache, php and mysql, and now I get this
message everywhere on my pages.. hehe.. :P
how do I "define variables" ?

Håkan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] NEXT() and/or PREV()

2002-10-08 Thread Jason Wong

On Tuesday 08 October 2002 22:23, Jef wrote:
> What archives?

List archives. Searching for "archives" in www.php.net would have shown you 
where they are.

Also google for "php database next previous" would've turned up some good 
links.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
vi needs to be upgraded to vii
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Another problem

2002-10-08 Thread Liam . Gibbs

<>

No, I've got the text/ascii header in there. I have it send an HTML and a
text version. Both look very different. The only problem with the text
version is that there are no line breaks... Until it encounters a P tag.
It's weird, but I have those completely stripped out, but the BR tags I have
replaced. The P tags should make no difference.

Oh yeah, and it *was* a typo. It really is \r\n.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Forming HTTP Header to POST

2002-10-08 Thread Kevin Stone

Doh!  Sorry.. that would be $_GET['action'] as Chris specified.  :P
-Kevin

- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "Paul Kaiser" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 10:33 AM
Subject: Re: [PHP] Forming HTTP Header to POST


> With register_globals off you will be accessing the query string variable
> with, $_GET['add_event']
> Or if you send through a POST request, $_POST['add_event']
>
> You can simulate posting a form by opening an HTTP socket connection and
> sending the POST request manually.  Search for the posttohost() function
on
> Google or this mailing list.. you'll find dozens of references.  Although
in
> your case I doubt you will be needing it.
>
> -Kevin
>
> - Original Message -
> From: "Paul Kaiser" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 08, 2002 10:17 AM
> Subject: [PHP] Forming HTTP Header to POST
>
>
> > Greetings,
> >
> > With register_globals off, I can no longer call specific functions form
my
> > PHP script by linking text/graphic as such:
> >
> > http://www.mysite.com/mydb/myevts.php?action=add_event
> >
> > What I need to do, of course, is get "add_event" sent in something like
a
> > POST command. I could make a page with a bunch of forms / buttons / etc.
> > but this is ugly.
> >
> > With the header() function, shouldn't I be able to make an HTTP header
> > that would simulate POSTing from a form?
> >
> > Or is there some other way I can simulate POSTing from a form?
> >
> > My goal is for the user to be able to click on what appears to be an
> > ordinary link (text or picture) and have that click "POST" my
> > action=add_event to myevts.php.
> >
> > Any ideas?
> > Thanks,
> > Paul Kaiser
> >
> > --
> > Illini Media: 265-9844
> > Home: 351-8149
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




  1   2   >