Re[2]: [PHP] Problem with PHP as CGI

2001-05-24 Thread Richard Kurth

Hello ..s.c.o.t.t..,
I fixed the problem it seems there was something wrong with the file
when it was uploaded to the server. It works now
I am using shebang lines because this script has to run
at root it runs other programs on the server that need to be run at
root. php is set up to just run scripts at the Command line. I have php
as a DSO for Apache.

Thursday, May 24, 2001, 2:19:35 AM, you wrote:

..s.c.o.t.t.. im not sure that i understand the question, but the way
..s.c.o.t.t.. i've got my apache/PHP configured, i dont ever see
..s.c.o.t.t.. the actual path to the PHP binary.

..s.c.o.t.t.. what type of problem are you having ??

..s.c.o.t.t.. PS: i never use shebang lines in my PHP scripts;
..s.c.o.t.t.. i have apache configured to handle *.php files
..s.c.o.t.t.. as PHP code.



 -Original Message-
 From: midget2000x [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 23, 2001 20:33
 To: Stuart J. Browne; [EMAIL PROTECTED]
 Subject: Re: [PHP] Problem with PHP as CGI
 
 
 This is not an answer, but a further question on this subject.  Do you (or
 anybody) know of a way to keep the path to PHP from showing up when the PHP CGI
 script is hit via HTTP?
 
 On Wed, 23 May 2001, Stuart J. Browne wrote:
  Richard Kurth [EMAIL PROTECTED] wrote in message
  [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  
I have php config as a cgi and I put this at the top of my script
  
#!/usr/local/bin/php -q
  
when ever I run this script at root in
telnet I get this message below. 
   Error in argument 1, char 3: option not found
   Error in argument 1, char 3: option not found
  
  Code snippett would help, but it sounds as if the first line (after the
  hash-bang) is NOT ?.
  
  I've found that oddities occur without that as the first line of your
  script..
  
  bkx
  
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 -- 
 ---
 providing the finest in midget technology
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 




-- 
Best regards,
 Richard  
mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] regex for dynamic highlighting in search results...need help

2001-05-24 Thread hopeless

Forwarded to the list for suggestions...my regex is pretty rusty...

--


I've got a string full of HTML, and I'd like to highlight specific words in
the text by surrounding it with span class=highlight/span tags. That's
pretty simple:

$strIn = eregi_replace(([^a-z'-])($highlight)([^a-z'-]), \\1span
class=\highlight\\\2/span\\3, $strIn);

I gets difficult when I want to exclude any instances of the word that
happen to be within an HTML tag. Otherwise I could end up with a
href=http://site.com/span
class=highlighthighlight/span/default.htm, for example, and that's no
good.

The following regex is the closest I've gotten (it's just the previous one
plus another subexpression), but it doesn't match anything at all. It seems
like it should work to me, though:

$strIn = eregi_replace(([^a-z'-])($highlight)([^a-z'-])([^]*)^,
\\1span class=\highlight\\\2/span\\3, $strIn);

If any regex-wizzes could help me out with this one, I'd be extra grateful.

thanks,
-josh

* [ www: endquote.com ] [ icq: 940141 ] [ aim: endquote ]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] select the most repeated value in a field

2001-05-24 Thread Jacky

Hi people
How do i query to select the most repeated values in a field, say if I hacve list of 
values as a,b,c,d,e to be submitted to a field call result in a table. And I want to 
know which value appear most in that result field amoung all records.
cheers
Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you've set for yourself



[PHP] select the most repeated value in a field

2001-05-24 Thread Jacky

Hi people
How do i query to select the most repeated values in a field, say if I hacve list of 
values as a,b,c,d,e to be submitted to a field call result in a table. And I want to 
know which value appear most in that result field amoung all records.
cheers
Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you've set for yourself




Re: [PHP] Date (Year) .. adding..

2001-05-24 Thread Rob Hardowa


I like Tyler's solution.  It is better to move the call to date() outside the 
loop.  You only need to get the current year once, and then add one onto it 
each iteration.  If you leave the call to date() inside the loop then it 
calculates the current date each time and that uses CPU power and time.  
Looking at it in list form, here is the difference:

Original Solution
-
Set x to 0
while x is less than 20
 calculate current year
 add value of x to year
 print year
 increase x by 1 

New solution
--
set x to 0
Get current year
while x is less than 20
 print year
 increase year by one
 increment x by 1

It's much faster to not have to call a function when it's not required, or in 
this case, where the value has already been computedespecially when the 
function is in a loop.  :)

On Tuesday 22 May 2001 09:30 pm, you wrote:
 ?
 $x=0;
 $year = date(Y);
 while($x  20)
 {
 $year = $year+1;
 print($year . \n);
 $x++;
 }
 ?

 Try that.

 Tyler

  -Original Message-
  From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, May 22, 2001 11:20 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Date (Year) .. adding..
 
 
  I'm trying to figure out how to add to the year:
 
  for($x=0; $x20; $x++)
  {
  $year = date(Y + $x);
  print($year . \n);
  }
 
  I've tried several variations on the above and cannot get the year to
  come out.
 
  Any suggestions?
 
  Thanks
  Jason
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-24 Thread ~~~i LeoNid ~~

On 20 May 2001 16:16:47 -0700 impersonator of [EMAIL PROTECTED] (Manuel
Lemos) planted I saw in php.general:

Weren't you the one that was saying that you opposed to the existence of a
PHP compiler?  Despite your opposition, Zeev and Andi brought it up to the
joy of many PHP users.

Hi. Is it (compiler) suppose to be supported on the server _in addition_
to normal php engine? anyway, for the user's (lonely wolf's:) prospective
- where is it - and how much?

Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: 
--
i LeoNid

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] select the most repeated value in a field

2001-05-24 Thread Maxim Maletsky

use GROUP BY


SELECT 
result,
COUNT(result) AS res_count
FROM
result
GROUP BY
result
ORDER BY
res_count
DESC
;

Sincerely, 

 Maxim Maletsky
 Founder, Chief Developer
 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com



-Original Message-
From: Jacky [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 4:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] select the most repeated value in a field


Hi people
How do i query to select the most repeated values in a field, say if I hacve
list of values as a,b,c,d,e to be submitted to a field call result in a
table. And I want to know which value appear most in that result field
amoung all records.
cheers
Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you've set for
yourself


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] select the most repeated value in a field

2001-05-24 Thread George E. Papadakis

select result,count(*) as cnt from table group by result order by cnt desc ;


