php-general Digest 8 Jun 2003 03:35:03 -0000 Issue 2104

Topics (messages 150583 through 150627):

Re: [PHP-DB] Possible to store arrays in mySQL without explode()/implode()
        150583 by: Matt

Re: selecting count and then dumping to an array
        150584 by: Jim Lucas

Re: How to determine if output buffering is on?
        150585 by: Jim Lucas
        150586 by: Leif K-Brooks
        150609 by: Jim Lucas

PATH_TRANSLATED
        150587 by: Øystein Håland
        150588 by: Matt
        150589 by: Øystein Håland
        150599 by: Jason Reid
        150605 by: DvDmanDT

Re: PGP?
        150590 by: Yann Larrivee

Re: Gracefully dealing with Cookies OFF
        150591 by: Jason Wong

Re: Web Server Firewall Suggested
        150592 by: Jason Wong

please help, simple problem (i think)
        150593 by: Ryan A
        150596 by: Ryan A
        150597 by: Boaz Yahav
        150598 by: Ryan A
        150600 by: Boaz Yahav
        150612 by: John W. Holmes

IE Pagelength issue
        150594 by: Larry Brown
        150604 by: Larry Brown
        150611 by: John W. Holmes
        150613 by: Larry Brown
        150619 by: John W. Holmes

Re: Page loading time
        150595 by: vh

Downloading PHP
        150601 by: ReznicekM.gytool.cz
        150615 by: Rasmus Lerdorf

Sessions problem
        150602 by: Ryan A

RE:Sessions problem
        150603 by: Ryan A

dtd validation?
        150606 by: Joshua Ruppert

mail() problem affecting output to browser on completion
        150607 by: PHP4 Emailer
        150610 by: John W. Holmes

mod_rewrite rules for the php.net rewritten urls
        150608 by: Tularis
        150614 by: Philip Olson

[Newman] How to pass an image through PHP.
        150616 by: Philip J. Newman
        150617 by: Jean-Christian Imbeault
        150618 by: John W. Holmes
        150625 by: Leif K-Brooks

file upload script
        150620 by: Rodney Green

Sorry, I cannot run apxs
        150621 by: Pentothal
        150624 by: Philip Olson

use print
        150622 by: mudhar
        150623 by: Jean-Christian Imbeault
        150626 by: John W. Holmes

fsockopen and SSL
        150627 by: Ralph

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
----- Original Message -----
From: "Jakob Mund" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 9:04 AM
Subject: [PHP-DB] Possible to store arrays in mySQL without
explode()/implode()


> is it possible to store an array in mySQL without using implode() /
> explode(), like this:


Serialize the array to make it a string and store that.  Unserialize() to
make it an array again. The column type you choose depends in the length of
the values you might choose to put in the array.  Serialize the array to a
var and check it's length with strlen to get some ideas of what type you
might need.
http://www.php.net/serialize
http://www.php.net/unserialize



--- End Message ---
--- Begin Message ---
building on the only reply that I saw try this also.

Say you had 12 different TYPE's that are in your table, and you only wanted
5 of them.
Then you will want something like what follows.

SELECT type, count(*) FROM table WHERE type='$1' OR type='$2' OR \
                      type='$3' OR type='$4' OR type='$5' GROUP BY type;

another way you can write this is like the following,
   but it won't take advantage of indices

SELECT type, count(*) FROM table WHERE type IN ('$1', '$2', '$3', '$4',
'$5') GROUP BY type;

Jim Lucas

----- Original Message -----
From: "Ryan A" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 8:53 AM
Subject: Re: [PHP] selecting count and then dumping to an array


> Thanks guys,
> will give it a shot and write back if i have any problems.
> Cheers,
> -Ryan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
output some html and then try and do an header() redirect.

if it works, then some sort of buffering is turned on.

if it fails and tells you that output has already been sent to the browser,
then it isn't turned on.

Jim Lucas
----- Original Message -----
From: "Shawn McKenzie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 7:39 AM
Subject: [PHP] How to determine if output buffering is on?


> O.K.  so how can I determine if output buffering has been started???
>
> Thanks!
> Shawn
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message --- Yay, a hack! The correct answer is ob_get_level().

Jim Lucas wrote:

output some html and then try and do an header() redirect.

if it works, then some sort of buffering is turned on.

if it fails and tells you that output has already been sent to the browser,
then it isn't turned on.

Jim Lucas
----- Original Message -----
From: "Shawn McKenzie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 7:39 AM
Subject: [PHP] How to determine if output buffering is on?




O.K. so how can I determine if output buffering has been started???

Thanks!
Shawn



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









-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.



--- End Message ---
--- Begin Message ---
it isn't a hack.  that is a good way to tell.  :)

all depends on if he plans to continually use this check in his script or if
he is just going to just test for it durning development.

Jim Lucas