- Original Message -
From: Jacky [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 24, 2001 10:02 PM
Subject: [PHP] select the most repeated value in a field


Hi people
How do i query to select the most repeated values in a field, say if I hacve
list of values as a,b,c,d,e to be submitted to a field call result in a
table. And I want to know which value appear most in that result field
amoung all records.
cheers
Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you've set for
yourself




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Changing $PHP_AUTH_USER and $PHP_AUTH_PW

2001-05-24 Thread Derek

Changing $PHP_AUTH_USER and $PHP_AUTH_PW

I would like to automatically set these variables without actually prompting
the user to submit a username or password in the authentication window.

It would mean I could mimic cookie functionality in cookie-disabled browsers
to track users, etc.

Is this possible?...and how?

Thanks in advance for any help offered.

Derek



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Using html templates

2001-05-24 Thread Rob Hardowa

I'm using PHPLib as well and am not all that happy with it.

It was working just fine until our host decided to upgrade to PHP4.  After 
that, any values being inserted to HTML using templates that had dollar signs 
and values would not display!  For example, if you said admission was $15.00 
all that would display was .00!!! argh!!  I emailed the phplib list and heard 
others had the same problem.  The recent solution has been to modify your 
phplib code, unfortunately that keeps you from doing a flash upgrade of any 
future stuff.  Which brings me to the next problem.

IN a recent thread on the phplib mailing list titled the future of phplib, 
a number of interesting points were brought up.  In particular, the 
developers of PHPLib don't feel 'Templates' is the solution any longer, and 
they make the recommendation to the reader that they learn XML instead.
There is a post regarding the future of PHPlib at this URL:

http://www.geocrawler.com/lists/3/Web/195/125/4988613/

Unfortunately the site was down when I posted this email so I am unable to 
quote anything from it.  You can make a decision regarding your current and 
future projects based on the statement made in that post.

There are other template solutions, one being Fast Templates.  I did use this 
at one time with success but ported to PHPlib because I required it for 
sessions in PHP3.  There was also discussion about PHPLib Templates being 
faster.  I am reading a book at the moment which lists two other template 
alternatives but I am unable to make suggestions based on what I've read so 
far

Rob

On Wednesday 23 May 2001 08:12 am, you wrote:
 I am using libphp and quite satisfied with it.
 http://phplib.netuse.de/

 --
 Tolga 'thorr' Orhon

 Jamie Thompson [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

  what is the best way of using html templates to display data from a

 database?

  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Checking an URL

2001-05-24 Thread YoBro

Sweet, that works!
How simple was that, I was expecting something real complicated.

Thanks dude.


Jason Murray [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Don't suppose you have some example code on how to do that?

 if ($HTTPS)
 {
   // You're in secure mode
 }

 Jason

 --
 Jason Murray
 [EMAIL PROTECTED]
 Web Developer, Melbourne IT
 What'll Scorpy use wormhole technology for?
 'Faster pizza delivery.'

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Threaded discussion Phorum algorithm

2001-05-24 Thread Martin Cabrera Diaubalick

Hello Ivan, there's a nice article at DevShed.com explaining this

Try http://www.devshed.com/Server_Side/Administration/TalkToMe/print.html

HTH
Regards

- Original Message - 
From: rodrigo [EMAIL PROTECTED]
To: php php [EMAIL PROTECTED]
Sent: Thursday, May 24, 2001 4:24 AM
Subject: [PHP] Threaded discussion Phorum algorithm


 I need to implement a custom discussion phorum for a news site. I would
 like to know what is the most common algorithm to display the message
 list threaded and indented. This to accomplish one task: to show the
 reply to a post directly below the parent post and so on.
 
 Thanks in advance.
 -- 
 
 Ivan R. Quintero E.* (507)228-3477 
 Aptdo 1263* (507)228-9105
 Balboa, Ancon* 612-1103
 Republic of Panama * 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] pulling data out of a string

2001-05-24 Thread Dan Lowe

Previously, Richard Kurth said:

 That my problem www is not always the host when it is a sub-domain it
 would be like mysit.domain.net or sometimes people put a few extra
 periods in the domain name like  www.my.test.net  I thought maybe I
 could look at the string and find out how many periods are in it then
 if there is a www before the first period if not treat it like a
 sub-domain. The last period is is any thing after it would be the tld.
 How would I count the periods

This is a little ugly, maybe, but it works:

?php
$hostname = 'www.myhost.test.com';

$prefix = preg_replace( /\..*$/, ,  $hostname);
$middle = preg_replace( /^[^.]+\./,  ,  $hostname);
$middle = preg_replace( /\.[^.]+$/,  ,  $middle);
$suffix = preg_replace( /^.*\./, ,  $hostname);

print prefix= $prefixbr;
print suffix= $suffixbr;
print middle= $middlebr;
?

Will output:

prefix= www
middle= myhost.test
suffix= com

 -d

-- 
If God dropped acid, would he see people?  -George Carlin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Executing PHP stored in MySQL-database?

2001-05-24 Thread aquariuz

Hi,
Is it possible to execute PHP stored in a MySQL-database?
If so, how to do it?

In the example below I store Hello world!BR in a database, and next I
echo it. Hello world! is printed on the screen.

But how to
* store PHP-code in a database
* and execute it?

Any help would be appreciated.

Greetz,
aquariuz


---
?PHP
$connect=@mysql_connect($dbhost,$dbuser,$dbpassword);
if($connect) {
  mysql_select_db($dbname);

  $sql=mysql_query(DELETE FROM test WHERE id=1);
  $sql=mysql_query(INSERT INTO test (id, query) VALUES (1, 'Hello
world!BR'));

  $query=SELECT query FROM test WHERE id=1;
  $sql=mysql_query($query);
  $row=mysql_fetch_array($sql);
  echo $row[query];
}
?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] select the most repeated value in a field

2001-05-24 Thread [EMAIL PROTECTED]

After I use that query, I got list of result group by DESC under variable
name  firstchoice, how could I index this firstchoice variable so that I
can take each individual result to display according to the page layout
position?
Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you've set for
yourself
- Original Message -
From: George E. Papadakis [EMAIL PROTECTED]
To: Jacky [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, May 24, 2001 2:56 AM
Subject: Re: [PHP] select the most repeated value in a field


 select result,count(*) as cnt from table group by result order by cnt desc
;


 - Original Message -
 From: Jacky [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, May 24, 2001 10:02 PM
 Subject: [PHP] select the most repeated value in a field


 Hi people
 How do i query to select the most repeated values in a field, say if I
hacve
 list of values as a,b,c,d,e to be submitted to a field call result in a
 table. And I want to know which value appear most in that result field
 amoung all records.
 cheers
 Jack
 [EMAIL PROTECTED]
 There is nothing more rewarding than reaching the goal you've set for
 yourself






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Variable Passing

2001-05-24 Thread Dan Lowe

Previously, Internaut said:
 Thankx for your reply, would you recommend setting the register_globals to
 on, would this be safe to do this?

It's not any more or less safe than using the $HTTP_POST_VARS or
$HTTP_GET_VARS arrays instead, but it could be less typing :-)

Note that for the arrays mentioned here to work, track_vars must be on.  In
recent versions of PHP (4.0.1 and later, I think?) that is always the case.

 -dan

-- 
If you had to identify, in one word, the reason why the human race has not
achieved, and never will achieve, its full potential, that word would be
meetings. -Dave Barry, 16 Things That Took Me 50 Years to Learn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] second MAX and so on

2001-05-24 Thread Jacky

hi people,
When I use this query below: 
select result , count(result) as choice from result group by result order by choice 
desc;

It returns the number of times each value appear in a result field in order of DESC 
under variable choice, right? 
At this point, I know how to pick MAX(choice) but how do I pick second MAX and so on 
to the last one so that I can print each of them on to the position on the page as I 
wish?
cheers
Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you've set for yourself



Re: [PHP] ereg questions

2001-05-24 Thread Dan Lowe

Previously, Ker Ruben Ramos said:
 hmm, got a little question.
 1. what's that \\1 and \\2? got any info on where u got that from?

Expands to whatever the parentheses surrounded during the match.  So
in this case you have:

Match pattern:  a href=\([^/]+)/(.*)\\.html\
Replace pattern:a href=\file.php?file=\\1\\2.php\

There are two places in the match pattern where there are ().  These are
memorized (rather whatever they actually matched was memorized) and then
you can spit it back out in the replacement pattern using \\1, \\2, etc.

 -dan

 2. what if it's just href=anything.html ? i mean.. something like it got
 lots of subdirectories or not.
 
 Thanks
 - Original Message -
 From: Mark Maggelet [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, May 24, 2001 1:19 AM
 Subject: Re: [PHP] ereg questions
 
 
  On Thu, 24 May 2001 01:01:16 +0800, Ker Ruben Ramos
  ([EMAIL PROTECTED]) wrote:
  How do i change all 'a href=anything/here.html' to 'a
  href=file.php?file=anythinghere.php'
  any help out there?
 
  I would go:
 
  $string = ereg_replace(
  a href=\([^/]+)/(.*)\\.html\,
  a href=\file.php?file=\\1\\2.php\,
  $string);
 
  - Mark
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
If carpenters made buildings the way programmers make programs, the first
woodpecker to come along would destroy all of civilization.
-Weinberg's Second Law

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Executing PHP stored in MySQL-database?

2001-05-24 Thread Pavel Jartsev

aquariuz wrote:
 
 Hi,
 Is it possible to execute PHP stored in a MySQL-database?
 If so, how to do it?
 
 In the example below I store Hello world!BR in a database, and next I
 echo it. Hello world! is printed on the screen.
 
 But how to
 * store PHP-code in a database
 * and execute it?
 
 
 ...

Use eval().
http://www.php.net/manual/en/function.eval.php


-- 
Pavel a.k.a. Papi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to manage login ???

2001-05-24 Thread Bass¨Ð¦õªv

Hi

I have a question . At some website which have webmail serivce , they won't
use SSL for login .
Then how can they protect clinet's information and email ??

they use sessions when login in ??
use sessions is secure ??

Is there another security method in PHP ?





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] select count

2001-05-24 Thread Jacky

Hi people
question about query when I use this:
select result, count(result) as choice group by result order by choice desc;

How do I print choice in my page when the query return value back to me?
any help is appreciated
cheers
Jack
[EMAIL PROTECTED]
There is nothing more rewarding than reaching the goal you've set for yourself



RE: [PHP] MySQL Select

2001-05-24 Thread Jon Haworth

Because you can also do:

if ($array_result = mysql_fetch_array($result)) {
  do {
// do your thing here
  } while ($array_result = mysql_fetch_array($result));
} else {
  echo no records found!;
}

Cheers
Jon


-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2001 21:28
To: [EMAIL PROTECTED]
Subject: Re: [PHP] MySQL Select


why not just simply it more

 while ($r = mysql_fetch_array($result))
 {
  // do your thing here
 }

--

  Chris Lee
  [EMAIL PROTECTED]



Jon Haworth [EMAIL PROTECTED] wrote in message
67DF9B67CEFAD4119E4200D0B720FA3F53FA57@BOOTROS">news:67DF9B67CEFAD4119E4200D0B720FA3F53FA57@BOOTROS...
 Something like:

 if ($array_result = mysql_fetch_array($result)) {
 do {
 // do your thing here
 } while ($array_result = mysql_fetch_array($result));
 }

 HTH
 Jon


 -Original Message-
 From: Jamie Thompson [mailto:[EMAIL PROTECTED]]
 Sent: 23 May 2001 14:33
 To: [EMAIL PROTECTED]
 Subject: [PHP] MySQL Select


 ok...sorry to ask a stupid question but

 $result = mysql_query(SELECT jazz FROM funk WHERE foo='bar')

 but where do you go from there. How would you iterate through the array a
 row at a time, doing your thing as you go along?

 thanks,

 jamie


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



 **
 'The information included in this Email is of a confidential nature and is
 intended only for the addressee. If you are not the intended addressee,
 any disclosure, copying or distribution by you is prohibited and may be
 unlawful. Disclosure to any party other than the addressee, whether
 inadvertent or otherwise is not intended to waive privilege or
 confidentiality'

 **

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Resize Images 'On The Fly'

2001-05-24 Thread Jamie Thompson

Is there any way you can resize images 'on the fly' with php?

I have images in a directory and i want to pull one out at random and
display it at 50% of it's original size. I was thinking i could read the
file into a variable and then use one of php's image functions on it but I
can't find any documentation for this? is it possible?

Thanks,

Jamie :-)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Resize Images 'On The Fly'

2001-05-24 Thread Andy Woolley

Jamie,

$imagesize = GetImageSize(yourfile.gif);

Will return an array of image properties that you can use.

Andy.
- Original Message -
From: Jamie Thompson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 24, 2001 11:46 AM
Subject: [PHP] Resize Images 'On The Fly'


 Is there any way you can resize images 'on the fly' with php?

 I have images in a directory and i want to pull one out at random and
 display it at 50% of it's original size. I was thinking i could read the
 file into a variable and then use one of php's image functions on it but I
 can't find any documentation for this? is it possible?

 Thanks,

 Jamie :-)


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] A web server query

2001-05-24 Thread Shashwat

most of the servers support PHP all you have to do is install it
right... I have tested it with Apache, Sambar, PWS, IIS, Xitami

check 'em out!

Parag Mehta [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi Guys,

 new to the list.

 i would like to know if there is any smal webserver like boa or thttpd
 which supports php ?

 best regards,

 parag mehta

 Kernel panic: I have no root and I want to scream --- perfect error
message


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] does preg_replace_callback with class methods?

2001-05-24 Thread AK47

I was using preg_replace with the '/F' parameter, and it was working
perfectly till v4.0.4pl1.
Now it has been substituted by preg_replace_callback.

Does it work with a class method as a callback function?

If it does, how should it be written?

I'm asking this because in each of these cases:

- preg_replace_callback(/{([A-Z_][A-Z0-9_]*)}/i', $this-callmeback,
$text);
- preg_replace_callback(/{([A-Z_][A-Z0-9_]*)}/i', \$this-callmeback,
$text);
- preg_replace_callback(/{([A-Z_][A-Z0-9_]*)}/i', '$this-callmeback',
$text);

I get a warning:

preg_replace_callback() requires argument 2, [...], to be a valid
callback

More: there is another drawback. With preg_replace + '/F' parameter I
could
also specify additional parameters in the command line. Now I can't.

Was it really necessary to change it this way?

---
Gabriele Carioli
Management Innovative Tools S.p.A.
Piazza Falcone Borsellino n. 23
47100 Forlì (FC) - ITALY (EU)
tel. 0039.0543.412941
fax. 0039.0543.412929
http://www.mit.it/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] configure php-module over iis

2001-05-24 Thread Marcos

hi to @all,

   i would like to know how can i install php module over iis. i would like to know 
also how does php work on sql server.

best regards,

marcos




Re: [PHP] Constantly running?

2001-05-24 Thread Plutarck

http://www.phpwizard.net/projects/phpIRC/

phpIRC uses such functionality to run such a daemon without having to use
crontab. However, PHP just doesn't do it all that fantastically on it's own.
phpIRC can often run for 3-4 days, but after that it tends to die off or
stop functioning. Meaning you can't rely on your script always running, so
often it's best not to even bother.

Best to just use crontab with a timed script or use a completely different
solution for an 'always on' program such as one written in java.


Plutarck

Chris [EMAIL PROTECTED] wrote in message
009e01c0e2cf$1bf62e00$c61012d1@null">news:009e01c0e2cf$1bf62e00$c61012d1@null...
Is there anyway to ALWAYS have a script running on the server without
needing a browser to access it?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] VariableName

2001-05-24 Thread Martin Thoma

Hello !

I want to make a dynamic formular, on which the user can enter a
different number of names.
So to make the form I do:

for ($i = 0; $i  $anzahl; $i++)
 { printf (INPUT TYPE=\TEXT\ NAME=\Name%.0d\ VALUE=\\
SIZE=20\\n, $i);
 }

Now I want to set all the Varables Name0, Name1, Name2 etc. to a
default-value.
How can I do it in a for-next-loop ?

Regards

Martin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Excel

2001-05-24 Thread Ron

I was looking for a way to build a spreadsheet (Excel) dynamically with data
from a table, and I was curious about doing it in PHP .. I prefer to use
PHP, but I know in ASP it can be done.  If I'm running PHP on Linux (can't
use the COM functions), is there a way this can be done?  Preferably
starting with something like header(application/ms-excel...) or whatever
the mime is - dunno off the top of my head, and just writing data?  If
there's no way to do this directly is it possible that by starting with this
header and then sending a csv (comma separated) text page that excel will
read it as a spreadsheet?  Any help would be appreciated..

-Ron - [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PLZ HELP with LOCK connection using MySQL

2001-05-24 Thread Marian Vasile

I have a database and couple php scripts.

I'm going to update some tables inside of this database.
The server is a fast one (with 256Mb)

I don't think there are too many updates but I get an error very strange.

Many connections get LOCKED.
After some time, the system is going down.

I'm using mysql_connect not other functions.

Why I get this error ?
What is the reason ?

Marian

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to manage login ???

2001-05-24 Thread Plutarck

Well, you're getting the reason for the security methods mixed up.

First, SSL only means that no one can know what data is being sent between
you're computer and the destination server.

If a site doesn't use SSL than someone can, technically, 'sniff' your
username and password and thus gain access to the site as if it was you that
were doing the logging in.

Things like sessions are used to keep data from having to be sent over a
connection more than they need to be.


For instance, if you log in to a site in SSL and then surf the site
logged-on in non-SSL mode, you're username and password are safe from
sniffers. But it doesn't mean someone can't hijack your session, which is
why the password should never be sent back to the user from the server.
Passwords should be one-way, from the user to the server.

Sites that don't use SSL aren't neccessarily unsafe as long as no one uses a
packet-sniffer on any connections to the site. That can be a very big if,
which is why all important information such as login and credit card numbers
should be handled over SSL only.


Since PHP is server-side, it doesn't really do anything in particular for
security. The only security on _any_ connection is using encrypted transfers
and not sending important data in clear-text.


Plutarck

Bass¨Ð¦õªv [EMAIL PROTECTED] wrote in message
9eilgb$mth$[EMAIL PROTECTED]">news:9eilgb$mth$[EMAIL PROTECTED]...
 Hi

 I have a question . At some website which have webmail serivce , they
won't
 use SSL for login .
 Then how can they protect clinet's information and email ??

 they use sessions when login in ??
 use sessions is secure ??

 Is there another security method in PHP ?





 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] VariableName

2001-05-24 Thread Plutarck

If the variable's names will be $Name1, $Name2, etc, then you'd do something
like this:

for ($i = 1, $i = $n)
{
/* $n will be how many variables you have. So if you have 5 variables, $n
should equal 5 */
${Name . $i} = $default_value;
}

So if $n was 3 and $default_value was 0, you'd have three variables who's
value was 0:
$Name1
$Name2
$Name3


Variable variables are the way to go. They're so cool :) I wonder if Java
has anything like that...


Plutarck

Martin Thoma [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello !

 I want to make a dynamic formular, on which the user can enter a
 different number of names.
 So to make the form I do:

 for ($i = 0; $i  $anzahl; $i++)
  { printf (INPUT TYPE=\TEXT\ NAME=\Name%.0d\ VALUE=\\
 SIZE=20\\n, $i);
  }

 Now I want to set all the Varables Name0, Name1, Name2 etc. to a
 default-value.
 How can I do it in a for-next-loop ?

 Regards

 Martin



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] File upload - disappearing variables