----- Original Message -----
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Jim Lucas" <[EMAIL PROTECTED]>
Cc: "Shawn McKenzie" <[EMAIL PROTECTED]>; "php-general"
<[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 8:29 AM
Subject: Re: [PHP] How to determine if output buffering is on?


> Yay, a hack!  The correct answer is ob_get_level().
>
> Jim Lucas wrote:
>
> >output some html and then try and do an header() redirect.
> >
> >if it works, then some sort of buffering is turned on.
> >
> >if it fails and tells you that output has already been sent to the
browser,
> >then it isn't turned on.
> >
> >Jim Lucas
> >----- Original Message -----
> >From: "Shawn McKenzie" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Saturday, June 07, 2003 7:39 AM
> >Subject: [PHP] How to determine if output buffering is on?
> >
> >
> >
> >
> >>O.K.  so how can I determine if output buffering has been started???
> >>
> >>Thanks!
> >>Shawn
> >>
> >>
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >>
> >
> >
> >
> >
>
> --
> The above message is encrypted with double rot13 encoding.  Any
unauthorized attempt to decrypt it will be prosecuted to the full extent of
the law.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
Is there some way to retrieve the phpvariable PATH_TRANSLATED on my local
win2k+Apache2+php4.3.2 box?
Using phpinfo() does not show PATH_TRANSLATED



--- End Message ---
--- Begin Message ---
----- Original Message -----
From: "Øystein Håland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 11:37 AM
Subject: [PHP] PATH_TRANSLATED


> Is there some way to retrieve the phpvariable PATH_TRANSLATED on my local
> win2k+Apache2+php4.3.2 box?

echo "Path Translated: {$_SERVER['PATH_TRANSLATED']}<br>";



--- End Message ---
--- Begin Message ---
That gives  the following error: Notice: Undefined index: PATH_TRANSLATED
and the reason is the variable isn't set by Apache/PHP

"Matt" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
>
> ----- Original Message -----
> From: "Øystein Håland" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, June 07, 2003 11:37 AM
> Subject: [PHP] PATH_TRANSLATED
>
>
> > Is there some way to retrieve the phpvariable PATH_TRANSLATED on my
local
> > win2k+Apache2+php4.3.2 box?
>
> echo "Path Translated: {$_SERVER['PATH_TRANSLATED']}<br>";
>
>



--- End Message ---
--- Begin Message ---
This is likely due to Win32 not being required to do any virtual to real
mapping. This itself isn't PHP's fault, as the variable itself is set by
Apache.

Jason Reid
[EMAIL PROTECTED]
--
Exumweb Network
www.exumweb.net
----- Original Message -----
From: "Øystein Håland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 10:32 AM
Subject: Re: [PHP] PATH_TRANSLATED


> That gives  the following error: Notice: Undefined index: PATH_TRANSLATED
> and the reason is the variable isn't set by Apache/PHP
>
> "Matt" <[EMAIL PROTECTED]> skrev i meddelandet
> news:[EMAIL PROTECTED]
> >
> > ----- Original Message -----
> > From: "Øystein Håland" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, June 07, 2003 11:37 AM
> > Subject: [PHP] PATH_TRANSLATED
> >
> >
> > > Is there some way to retrieve the phpvariable PATH_TRANSLATED on my
> local
> > > win2k+Apache2+php4.3.2 box?
> >
> > echo "Path Translated: {$_SERVER['PATH_TRANSLATED']}<br>";
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--- End Message ---
--- Begin Message ---
Are you sure it doesn't work? I thought it didn't at first, that variable
doesn't exist unless you call the script with a index.php/dir/file.txt if
you get what I mean... This was my case, pretty long ago so maybe things
have changed...
"ØYstein HåLand" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Is there some way to retrieve the phpvariable PATH_TRANSLATED on my local
> win2k+Apache2+php4.3.2 box?
> Using phpinfo() does not show PATH_TRANSLATED
>
>



--- End Message ---
--- Begin Message ---
Look up gpgext on 
http://freshmeat.net/projects/gpgext/?topic_id=44%2C809

Its a php extension that enable you to manage keys, encrypt, decrypt
with gpg and php.

Yann Larrivee
www.phpquebec.org

On Fri, 2003-06-06 at 18:44, Ryan Vennell wrote:
> chances are, if it's possible it'd be a plugin or script on the PGP homepage.  try 
> there.  or maybe try http://php.resourceindex.com/  they may have something of use 
> to you....
> 
> -Ryan
> 
> 
> 
> 
> >>> Ben Cheng<[EMAIL PROTECTED]> 06/06/03 08:54AM >>>
> Any way in PHP to grab form info and then encrypt it with PGP before 
> sending it out as an email?
> 
> -Ben
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 




--- End Message ---
--- Begin Message ---
On Saturday 07 June 2003 17:12, Bix wrote:

> The best way to avoid SID "Hijacks" is to assign an IP variable, and an
> expiration....

Never rely on an IP address to be unique to a particular browser/user. For 
reasons why search archives.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I'm pretending that we're all watching PHIL SILVERS instead of RICARDO
MONTALBAN!
*/


--- End Message ---
--- Begin Message ---
On Saturday 07 June 2003 05:42, Luis Lebron wrote:
> I know there is a lot of expertise on running web servers in this group.
> So, I'm going to ask a couple of questions.
>
> I am currently a public web server with an iptables firewall. A security
> consultant has suggested that we buy a separate firewall for the firewall
> instead of running iptables. 

If you know what you're doing then an iptables based firewall is as secure as 
any paid-for product.

> He recommended a Symantec VelociRaptor or one
> of their firewall appliances.

Did he give reasons why?

> Does this sound like good advice? Are there any other models we sould look
> at?

Any consultant worth their fees should give a summary of what's available and 
pros and cons of each and why they have come to the recommendation that they 
have _based on your needs_.

If you're still looking for a non-commercial solution then do a quick search 
on freshmeat.net and sourceforge.net.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
If any man wishes to be humbled and mortified, let him become president
of Harvard.
                -- Edward Holyoke
*/


--- End Message ---
--- Begin Message ---
Hi,
Feeling a little braindead, please help.
The below program as you can see is extremly simple,
it connects to the database and runs a select (COUNT) query, this query will
return 5 rows...so far so good, everything is working but I have no idea how
to assign each of the rows to a variable so I can use it...
something like:
$one=$row[1];
$two=$row[2];
$thr=$row[3];

heres the code:

<?php
require "configbwh.php";

$connected=mysql_connect ("$hostt", "$userr", "$passs") or die ('I cannot
connect to the database because: ' . mysql_error());
mysql_select_db ("$db");

$tt = "SELECT ptype, count(*) FROM mylist WHERE ptype IN ('1', '2', '3',
'4','5') GROUP BY ptype";

if($res= mysql_query($tt))
{
while($row = mysql_fetch_row($res))
 {
print($row[1]);
 }
}
?>

Cheers,
-Ryan


--- End Message ---
--- Begin Message ---
Hi,
Basically I am offering some packages and I want to say:


These are the following packages with your account:
package1 (-$row1-)
package2 (-$row2-)
package3 (-$row3-)
package4 (-$row4-)
package5 (-$row5-)


how to do it?

Thanks,
-Ryan


> Maybe you should tell us what you really want to do?
> Usually you don't just assign a row value to a variable.
> 
> Sincerely
> 
> berber
> 
> Visit http://www.weberdev.com/ Today!!!
> To see where PHP might take you tomorrow.
> 
> 
> -----Original Message-----
> From: Ryan A [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, June 07, 2003 8:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] please help, simple problem (i think)
> 
> 
> Hi,
> Feeling a little braindead, please help.
> The below program as you can see is extremly simple,
> it connects to the database and runs a select (COUNT) query, this query
> will return 5 rows...so far so good, everything is working but I have no
> idea how to assign each of the rows to a variable so I can use it...
> something like: $one=$row[1]; $two=$row[2]; $thr=$row[3];
> 
> heres the code:
> 
> <?php
> require "configbwh.php";
> 
> $connected=mysql_connect ("$hostt", "$userr", "$passs") or die ('I
> cannot connect to the database because: ' . mysql_error());
> mysql_select_db ("$db");
> 
> $tt = "SELECT ptype, count(*) FROM mylist WHERE ptype IN ('1', '2', '3',
> '4','5') GROUP BY ptype";
> 
> if($res= mysql_query($tt))
> {
> while($row = mysql_fetch_row($res))
>  {
> print($row[1]);
>  }
> }
> ?>
> 
> Cheers,
> -Ryan
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
I guess you mean something like : 

<?
$result=mysql_query("Select PackageName FROM Packages ORDER BY
PackageName") or die(mysql_error());
While($row = mysql_fetch_object($result)) {
        Echo"$row->PackageName <BR>";
}
?>


Sincerely

berber

Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.

-----Original Message-----
From: Ryan A [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 07, 2003 9:06 PM
To: Boaz Yahav
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] please help, simple problem (i think)


Hi,
Basically I am offering some packages and I want to say:


These are the following packages with your account:
package1 (-$row1-)
package2 (-$row2-)
package3 (-$row3-)
package4 (-$row4-)
package5 (-$row5-)


how to do it?

Thanks,
-Ryan


> Maybe you should tell us what you really want to do?
> Usually you don't just assign a row value to a variable.
> 
> Sincerely
> 
> berber
> 
> Visit http://www.weberdev.com/ Today!!!
> To see where PHP might take you tomorrow.
> 
> 
> -----Original Message-----
> From: Ryan A [mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 07, 2003 8:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] please help, simple problem (i think)
> 
> 
> Hi,
> Feeling a little braindead, please help.
> The below program as you can see is extremly simple,
> it connects to the database and runs a select (COUNT) query, this 
> query will return 5 rows...so far so good, everything is working but I

> have no idea how to assign each of the rows to a variable so I can use

> it... something like: $one=$row[1]; $two=$row[2]; $thr=$row[3];
> 
> heres the code:
> 
> <?php
> require "configbwh.php";
> 
> $connected=mysql_connect ("$hostt", "$userr", "$passs") or die ('I 
> cannot connect to the database because: ' . mysql_error()); 
> mysql_select_db ("$db");
> 
> $tt = "SELECT ptype, count(*) FROM mylist WHERE ptype IN ('1', '2', 
> '3',
> '4','5') GROUP BY ptype";
> 
> if($res= mysql_query($tt))
> {
> while($row = mysql_fetch_row($res))
>  {
> print($row[1]);
>  }
> }
> ?>
> 
> Cheers,
> -Ryan
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Hi,
I dont have packageName there....just id,type

Plus i need to do this in 2 places....so if i could assign each counts
result  to a variable...it would be realllly easy.

Cheers,
-Ryan

----- Original Message -----
From: "Boaz Yahav" <[EMAIL PROTECTED]>
To: "Ryan A" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 8:11 PM
Subject: RE: [PHP] please help, simple problem (i think)


> I guess you mean something like :
>
> <?
> $result=mysql_query("Select PackageName FROM Packages ORDER BY
> PackageName") or die(mysql_error());
> While($row = mysql_fetch_object($result)) {
> Echo"$row->PackageName <BR>";
> }
> ?>
>
>
> Sincerely
>
> berber
>
> Visit http://www.weberdev.com/ Today!!!
> To see where PHP might take you tomorrow.
>
> -----Original Message-----
> From: Ryan A [mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 07, 2003 9:06 PM
> To: Boaz Yahav
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] please help, simple problem (i think)
>
>
> Hi,
> Basically I am offering some packages and I want to say:
>
>
> These are the following packages with your account:
> package1 (-$row1-)
> package2 (-$row2-)
> package3 (-$row3-)
> package4 (-$row4-)
> package5 (-$row5-)
>
>
> how to do it?
>
> Thanks,
> -Ryan
>
>
> > Maybe you should tell us what you really want to do?
> > Usually you don't just assign a row value to a variable.
> >
> > Sincerely
> >
> > berber
> >
> > Visit http://www.weberdev.com/ Today!!!
> > To see where PHP might take you tomorrow.
> >
> >
> > -----Original Message-----
> > From: Ryan A [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, June 07, 2003 8:54 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] please help, simple problem (i think)
> >
> >
> > Hi,
> > Feeling a little braindead, please help.
> > The below program as you can see is extremly simple,
> > it connects to the database and runs a select (COUNT) query, this
> > query will return 5 rows...so far so good, everything is working but I
>
> > have no idea how to assign each of the rows to a variable so I can use
>
> > it... something like: $one=$row[1]; $two=$row[2]; $thr=$row[3];
> >
> > heres the code:
> >
> > <?php
> > require "configbwh.php";
> >
> > $connected=mysql_connect ("$hostt", "$userr", "$passs") or die ('I
> > cannot connect to the database because: ' . mysql_error());
> > mysql_select_db ("$db");
> >
> > $tt = "SELECT ptype, count(*) FROM mylist WHERE ptype IN ('1', '2',
> > '3',
> > '4','5') GROUP BY ptype";
> >
> > if($res= mysql_query($tt))
> > {
> > while($row = mysql_fetch_row($res))
> >  {
> > print($row[1]);
> >  }
> > }
> > ?>
> >
> > Cheers,
> > -Ryan
> >
> >
> > --
> > 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
>
>


--- End Message ---
--- Begin Message ---
This was just an example :)

You can do :

<?
$result=mysql_query("Select * FROM Packages")  or die(mysql_error());
While($row = mysql_fetch_object($result)) { 
     Echo"package" . $row->id : $row->type <BR>"; 
}
?>

You can reuse $result if you need to or you can just assign it all to a
variable and dump it multiple times
down the page... up to you....

Sincerely

berber

Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.


-----Original Message-----
From: Ryan A [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 07, 2003 9:13 PM
To: Boaz Yahav
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] please help, simple problem (i think)


Hi,
I dont have packageName there....just id,type

Plus i need to do this in 2 places....so if i could assign each counts
result  to a variable...it would be realllly easy.

Cheers,
-Ryan

----- Original Message -----
From: "Boaz Yahav" <[EMAIL PROTECTED]>
To: "Ryan A" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 8:11 PM
Subject: RE: [PHP] please help, simple problem (i think)


> I guess you mean something like :
>
> <?
> $result=mysql_query("Select PackageName FROM Packages ORDER BY
> PackageName") or die(mysql_error());
> While($row = mysql_fetch_object($result)) { Echo"$row->PackageName 
> <BR>"; }
> ?>
>
>
> Sincerely
>
> berber
>
> Visit http://www.weberdev.com/ Today!!!
> To see where PHP might take you tomorrow.
>
> -----Original Message-----
> From: Ryan A [mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 07, 2003 9:06 PM
> To: Boaz Yahav
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] please help, simple problem (i think)
>
>
> Hi,
> Basically I am offering some packages and I want to say:
>
>
> These are the following packages with your account:
> package1 (-$row1-)
> package2 (-$row2-)
> package3 (-$row3-)
> package4 (-$row4-)
> package5 (-$row5-)
>
>
> how to do it?
>
> Thanks,
> -Ryan
>
>
> > Maybe you should tell us what you really want to do? Usually you 
> > don't just assign a row value to a variable.
> >
> > Sincerely
> >
> > berber
> >
> > Visit http://www.weberdev.com/ Today!!!
> > To see where PHP might take you tomorrow.
> >
> >
> > -----Original Message-----
> > From: Ryan A [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, June 07, 2003 8:54 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] please help, simple problem (i think)
> >
> >
> > Hi,
> > Feeling a little braindead, please help.
> > The below program as you can see is extremly simple,
> > it connects to the database and runs a select (COUNT) query, this 
> > query will return 5 rows...so far so good, everything is working but

> > I
>
> > have no idea how to assign each of the rows to a variable so I can 
> > use
>
> > it... something like: $one=$row[1]; $two=$row[2]; $thr=$row[3];
> >
> > heres the code:
> >
> > <?php
> > require "configbwh.php";
> >
> > $connected=mysql_connect ("$hostt", "$userr", "$passs") or die ('I 
> > cannot connect to the database because: ' . mysql_error()); 
> > mysql_select_db ("$db");
> >
> > $tt = "SELECT ptype, count(*) FROM mylist WHERE ptype IN ('1', '2', 
> > '3',
> > '4','5') GROUP BY ptype";
> >
> > if($res= mysql_query($tt))
> > {
> > while($row = mysql_fetch_row($res))
> >  {
> > print($row[1]);
> >  }
> > }
> > ?>
> >
> > Cheers,
> > -Ryan
> >
> >
> > --
> > 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
>
>


--- End Message ---
--- Begin Message ---
> Feeling a little braindead, please help.

You post here more than I do. 

> The below program as you can see is extremly simple,
> it connects to the database and runs a select (COUNT) query, this
query
> will
> return 5 rows...so far so good, everything is working but I have no
idea
> how
> to assign each of the rows to a variable so I can use it...
> something like:
> $one=$row[1];
> $two=$row[2];
> $thr=$row[3];
> 
> heres the code:
> 
> <?php
> require "configbwh.php";
> 
> $connected=mysql_connect ("$hostt", "$userr", "$passs") or die ('I
cannot
> connect to the database because: ' . mysql_error());
> mysql_select_db ("$db");
> 
> $tt = "SELECT ptype, count(*) FROM mylist WHERE ptype IN ('1', '2',
'3',
> '4','5') GROUP BY ptype";
> 
> if($res= mysql_query($tt))
> {
> while($row = mysql_fetch_row($res))
>  {
> print($row[1]);

$var[$row[0]] = $row[1];

Now $var is an array such as

$var[type 1] = count 1
$var[type 2] = count 2

To cycle through and display it:

foreach($var as $key => $value)
{ echo "$key : $value"; }

---John W. Holmes...

Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



--- End Message ---
--- Begin Message ---
I am running into a strange problem.  I have a script that parses a database
for results.  It cycles through the data one record at a time looking for
matches to the query.  Up til now I haven't had any problems as the results
have been limited in length.  Now I have one that has a significant length
and the bottom is cut off on IE6.  I haven't tried any earlier versions of
IE but Mozilla loads the entire page without this problem.  Has anyone run
across this?  Is there a way around it?

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388




--- End Message ---
--- Begin Message ---
Just as an additional note:  the page has one continuous table so another
potential problem would be a limit to the length of a table?

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-----Original Message-----
From: Larry Brown [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 1:55 PM
To: PHP List
Subject: [PHP] IE Pagelength issue

I am running into a strange problem.  I have a script that parses a database
for results.  It cycles through the data one record at a time looking for
matches to the query.  Up til now I haven't had any problems as the results
have been limited in length.  Now I have one that has a significant length
and the bottom is cut off on IE6.  I haven't tried any earlier versions of
IE but Mozilla loads the entire page without this problem.  Has anyone run
across this?  Is there a way around it?

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388




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



--- End Message ---
--- Begin Message ---
> I am running into a strange problem.  I have a script that parses a
> database
> for results.  It cycles through the data one record at a time looking
for
> matches to the query.  Up til now I haven't had any problems as the
> results
> have been limited in length.  Now I have one that has a significant
length
> and the bottom is cut off on IE6.  I haven't tried any earlier
versions of
> IE but Mozilla loads the entire page without this problem.  Has anyone
run
> across this?  Is there a way around it?

> Just as an additional note:  the page has one continuous table so
another
> potential problem would be a limit to the length of a table?

Probably and IE "feature" of only being able to handle a certain table
size. 

The "way around" it would be to end the table and start another every so
many rows... or split your rows up into Prev/Next pages...

Did I read correctly that you're selecting an entire database and then
using PHP to match criteria? Are you using a WHERE clause to do the
sorting? Sounds like you may be going about this the wrong way... if
not, carry on. 

---John W. Holmes...

Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



--- End Message ---
--- Begin Message ---
Example is a page that displays the concerts and bands at each concert for a
given spectator. Table one gives information on the spectator and has a
field that lists the concert events he/she has been to.  Table two lists
concerts along with location information and date along with bands and then
another table that lists band information.  There are several loops, the
first one is "while $spectator..." and within it a "while $concert..." and
within it a "while $band..."  So the resulting page can have user
information then a list with concert bands, concert bands, concert bands,
for each he/she has been to.  The one we are having a problem with has 27
concerts and IE stops at 25 and Mozilla goes all the way to the 27th.  I
will try and split each concert into its own table.  Just as a not each
concert listed gives the option to edit the concert information and a way to
edit the band information in addition to removing any one of them.  So there
are various buttons throughout.

Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388

-----Original Message-----
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 6:08 PM
To: 'Larry Brown'; 'PHP List'
Subject: RE: [PHP] IE Pagelength issue

> I am running into a strange problem.  I have a script that parses a
> database
> for results.  It cycles through the data one record at a time looking
for
> matches to the query.  Up til now I haven't had any problems as the
> results
> have been limited in length.  Now I have one that has a significant
length
> and the bottom is cut off on IE6.  I haven't tried any earlier
versions of
> IE but Mozilla loads the entire page without this problem.  Has anyone
run
> across this?  Is there a way around it?

> Just as an additional note:  the page has one continuous table so
another
> potential problem would be a limit to the length of a table?

Probably and IE "feature" of only being able to handle a certain table
size.

The "way around" it would be to end the table and start another every so
many rows... or split your rows up into Prev/Next pages...

Did I read correctly that you're selecting an entire database and then
using PHP to match criteria? Are you using a WHERE clause to do the
sorting? Sounds like you may be going about this the wrong way... if
not, carry on.

---John W. Holmes...

Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



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



--- End Message ---
--- Begin Message ---
If you "view source" in IE, do you see the entire page? If so, then it's
an IE display issue.

---John W. Holmes...

Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/

> -----Original Message-----
> From: Larry Brown [mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 07, 2003 7:30 PM
> To: [EMAIL PROTECTED]; PHP List
> Subject: RE: [PHP] IE Pagelength issue
> 
> Example is a page that displays the concerts and bands at each concert
for
> a
> given spectator. Table one gives information on the spectator and has
a
> field that lists the concert events he/she has been to.  Table two
lists
> concerts along with location information and date along with bands and
> then
> another table that lists band information.  There are several loops,
the
> first one is "while $spectator..." and within it a "while $concert..."
and
> within it a "while $band..."  So the resulting page can have user
> information then a list with concert bands, concert bands, concert
bands,
> for each he/she has been to.  The one we are having a problem with has
27
> concerts and IE stops at 25 and Mozilla goes all the way to the 27th.
I
> will try and split each concert into its own table.  Just as a not
each
> concert listed gives the option to edit the concert information and a
way
> to
> edit the band information in addition to removing any one of them.  So
> there
> are various buttons throughout.
> 
> Larry S. Brown
> Dimension Networks, Inc.
> (727) 723-8388
> 
> -----Original Message-----
> From: John W. Holmes [mailto:[EMAIL PROTECTED]
> Sent: Saturday, June 07, 2003 6:08 PM
> To: 'Larry Brown'; 'PHP List'
> Subject: RE: [PHP] IE Pagelength issue
> 
> > I am running into a strange problem.  I have a script that parses a
> > database
> > for results.  It cycles through the data one record at a time
looking
> for
> > matches to the query.  Up til now I haven't had any problems as the
> > results
> > have been limited in length.  Now I have one that has a significant
> length
> > and the bottom is cut off on IE6.  I haven't tried any earlier
> versions of
> > IE but Mozilla loads the entire page without this problem.  Has
anyone
> run
> > across this?  Is there a way around it?
> 
> > Just as an additional note:  the page has one continuous table so
> another
> > potential problem would be a limit to the length of a table?
> 
> Probably and IE "feature" of only being able to handle a certain table
> size.
> 
> The "way around" it would be to end the table and start another every
so
> many rows... or split your rows up into Prev/Next pages...
> 
> Did I read correctly that you're selecting an entire database and then
> using PHP to match criteria? Are you using a WHERE clause to do the
> sorting? Sounds like you may be going about this the wrong way... if
> not, carry on.
> 
> ---John W. Holmes...
> 
> Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E
> 
> PHP Architect - A monthly magazine for PHP Professionals. Get your
copy
> today. http://www.phparch.com/
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 




--- End Message ---
--- Begin Message ---
> What is the easiest way to find out how long a page takes to load?
> Is there a PHP script that can do this?

There is no way to do this by just PHP script IMHO, but I can imagine
something like this one. Very suck, but....

The idea is using PHP in order to write timestamp of the moment when
script starts and put it in JavaScript code which will be
onloaded. Script will calculate a difference and send it back to
server. This doesn't solve a situation when user and server are in
different timezones, this is point to improve. And also, I'm
interesting in ways of passing values on server without page
reloading. Currently I've done a trick with image's src, but it's a
silly way. Maybe someone knows a better one? Please send me an idea
(if off-topic, e-mails will be appreciated).

Here is a code:

================CODE BEGIN=============

<html>
<head>
<script language="javascript">
<!--
function LoadDone()
{
        now=new Date();
        //javascript timestamp is in miliseconds, but in php it's in seconds
        loadtime=Math.round(now.getTime()/1000)-"<? echo time(); ?>";
        //calling fake image in order to pass the value
        document.images['fakeimg'].src='log.php?lt='+loadtime;
}
//-->
</script>
</head>
<body onLoad="LoadDone()">
<img src="pixel.gif" name="fakeimg">
This is a long page
</body>
</html>

===========CODE END==============

Well, a loading time will be sent to log.php

Hope this helps.

-- 
Best regards,
Martchukov Anton aka vh                    mailto:[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
Hello All,
        I have a problem with downloading new PHP 4.3.2. Whenever 
I try to download it from whichever mirror I got a HTTP 404 error. 
Could someone tell why?

                        Thanks Milan


--- End Message ---
--- Begin Message ---
Try a different mirror.

On Sat, 7 Jun 2003 [EMAIL PROTECTED] wrote:

> Hello All,
>       I have a problem with downloading new PHP 4.3.2. Whenever
> I try to download it from whichever mirror I got a HTTP 404 error.
> Could someone tell why?
>
>                       Thanks Milan
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hi,
Heres the code (very simple stuff) but not working: 

if(session_is_registered('my_email')){}
 else{
   do_session_crap();
 }


 function do_session_crap()
  {
   if(isset($id[0]))
   {$p1=$id[0];
   echo $p1;
   $_SESSION['p1']  = $p1; 
   
   }
   if(isset($id[1]))
   {$p2=$id[1];
   echo $p2;
   $_SESSION['p2']  = $p2;    
   }
   if(isset($id[2]))
   {$p3=$id[2];
   $_SESSION['p3']  = $p3;    
   }
   if(isset($id[3]))
   {$p4=$id[3];
   $_SESSION['p4']  = $p4;    
   }
   if(isset($id[4]))
   {$p5=$id[4];
   $_SESSION['p5']  = $p5;    
   }
   else {echo "not working";}
//   header("Location: my.login.php");
   exit;
  }

it always gives me "not working"
Any idea why?

-Ryan

--- End Message ---
--- Begin Message ---
Hi all,
Please disregard the last mail.
Cheers,
-ryan

--- End Message ---
--- Begin Message --- Is there anyway to do dtd validation of an xml file? I realize the expat implementation doesn't inherently support it. Is there anything that I could use from php to validate against the dtd?

Josh


--- End Message ---
--- Begin Message ---
Alright with the following code I am using is printing/echoing to the
browser a "1" before the html output. It's like it's adding 2 variables
together.

Here is what I am trying to do. I have a form that enters information to a
text file, and at the same time sends the information to a predetermined
email address. This email example is one that I made up on my server, but
will work for this example. I need it to stop printing the number "1" before
the rest of the page's output.

$address = "[EMAIL PROTECTED]";
$subject = "Your Feedback Page has been submitted\n";
$body = "The following is the information that was entered.<br>\r\n";
$body .= "Message Type: $messageType<br>\r\n";
$body .= "Subject: $subjectbody<br>\r\n";
$body .= "Other Subject: $otherSubject<br>\r\n";
$body .= "Comments: $comments<br>\r\n";
$body .= "User Name: $username<br>\r\n";
$body .= "Email Address: $email<br>\r\n";
$body .= "Telephone Number: $telephone<br>\r\n";
$body .= "Fax Number: $fax<br>\r\n";
$body .= "Contact Option: $contact<br>\r\n";
$moreheaders = "From:
[EMAIL PROTECTED]: text/html\n";
$send = mail($address, $subject, $body, $moreheaders);
echo $send;


I noticed that the 1 is being entered in right as I call the Print command
or in this case "echo" (I have tried using 'print $send' aswell). Knowing
this doesn't solve my issue as all the echo/print command does in general is
to start referencing my variables from earlier within the same script.  Also
if you need the whole script I can send that aswell.  The part right here is
what's bugging me,because if I take this out of the script, it works fine,
just doesn't send an email but it still writes to the text fine and then
displays without the 1, the problem is somewhere in this script section. I'm
assuming, hehe
Any help would be much appreciated. Thanks in advance


--- End Message ---
--- Begin Message ---
> Alright with the following code I am using is printing/echoing to the
> browser a "1" before the html output. It's like it's adding 2
variables
> together.
> 
> Here is what I am trying to do. I have a form that enters information
to a
> text file, and at the same time sends the information to a
predetermined
> email address. This email example is one that I made up on my server,
but
> will work for this example. I need it to stop printing the number "1"
> before
> the rest of the page's output.
> 
> $address = "[EMAIL PROTECTED]";
> $subject = "Your Feedback Page has been submitted\n";
> $body = "The following is the information that was entered.<br>\r\n";
> $body .= "Message Type: $messageType<br>\r\n";
> $body .= "Subject: $subjectbody<br>\r\n";
> $body .= "Other Subject: $otherSubject<br>\r\n";
> $body .= "Comments: $comments<br>\r\n";
> $body .= "User Name: $username<br>\r\n";
> $body .= "Email Address: $email<br>\r\n";
> $body .= "Telephone Number: $telephone<br>\r\n";
> $body .= "Fax Number: $fax<br>\r\n";
> $body .= "Contact Option: $contact<br>\r\n";
> $moreheaders = "From:
> [EMAIL PROTECTED]:
text/html\n";
> $send = mail($address, $subject, $body, $moreheaders);
> echo $send;

Why are you echoing $send? If mail() succeeds, it returns 1 (TRUE),
which is assigned to $send, which you then print. The script is doing
exactly what you tell it to do. 

---John Holmes...



--- End Message ---
--- Begin Message --- I was wondering where I could get the rewrite urls for the rewriting of urls like here on php.net.

- Tularis

P.S. I don't think they're in the phpweb on CVS, I checked that already


--- End Message ---
--- Begin Message ---
On Sat, 7 Jun 2003, Tularis wrote:

> I was wondering where I could get the rewrite urls for the rewriting of 
> urls like here on php.net.
> 
> - Tularis
> 
> P.S. I don't think they're in the phpweb on CVS, I checked that already

What you see in phpweb is what you get, there is no
mod_rewrite, just a huge 404 handler.  For the related
sqlite stuff, see the systems cvs module.

Regards,
Philip


--- End Message ---
--- Begin Message ---
I would like to know where i should be looking to pass an image through PHP

Thanks

/ Phil

--- End Message ---
--- Begin Message --- Philip J. Newman wrote:
I would like to know where i should be looking to pass an image through PHP

Could you elaborate on what you mean by "pass an image through PHP"? I'm not quite sure what you mean. What exactly do you want to do?


Jean-Christian Imbeault


--- End Message ---
--- Begin Message ---
> I would like to know where i should be looking to pass an image
through
> PHP

Pass it from where to where? What to you mean by "pass"?

---John W. Holmes...

Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



--- End Message ---
--- Begin Message --- Not sure what you mean, but try passthru().

Philip J. Newman wrote:

I would like to know where i should be looking to pass an image through PHP

Thanks

/ Phil



-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.



--- End Message ---
--- Begin Message ---
Hello. I'm attempting to upload a file using the script below and I'm not
having any success. The temp directory I'm using does exist and is
writeable. When I browse for the file then hit the send button it appears to
be working then displays the form again with no errors. I look for the file
on the server and it isn't there. Any advice on how to get this working?

Thanks!
Rod


---------------------------------------------------------------

<html>
<head>
<title>Listing 9.14 A file upload script</title>
</head>
<?php
$file_dir = "/home/corrdev/htdocs/php24/scrap/uploads";
$file_url = "http://corros.colo.hosteurope.com/dev/php24/scrap/uploads";;

foreach( $HTTP_POST_FILES as $file_name => $file_array ) {
 print "path: ".$file_array['tmp_name']."<br>\n";
 print "name: ".$file_array['name']."<br>\n";
 print "type: ".$file_array['type']."<br>\n";
 print "size: ".$file_array['size']."<br>\n";

 if ( is_uploaded_file( $file_array['tmp_name'] )
  && $file_array['type'] == "image/gif" ) {
  move_uploaded_file( $file_array['tmp_name'], "$file_dir/$file_name")
   or die ("Couldn't copy");
  print "<img src=\"$file_url/$file_name\"><p>\n\n";
 }
}

?>
<body>
<form enctype="multipart/form-data" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="51200">
<input type="file" name="fupload"><br>
<input type="submit" value="Send file!">
</form>
</body>
</html>



--- End Message ---
--- Begin Message ---
I can't build php-4.3.2 with apache 2.0 under a RedHat 9 box.

I've upgraded apache to 2.0.46 by adapting a rpm source packet.
The configure section within the spec file looks like this

./configure -C \
        --prefix=%{_sysconfdir}/httpd \
        --exec-prefix=%{_prefix} \
        --bindir=%{_bindir} \
        --sbindir=%{_sbindir} \
        --mandir=%{_mandir} \
        --libdir=%{_libdir} \
        --sysconfdir=%{_sysconfdir}/httpd/conf \
        --includedir=%{_includedir}/httpd \
        --libexecdir=%{_libdir}/httpd/modules \
        --datadir=%{contentdir} \
        --with-mpm=$mpm \
        --enable-so \
        --enable-suexec --with-suexec \
        --enable-suexec --with-suexec \
        --with-suexec-caller=%{suexec_caller} \
        --with-suexec-docroot=%{contentdir} \
        --with-suexec-logfile=%{_localstatedir}/log/httpd/suexec.log \
        --with-suexec-bin=%{_sbindir}/suexec \
        --with-suexec-uidmin=500 --with-suexec-gidmin=500

Apache is up and running.

php compilation fails even when I try just:

[EMAIL PROTECTED] php-4.3.2]# ./configure  --with-apxs2=/usr/sbin/apxs
creating cache ./config.cache
checking host system type... i586-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.35 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for member fd in BUFF *... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path
using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)

The output of /usr/sbin/apxs follows:
Usage: apxs -g [-S <var>=<val>] -n <modname>
       apxs -q [-S <var>=<val>] <query> ...
       apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
               [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
               [-Wl,<flags>] [-p] <files> ...
       apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
       apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Aborting


Well: perl is installed, apxs is where it's supposed to be and
apache 2 was built using --enable-so:

[EMAIL PROTECTED] php-4.3.2]# httpd -l
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c



What can I do?



--- End Message ---
--- Begin Message ---
> I can't build php-4.3.2 with apache 2.0 under a RedHat 9 box.

Okay, Apache2 has some issues, and Redhat itself always
has issues with it's "unique" setups...

[snip]

> php compilation fails even when I try just:
> 
> [EMAIL PROTECTED] php-4.3.2]# ./configure  --with-apxs2=/usr/sbin/apxs

Okay

[snip]

> Configuring SAPI modules
> checking for AOLserver support... no
> checking for Apache 1.x module support via DSO through APXS... no
> checking for Apache 1.x module support... no
> checking for member fd in BUFF *... no
> checking for mod_charset compatibility option... no
> checking for Apache 2.0 module support via DSO through APXS... no
> checking for Apache 2.0 handler-module support via DSO through APXS...
> 
> Sorry, I cannot run apxs.  Possible reasons follow:

[snip]

What do these commands output?

# /usr/sbin/httpd -v
# /usr/sbin/apxs -q SBINDIR
# /usr/sbin/apxs -q TARGET


Regards,
Philip


--- End Message ---
--- Begin Message ---
Hi all
How can I print table in my page without I use print command from file
menu? I means just table not all page
Can anybody help me?
Thanks,



--- End Message ---
--- Begin Message --- Mudhar wrote:

How can I print table in my page without I use print command from file menu? I means just table not all page

I'm not sure I understand ... what do you mean by print? Print to a paper printer or display in the web browser?


Can you explain more clearly exactly what it is you want to do?

Jean-Christian Imbeault


--- End Message ---
--- Begin Message ---
> How can I print table in my page without I use print command from file
> menu? I means just table not all page

Make a "print-friendly" page that just contains your table. Printing is
pretty much a client side issue, not a PHP issue. 

---John W. Holmes...

Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



--- End Message ---
--- Begin Message ---
i'm trying to make a POST request to my merchant's https server using
the following:

foreach($HTTP_POST_VARS as $key => $value){
                        $value = urlencode(stripslashes($value));
                        $req .= "&$key=$value";
                }
                
                $header .= "POST /gw/native/direct2.1 HTTP/1.0\r\n";
                $header .= "Content-Type:
application/x-www-form-urlencoded\r\n";
                $header .= "Content-Length: ".strlen($req)." \r\n\r\n";
                $fp = fsockopen('ssl://secure.netbilling.com', 443,
$errno, $errstr, 30);

                if(!$fp){
                        echo $errstr($errno);
                } else {
                        fputs($fp, $header . $req);
                        while(!feof($fp)){
                                $res = fgets($fp, 1024);
                        }
                        
                        fclose($fp);
                }


but I get following error:

Warning: fsockopen() [function.fsockopen]: no SSL support in this build
in
/usr/home/trivisions/html/sextoymerchant.com/payment/checkout_confirm.ph
p on line 64

So does this mean that my PHP installation does not support SSL, and
that I have to recompile PHP again?

I looked at the PHP installation configure options but did not see
anything regarding SSL, so how would I install this?

I am running  PHP Version 4.3.1



--- End Message ---

Reply via email to