2001-05-24 Thread Steve Cook

Hi folks,

I've been banging my head against a problem with file uploads for the last 
few days. Perhaps someone here has seen this before.

My problem is that when handling my file uploads, I can print out the values 
of my form variables, both using HTTP_POST_VARS[var] and $var. I can also 
see all the values in phpinfo(). However, as soon as I try and do anything 
with the variables, they appear to be empty. So even trying a simple
if ($HTTP_POST_VARS[var] == value) {
print Got here;
}

fails to match the variable!

I'm running PHP Version 4.0.4pl1 on RedHat 7.0

My form has the following form tag:
form enctype=multipart/form-data action=gallery.php method=post

After that I have 2 txt input fields, and a file input field. (I've also 
tried both with and without a MAX_FILE_SIZE field). 

I've tried everything I can think of - even trying to convert the values in 
HTTP_POST_VARS into completely new variables, but nothing seems to work.

Has anyone else encountered anything like this? Any suggestions of where I 
should look to fix this?

Cheers for any help ;-)

.steve

-- 
http://www.cookstour.org/
http://www.wapwarp.com/
http://www.wap-dev.net/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] A web server query

2001-05-24 Thread Christian Reiniger

On Thursday 24 May 2001 10:49, Parag Mehta wrote:

 i would like to know if there is any smal webserver like boa or thttpd
 which supports php ?

Yes. thttpd for example.
Read the manual for more info

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

I sat laughing snidely into my notebook until they showed me a PC running
Linux. And oh! It was as though the heavens opened and God handed down a
client-side OS so beautiful, so graceful, and so elegant that a million
Microsoft developers couldn't have invented it even if they had a hundred
years and a thousand crates of Jolt cola.

- LAN Times

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] VariableName

2001-05-24 Thread Martin Thoma

Very nice solution. Thank you !

Plutarck schrieb:

 If the variable's names will be $Name1, $Name2, etc, then you'd do something
 like this:

 for ($i = 1, $i = $n)
 {
 /* $n will be how many variables you have. So if you have 5 variables, $n
 should equal 5 */
 ${Name . $i} = $default_value;
 }

 So if $n was 3 and $default_value was 0, you'd have three variables who's
 value was 0:
 $Name1
 $Name2
 $Name3

 Variable variables are the way to go. They're so cool :) I wonder if Java
 has anything like that...

 Plutarck

 Martin Thoma [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hello !
 
  I want to make a dynamic formular, on which the user can enter a
  different number of names.
  So to make the form I do:
 
  for ($i = 0; $i  $anzahl; $i++)
   { printf (INPUT TYPE=\TEXT\ NAME=\Name%.0d\ VALUE=\\
  SIZE=20\\n, $i);
   }
 
  Now I want to set all the Varables Name0, Name1, Name2 etc. to a
  default-value.
  How can I do it in a for-next-loop ?
 
  Regards
 
  Martin
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] vpopmail

2001-05-24 Thread Aadish Shrestha

The online documentation doesn't contain any api regarding vpopmail. Where
can i find it??




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] New session...

2001-05-24 Thread Martin Thoma

Hello !

I want the user to have a chance to reset the session and get a new
session_id on one page.

I tried:

session_name(MyId);
session_register(MyId);

session_unregister(MyId);
session_register(MyId);

But it doesn't worked. session_destroy doesn't work, too.

What I want is, the PHP assigns MyId a new value.

Ideas ?

Martin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Merits of Nusphere vs Abriasoft's PHP/Mysql/Apache packages?

2001-05-24 Thread Johnny Smith

Wondering if anyone out there has used both of these
packages and would care to comment on the relative merits of
each,
especially 'ease of install and configure'.

I'm building a Mysql/PHP box for a database building project
that will never be connected to the internet.

All advice is appreciated.
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] COM and type mismatch

2001-05-24 Thread G Hughes

Does anyone know the reason for the type mismatch error which often seems to
happen when using COM objects?

The only piece of info I've seen suggested that a COM object can't be passed
as a variable to a second COM object. Is this true, and if it is how might
this be worked around.

Thanks for any suggestions.

Skipsey.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] pdf libraries

2001-05-24 Thread serge grekhov

Hi!

Are there any libraries for pdf constructing
but pdflib and clibpdf free for commercial use?

and what tools exists to sign pdf documents?

Serge Grekhov
[EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] All URL's calling one script

2001-05-24 Thread Simon Kimber

Hi All

This is possibly more of an apache/linux question...  does anyone know a way
to force ANY url to run ONE PHP script on a virtual server... eg.  the same
script is run if a user goes to www.myserver.co.uk or
www.myserver.co.uk/dfkgjdfl/ or www.myserver.co.uk/hello.htm or WHATEVER!!!
:o)

Cheers

Simon Kimber
Funny.co.uk - The Comedy Portal
http://www.funny.co.uk/

Now Incorporating: The UK Live Comedy Directory
FREE promotion for UK Comedy Acts and Venues
http://www.funny.co.uk/uklive/

eml. [EMAIL PROTECTED]
icq. 16156911



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] All URL's calling one script

2001-05-24 Thread Ron

You can try to set the 404 error page to that ... I don't know how safe that
is, but it might work..

-Ron

Simon Kimber [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi All

 This is possibly more of an apache/linux question...  does anyone know a
way
 to force ANY url to run ONE PHP script on a virtual server... eg.  the
same
 script is run if a user goes to www.myserver.co.uk or
 www.myserver.co.uk/dfkgjdfl/ or www.myserver.co.uk/hello.htm or
WHATEVER!!!
 :o)

 Cheers

 Simon Kimber
 Funny.co.uk - The Comedy Portal
 http://www.funny.co.uk/

 Now Incorporating: The UK Live Comedy Directory
 FREE promotion for UK Comedy Acts and Venues
 http://www.funny.co.uk/uklive/

 eml. [EMAIL PROTECTED]
 icq. 16156911



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Excel

2001-05-24 Thread Neil Kimber

Probably not exactly the answer that you're looking for, but you can do the
following. Output your data in PHP to a webpage that consists of purely a
table of your data. Open Excel, go to :

Data-Get External Data-New Web Query

Type in the URL for the page with your data.
Select which table you want to display (by name or number)
Click OK, and hey presto!

This spreadsheet can be saved, and anyone opening it can see the current
results of the data from the webpage.


-Original Message-
From: Ron [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 15:51
To: [EMAIL PROTECTED]
Subject: [PHP] Excel


I was looking for a way to build a spreadsheet (Excel) dynamically with data
from a table, and I was curious about doing it in PHP .. I prefer to use
PHP, but I know in ASP it can be done.  If I'm running PHP on Linux (can't
use the COM functions), is there a way this can be done?  Preferably
starting with something like header(application/ms-excel...) or whatever
the mime is - dunno off the top of my head, and just writing data?  If
there's no way to do this directly is it possible that by starting with this
header and then sending a csv (comma separated) text page that excel will
read it as a spreadsheet?  Any help would be appreciated..

-Ron - [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] A web server query

2001-05-24 Thread Jason Lotito

http://badblue.com/

That should be what you are looking for.

Jason Lotito
www.NewbieNetwork.net
PHP Newsletter: http://www.newbienetwork.net/ciao.php
PHP, MySQL, PostgreSQL Tutorials, Code Snippets, and so much more

 -Original Message-
 From: Parag Mehta [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, May 24, 2001 4:50 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] A web server query
 
 
 Hi Guys,
 
 new to the list.
 
 i would like to know if there is any smal webserver like boa 
 or thttpd which supports php ?
 
 best regards,
 
 parag mehta
 
 Kernel panic: I have no root and I want to scream --- 
 perfect error message 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: 
 [EMAIL PROTECTED] To contact the list 
 administrators, e-mail: [EMAIL PROTECTED]
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Building a Chat Room

2001-05-24 Thread ryan.barnett1

Hey All,

Does anyone know where I can find a nice PHP chat room script?

Will I need MySQL database access?
How much coding is required? (I'm an average programmer, just not got too
much time)

-
Also, which is best...?
* java applet that connects to an IRC chat server
or
* php chat on my own website
-

BTW - the website is commercial (spending no cash is always better)

Thanks in advance for all your help,

Ryan
www.more4money.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] All URL's calling one script

2001-05-24 Thread Leavell Digital Design

Here is a good article on that topic:

http://www.phpbuilder.com/columns/tim2526.php3

Note: if you have to use the Files local appoach, php must be running as a
module.

Kevin Leavell
Leavell Digital Design Inc.
P 406.829.8989
C 406.240.4595

--- -Original Message-
--- From: Ron [mailto:[EMAIL PROTECTED]]
--- Sent: Thursday, May 24, 2001 7:40 AM
--- To: [EMAIL PROTECTED]
--- Subject: Re: [PHP] All URL's calling one script
---
---
--- You can try to set the 404 error page to that ... I don't know
--- how safe that
--- is, but it might work..
---
--- -Ron
---
--- Simon Kimber [EMAIL PROTECTED] wrote in message
--- [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
---  Hi All
--- 
---  This is possibly more of an apache/linux question...  does
--- anyone know a
--- way
---  to force ANY url to run ONE PHP script on a virtual
--- server... eg.  the
--- same
---  script is run if a user goes to www.myserver.co.uk or
---  www.myserver.co.uk/dfkgjdfl/ or www.myserver.co.uk/hello.htm or
--- WHATEVER!!!
---  :o)
--- 
---  Cheers
--- 
---  Simon Kimber
---  Funny.co.uk - The Comedy Portal
---  http://www.funny.co.uk/
--- 
---  Now Incorporating: The UK Live Comedy Directory
---  FREE promotion for UK Comedy Acts and Venues
---  http://www.funny.co.uk/uklive/
--- 
---  eml. [EMAIL PROTECTED]
---  icq. 16156911
--- 
--- 
--- 
---  --
---  PHP General Mailing List (http://www.php.net/)
---  To unsubscribe, e-mail: [EMAIL PROTECTED]
---  For additional commands, e-mail: [EMAIL PROTECTED]
---  To contact the list administrators, e-mail:
--- [EMAIL PROTECTED]
--- 
---
---
---
--- --
--- PHP General Mailing List (http://www.php.net/)
--- To unsubscribe, e-mail: [EMAIL PROTECTED]
--- For additional commands, e-mail: [EMAIL PROTECTED]
--- To contact the list administrators, e-mail:
--- [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Building a Chat Room

2001-05-24 Thread Pavel Jartsev

ryan.barnett1 wrote:
 
 Hey All,
 
 Does anyone know where I can find a nice PHP chat room script?
 
 ...
 

Have you tried this site:
http://freshmeat.net/search/?q=php+chat

-- 
Pavel a.k.a. Papi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Error: Supplied argument is not a valid MySQL result resource

2001-05-24 Thread Internaut

Hello

I am in the process of learning php by following the examples out of the
book, as I try to run this script an error message appears with the
following:

Warning: Supplied argument is not a valid MySQL result resource in
/home/httpd/vhtdocs/tosh/php/show_more_db.php on line 10

Here is the script:

?php
//show_more_db.php

include ./common_db.inc;
$link_id = db_connect('sample_db');
$result = mysql_query(SELECT * FROM user, $link_id);
while($query_data = mysql_fetch_row($result)) {
echo ',$query_data[1],' is also known as ,$query_data[3],P;
}

?

Please can you advise further, kind regards Tony



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Tutorial on connecting to a MSSQL 7 or 2000 database.

2001-05-24 Thread Martin Cabrera Diaubalick

Hello Brandon, for  Version 7, have a look at

http://www.knowledgeisland.com/inet/php/php.php

look in the PHP Databases section

HTH
Regards

- Original Message -
From: Brandon Orther [EMAIL PROTECTED]
To: PHP User Group [EMAIL PROTECTED]
Sent: Monday, May 14, 2001 6:12 PM
Subject: [PHP] Tutorial on connecting to a MSSQL 7 or 2000 database.


 Hello,

 I am looking for a tutorial on connecting to a MSSQL 2000 data base
running
 on the local computer.

 Brandon



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] installing php4

2001-05-24 Thread AJDIN BRANDIC

No luck,

I have compiled php4, made changes to httpd.conf 

LoadModule php4_module /usr/lib/apache/libphp4.so
AddModule mod_php4.c

and also

IfModule mod_php4.c
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
/IfModule

Apache starts OK but it doesn't recognise .php3 extensions.  It starts 
downloading a .php file is I try to execute it.

Ajdin.

On Tue, 22 May 2001, Julia A. Case wrote:

 ./configure --with-mysql --with-apxs=/usr/sbin/apxs 
 make
 make install
 check /etc/httpd/conf/httpd.conf to make sure php is setup right
 restart the web server
 
 Julia
 
 Quoting AJDIN BRANDIC ([EMAIL PROTECTED]):
  Hi
  
  I am building a web server.  I installed RH6.2 and Apache was installed
  with it (as binary I guess). I have also installed MySQL (server/client)
  from binary RPM.  I want to install PHP4 source now.  Is there any way I
  could install it without compiling Apache source version or do I need to 
  get Apache
  source and compile(make/make install) the two apps (Apache/PHP4)?  I 
  guess MySQL can stay as it is. 
  
  
  Regards
  
  Ajdin
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 -- 
 [  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
 [Programmer at large] [  but is that what ships are really for.]  
 [   Admining Linux  ] [   To thine own self be true.   ]
 [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
   
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PhpDEV

2001-05-24 Thread Brett Shaw

for those of you who are interested im developing a web site for php
developers to share resources and information.

you wont need to be a member or commit yourself to anything its totally
free.

you can view the site at the following URL: -
http://www.oosha.com/phpdev/index.php3

Its empty at the moment but feel free to input any information you
like...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] ereg questions

2001-05-24 Thread Ker Ruben Ramos

Thanks alot, now i know what are thos \\$NUM
but one more thing, where're those \\0 come from? just found it on some
scripts using \\0. seems to confuse me a bit.

Thanks
- Original Message -
From: Dan Lowe [EMAIL PROTECTED]
To: Ker Ruben Ramos [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, May 24, 2001 5:18 PM
Subject: Re: [PHP] ereg questions


 Previously, Ker Ruben Ramos said:
  hmm, got a little question.
  1. what's that \\1 and \\2? got any info on where u got that from?

 Expands to whatever the parentheses surrounded during the match.  So
 in this case you have:

 Match pattern:  a href=\([^/]+)/(.*)\\.html\
 Replace pattern: a href=\file.php?file=\\1\\2.php\

 There are two places in the match pattern where there are ().  These are
 memorized (rather whatever they actually matched was memorized) and then
 you can spit it back out in the replacement pattern using \\1, \\2, etc.

  -dan

  2. what if it's just href=anything.html ? i mean.. something like it
got
  lots of subdirectories or not.
 
  Thanks
  - Original Message -
  From: Mark Maggelet [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, May 24, 2001 1:19 AM
  Subject: Re: [PHP] ereg questions
 
 
   On Thu, 24 May 2001 01:01:16 +0800, Ker Ruben Ramos
   ([EMAIL PROTECTED]) wrote:
   How do i change all 'a href=anything/here.html' to 'a
   href=file.php?file=anythinghere.php'
   any help out there?
  
   I would go:
  
   $string = ereg_replace(
   a href=\([^/]+)/(.*)\\.html\,
   a href=\file.php?file=\\1\\2.php\,
   $string);
  
   - Mark
  
  
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

 --
 If carpenters made buildings the way programmers make programs, the first
 woodpecker to come along would destroy all of civilization.
 -Weinberg's Second Law



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP-Developers: imap_open fails on PHP4, ok on PHP3

2001-05-24 Thread mheumann

Hi,

I'm afraid this is a rather tough one, as nobody has answered so far.

I'm growing rather desperate about this issue that's been causing me
several sleepless nights already. All I want is to be able to use IMAP to
access POP3 mailboxes with PHP4 (4.0.5). I had no trouble compiling both 
imap and PHP4 on Linux, and actually I also compiled PHP3 with the same IMAP
library.  My Apache uses both modules simultaneously. My little test script (see 
below)  works fine on 
PHP3, but on PHP4 I get the following message(s), being the first the most relevant 
one: 

Warning: Couldn't open stream {mail.host.tld/pop3:110}INBOX in 
/usr/data/htdocs/intranet/mail.php on line 
6
 Warning: Unable to find stream pointer in /usr/data/htdocs/intranet/mail.php on line 
7
 Warning: Variable passed to each() is not an array or object in 
/usr/data/htdocs/intranet/mail.php on
 line 8
 Warning: Unable to find stream pointer in /usr/data/htdocs/intranet/mail.php on line 
10

The code is ok, as far as I can tell (correct me if I'm wrong): 

html 
headtitleMail Test/title/head 
body 
?php 
 $host = mail.host.tld/pop3; 
 $mbox = imap_open (\{$host:110}INBOX, test, test); 
 $aHeaders = imap_headers( $mbox ); 
 while( list( $Key, $Val ) = each( $aHeaders ) ) 
   echo $Val . br; 
 imap_close( $mbox ); 
? 
/body 
/html 

The $host in the imap_open line has already been replaced by the literal
string, I have left out the \ before the {,  everything in vain. 

I use apache 1.3.20, PHP 4.0.5, the IMAP snapshot from a couple of days
ago and I configured PHP like this: 

'./configure' '--with-apxs=/usr/sbin/apxs' '--with-gd=yes'
'--with-xpm-dir' '--with-jpeg-dir=/usr/local' '--with-
ttf=/usr/src/freetype-1.3.1' '--with-zlib' '--with-xml' '--with-ftp'
'--with-mcal=../libmcal' '--with-imap' '--with- sybase=/opt/sybase-11.9.2'
'--with-mysql=/usr' '--with-mcrypt=/usr/local' '--with-mhash'
'--with-config-file- path=/etc/httpd/conf' '--enable-versioning'
'--enable-track-vars'   

according to phpinfo(). 

I tried to track down the problem by inserting messages in various PHP and
IMAP source code places. I couldn't get  beyond the call to tcp_open in
IMAP's mail_open function.  It seems that this tcp_open is not being
called by PHP4,  while PHP3 calls it perfectly.  I think maybe the tcp
driver is not loaded, or so.  The pop3 driver seems to be ok. 

I really don't know, I'm just speculating here.  But what could be the
problem?  Is there anything I may have missed  during configure and
compile of PHP4 that differs from the PHP3 procedure? 

Please, you PHP makers out there, try to help me. I would really
appreciate this.  If I can't solve this problem, I can't  port my project
to PHP4. 

Thanks in advance, 
Greetings, 
Michael Heumann.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] session problem

2001-05-24 Thread Robert Schaller

Hi all,

just for the record.found the problem.the partition was
full*blush*:O\

-Robert

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] input type=image name=done value=done doesnt work as expected

2001-05-24 Thread Chris Lee

ok Im having a hard time reading my own writing, the headers for both are
correct. what I didnt take 10sec to see was that done2 was not being sent,
done2.x and done2.y is being sent. oi.

?php
echo 
$done1_x
$done1_y
$done2_x
$done2_y

form method='post' action='$PHP_SELF'
input type='image' name='done1' src='image/image1.gif'
input type='image' name='done2' src='image/image2.gif'
/form
;
?

there we go :) now I can tell what submit button was pressed, easily and
cleanly.
--

  Chris Lee
  [EMAIL PROTECTED]


Chris Lee [EMAIL PROTECTED] wrote in message
9ehgvu$s2b$[EMAIL PROTECTED]">news:9ehgvu$s2b$[EMAIL PROTECTED]...
 ?php
  echo 
  $done1br
  $done2br

 form action='$PHP_SELF' method='post'
 input type='submit' name='done1' value='done1'
 input type='image' src='image/done.gif' name='done2' value='done2'
 /form
  ;
 ?

 ok, type='submit' works like it should, the headers

 Packet ID (from_IP.port-to_IP.port): 208.181.210.98.3830-209.52.174.206.80
  E . . . . . @ . . . ' . . . . b . 4 . . . . . P G . z . F . . k P . C P I
%
  . . P O S T   / t e s t 2 . p h p   H T T P / 1 . 1 . . U s e r - A g e n
t
  :   M o z i l l a / 4 . 0   ( c o m p a t i b l e ;   M S I E   5 . 0 ;
W
  i n d o w s   2 0 0 0 )   O p e r a   5 . 1 1 [ e n ] . . H o s t :
m
  e d i a w a v e o n l i n e . c o m . . A c c e p t :   t e x t / h t m l
,
i m a g e / p n g ,   i m a g e / j p e g ,   i m a g e / g i f ,   i m
a
  g e / x - x b i t m a p ,   * / * . . A c c e p t - L a n g u a g e :   e
n
  . . A c c e p t - E n c o d i n g :   d e f l a t e ,   g z i p ,   x - g
z
  i p ,   i d e n t i t y ,   * ; q = 0 . . R e f e r e r :   h t t p : / /
m
  e d i a w a v e o n l i n e . c o m / t e s t 2 . p h p . . C o n n e c t
i
  o n :   K e e p - A l i v e ,   T E . . T E :   d e f l a t e ,   g z i p
,
c h u n k e d ,   i d e n t i t y ,   t r a i l e r s . . C o n t e n
t -
  t y p e :   a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d
e
  d . . C o n t e n t - l e n g t h :   1 8 . . . . d o n e 1 = d o n e d o
n
  e d o n e

 are sent correct. and the var $done1 is set with the correct value.

 but type='image' does not work, the headers are correct though

 Packet ID (from_IP.port-to_IP.port): 208.181.210.98.3831-209.52.174.206.80
  E . . . . . @ . . . ' . . . . b . 4 . . . . . P G . . P G } . . P . C P 9
.
  . . P O S T   / t e s t 2 . p h p   H T T P / 1 . 1 . . U s e r - A g e n
t
  :   M o z i l l a / 4 . 0   ( c o m p a t i b l e ;   M S I E   5 . 0 ;
W
  i n d o w s   2 0 0 0 )   O p e r a   5 . 1 1 [ e n ] . . H o s t :
m
  e d i a w a v e o n l i n e . c o m . . A c c e p t :   t e x t / h t m l
,
i m a g e / p n g ,   i m a g e / j p e g ,   i m a g e / g i f ,   i m
a
  g e / x - x b i t m a p ,   * / * . . A c c e p t - L a n g u a g e :   e
n
  . . A c c e p t - E n c o d i n g :   d e f l a t e ,   g z i p ,   x - g
z
  i p ,   i d e n t i t y ,   * ; q = 0 . . R e f e r e r :   h t t p : / /
m
  e d i a w a v e o n l i n e . c o m / t e s t 2 . p h p . . C o n n e c t
i
  o n :   K e e p - A l i v e ,   T E . . T E :   d e f l a t e ,   g z i p
,
c h u n k e d ,   i d e n t i t y ,   t r a i l e r s . . C o n t e n
t -
  t y p e :   a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d
e
  d . . C o n t e n t - l e n g t h :   2 1 . . . . d o n e 2 . x = 3 9  d
o
  n e 2 . y = 1 7

 but the var $done2 is not set. any ideas ? this a php bug? I cant see it
 being a browser error or a apache error, the headers are all right.

 --

   Chris Lee
   [EMAIL PROTECTED]





 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php over netscape

2001-05-24 Thread Marcos

hi,

 i have to run php over Netscape Enterprise Server 3.6. 
 is there any module to run it there?

thanks in advance,

marcos





[PHP] CGI Error when processing form

2001-05-24 Thread seth

Hi,
I'm really new to PHP and i'm not too smart!...,  I pulled some from code
out of scripts.com for processing forms just to test.

this is on an IIS server 4.0 server

this is the error I get after clicking on the tell us button...

CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:

Any ideas

Thanks Seth




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] NEED BOOK: DB Abstaction

2001-05-24 Thread Erich Reimberg N.

Hello,

  Can anyone here, please, recommend me a good book that covers the
DB abstracion that has PHP4? Most of the books only deal with MySQL,
and that's not always my choice for a DB administrator. So I need
to program scripts that can connect to any DB.

  I use this in ASP: I write a tiny script that only connects to
a DB, and then I include it in any script that needs DB connectivity.
Then, If I change the DB, I only change the tiny script, and the
rest works just like before.
(By the way, is it possible to do this in PHP at all? I believe it
is)

  Please, if you have any books you can recommend Cc to my email 
address: [EMAIL PROTECTED]

Thanks,
Erich Reimberg N

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Interesting Problem (Sessions and Cookies)

2001-05-24 Thread Jason Caldwell

Is there a way to store users input on *another* page (i use frames), in
hidden fields, then be able to update those hidden fields as the user goes
along, also, be able to extract that data when a user returns back to a
previous form?

I'm thinking of using this instead of Sessions or Cookies.  Basically a
blank page that will hold all the data from the input fields, allowing a
user (should they need to go back, say, to form1 to make some changes, when
they click submit, form2 will still contain the data they previously entered
and will not be blank, as is normally the case.)

Thanks
Jason




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Interesting Problem (Sessions and Cookies)

2001-05-24 Thread Peter Dudley

You can indeed do this in javascript.  You need to put a FORM on the page in
the other frame and then access the data elements in that form with the
syntax
parent.frame[x].formname.elementname.value
or something along those lines.

This gets pretty ugly pretty quickly, IMO.  Also, I think you could run into
some real problems if the user opens multiple browser windows for these
pages... you could easily get data that is out of sync with what is stored
on the server in the example you gave if the user opened two windows and
began modifying the data in the two forms in both windows.

I think you'd essentially be swapping one set of problems for another set of
problems.

Pete.


Jason Caldwell [EMAIL PROTECTED] wrote in message
9ejakc$32m$[EMAIL PROTECTED]">news:9ejakc$32m$[EMAIL PROTECTED]...
 Is there a way to store users input on *another* page (i use frames), in
 hidden fields, then be able to update those hidden fields as the user goes
 along, also, be able to extract that data when a user returns back to a
 previous form?

 I'm thinking of using this instead of Sessions or Cookies.  Basically a
 blank page that will hold all the data from the input fields, allowing a
 user (should they need to go back, say, to form1 to make some changes,
when
 they click submit, form2 will still contain the data they previously
entered
 and will not be blank, as is normally the case.)

 Thanks
 Jason




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Compiler advice please!

2001-05-24 Thread Gerry

Hi this is probably of the scope of the list since it is a c++ question. (sorry)

 I'm trying to learn a few things about c++ and I'm using gcc on my
Linux box. The problem I encountered is with the floating point
manipulation classes or functions like fixed and showpoint, I get a
compile error saying they are not declared. I triyed the gcc.gnu site
but I could not find a support maillist like this one. After endless
fruitless searches on the web I decided to give you a shot since you
have answered many of my PHP questions and I know some of you do a lot
more than just PHP related development. 

Could someone point me in the right direction please, maybe a site or
mailgroup where I could ask about this?

Thanks in advance and sorry for the inconvenience!

Gerry

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] ereg function

2001-05-24 Thread Jay Paulson

hello-
I have a pretty easy question for some of you.  I'm using the ereg function and it's 
not returning a true or false after it runs.  Below is the code snippet I'm using.

echo ereg(^[a-zA-Z]$, $fname);

as you can see I'm just looking to make sure the variable $fname just has characters 
a-zA-Z and nothing else.  Anyway, I'm running PHP 4.0.5 and I'm using the ereg 
function else where and it seems to work fine.

Thanks,
Jay Paulson



Re: [PHP] Re: [PHP-DEV] Fork() in php? (äâà óäàðà - 8 äûðîê?)

2001-05-24 Thread ~~~i LeoNid ~~

On 21 May 2001 10:06:41 -0700 impersonator of [EMAIL PROTECTED] (Zeev Suraski)
planted I saw in php.general:

At 08:24 21/5/2001, Rasmus Lerdorf wrote:
You are assuming they even read this mailing list.

*ping* (in Tokyo, so it took me a while to catch up on my Email)

Zeev

Sorry for _an_ intrusion her. I just unsuccsefully pinged zend (on an
address supplied on the page) of wich the author is co-founder
co-developer, as i undustand:) So i publish my quest her. Hopefully it
will be seen by some, besides maintainers:) Is there hope to get answer
too? I hope.

I was checking on PHP en-coder (unfortunately, it only goes from 4.03:(so
i didn't go *further*, but wanted to test Zend Optimizer too. But

stoped at license item 8.2, and asked for an explanation, on witch i
received *demon* response (below) - sorry it got compacted, as i forgot to
close my copy/paste buffer compacter (and i am to lazy to copy it again:) 

Hope, you decipher:)

Sincerely, LeonId

AM i `disclosing´ by this?:)
d(a)emonadvice-
Hi. This is the qmail-send program at mail.zend.com. I'm afraid I wasn't
able to deliver your message to the following addresses. This is a
permanent error; I've given up. Sorry it didn't work out. [EMAIL PROTECTED]:
--- Below this line is a copy of the message. Return-Path:
[EMAIL PROTECTED] Received: (qmail 6544 invoked by alias); 24 May 2001
14:37:03 - Delivered-To: [EMAIL PROTECTED] Received: (qmail
6541 invoked from network); 24 May 2001 14:37:02 - Received: from
unknown (HELO mckexch02.mckusa01) (38.201.8.162) by mail.zend.com with
SMTP; 24 May 2001 14:37:02 - Received: from cheerleo
(ip162-6.urbis.net.il [192.118.6.162]) by mckexch02.mckusa01 with SMTP
(Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id JHSZ36Z9;
Thu, 24 May 2001 09:57:17 -0400 Message-ID:
000101c0e456$21997780$a20676c0@cheerleo From: LeoNid [EMAIL PROTECTED]
To: [EMAIL PROTECTED] Subject: ÌÉÃÅÎÓ point 8.2 (on zend optimizer) Date:
Thu, 24 May 2001 17:33:30 +0400 X-Priority: 3 X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By
Microsoft MimeOLE V4.72.3612.1700 ShaLom, What is the meaning of an item
8.2 of your license for ZendOptimizer. What kind of confidential infor.,
you supply for suppose to be freely downloadable software? Ain't - points
- mentioning _no_ reverse engineering suffice? Inspite that I am
considering download for myself only, I won't even think of it with such
(funny unclear and absurd, unless proved otherwise:) restriction. Thank
you for an explanation. ShaLom i Leonid. ---that's what _i_ saw in a
license (if my MSG is delivered without alteration either:)- 8.2.
Non-Disclosure. Licensee shall not permit anyone other than its own most
trusted employees with a need to know to access or use the Licensor
Proprietary Information. Licensee shall not disclose the Licensor
Proprietary Information to any third party or use the Licensor Proprietary
Information other than as authorized hereunder. Furthermore, Licensee: (a)
recognizes that the unauthorized use or disclosure of Licensor Proprietary
Information will give rise to irreparable injury to Licensor or its
licensors for which monetary damages may be an inadequate remedy; and (b)
agrees that Licensor or its licensors may seek and obtain injunctive
relief against the breach or threatened breach of Licensee's obligations
under this Agreement, in addition to any other legal and equitable
remedies which may be available to Licensor.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] fdf and pfd functions in PHP

2001-05-24 Thread David A Castillo

Okay, I'm trying to teach myself how to utilize fdf and insert into pdf and
I have a question for y'all. When using pfd forms to submit to an fdf file,
the php script uses the variable $HTTP_RAW_POST_DATA as the source to write
to the fdf file. If I use an HTML form to do the same thing, what variable
would I use? I tried $HTTP_POST_DATA and it returned an empty variable set
resulting in an empty fdf file. The code I'm using is as follows:

?php
$fdffp = fopen(test.fdf,w);
fwrite($fdffp, $HTTP_POST_DATA, strlen($HTTP_POST_DATA));
fclose($fdffp);
?

Sorry for the basic question but I guess we all have to start somewhere!

Cheers,

Dave

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] fdf and pfd functions in PHP

2001-05-24 Thread mheumann

Hi,
I think this is more complicated. You'll need to create the FDF file manually 
pertaining to the format 
specifications. You will have to use the data posted from the HTML form, but just 
writing them out to the 
file won't do the trick.  I haven't done this with PHP yet, maybe the fdf functions 
provided can help you 
somewhat with the format.
Greetings,
Michael.

 Okay, I'm trying to teach myself how to utilize fdf and insert into pdf and
 I have a question for y'all. When using pfd forms to submit to an fdf file,
 the php script uses the variable $HTTP_RAW_POST_DATA as the source to write
 to the fdf file. If I use an HTML form to do the same thing, what variable
 would I use? I tried $HTTP_POST_DATA and it returned an empty variable set
 resulting in an empty fdf file. The code I'm using is as follows:
 
 ?php
 $fdffp = fopen(test.fdf,w);
 fwrite($fdffp, $HTTP_POST_DATA, strlen($HTTP_POST_DATA));
 fclose($fdffp);
 ?
 
 Sorry for the basic question but I guess we all have to start somewhere!
 
 Cheers,
 
 Dave
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] NEED BOOK: DB Abstaction

2001-05-24 Thread Jon Haworth

PHP 4 Bible (Converse/Park, IDG Books) has a chapter on OO programming that
contains sample code for an entire DB layer... 

Failing that you can knock your own up really easily, using include() to
stick it in whatever script you fancy.

HTH
Jon


-Original Message-
From: Erich Reimberg N. [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2001 16:48
To: [EMAIL PROTECTED]
Subject: [PHP] NEED BOOK: DB Abstaction


Hello,

  Can anyone here, please, recommend me a good book that covers the
DB abstracion that has PHP4? Most of the books only deal with MySQL,
and that's not always my choice for a DB administrator. So I need
to program scripts that can connect to any DB.

  I use this in ASP: I write a tiny script that only connects to
a DB, and then I include it in any script that needs DB connectivity.
Then, If I change the DB, I only change the tiny script, and the
rest works just like before.
(By the way, is it possible to do this in PHP at all? I believe it
is)

  Please, if you have any books you can recommend Cc to my email 
address: [EMAIL PROTECTED]

Thanks,
Erich Reimberg N

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or
confidentiality'

**

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] a little ot, mysql binary fields

2001-05-24 Thread Christian Dechery

How do I backup a blob field in mysql? Every time I dump it (to a text file 
via phpMyAdmin)... it creates insert lines but the binary data is all 
screwed up and when I load it it gives me error messages... 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Form security

2001-05-24 Thread phpman

Since nobody answered my last question (or any of them for that matter). Let
me rephrase it a little
different.

Other then checking the referer (to make sure the posted data came from the
right page)
 and user agent (to see if it exists), is there any other way to secure a
form from having other
forms submitting to it?

-dave



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Form security

2001-05-24 Thread James Stevens

Another way to do this is to have a form element with an odd name and value
that you can check for before processing the post. This is not too secure if
someone knows the name and value though. In that case you can use the
referer _and_ a unique element name and value that is related to the
referer. Checking for these items before processing the form should be
pretty good.

James

-Original Message-
From: phpman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 10:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Form security


Since nobody answered my last question (or any of them for that matter). Let
me rephrase it a little
different.

Other then checking the referer (to make sure the posted data came from the
right page)
 and user agent (to see if it exists), is there any other way to secure a
form from having other
forms submitting to it?

-dave



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form security

2001-05-24 Thread Peter Dudley

Are you using sessions?  You can register a tracking variable on the form
page and then check that variable on the processing page.  If the posted
data comes from any page other than the one that you want it to, the
variable will not be set.  Not 100% sure, but I think this covers what
you've asked.

Pete.

phpman [EMAIL PROTECTED] wrote in message
9ejeqp$gm7$[EMAIL PROTECTED]">news:9ejeqp$gm7$[EMAIL PROTECTED]...
 Other then checking the referer (to make sure the posted data came from
the
 right page) and user agent (to see if it exists), is there any other way
to secure a
 form from having other forms submitting to it?

 -dave




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] .htaccess and secure image directory

2001-05-24 Thread bill

If I upload images to a web directory using PHP, how can I prevent a web
browser from getting a file list of the directory while still allowing
it to be polled for specific images?

kind regards,

bill hollett


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] pg_fetch_object() and composite field names

2001-05-24 Thread Arcady Genkin

Suppose I have a query like this:

$query = select A.id, B.id from foo A, bar B where A.bleh=B.blob;;
$result = pg_exec( $db, $query);
$obj = pg_fetch_object( $result, 0 );

My question is: How do I access the field names in the $obj now?
I know that I can transform the query to avoid this problem, or use a
function other than pg_fetch_object.  But I'm interested whether
pg_fetch_object _can_ be used here.

Many thanks,
-- 
Arcady Genkin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form security

2001-05-24 Thread mheumann

Hi,
you could use an additional parameter containing a checksum of the entire URL, that 
you check at the 
beginning.  Of course, somebody with the right motivation could find out your checksum 
scheme (I would 
use a subset of the md5 function), but at least it won't be simple anymore.
You could also use a Session ID that you generate somewhere on your site (usually the 
start page). You 
pass that along to the form and check it for validity. PHP 4 supports sessions.
Hope this helps.
Greetings,
Michael.


 Since nobody answered my last question (or any of them for that matter). Let
 me rephrase it a little
 different.
 
 Other then checking the referer (to make sure the posted data came from the
 right page)
  and user agent (to see if it exists), is there any other way to secure a
 form from having other
 forms submitting to it?
 
 -dave


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] ereg function

2001-05-24 Thread CC Zona

In article 002e01c0e46c$ec2459a0$6e00a8c0@webdesign,
 [EMAIL PROTECTED] (Jay Paulson) wrote:

 echo ereg(^[a-zA-Z]$, $fname);
 
 as you can see I'm just looking to make sure the variable $fname just has 
 characters a-zA-Z and nothing else.

Actually, you're checking whethere the variable is a single-character 
string a-zA-Z.  For what you want:

ereg(^[a-zA-Z]+$, $fname); //add plus sign

Note also that although the docs imply that ereg() returns an integer 
value, it says further down Returns true if a match for pattern was found 
in string, or false if no matches were found or an error occurred.  In my 
experience, boolean values don't echo well.  Try this instead:

if(ereg(^[a-zA-Z]+$, $fname))
   {
   echo pPassed!/p\n;
   }
 else
   {
   echo pFailed.  Enter a different value./p\n;
   }

-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Form security

2001-05-24 Thread phpman


I'm not trying to keep my script secure, I'm trying to get into another
script, using cURL.
I sent all of the POST fields, set my REFERER to be their referer page, even
set my AGENT to
be ie 5 on a Win2K box. Damn script is still not returning the right screen.
When I copy the HTML
code to my machine and run it locally (adjusting the FORM ACTION= to the
remote script url) it works.
I can even change the same form around and point it one of my scripts that
prints every POST var out, I
got them all. I checked for cookies - none.

I'm not doing this to do anything illegal. I'm trying to link with this
script...
http://wwwapps.ups.com/servlet/QCCServlet
to get shipping info (their XML integration is impossible with PHP - PHP
cannot do it). This makes
no sense to me, I can't think of anything I'm missing. I've gone through my
code for typos and
case sensitivities - even the order the POST vars are sent in is the same!

Aauuugg!

-dave

phpman [EMAIL PROTECTED] wrote in message
9ejeqp$gm7$[EMAIL PROTECTED]">news:9ejeqp$gm7$[EMAIL PROTECTED]...
 Since nobody answered my last question (or any of them for that matter).
Let
 me rephrase it a little
 different.

 Other then checking the referer (to make sure the posted data came from
the
 right page)
  and user agent (to see if it exists), is there any other way to secure a
 form from having other
 forms submitting to it?

 -dave



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] out file

2001-05-24 Thread Hasan Niyaz

Hi,

This is not very php related but if anyone can let me this simple question.

I'm using a dos window to communicate with my MySQL server. What if i want to save the 
results in file. What is the command i should
use.

Thanks,
Hasan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] advice on 'Nusphere Mysql Package' appreciated

2001-05-24 Thread scott [gts]

mandrake is easy to install, yes. :)

mandrake is a full distribution... it's everything
that most people need kernel, Xwindows, servers,
apps, games, dev. libraries, languages, etc. etc...

you can customize which programs get installed
from the install program.

it's a great system really easy to use and
install.

download the mandrake 8.0 ISO from their website
if you've got a CD-R.  it's free :)


 -Original Message-
 From: Johnny Smith [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 24, 2001 8:45 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] advice on 'Nusphere Mysql Package' appreciated
 
 
 Thanks for replying Scott...
 
 Are you trying to say that Mandrake has PHP, Mysql, Apache
 and that the combination is easy to install correctly on
 Mandrake?
 
 
 
 
 From: scott [gts] [EMAIL PROTECTED]
 To: php [EMAIL PROTECTED]
 Subject: RE: [PHP] advice on 'Nusphere Mysql Package' appreciated
 Date: Wed, 23 May 2001 14:43:38 -0400
 
 Linux Mandrake (8.0) is extremely easy to install,
 (it's a complete linux distrib, based off of RedHat,
 so you can install it onto a clean machine)
 
 the install is *very* interactive and it comes fully
 loaded with almost everything you could want,
 and is free
 
 get the ISO's at :
 
 http://linux-mandrake.com/
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: [PHP-DEV] version numbers

2001-05-24 Thread Andrei Zmievski

On Wed, 23 May 2001, Dennis Gearon wrote:
 I wonder about the version numbers because of some of the alphanumeric
 values in them.
 
 Are the version numbers chosen such that ANY version higher can be
 checked for by the following code:
 
 if ( strcmp($ver_running_under, $min_version)  0){
   use feature;
 } else {
   use big nasty, ugly own version of functionality
-or-
   issue warning that results may not be correct
 because functionality is not necessarily available,
 i.e. getting the REAL include directory being used
 before version 4.
 }

Use strnatcmp() function -- it works very well for version comparison.

-Andrei
* It said 'Winmodem' on the box, but I still feel like I lost. *

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] regex

2001-05-24 Thread Dan Lowe

Previously, Gyozo Papp said:
 metacharacter.

  Is a '.' inside of a [] a literal '.', or a 'any character'

A period inside a character class (i.e. inside a [] block) is just a
period, and not a metacharacter.

 -dan


-- 
Don't let it end like this. Tell them I said something.
 -Pancho Villa's last words

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] advice on 'Nusphere Mysql Package' appreciated

2001-05-24 Thread Geoff Caplan

Johhny wrote:


 Which version of Redhat did you install it on?


6.2

 Did you have to install all the 'updates' for the Redhat version
 'before' doing the install of Nusphere?

Nope - worked fine for me.

Another thing I forgot to mention - by default Nusphere sets up a virtual
domain which uses  /apache/nsdocs as its root document file. You can change
this easily enough in the Apache config file if you want to - but I have
left it because I don't know enough about SSL configuration
to know if I can do this without breaking SSL - don't have time to play
around with this at present.

Thought I would mention this, in case you wonder why Apache can't find your
files!

Geoff Caplan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]