[PHP] DOM

2001-08-29 Thread Jean-Charles Preaux

Hello

I'm looking for someone who have ever used DOM with PHP.
Actually, i've a trouble with CDATA section when i descend the tree of my
XML document.
Does someone can help me ?

Thx


Jean-Charles Preaux


-- 
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] I beleive I have found a bug.....

2001-08-29 Thread


From: Brian White <[EMAIL PROTECTED]>
Date: Wed, Aug 29, 2001 at 04:01:06PM +1000
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] I beleive I have found a bug.

> ... I just thought I would see if anyone else can reproduce it!
> 
> Ok. The problem is in the following snippet of code. ( Note : this exmaple
> is extremely contrived, and is the essence of a much more complicated
> situation involving a function call from a class method... )
> 
>   $data = array( "A" => "AA" , "B" => "BB", "C"=> "CC", "D"=> "DD", "E" 
> => "EE" );
> 
>  print "\n";
>  foreach ( $data as $key1=>$val1 )
>  {
> //foreach ( $data as $key2=>$val2 )
>  foreach ( array_keys($data) as $key2 )   // <= PROBLEM IS HERE
>  {
>  if ( $key1 == $key2 )
>  print "$key2";
>  else
>  print $key2;
> 
>  print "  ";
>  }
>  print "\n";
>  }
> 
>  print "";
> ?>
> 
> I beleive it should generate
> 
> A  B  C  D  E
> A  B  C  D  E
> A  B  C  D  E
> A  B  C  D  E
> A  B  C  D  E
> 
> 
> Instead it generates
> 
> A  B  C  D  E
> 
> 
> If I replace the problem line
>  foreach ( array_keys($data) as $key2 )
> 
> with the alternate
>  foreach ( $data as $key2=>$val2 )
> 
> then it works fine.
> 
> I am using PHP 4.0.4pl1.
> 
> 
> Regs
> 
> Brian White
> 
> -
> Brian White
> Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
> Phone: +612-93197901
> Web:   http://www.steptwo.com.au/
> Email: [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]





Hai Brain,

I don't _think_ this is a bug (note: think). I haven't taken a very
good look at your code, but as I understand you believe that:

  foreach ($data as $key)

delivers the same $key as in:

  foreach ($data as $key=>$value)

Well... it doesn't. Check the manual on it. If you use the
foreach ($x as $y) construction, $y is the value... not the key.
Take a look at:

http://www.php.net/manual/en/control-structures.foreach.php


foreach(array_expression as $value)
foreach(array_expression as $key => $value)


I think this solves your problem...



-- 

* R&zE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
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 running and installing problem

2001-08-29 Thread rayn .

i am have trouble running php, i can run a simple doc like one to check the 
version and get the time but i cannot run anything eles and it gives we this
Warning: Failed opening 'c:\inetpub\wwwroot\upload\admin\config.php' for
inclusion (include_path='') in Unknown on line 0

its that right path, i think
and what am i suppos to do with the php.ini file could you show we what 
changes i need to do to it.

thanks


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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] multiple submit buttons

2001-08-29 Thread Justin French

Hi all,

I noticed this chunk of code in a site the other day:





My GUESS is that if i click the "Yes" button, I magically 
get $btn = "Yes" as a var is the receieving PHP script.  
I was just about to test this, when I realised that (from 
what I can tell) multiple submits are not supported by CGI 
spec.

So, even if it works on my browser/platform/server/php 
combination, can I be sure it'll work faithfully on all 
environments?

Should I be worried about what the browser sends, or what 
PHP does with it, etc etc?


Has anyone doen some serious testing on this?  Good or bad 
stories?


Justin French

-- 
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] bugroff licensed tree converter

2001-08-29 Thread alvarez


 I've written a simple recursive function to convert trees
   like <*a* <*b*, *c*>, <*d*>>
 into PHP arrays like the corresponding one as generated by
   array (a, array (b, c), d)

 The resulting array construct is directly usable. Feel free to
 include the function in your own sources and modify it at will.
 I hereby release it under the bugroff license available from
 http://www.geocities.com/SoHo/Cafe/5947/bugroff.html


 this is the code:

 function free_to_array ($str) {

   $i = 0;
   while ($cursor < strlen ($str)) {

  while (   ($c = substr ($str, $cursor, 1)) == " "
 ||  $c == "\n" || $c == "," || $c == ".")
$cursor ++;

  $match = $c;
  if ($c == "<")
 $match = ">";

  $end = strpos ($str, $match, ++ $cursor);
  $level[$i] = substr ($str, $cursor, $end - $cursor);

  if ($c == "<")
 $level[$i] = free_to_array ($level[$i]);
 
  $cursor = $end + 1;
  $i ++;
   }

   return $level;
 }


  and a practical application example:

 xml_open ("test", "<*language*> <*JavaScript*>");

  creating element/value pairs for use in XML-like documents
  without the syntax overhead of nested calls to arrays.


  D. Alvarez Arribas <[EMAIL PROTECTED]>


>You have to write your own function for this.
   

>> I want a function or macro to return executable code yielding syntax
>> preprocessing of binary trees. Because the Macro Processor seems to be
>> somewhat messy I though a regular function might be capable of doing the
>> job.
>>
>>   e.g.
>>
>>btree ('(("a", "b")("c", "d"))')
>>
>>should be expanded to
>>
>>array (array ("a", "b")
>>   array ("c", "d")
>>
>>
>>   How can I archieve this?




-- 
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] I beleive I have found a bug.....

2001-08-29 Thread Brian White

Renze Munnik said:
>I don't _think_ this is a bug (note: think). I haven't taken a very
>good look at your code, but as I understand you believe that:
>
>   foreach ($data as $key)
>
>delivers the same $key as in:
>
>   foreach ($data as $key=>$value)

You didn't read my code closely enough:

I said:
> > If I replace the problem line
> >  foreach ( array_keys($data) as $key2 )
> >^^
> > with the alternate
> >  foreach ( $data as $key2=>$val2 )


At 09:54 29/08/2001 +0200, * R&zE: wrote:
>
>From: Brian White <[EMAIL PROTECTED]>
>Date: Wed, Aug 29, 2001 at 04:01:06PM +1000
>Message-ID: <[EMAIL PROTECTED]>
>Subject: [PHP] I beleive I have found a bug.
>
> > ... I just thought I would see if anyone else can reproduce it!
> >
> > Ok. The problem is in the following snippet of code. ( Note : this exmaple
> > is extremely contrived, and is the essence of a much more complicated
> > situation involving a function call from a class method... )
> >
> >  >  $data = array( "A" => "AA" , "B" => "BB", "C"=> "CC", "D"=> "DD", "E"
> > => "EE" );
> >
> >  print "\n";
> >  foreach ( $data as $key1=>$val1 )
> >  {
> > //foreach ( $data as $key2=>$val2 )
> >  foreach ( array_keys($data) as $key2 )   // <= PROBLEM IS HERE
> >  {
> >  if ( $key1 == $key2 )
> >  print "$key2";
> >  else
> >  print $key2;
> >
> >  print "  ";
> >  }
> >  print "\n";
> >  }
> >
> >  print "";
> > ?>
> >
> > I beleive it should generate
> > 
> > A  B  C  D  E
> > A  B  C  D  E
> > A  B  C  D  E
> > A  B  C  D  E
> > A  B  C  D  E
> > 
> >
> > Instead it generates
> > 
> > A  B  C  D  E
> > 
> >
> > If I replace the problem line
> >  foreach ( array_keys($data) as $key2 )
> >
> > with the alternate
> >  foreach ( $data as $key2=>$val2 )
> >
> > then it works fine.
> >
> > I am using PHP 4.0.4pl1.
> >
> >
> > Regs
> >
> > Brian White
> >
> > -
> > Brian White
> > Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
> > Phone: +612-93197901
> > Web:   http://www.steptwo.com.au/
> > Email: [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]
>
>
>
>
>
>Hai Brain,
>
>I don't _think_ this is a bug (note: think). I haven't taken a very
>good look at your code, but as I understand you believe that:
>
>   foreach ($data as $key)
>
>delivers the same $key as in:
>
>   foreach ($data as $key=>$value)
>
>Well... it doesn't. Check the manual on it. If you use the
>foreach ($x as $y) construction, $y is the value... not the key.
>Take a look at:
>
>http://www.php.net/manual/en/control-structures.foreach.php
>
>
>foreach(array_expression as $value)
>foreach(array_expression as $key => $value)
>
>
>I think this solves your problem...
>
>
>
>--
>
>* R&zE:
>
>
>-- 
>-- Renze Munnik
>-- DataLink BV
>--
>-- E: [EMAIL PROTECTED]
>-- W: +31 23 5326162
>-- F: +31 23 5322144
>-- M: +31 6 21811143
>--
>-- Stationsplein 82
>-- 2011 LM  HAARLEM
>-- Netherlands
>--
>-- http://www.datalink.nl
>-- 
>
>--
>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]

-
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [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] I beleive I have found a bug.....

2001-08-29 Thread


From: Brian White <[EMAIL PROTECTED]>
Date: Wed, Aug 29, 2001 at 06:16:49PM +1000
Message-ID: <[EMAIL PROTECTED]>
Subject: Re: [PHP] I beleive I have found a bug.

> You didn't read my code closely enough:
> 
> I said:
> > > If I replace the problem line
> > >  foreach ( array_keys($data) as $key2 )
> > >^^
> > > with the alternate
> > >  foreach ( $data as $key2=>$val2 )





Oops... Sorry! That's what I said... I didn't take a very good look.
But now I have... You need to reset the $data-array before the inner
foreach-loop. Then there's no problem.

--- PHP code ---

\n";
 foreach ( $data as $key1=>$val1 )
 {
 reset ($data); // <- R E S E T !!!
 foreach ( array_keys($data) as $key2 )
 {
 if ( $key1 == $key2 )
 print "$key2";
 else
 print $key2;

 print "  ";
 }
 print "\n";
 }

 print "";
?>

--- End of PHP code ---



-- 

* R&zE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
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: bugroff licensed tree converter

2001-08-29 Thread alvarez

 Correction to the code submitted

s/example/xml_open ("script", "<*language* *JavaScript*>");

I had snipped it from prior debugging code - sorry for that.

  D. Alvarez Arribas <[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] comparing scripts performance

2001-08-29 Thread Ben-Nes Michael

Is there a way to compare between two scripts ?

like how much time took every script or how much memory/resources it used.

--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--



-- 
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] reading from a file and parsing variables??

2001-08-29 Thread Derick Dorner

I have a simple problem, but for some reason I can't figure it out!
I need to read in a string from a short text file, so I do that the normal way:
/*
// get string from the text file.
$filename = "textfilehere.text";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
*/ 

however, this text file contains variables, for example, the first could be:

Hello $variable_here

now when i print out the text file (it really needs to be emailed, but anyway) the 
variables are not parsed with the variables from the script, so instead of printing 
the contents of $variable_here within that string, it actually prints "$variable_here".
so, how can i parse a text file read into a string for variables??

any help is appreciated, and thank you very much in advance!

-derick



[PHP] Update form objects before submit

2001-08-29 Thread Stephane Pinel

I have a html page including php scripts that perform different stuff.
The page contains a form (a Select 'products-price' and a field 'qty').
Depending the choice made by the user, I need to know what item in the
SELECT object was choose and the number entered in the 'Qty' field to
initialized a 'subtotal' zone BEFORE the user submit the form.
This functionality is common to all e-business sites when you have to clic
on the 'update' button before submit the form.

Any idea ?

thanks

--
Stéphane Pinel
39, Rue du Docteur Heulin
75017 Paris (FRANCE)
33 1 53 11 05 77
33 6 08 94 63 16
[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] addcslashes(), strange behavior

2001-08-29 Thread Ben-Nes Michael

Hi All

I did

echo ord ("\n");
which return 10

so I tried to do this with no success
echo addcslashes ("hello\nworld", "\10");
returning: "hello newline world"

while doing:
echo addcslashes ("hello\nworld", "\9");
returned me what I wanted: "hello\nworld" which mean the string hold
"hello\\nworld"

Its look like a bug, ord say" /n = 10 while addsclashes replace /n using /9
as ASCII value.
What is the list opinion ?

--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--



-- 
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] Update form objects before submit

2001-08-29 Thread


From: Stephane Pinel <[EMAIL PROTECTED]>
Date: Wed, Aug 29, 2001 at 11:08:45AM +0200
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] Update form objects before submit

> I have a html page including php scripts that perform different stuff.
> The page contains a form (a Select 'products-price' and a field 'qty').
> Depending the choice made by the user, I need to know what item in the
> SELECT object was choose and the number entered in the 'Qty' field to
> initialized a 'subtotal' zone BEFORE the user submit the form.
> This functionality is common to all e-business sites when you have to clic
> on the 'update' button before submit the form.
> 
> Any idea ?
> 
> thanks
> 
> --
> Stéphane Pinel
> 39, Rue du Docteur Heulin
> 75017 Paris (FRANCE)
> 33 1 53 11 05 77
> 33 6 08 94 63 16
> [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]





You'll need to use JS...

Eg:

--- HTML example ---

 
  
   
Blah 1
Blah 2
Blah 3
Blah 4
   

   
  
 
 
  function someUpdateFunc () {
var selValue = document.frm.mySel.options[document.frm.mySel.selectedIndex].value;
alert ("You selected: "+selValue);
  }
 

--- End of HTML example ---

This will show you what you need (I hope)...



-- 

* R&zE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
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] mysql_insert_id. need help!

2001-08-29 Thread lizlynch

hi,

i have three tables:
customer
username
classification

the user will enter my web site enter the relevant customer details (which are 
transfered to the database) (s)he will then enter their prefered username, password 
and a password hint (again all sent to the database). once they are registered they 
choose between three classification types.
i have used the mysql_insert_id () to obtain the customer_id from the customer table 
and to insert it into the username table, however i also need to insert it into the 
classification table but all i keep getting is 0.
can anyone advise, is it possible?

liz lynch



[PHP] mysql_insert_id NEED HELP

2001-08-29 Thread lizlynch

hi,

i have three tables:
customer
username
classification

the user will enter my web site enter the relevant customer details (which are 
transfered to the database) (s)he will then enter their prefered username, password 
and a password hint (again all sent to the database). once they are registered they 
choose between three classification types.
i have used the mysql_insert_id () to obtain the customer_id from the customer table 
and to insert it into the username table, however i also need to insert it into the 
classification table but all i keep getting is 0.
can anyone advise, is it possible?

liz lynch



Re: [PHP] mysql_insert_id. need help!

2001-08-29 Thread Moax Tech List

post your code.

- Original Message -
From: "lizlynch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 4:32 AM
Subject: [PHP] mysql_insert_id. need help!


hi,

i have three tables:
customer
username
classification

the user will enter my web site enter the relevant customer details (which
are transfered to the database) (s)he will then enter their prefered
username, password and a password hint (again all sent to the database).
once they are registered they choose between three classification types.
i have used the mysql_insert_id () to obtain the customer_id from the
customer table and to insert it into the username table, however i also need
to insert it into the classification table but all i keep getting is 0.
can anyone advise, is it possible?

liz lynch



-- 
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: Exclamation point appearing from nowhere

2001-08-29 Thread _lallous

Showing your code might help figuring out the problem.

"Saul Ishida" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey, please, I'm using the function mail() in one of
> my scripts, but when I use it, one exclamation point
> appears from nowhere in the email body. And it appears
> in different places, it moves around in the email
> body. It is very strange. And everytime, every email I
> send, it appears, no exception.
>
> If you could help me, I would be very gratefull!
>
> thanks!
>
> Saul
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.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] Im back, oh and....

2001-08-29 Thread Kyle Smith

... could someone give me the name of the best PHP learning book they have read cause 
I just scored £110!


(yes, it was my birthday on august 16th and im now a whole 14 so i can have my first 
urine test!)


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





[PHP] Re: reading from a file and parsing variables??

2001-08-29 Thread _lallous

Hello Derick, I had this problem until I figured out this code:

filewithvars.txt is:
//
Hello my name is $myname.
You can always contact me at $myemail.
// 

The php script is:


"Derick Dorner" <[EMAIL PROTECTED]> wrote in message
000e01c13068$0d316ec0$9865fea9@moax01">news:000e01c13068$0d316ec0$9865fea9@moax01...
I have a simple problem, but for some reason I can't figure it out!
I need to read in a string from a short text file, so I do that the normal
way:
/*
// get string from the text file.
$filename = "textfilehere.text";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
*/

however, this text file contains variables, for example, the first could be:

Hello $variable_here

now when i print out the text file (it really needs to be emailed, but
anyway) the variables are not parsed with the variables from the script, so
instead of printing the contents of $variable_here within that string, it
actually prints "$variable_here".
so, how can i parse a text file read into a string for variables??

any help is appreciated, and thank you very much in advance!

-derick




-- 
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 running and installing problem

2001-08-29 Thread _lallous

Show us the code of the script you're running.

"Rayn ." <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i am have trouble running php, i can run a simple doc like one to check
the
> version and get the time but i cannot run anything eles and it gives we
this
> Warning: Failed opening 'c:\inetpub\wwwroot\upload\admin\config.php' for
> inclusion (include_path='') in Unknown on line 0
>
> its that right path, i think
> and what am i suppos to do with the php.ini file could you show we what
> changes i need to do to it.
>
> thanks
>
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>



-- 
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: addcslashes(), strange behavior

2001-08-29 Thread _lallous

You can't use "\10" it has no meaning.
Instead use this: "\x0A".

"Ben-Nes Michael" <[EMAIL PROTECTED]> wrote in message
010901c1306a$97cc4da0$[EMAIL PROTECTED]">news:010901c1306a$97cc4da0$[EMAIL PROTECTED]...
> Hi All
>
> I did
>
> echo ord ("\n");
> which return 10
>
> so I tried to do this with no success
> echo addcslashes ("hello\nworld", "\10");
> returning: "hello newline world"
>
> while doing:
> echo addcslashes ("hello\nworld", "\9");
> returned me what I wanted: "hello\nworld" which mean the string hold
> "hello\\nworld"
>
> Its look like a bug, ord say" /n = 10 while addsclashes replace /n using
/9
> as ASCII value.
> What is the list opinion ?
>
> --
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> http://sites.canaan.co.il
> --
>
>



-- 
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: Im back, oh and....

2001-08-29 Thread _lallous

Here we go:
It's about £30
//
ISBN 1-861003-73-0
Beginning PHP 4
www.wrox.com
//

I learned PHP from it.But that's the only Wrox book I recommend! ;(
I got the XML book and the Mastering Javascript from them! They really suck!
imho.


"Kyle Smith" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
... could someone give me the name of the best PHP learning book they have
read cause I just scored £110!


(yes, it was my birthday on august 16th and im now a whole 14 so i can have
my first urine test!)


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666






-- 
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: comparing scripts performance

2001-08-29 Thread _lallous

you might want to add this to each of the scripts and see:


btw, check the microtime() it have exatly what you're looking for.

Greetings from Lebanon ;)


"Ben-Nes Michael" <[EMAIL PROTECTED]> wrote in message
00c601c13066$990f51c0$[EMAIL PROTECTED]">news:00c601c13066$990f51c0$[EMAIL PROTECTED]...
> Is there a way to compare between two scripts ?
>
> like how much time took every script or how much memory/resources it used.
>
> --
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> http://sites.canaan.co.il
> --
>
>



-- 
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] If-statement

2001-08-29 Thread Niklas Lampén

Is it possible to write this shorter:

if ($Var != "No1" && $Var != "No2" && $Var != "No3") {
code
};


Niklas



Re: [PHP] If-statement

2001-08-29 Thread Darius Ivanauskas

if(!preg_match("/^No[123]$/",$Var))
{
   code
}

--
Darius Ivanauskas

On Wed, 29 Aug 2001, [iso-8859-1] Niklas Lampén wrote:

> Is it possible to write this shorter:
> 
> if ($Var != "No1" && $Var != "No2" && $Var != "No3") {
> code
> };
> 
> 
> Niklas
> 


--
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] Database Preference?

2001-08-29 Thread Miles Thompson


If you are used to Informix, MySQL will be unsatisfying - no stored 
procedures, outer joins, sub-queries, transactions. MySQL is much like 
early dBase II.

I'm not familiar with MS SQL on a price per seat basis, but how many 
developers do you have? If you are doing this web-based you don't have that 
many "seats". Given that your developers are used to working in MS SQL it 
may be cheaper in terms of overall developer costs.

The downside of that course is that you are locked into MSFT's plans for 
the product and Windows NT/2000/XP.

A robust and reliable open source alternative is PostgreSQL. It has 
features your developers are used to, is adequately fast, and is certainly 
robust. It would probably be the easiest port. Drivers are kept current in 
PHP, Python, Perl and of course ODBC.

Regards - Miles Thompson

At 09:50 PM 8/28/01 -0400, james wrote:
>We have several GUI applications that we are preparing to convert to
>web-based applications, based primarily on PHP.  The applications are based
>on Informix On-Line (on a SCO Unix server) and MS SQL (on NT).  Since we
>will be doing a port, in any case, I am wondering your thoughts on whether
>MySQL may be a better database solution.  This is particularly important
>from a price-performance point of view since the other two databases are
>quite pricy on a per-seat basis.
>
>TIA,
>James
>
>
>
>--
>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] cant connect to mysql

2001-08-29 Thread Miles Thompson


Is MySQL running?
Miles

At 08:04 AM 8/29/01 +0530, Sagar N Chand wrote:
>Hi geeks,
>
>I have a strage problem over here. I developed a site which runs fine at 
>my home.
>When i hosted it on to the remote server it is giving an error saying cant 
>connect
>to mysql. the error is like this
>
>Warning: Can't connect to local MySQL server through socket 
>'/tmp/mysql.sock' (111) in /home/httpd/html/procbit/login.php on line 17
>
>the line 17 in my code is as follows:
>$db=mysql_connect("localhost","root","password");
>
>please help me out of this problem.
>Please reply me at [EMAIL PROTECTED]
>
>thank you all
>sagar


-- 
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] script preprocessor?

2001-08-29 Thread alvarez


 Is there a macro preprocessor that can be used to substitute arbitrary
 sections of code with different code? define is documented as working
 for rvals only and my attempts to produce something more meaty lead to
 parse errors.

   Any advice?


  D. Alvarez Arribas <[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] PWS

2001-08-29 Thread Phil Driscoll

On Tuesday 28 August 2001 3:27 pm, frank clarke wrote:
> I have installed PHP CGI 4.0 on my Win 98 machine with
> PWS and tried this script that I put in the wwwroot
> directory and called test.php3:...
If you view source on the blank page you get, do you see your php sourcecode?
If so, maybe it's just that you have not configured the web server to map 
.php3 extensions. The installer defaults to only mapping .php although you 
can explicitly enable the deprecated .php and .phtml extensions for backward 
compatibility if you want.

Post again if that's not the problem.

Cheers
-- 
Phil Driscoll

-- 
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] The future of PHP

2001-08-29 Thread Frederick L. Steinkopf

Manuel,
Rather than whining about the future of PHP, why don't you be proactive and
take on the goal of raising the $100,000 for the project?
Fred Steinkopf

- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Manuel Lemos" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 12:11 AM
Subject: Re: [PHP] The future of PHP


> > These guys resort to these marketing tricks to promote Python as hell,
> > and the PHP people just sits and waits doing almost nothing in
> > comparision to promote PHP as hard as they can even when they lives
> > depend on the acceptance of PHP as a wide spread language!
>
> Manuel, please, give this tirade a rest.  Nobody associated with Python
> development was involved in this "amazing" marketing trick you are
> referring to.  Somebody just decided to do this on their own.  And now you
> are criticizing the PHP developers for not having the same foresight as
> the Python developers?
>
> It says so right in their FAQ
> (http://software-carpentry.codesourcery.com/faq.html)
>
> "And in answer to some of the more virulent postings on Usenet and in
>  other venues, neither Guido van Rossum nor anyone else associated with
>  Python development was involved in setting up this project, choosing the
>  language, or defining the terms of the competition. Guido was only asked
>  to be a judge after the decision to use Python had been made. If we
>  had decided to use Perl or Tcl, we would obviously have invited Larry
>  Wall or John Ousterhout to join the panel."
>
> If somebody wants to put up $100,000 for a PHP software contest, perfect,
> great, we will be every bit as cooperative as the Python developers.
>
> -Rasmus
>
>
> --
> 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] What happened to Imagettftext() function in PHP 4.0.7 and GD 2.1?

2001-08-29 Thread SED

I'm working on a project which needs a text rendered to JPEG-image, but
when I use the imagettftext() function I get very ugly/damage font (I'm
using PHP 4.0.7 and GD 2.1 downloaded from php4win.com, IIS). However,
if I use the GD 1.6 instead I get the font okay. 

I do need to have the GD 2.1 version working and I of course I can't use
the both versions at the same time. Does anyone know why the true type
fonts gets very so ugly/damage in this latest GD version? Do you know
how I can bypass this problem?

Thanks!

Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--


-- 
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] strange linefeed effect

2001-08-29 Thread alvarez


 How can I prevent PHP from outputting additional linefeeds when
 data are echoed from different files (eg. using require).

 This phenomenon is fucking up my document structures.

   Any advice?


  D. Alvarez Arribas <[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] JPEG true color problems (repost)

2001-08-29 Thread Jane Dennett-Thorpe


Anyone know anything about this. please

> Hello,
> 
> I'm trying to make some thumbnails from some JPEG true color images.
> I have PHP version 4.0.4, and when i try 
> imagecreatefromjpeg($image)
> on these images, it doesn't happen. 
> 
> After hours of head-beating i've realised that the problem is truecolor
> (it works if i open an image editor and save as a palette image then
> try again...)
> 
> I'm not in a position to install 4.0.6, so please can anyone tell me how i
> do this? I'm happy that my orignals should remain ture color - i just need
> a way of making thumbs. (can't use imagemagick as runningnin safe mode 
> --> have no access to system calls)
> 
> thanks in advance,
> jane
> 
> 
> -- 
> 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] Sorry, i need HTML help

2001-08-29 Thread Kyle Smith

Sorry to post here but i need to know this info fast!

How do i make a scrolling marquee in HTML without using javascript


Thanks!
-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





Re: [PHP] Sorry, i need HTML help

2001-08-29 Thread Alexander Deruwe

On Wednesday 29 August 2001 19:08, you wrote:
> Sorry to post here but i need to know this info fast!
>
> How do i make a scrolling marquee in HTML without using javascript

You use the Insert scrolling text here tags.

ad

-- 
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: comparing scripts performance

2001-08-29 Thread Ben-Nes Michael

Thanks from Israel :)

 it helps, though I hope they will develope a function that returns speed,
memory or even performance detail on parts of the script.

Like:

The for() took 3ms and consumed ... memory
the while() took 2ms and consumed ... memory
...
...

> you might want to add this to each of the scripts and see:
>  //very first line of the script
> echo "Script started at:" . date("D M j g:i:s T Y");
> //very last line of the script
> echo "Script ended at:" . date("D M j g:i:s T Y");
> ?>
>
> btw, check the microtime() it have exatly what you're looking for.
>
> Greetings from Lebanon ;)
>
> > Is there a way to compare between two scripts ?
> >
> > like how much time took every script or how much memory/resources it
used.
> >
--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--


-- 
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] The future of PHP

2001-08-29 Thread Zeev Suraski

At 05:21 29-08-01, Manuel Lemos wrote:
>If when you mean pro-active you mean that's intentional and is all part
>of a plan,
>then  we agree. If you acted somehow to promote PHP and got some
>unexpected results
>(good or bad) that is still marketing although not pro-active.

Regardless of this definition, I meant the former.  It was quite 
intentional, we're working towards publishing articles about PHP and trying 
to get analysts to cover it.

>If you are going to descriminate sites based on subjective criteria,
>like matters of taste or points of view that vary greatly from person to
>person, that is bad because you will certainly leave out contributions
>that could help greatly PHP and in the end yourself.
>
>It would certainly would make you look arrogant if you get to be picky
>as if including some sites and not others you would be doing somebody
>else a favor when the promotion that PHP gets from the sites will always
>benefit you direct or indirectly.

But that's the problem, and that's why I think it's not necessarily a good 
idea.  Some people may feel it's arrogant, but it doesn't change the fact 
that some sites may result in PHP's brand going in the opposite 
direction.  Because there's no objective criteria and no jurisdiction, we 
won't have ways to avoid this, at least not without causing some people to 
feel very bad.

>If I were you I certainly would not rule out sites with content that
>overlaps others. Why not accept all sites that provide PHP articles? One
>site may not be as good or as complete as other today, but they may
>improve over time enough to be technically better than others that you
>picked before. What would you do then? Accept what you refused before
>and then discard what you accepted before? Doesn't seem to be a good
>idea.

I think that you're forgetting where this whole discussion started.  If the 
idea is to make everybody feel good about themselves (which is a viable 
objective on its own) and be as 'fair' as possible, then what you wrote in 
this paragraph and in the two paragraphs before it makes perfect 
sense.  But that's not the goal you were talking about.  The goal is to 
push PHP, to market it, and to give it a good image.  Unfortunately, doing 
the 'nice-to-everybody' thing ('developer-oriented') does not go hand in 
hand with doing the right thing from a marketing perspective 
('consumer-oriented').  They're not mutually exclusive, not at all, but 
they're definitely not identical directions.

>Anyway, in a Web ring banner you only promote a site at each banner
>view. I don't see the problem of rotating banners of overlapped content.

The way I see it is that if it's too loose, it's useless.  It won't give 
PHP any professional feel or anything.  If it's more tight, then we're 
going to have to ensure that the sites are sync'd in terms of avoiding 
duplicate content, that they're all of good quality, etc.  This is *very* 
difficult to do in a world which is almost completely based on volunteer 
work.  I, for one, don't think we can demand *anything* from PHP community 
site webmasters - whatever they do to help PHP is good, and they should get 
to decide how much and in what ways they're willing to contribute.


> > Things like that are usually not that simple, or in other words, they're
> > easier said than done.  If done sloppily, they can have a negative
> > effect.  And doing them correctly requires substantial efforts.
>
>You sound bureacratic. You should feel honoured by the extra promotion
>that all the PHP content sites give you because your business depends on
>PHP acceptance in the market. Why make it hard for sites that are
>willing to help you in the end?

Because I'm trying to look at the goal and look how we can try to achieve 
it, and be as realistic as possible about our chances.  Using a screwdriver 
to hammer a nail doesn't work, and I think that thinking that this Web ring 
would do the job of marketing PHP is over-optimistic.
Honor has nothing to do with it, and I think it's a great thing that there 
are lots of PHP web sites and a strong community behind it.

>I think it is fair enough to make some base rules like "don't be too
>lame" (define "too lame"), but almost everybody should be accepted.

If we go that route, you can call it in many ways, but marketing is not one 
of them :)



>I guess you just say that because you were simply not affected by the
>major Internet layoffs that happened in the latest months, so you don't
>seem to have a great idea how bad this has been for so many people.
>
>Of course the Internet is not gone. It just happens that the number of
>companies with business depending on it was drastically reduced. So,
>there aren't so much employment and business opportinities as before.
>That's what I mean.

I'm quite aware of the serious slow down, I'm in the hi tech industry as 
well, remember? :)  It doesn't change the way the Web's future looks as a 
medium.  There was serious hype that caused a big balloon of hot

Re: Re: [PHP] Sorry, i need HTML help

2001-08-29 Thread alvarez


>> Sorry to post here but i need to know this info fast!
>>
>> How do i make a scrolling marquee in HTML without using javascript
 
>You use the Insert scrolling text here tags.   

   Unsupported by several Navigator Releases.


  D. Alvarez Arribas <[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] Re: multiple submit buttons

2001-08-29 Thread Herouth Maoz

On Wednesday 29 August 2001 10:09, Justin French wrote:

> I noticed this chunk of code in a site the other day:
>
> 
> 
>
>
> My GUESS is that if i click the "Yes" button, I magically
> get $btn = "Yes" as a var is the receieving PHP script.
> I was just about to test this, when I realised that (from
> what I can tell) multiple submits are not supported by CGI
> spec.
>
> So, even if it works on my browser/platform/server/php
> combination, can I be sure it'll work faithfully on all
> environments?

This has nothing to do with the CGI standard. It has to do with the 
HTML standard, which says that:

  "If a form contains more than one submit button,
   only the activated submit button is successful."

This appears on:

   http://www.w3.org/TR/html4/interact/forms.html#h-17.13

Note that the CGI "standard" really has little to do with PHP unless 
you compiled in CGI mode. Some behaviour was inherited from it, but 
really, all that is relevant to us is the HTML and the HTTP standards.

Herouth


-- 
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: how to sort search results by relevance?

2001-08-29 Thread BRACK

> In article <3B8A1D6A.4295.2947D@localhost>, [EMAIL PROTECTED]
> (Yura) wrote:
> 
> > How to sort search results of php-mysql site by relevance?
> 
> See the mysql manual's chapter on FULLTEXT indexes.

I indexed column 'text' and tried to add "ORDER BY text DESC" in 
query and deleted wildcards in front of variables but still it doesn't 
sort results by number of found words (or parts of words). Maybe I 
didn't quite understand what to do?

Youri


<>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
http://www.body-builders.org

-- 
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: Re: [PHP] Sorry, i need HTML help

2001-08-29 Thread Andrew Brampton

So is javascript :)

or should I say that IE & NS don't agree on standards.

Andrew

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 12:47 PM
Subject: Re: Re: [PHP] Sorry, i need HTML help


> 
> >> Sorry to post here but i need to know this info fast!
> >>
> >> How do i make a scrolling marquee in HTML without using javascript
>  
> >You use the Insert scrolling text here tags.   
> 
>Unsupported by several Navigator Releases.
> 
> 
>   D. Alvarez Arribas <[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] concatenate?

2001-08-29 Thread Bopolissimus Platypus

On Tue, 28 Aug 2001 16:34:44 +0100, [EMAIL PROTECTED] (Seb Frost)
wrote:
>$string0 = "hello";
>$string1 = "goodbye";
>
>$string2 = $string0 . " and " . $string1;
>
>result:$string2 = "hello and goodbye"

also, 

$string2="$string1 and $string2";

i'm not sure if there are subtleties there that make
this not as good as the preceding answer.  generally
i go with this one since it's shorter and is, for
me, more readable.  

does anyone know of a scenario (perhaps involving 
non-string data) where the concatenation does not
return the same answer?

tiger

-- 
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] Im back, oh and....

2001-08-29 Thread B. van Ouwerkerk


>... could someone give me the name of the best PHP learning book they have 
>read cause I just scored £110!

PHP 4 bible (IDG books), MySQL (NewRiders), several books from Wrox.. read 
the archive several books are mentioned there.

>(yes, it was my birthday on august 16th and im now a whole 14 so i can 
>have my first urine test!)

So you're 14.. does you mom know you're here :-)

Bye,


B.


--
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] The future of PHP

2001-08-29 Thread Alexander Skwar

So sprach »Manuel Lemos« am 2001-08-28 um 23:21:54 -0300 :
> Man, give it some time! How long was it since Andrei released PHP-GTK?
> How old is PHP now?

Exactly.  And also Perl wasn't made to create GUI apps, was it?  But
look how many Perl GUI apps there are out there now.  Eg. all (? at
least a lot) of the Mandrake configuration tools are in Perl, or cscmail
was/is made in Perl.

Just because PHP-GTK might not be mature YET, does not mean that it will
never be.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 23 hours 5 minutes

--
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] real optional parameters

2001-08-29 Thread alvarez


  How can I declare optional parameters as used by strpos, substr, etc.
  to specify the offset? I do not want to have to preceed some functions
  with the @-operator, and preceeding all for consistency wouldn't be an
  option, I think. Is it possible at with user-defined functions?

 quick help is appreciated. thanks.

  D. Alvarez Arribas <[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: The future of PHP - accessory libraries

2001-08-29 Thread Heiko Maiwald


Rasmus Lerdorf wrote:
> > Exactly.  When you do ./configure --with-foo=shared;
make
> > then modules/foo.so will appear magically and you can dl() that
or load it
> > using "extension=foo.so" in your php.ini.  You don't have
to recompile
> > PHP.
> >
> > -Rasmus
>
> I am afraid that is only theory. I tried that for the snmp module
and all I get
>
> is a linker error about unreferenced symbols, when I try to load
it.
Which symbols?
 
This is the error message I get:
 


Warning: Unable to load dynamic library '/usr/local/lib/php/modules/snmp.so' - ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/lib/php/modules/snmp.so: symbol alloc_globals: referenced symbol not found in /usr/local/apache/htdocs/snmp.php on line 3

Heiko

-- 
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] PHP mysql admin?

2001-08-29 Thread Alexander Skwar

So sprach »Christian Dechery« am 2001-08-27 um 22:57:49 -0300 :
> phpMyAdmin is very nice...
> but not even close to Mysqlfront... try it out...
> 
> http://www.mysqlfront.de/

Well, but for this to work, you either have to have a local MySQL on
your Windows platform, or the database has to be open to connects from
every IP address (or, if you're lucky enough to have a static IP: just
your IP).

The latter is a security hole, of course.  So, mysqlfront, as nice as it
might be, is not comparable to phpmyadmin.  (Note: I'm not saying it's
bad - you just cannot compare them.)

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 23 hours 17 minutes

--
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] What does PHP stand for?

2001-08-29 Thread Alexander Skwar

So sprach »Niklas Lampén« am 2001-08-28 um 14:05:54 +0300 :
> Funny that there is no meanin for the first P.

Well, there is.  The P stands for PHP.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 23 hours 20 minutes

--
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: script preprocessor?

2001-08-29 Thread Hugh Bothwell


<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>  Is there a macro preprocessor that can be used to substitute arbitrary
>  sections of code with different code? define is documented as working
>  for rvals only and my attempts to produce something more meaty lead to
>  parse errors.

You could define the code as a function, then check which version of the
function to use...





-- 
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: Sorry, i need HTML help

2001-08-29 Thread Luke Welling

"Kyle Smith" wrote:
> Sorry to post here but i need to know this info fast!
> How do i make a scrolling marquee in HTML without using javascript

The next time you need to know something off topic to the list fast, you
could try google.

It took me about three seconds to do the following:
Go to www.google.com
Paste "How do i make a scrolling marquee in HTML without using javascript"
into the search box
Press the search button
Click on the first link it gave me

In three seconds I have the answer and as a bonus I have not annoyed
hundreds of people by posting an off topic question to an already busy
mailing list.

Luke Welling.



-- 
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: If-statement

2001-08-29 Thread Hugh Bothwell


"Niklas lampén" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is it possible to write this shorter:
>
> if ($Var != "No1" && $Var != "No2" && $Var != "No3") {
> code
> };

$badValues = array("No1", "No2", "No3");
if (!in_array($Var, $badValues)) {
code;
}

Also note that your trailing semicolon is unnecessary.



-- 
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: multiple submit buttons

2001-08-29 Thread Tim Ward

As far as any CGI is concerned there is only one submit, The one that is
pressed. The other one is simply not posted. But be careful using values of
submit buttons ... if the user hits return instead of clicking one of the
buttons you won't get anything. If you want a default value try a hidden
field before the submits with same name.

Tim Ward

--
From:  Justin French [SMTP:[EMAIL PROTECTED]]
Sent:  29 August 2001 08:10
To:  php
Subject:  multiple submit buttons

Hi all,

I noticed this chunk of code in a site the other day:





My GUESS is that if i click the "Yes" button, I magically 
get $btn = "Yes" as a var is the receieving PHP script.  
I was just about to test this, when I realised that (from 
what I can tell) multiple submits are not supported by CGI 
spec.

So, even if it works on my browser/platform/server/php 
combination, can I be sure it'll work faithfully on all 
environments?

Should I be worried about what the browser sends, or what 
PHP does with it, etc etc?


Has anyone doen some serious testing on this?  Good or bad 
stories?


Justin French

-- 
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] concatenate?

2001-08-29 Thread Soeren Nielsen

> does anyone know of a scenario (perhaps involving
> non-string data) where the concatenation does not
> return the same answer?

If you have three vars:
$user = "foo";
$users = array("Peter","Michael");

This could be a problem:
echo "$users hair is brown";

if what you ment was:
echo $string."s hair is brown"; // Peters hair is brown


Regards,
Søren

PS: In Danish (I'm Danish) you write 'Peters hair' and not 'Peter's
hair' which why I made this silly example :-)







-- 
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: multiple submit buttons

2001-08-29 Thread Andrey Hristov

Maybe it is not supported by CGI but that doesn't mean it is not supported by the 
browser. There is no reason for IE of course to
say "it hurts". When you click first button bth is "Yes", click on second button bth 
is "No". Also you can have several buttons
everyone of them do "submit" with different names, so if one button is named "edit", 
other - "delete". When a user clicks "delete"
button PHP put in $HTTP_GET_VARS or $HTTP_POST_VARS "delete" index. There is no "edit" 
index.


Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%

- Original Message -
From: "Tim Ward" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>; "'Justin French'" <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 3:52 PM
Subject: [PHP] RE: multiple submit buttons


> As far as any CGI is concerned there is only one submit, The one that is
> pressed. The other one is simply not posted. But be careful using values of
> submit buttons ... if the user hits return instead of clicking one of the
> buttons you won't get anything. If you want a default value try a hidden
> field before the submits with same name.
>
> Tim Ward
>
> --
> From:  Justin French [SMTP:[EMAIL PROTECTED]]
> Sent:  29 August 2001 08:10
> To:  php
> Subject:  multiple submit buttons
>
> Hi all,
>
> I noticed this chunk of code in a site the other day:
>
> 
> 
>
>
> My GUESS is that if i click the "Yes" button, I magically
> get $btn = "Yes" as a var is the receieving PHP script.
> I was just about to test this, when I realised that (from
> what I can tell) multiple submits are not supported by CGI
> spec.
>
> So, even if it works on my browser/platform/server/php
> combination, can I be sure it'll work faithfully on all
> environments?
>
> Should I be worried about what the browser sends, or what
> PHP does with it, etc etc?
>
>
> Has anyone doen some serious testing on this?  Good or bad
> stories?
>
>
> Justin French
>
> --
> 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] concatenate?

2001-08-29 Thread Andrey Hristov



Produces :
alalabas here



Produces :
Arrays here

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%


- Original Message -
From: "Soeren Nielsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 3:46 PM
Subject: Re: [PHP] concatenate?


> > does anyone know of a scenario (perhaps involving
> > non-string data) where the concatenation does not
> > return the same answer?
>
> If you have three vars:
> $user = "foo";
> $users = array("Peter","Michael");
>
> This could be a problem:
> echo "$users hair is brown";
>
> if what you ment was:
> echo $string."s hair is brown"; // Peters hair is brown
>
>
> Regards,
> Søren
>
> PS: In Danish (I'm Danish) you write 'Peters hair' and not 'Peter's
> hair' which why I made this silly example :-)
>
>
>
>
>
>
>
> --
> 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] Re: suggestions

2001-08-29 Thread Bopolissimus Platypus

On Tue, 28 Aug 2001 19:41:51 -0400, [EMAIL PROTECTED]
(Glyndower) wrote:

>I have a medium sized db... with about 300 feilds and 15k rows.
>
>I need to create a search that will submit user input to seach the db from
>about 30 different feilds with some of those wildcards.
>
>i.e bedrooms, bathrooms, price, pool, city, etc
>
>Would using an array for the results page be the best way to approach this
>in PHP?

depends on how much and what post-processing you might
want to do to the data before printing it out.  

in the most common case, you don't need to do any. 
for example, you already did the sorting in the SQL query,
so the database already did the sorting.  and usually you
just need to display the data as it is received, no need for
special post-processing/massaging.  

then there's no need to use arrays at all, just read the rows 
from the resultset, and display the fields you want to 
display, e.g.,

$res=sql_exec($query);  
 /* $res is the result set, use for stepping over the rows 
  found */

$fldsToDisplay="fullname addr1 addr2 city state zip ";
   /* add other fields to display in the order you want them
   displayed */

$fldstoDisplay=explode(" ",$fldsToDisplay);
   /* i'm lazy.  array(...) works too but i like this more
   because the list is easier to type as a string (fewer
   quotes) and you can load the list of flds to display
   from somewhere else (e.g., a config file or something)
  */

print("\n");

/* for each row in the resultset, get associative array of
the row */
while($row=sql_fetch_array($res)) 
{
 print("\t\n");

  /* for each field to be displayed, get the next
  fieldname, and get the corresponding data
  from the associative array and print it in a
  table cell */
  for($ctr=0;$ctr$data\n");
  }

  print("\t\n");
}

print("\n");

PS.  replace sql_* functions with the relevant
functions for your database or with whatever DB
abstraction package you use.

PPS. sometimes you have to do post-processing.  
but most such data massaging involves only other 
fields in the same row or global data.  the above
common case system will need to be modified if
your data massaging involves data from other,
far-off rows in the same selection.  usually, though,
even that can be solved by sub-selects and
other SQL tricks.


-- 
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] The future of PHP

2001-08-29 Thread Manuel Lemos

Hello,

> > These guys resort to these marketing tricks to promote Python as hell,
> > and the PHP people just sits and waits doing almost nothing in
> > comparision to promote PHP as hard as they can even when they lives
> > depend on the acceptance of PHP as a wide spread language!
> 
> Manuel, please, give this tirade a rest.  Nobody associated with Python
> development was involved in this "amazing" marketing trick you are
> referring to.  Somebody just decided to do this on their own.  And now you
> are criticizing the PHP developers for not having the same foresight as
> the Python developers?

Yes. I feel that it is a constructive criticism, like saying, there are
plenty of ways to market PHP, with or without money, but what you do in
comparision is very little to what Python people do. So, you need to do
more. I am not saying that what you do is wrong.


 
> It says so right in their FAQ
> (http://software-carpentry.codesourcery.com/faq.html)
> 
> "And in answer to some of the more virulent postings on Usenet and in
>  other venues, neither Guido van Rossum nor anyone else associated with
>  Python development was involved in setting up this project, choosing the
>  language, or defining the terms of the competition. Guido was only asked
>  to be a judge after the decision to use Python had been made. If we
>  had decided to use Perl or Tcl, we would obviously have invited Larry
>  Wall or John Ousterhout to join the panel."

What this says is something like if applied to PHP, what we are doing
was not Rasmus initiative, although he accepted to be a judge in the
contest. That doesn't matter, they are still committed to market Python
like hell. 

 
> If somebody wants to put up $100,000 for a PHP software contest, perfect,
> great, we will be every bit as cooperative as the Python developers.

Money doesn't come that easily. You have to go after it if you feel it
is needed. What won't help is staying there and do nothing, because I
think the money won't come to you from the sky. You need to find
sponsors. I'm sure it won't be hard if you really bother to look for
them.

Regards,
Manuel Lemos

-- 
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] Making gd Extensions

2001-08-29 Thread Chris Mulcahy

Greetings:

I'm following the thread regarding PHP extensions in the thread "The
future of PHP - accessory libraries" very anxiously.  I've been trying
to get this feature going for quite some time but without success.

The current item I'm wrestling with is the gd extensions.  I've rebuilt
PHP and Apache so many times to enable one feature only to learn that I
forgot to recompile one that I'd relied on previously.  It's a never
ending battle to get all of the features required.

The .so extensions option is a great feature that I'd like to make use
of.

In trying to compile the gd .so extension (gd-1.8.4), I'm receiving the
following errors.  Any ideas?

Thanks
Chris Mulcahy
---

Making all in ext
make[1]: Entering directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
Making all in gd
make[2]: Entering directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
make[3]: Entering directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
gcc  -I. -I/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd -I/home/cm
ulcahy/transfer/webserver/php-4.0.6/main -I/home/cmulcahy/transfer/webse
rver/php-4.0.6 -I/home/cmulcahy/transfer/webserver/php-4.0.6/Zend -I/hom
e/cmulcahy/transfer/webserver/php-4.0.6/ext/mysql/libmysql -I/home/cmulc
ahy/transfer/webserver/php-4.0.6/ext/xml/expat/xmltok -I/home/cmulcahy/t
ransfer/webserver/php-4.0.6/ext/xml/expat/xmlparse -I/home/cmulcahy/tran
sfer/webserver/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2
  -c gd.c && touch gd.lo
gd.c:95: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
gd.c: In function `php_if_imagecreatefromgif':
gd.c:1209: `gdImageCreateFromGif' undeclared (first use in this
function)
gd.c:1209: (Each undeclared identifier is reported only once
gd.c:1209: for each function it appears in.)
gd.c: In function `php_if_imagegif':
gd.c:1404: `gdImageGif' undeclared (first use in this function)
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/cmulcahy/transfer/webserver/php-4.0.6/ext'
make: *** [all-recursive] Error 1



-- 
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] [SPAM] mail adress abused and now drowning in mails

2001-08-29 Thread Christian Lederer

I contributed some notes to the function library on http://www.php.net ,
where i have left my mail address some months ago. mail address was like
php@
For 3 Days now, i am receiving lots of email-ads via this account (~10/day),
mainly .tw and sex stuff.
Is there anyone having this problem, too?

Thanks for responses
Christian Lederer



-- 
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] The future of PHP

2001-08-29 Thread Cristopher Daniluk

I don't understand when this thread became so focused on monetary needs. We
are talking about penetrating corporate markets, and all corporate markets
care about is time to market, cost of maintenance, and long term support.
Not that marketing is worthless, but if we build a better product, it will
be used whether we do some Houdini use-our-product marketing game or not.
The future of PHP will be determined by the dedication and sacrifice of the
developers associated with it. Every success is measured in sacrifice. In
the realm of Java and .NET it is primarily a monetary sacrifice - they could
have spent that money on something else, but elected to spend it on this
instead. Every member of the PHP team could have spent their time on
something else, but chose this. This continued dedication will yield just as
much success in the long run. The true reason that Java gets a huge boost
from marketing is that marketing creates the labor market of qualified
people by encouraging people to retrain based on a perceived market for the
technology. It is the perception that creates the market. Voodoo economics
at its best.

As I said before, PHP is already discussed in the corporate circles that
matter, and the recurring theme is getting qualified people to do it. Sure,
experienced Java or C or ASP (bleh) gurus could retrain easily and be able
to handle PHP with no trouble. Who cares? They're not there yet. That
affects time to market. When we look at pure numbers, there is a direct
correlation between the corporate growth of PHP and the labor market of PHP
developers. While we cannot create a labor market out of perceptual metrics,
we have, in my opinion, the strongest and most comprehensive web scripting
language on the planet, and that will make the future of PHP bright and
limitless. The never ending dedication of the hundreds of developers and the
thousands of people preaching its wonders will ultimately propel us to the
front page of every buzzword magazine in circulation. This will happen
whether we have silly games, spend a billion dollars on ad campaigns, build
trade show booths that look like space rockets, or give away door prizes for
making tricky code.

Manuel, I can only urge you to focus on reality instead of Utopia. We have a
better product and that is all we have. The good news? That's all we need.
Maybe a little patience and some free pizza too, but that's neither here nor
there. Economics says so.

Regards,


Cristopher Daniluk
President & CEO
email: [EMAIL PROTECTED]
direct: 330/530-2373

Digital Services Network, Inc
Unleashing Your Potential
voice: 800/845-4822
web: http://www.dsnet.net/


-Original Message-
From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 9:21 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] The future of PHP


Hello,

> > These guys resort to these marketing tricks to promote Python as hell,
> > and the PHP people just sits and waits doing almost nothing in
> > comparision to promote PHP as hard as they can even when they lives
> > depend on the acceptance of PHP as a wide spread language!
>
> Manuel, please, give this tirade a rest.  Nobody associated with Python
> development was involved in this "amazing" marketing trick you are
> referring to.  Somebody just decided to do this on their own.  And now you
> are criticizing the PHP developers for not having the same foresight as
> the Python developers?

Yes. I feel that it is a constructive criticism, like saying, there are
plenty of ways to market PHP, with or without money, but what you do in
comparision is very little to what Python people do. So, you need to do
more. I am not saying that what you do is wrong.



> It says so right in their FAQ
> (http://software-carpentry.codesourcery.com/faq.html)
>
> "And in answer to some of the more virulent postings on Usenet and in
>  other venues, neither Guido van Rossum nor anyone else associated with
>  Python development was involved in setting up this project, choosing the
>  language, or defining the terms of the competition. Guido was only asked
>  to be a judge after the decision to use Python had been made. If we
>  had decided to use Perl or Tcl, we would obviously have invited Larry
>  Wall or John Ousterhout to join the panel."

What this says is something like if applied to PHP, what we are doing
was not Rasmus initiative, although he accepted to be a judge in the
contest. That doesn't matter, they are still committed to market Python
like hell.


> If somebody wants to put up $100,000 for a PHP software contest, perfect,
> great, we will be every bit as cooperative as the Python developers.

Money doesn't come that easily. You have to go after it if you feel it
is needed. What won't help is staying there and do nothing, because I
think the money won't come to you from the sky. You need to find
sponsors. I'm sure it won't be hard if you really bother to look for
them.

Regards,
Manuel Lemos

--
PHP General Mailing List (http://www.php.

[PHP] HTTP 500 server error

2001-08-29 Thread Web user

It always gets HTTP 500 server error, when I  try to run the php scripts on Windows98 
SE + PWS4.0. 
THE PHP installed is Ver 4.06 -win32, as a server module.

However I get a screen full of html codes when  I run c:\php\php.exe -i in MS-DOS 
command line

So what's problem with the installation or configuration?
Thanks

BAKER



Re: [PHP] The future of PHP

2001-08-29 Thread Manuel Lemos

Hello,

"Frederick L. Steinkopf" wrote:
> 
> Manuel,
> Rather than whining about the future of PHP, why don't you be proactive and
> take on the goal of raising the $100,000 for the project?

Because I do not depend on the PHP future for my professional life. That
is a role for PHP core developers that only dedicate to PHP.

Anyway, if you followed the whole thread from the beginning, you would
noticed that I developed the PHP Classes repository. It is a site that
lets developers post their PHP components in the form of PHP classes.
Everytime a developer posts a new class, a notification message is sent
to the site subscribers. The site has now over 42.000 subscribers. Over
300 classes have been contributed by the about 200 authors.

This is a great place for developers get immediate exposure of their
work and for users to find some freely available ready to use components
for their PHP applications. I developed this site originally to
distribute my own PHP classes, but while I was at it I decided to make
it a place for other developers to distribute theirs. So, this helps PHP
being promoted by providing compensation to both the developers and the
users.

This was all planned ahead. The users are required to login to download.
That way I can account acurately the number of users that downloaded the
classes. This way I can compute acurate top download charts, creating a
sort of hall of fame for the most popular PHP Classes and the authors
that contributed them. I antecipated that this way I would be providing
recognition to PHP and all the authors that contributed because in the
end I would have real figures to show to those that doubt of PHP
acceptance.

How much is that worth if you had money to put up front to promote PHP
with a normal marketing campaign? Maybe more that $100.000. If I just
think of the work envolved in the development of the site for all these
two years, it would probably cost more.

I don't do more because I really can't justify putting more time because
these days my professional life does not revolve around PHP, not even
for the Web. Since I really can't do it, coming here expressing my
points on what should be done is much better than nothing.

People that know me, are aware that once in a while I bother to speak up
for the best of PHP, proposing new ways to go and warning about things
that are not being properly addressed. If you look back in the mailing
list archives you will notice that I am often fought by people that
refuse to agree with me, maybe because they are responsible for not
having done what I am proposing or for some reason they don't like to
give me the reason that what I say the right way to go, despite probably
some agree but don't want to admit it.

Anyway, it doesn't matter, as long as something gets done and the future
is brighter for PHP and all those that depend on it. So, history
demonstrated that despite things are not done exactly as I proposed,
something is done, which is better than nothing. I think this is being
proactive, because I am acting with the intention of causing some
progress. It does not cost me money directly, but the intention and the
good consequences are what matter.

Regards,
Manuel Lemos

-- 
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] Im back, oh and....

2001-08-29 Thread Kyle Smith

thanks and  you age discrimination sucks!


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666


- Original Message -
From: "B. van Ouwerkerk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 5:13 AM
Subject: Re: [PHP] Im back, oh and



>... could someone give me the name of the best PHP learning book they have
>read cause I just scored £110!

PHP 4 bible (IDG books), MySQL (NewRiders), several books from Wrox.. read
the archive several books are mentioned there.

>(yes, it was my birthday on august 16th and im now a whole 14 so i can
>have my first urine test!)

So you're 14.. does you mom know you're here :-)

Bye,


B.


--
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: Re: [PHP] Sorry, i need HTML help

2001-08-29 Thread Erik H. Mathy

> or should I say that IE & NS don't agree on standards.

Not to be too blunt, but what does that matter? IE owns damn near 90% of the
market nowadays. Even if AOL starts uses Navigator, that isn't going to
change much.

Don't get me wrong. Unless specified otherwise by a client I make all my
code as browser independent as possible. It's just that it's no longer as
large of a concern as it once was.

All IMHO, o' course...
- Erik


-- 
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: Sorry, i need HTML help

2001-08-29 Thread Gary

 will only work in Internet Explorier. If you want a 
marquee to work in all browsers you will have to use DHTML.

Kyle Smith wrote:

> Sorry to post here but i need to know this info fast!
> 
> How do i make a scrolling marquee in HTML without using javascript
> 
> 
> Thanks!
> -lk6-
> http://www.StupeedStudios.f2s.com
> Home of the burning lego man!
> 
> ICQ: 115852509
> MSN: [EMAIL PROTECTED]
> AIM: legokiller666
> 
> 
> 
> 


-- 
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: Re: [PHP] Sorry, i need HTML help

2001-08-29 Thread Seb Frost

And let's face it.  Compare IE5.5/6 with NS6.  MS owns the market for a damn
good reason.  I hear Netscape's pulling out anyway to concentrate on
iplanets instead or something.

- seb

-Original Message-
From: Erik H. Mathy [mailto:[EMAIL PROTECTED]]
Sent: 29 August 2001 15:27
To: [EMAIL PROTECTED]
Subject: RE: Re: [PHP] Sorry, i need HTML help


> or should I say that IE & NS don't agree on standards.

Not to be too blunt, but what does that matter? IE owns damn near 90% of the
market nowadays. Even if AOL starts uses Navigator, that isn't going to
change much.

Don't get me wrong. Unless specified otherwise by a client I make all my
code as browser independent as possible. It's just that it's no longer as
large of a concern as it once was.

All IMHO, o' course...
- Erik


--
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]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001


-- 
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] im puzzled

2001-08-29 Thread Jeremy Morano

Hi ,

this is my query

SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id;

this works correctly. The results are what they are supposed to be:
However, when I change the = sign to a <> or !=, The results are completely
incorrect.

--

picks.user_id contains: 5, 1, 7, 8, 9, 12, 13, 15

users.uid contains: 1, 8, 9, 5, 7, 10, 11, 12, 13, 14, 15


the result for SELECT users.uid FROM users, picks WHERE users.uid =
picks.user_id; is:

5, 1, 7, 8, 9, 12, 13, 15

and the result for SELECT users.uid FROM users, picks WHERE users.uid <>
picks.user_id; is:

1, 7, 8, 9, 10, 11, 12, 13, 14, 15, 5, 7, 8, 9, 10, 11,12, 13, 14, 15, 1, 5,
8, 9, 10 ,11...etc

it goes on for 80 rows with no particular pattern..H.E.L.P.!.


-- 
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: Sorry, i need HTML help

2001-08-29 Thread Tim

Yeah, but isn't "marquee" the ancient Aztec word for "tar and feather
me, I'm a tastless HTML author who is mesmerised by blinking lights and
horizonally scrolling text beyond my control"??

Someething like that.

- Tim ;)

On Wed, 2001-08-29 at 11:35, Gary wrote:
>  will only work in Internet Explorier. If you want a 
> marquee to work in all browsers you will have to use DHTML.



-- 
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] syntax help please?

2001-08-29 Thread Glyndower

I'm coming over from the ASP side and I'm trying to get a handle on this
stuff, I could use a little help with the how and wheres, please. I do ok
with the SQl bits, but the PHP bits are still being elusive...

Heres my code:

$sql = "SELECT
listnum,agentname,listAgent,streetName,streetNum,curprice,email_addr,officen
ame,officephone,agentname,agentphone,bedrooms,full_baths,half_baths,customer
Remarks FROM mlsdb WHERE mlsdb.statusCode = 'A' AND mlsdb.catgNum = '1'";

$result = mysql_query($sql);

//load it all into the associative array

while(list($listnum,$agentname,$streetName,$streetNum) =
mysql_fetch_row($result)):
echo "$listnum $agentname $streetNum $streetName ";
endwhile;

 ?>

Which displays:

50730 Aubrey May Wyndwood Drive 0
873171 Tia Lingle Palm Trl 9903
902385 Anthony Kipen Normandy Blvd 6458 ...

As you can see the $streetNum displays BEFORE the $streetName, I'm assuming
thats becuase thats the order they are in in the query..(?)

Heres my  "I'm a newbie" question... exactly how and where do I define the
variables so that i can use them in a different order than they are in the
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]




[PHP] SELECT * FROM

2001-08-29 Thread Tarrant Costelloe

Hello all, 
I have a designing a website of which people can submit news to, this works
fine. Just on the main page I have the following code (snippet);

\n";

  do {
printf("Title: %s By: %s |
Date: %s  Article: %s URL: Click here\n", $myrow["title"],
 $myrow["nickname"],$myrow["created"],$myrow["article"],$myrow["link"]);

  } while ($myrow = mysql_fetch_array($result));

echo "\n";

This again works fine just, the problem is that it always leaves the first
ever article submitted at the top of the page and the latest go down and
down etc... I would like to get the latest article to go at the top and
oldest to the bottom.

Any help would be gratefully apreciated!

Kind Regards

Tarrant Costelloe (Taz)
Development Department
---
(+44) 01273 852014
(+44) 07714087114
--
Qoute/Saying/Poem of the day:
"Common sense is the collection of prejudices acquired by age eighteen." -
George Burns
DISCLAIMER: Any opinions expressed in this email are those of the individual
and not necessarily those of insurE-Com Ltd.  (http://www.insur-e.net). This
email and any files transmitted with it, including replies and forwarded
copies (which may contain alterations) subsequently transmitted from
insurE-com, are confidential and solely for the use of the intended
recipient. It may contain material protected by attorney-client privilege.
If you are not the intended recipient or the person responsible for
delivering to the intended recipient, be advised that you have received this
email in error and that any use is strictly prohibited. If you have received
this email in error please notify the technical Infrastructure Group by
telephone on +44 (0)1273 204203 or via mail to [EMAIL PROTECTED],
including a copy of this message. Please then delete this email and destroy
any copies of 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]




Re: [PHP] SELECT * FROM

2001-08-29 Thread Jeff Lewis

In your query add ORDER BY "field name like date or ID" DESC.

That way it will put them in descending order and I do believe that is what
you're looking for :)

Jeff
- Original Message -
From: "Tarrant Costelloe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 10:55 AM
Subject: [PHP] SELECT * FROM


> Hello all,
> I have a designing a website of which people can submit news to, this
works
> fine. Just on the main page I have the following code (snippet);
>
>  $db = mysql_connect("localhost", "root");
> mysql_select_db("tolkiengossip",$db);
> $result = mysql_query("SELECT * FROM news",$db);
> if ($myrow = mysql_fetch_array($result)) {
>   echo " bordercolor=#66>\n";
>
>   do {
> printf("Title: %s By: %s |
> Date: %s  Article: %s URL:  target=_blank>Click here\n", $myrow["title"],
>  $myrow["nickname"],$myrow["created"],$myrow["article"],$myrow["link"]);
>
>   } while ($myrow = mysql_fetch_array($result));
>
> echo "\n";
>
> This again works fine just, the problem is that it always leaves the first
> ever article submitted at the top of the page and the latest go down and
> down etc... I would like to get the latest article to go at the top and
> oldest to the bottom.
>
> Any help would be gratefully apreciated!
>
> Kind Regards
>
> Tarrant Costelloe (Taz)
> Development Department
> ---
> (+44) 01273 852014
> (+44) 07714087114
> --
> Qoute/Saying/Poem of the day:
> "Common sense is the collection of prejudices acquired by age eighteen." -
> George Burns
> DISCLAIMER: Any opinions expressed in this email are those of the
individual
> and not necessarily those of insurE-Com Ltd.  (http://www.insur-e.net).
This
> email and any files transmitted with it, including replies and forwarded
> copies (which may contain alterations) subsequently transmitted from
> insurE-com, are confidential and solely for the use of the intended
> recipient. It may contain material protected by attorney-client privilege.
> If you are not the intended recipient or the person responsible for
> delivering to the intended recipient, be advised that you have received
this
> email in error and that any use is strictly prohibited. If you have
received
> this email in error please notify the technical Infrastructure Group by
> telephone on +44 (0)1273 204203 or via mail to [EMAIL PROTECTED],
> including a copy of this message. Please then delete this email and
destroy
> any copies of 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 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] syntax help please?

2001-08-29 Thread Alexander Deruwe

On Wednesday 29 August 2001 14:45, Glyndower wrote:

> Heres my  "I'm a newbie" question... exactly how and where do I define the
> variables so that i can use them in a different order than they are in the
> query?

Go over your results like this instead:

while ($row = mysql_fetch_row($result)) {
echo $row['listnum']; // displays 'listnum' field
echo $row['officephone']; // etc...
}

(I've assumed your syntax for the mysql_fetch_row() function, I haven't used 
it in a while (use PostgreSQL myself)).

ad

-- 
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] What does PHP stand for?

2001-08-29 Thread Sheridan Saint-Michel

PHP originally stood for personal home pages.  It was nothing more than a
parser that interpreted
a few macros to allow people to do extra things (like count visitors) on
their homepage.

PHP/FI or PHP2 was Personal Home Pages/Form Interpreter, and added form
handling and mSQL
to PHP.

PHP3 was the release that was a full blown Scripting Language/Interpreter.
With the release of
PHP as more than a personal homepage toolkit it was renamed "PHP Hypertext
Preprocessor"

The first P actually stands for PHP, making this a recursive acronym
(http://ase.isu.edu/ase01_07/ase01_07/bookcase/ref_sh/foldoc/30/91.htm)

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message -
From: "Martín Marqués" <[EMAIL PROTECTED]>
To: "John Meyer" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 5:08 PM
Subject: Re: [PHP] What does PHP stand for?


> On Mar 28 Ago 2001 19:52, John Meyer wrote:
> > At 05:15 PM 8/28/01 +0228, you wrote:
> > >It's actually a recursive acronym, like GNU:
> > >
> > > From the manual:
> > >
> > >"PHP, which stands for 'PHP: Hypertext Preprocessor', is an
HTML-embedded
> > >scripting language."
> > >
> > >J
> >
> > Am I making things up, or Did it stand for Perl Hypertext Preprocessor
at
> > one time?
>
> I always thought it meant Personal Home Page (isn't this right?)
>
> Saludos :-)
>
> --
> Porqué usar una base de datos relacional cualquiera,
> si podés usar PostgreSQL?
> -
> Martín Marqués  |[EMAIL PROTECTED]
> Programador, Administrador, DBA |   Centro de Telematica
>Universidad Nacional
> del Litoral
> -
>
> --
> 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] HELP : How to suggest a download-filename for IE on MAC

2001-08-29 Thread Sebastian Stadtlich

HELP i'm desperate
I try to write a downloadskript, which results in the fillowing URL :
http://www.myserver.de/securedownload.php?pdfdownload=checkliste3.pdf

yes you guessed right : securedownload does some auth-stuff 
it works on win2000 IE 6.0,5.5 NE 6.0 AND 4.76. it also works well on 
MAC when used with Netscape 4.5 but not when used with IE 5.
it always suggests 'securedownload.php' as the filename, which of cause
sucks 
I tried EVERY combination of the suggested headers at www.php.net/header
,
but can't get it to work.
here is what i use :

.
header( "Content-type: application/download\n" );
header( "Content-Disposition: filename=$download" );
header( "Content-Description: PHP3 Generated Data" );

set_time_limit(0);
readfile('/home/path/to/myfiles/securepdfs/'.$download);


Anyone ever found a solution for MAC ??
( i hate Mac, but my boss uses one, so ... )

Sebastian

--
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] im puzzled

2001-08-29 Thread Matthew Loff


You need to specify which item to group the query by.

SELECT users.uid FROM users, picks WHERE users.uid <> picks.user_id
GROUP BY users.uid;



-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 29, 2001 10:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] im puzzled


Hi ,

this is my query

SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id;

this works correctly. The results are what they are supposed to be:
However, when I change the = sign to a <> or !=, The results are
completely incorrect.

--

picks.user_id contains: 5, 1, 7, 8, 9, 12, 13, 15

users.uid contains: 1, 8, 9, 5, 7, 10, 11, 12, 13, 14, 15


the result for SELECT users.uid FROM users, picks WHERE users.uid =
picks.user_id; is:

5, 1, 7, 8, 9, 12, 13, 15

and the result for SELECT users.uid FROM users, picks WHERE users.uid <>
picks.user_id; is:

1, 7, 8, 9, 10, 11, 12, 13, 14, 15, 5, 7, 8, 9, 10, 11,12, 13, 14, 15,
1, 5, 8, 9, 10 ,11...etc

it goes on for 80 rows with no particular pattern..H.E.L.P.!.


-- 
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] SELECT * FROM

2001-08-29 Thread Jon Haworth

Couple of other tips for you.


1. SELECT * is bad unless you really need every field. If you don't, specify
which ones you want - the query will perform better. 

$s = "SELECT * FROM News"; // bad
$s = "SELECT NewsHeadline, NewsTeaser FROM News"; // better


2. You appear to be connecting to your database (a) as root and (b) without
a password (although you may have modified the code, so I'm not sure). This
is even worse than SELECT * :-)


Cheers
Jon


-Original Message-
From: Tarrant Costelloe [mailto:[EMAIL PROTECTED]]
Sent: 29 August 2001 15:55
To: '[EMAIL PROTECTED]'
Subject: [PHP] SELECT * FROM


Hello all, 
I have a designing a website of which people can submit news to, this works
fine. Just on the main page I have the following code (snippet);



Any help would be gratefully apreciated!

Kind Regards

Tarrant Costelloe (Taz)

-- 
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] Problem replacing part of a string

2001-08-29 Thread Don

Hi,

I have a PHP routine that writes to a text file.  An example output line would be:

fputs($fp, $form["notify_1"] . "\n");

Where $form["notify_1"] is an array of form variables passed to it.  What I wish to do 
is prior to writing to the text file, I want to search and replace all ')' with '}' 
and all '(' with '{'.  I did the following change to the line of code above and wrote 
the following function:


fputs($fp, txt_change($form["notify_5"]) . "\n");

function txt_change($txt_string) {
  $prt_string = str_replace("(", "{", $txt_string);
  $prt_string = str_replace(")", "}", $txt_string);
  return $prt_string;
}

My problem is that the search and replace is NOT working.  According to the manual, my 
syntax for "str_replace" is correct.  Does anyone have an idea?

Thanks,
Don



Re: [PHP] Problem replacing part of a string

2001-08-29 Thread Andrey Hristov

function txt_change($txt_string) {
  $prt_string = str_replace("(", "{", $txt_string);
  $prt_string = str_replace(")", "}", $txt_string);
  return $prt_string;
}
even you replace with first statement, you "forget" it. Better :
function txt_change($txt_string) {
  $txt_string = str_replace("(", "{", $txt_string);
  $txt_string = str_replace(")", "}", $txt_string);
  return $txt_string;
}

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%



- Original Message -
From: "Don" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 6:48 PM
Subject: [PHP] Problem replacing part of a string


Hi,

I have a PHP routine that writes to a text file.  An example output line would be:

fputs($fp, $form["notify_1"] . "\n");

Where $form["notify_1"] is an array of form variables passed to it.  What I wish to do 
is prior to writing to the text file, I want
to search and replace all ')' with '}' and all '(' with '{'.  I did the following 
change to the line of code above and wrote the
following function:


fputs($fp, txt_change($form["notify_5"]) . "\n");

function txt_change($txt_string) {
  $prt_string = str_replace("(", "{", $txt_string);
  $prt_string = str_replace(")", "}", $txt_string);
  return $prt_string;
}

My problem is that the search and replace is NOT working.  According to the manual, my 
syntax for "str_replace" is correct.  Does
anyone have an idea?

Thanks,
Don



-- 
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] Add Slashes - Server Adds Them Automatically - Advice Requested!

2001-08-29 Thread Mike Gifford

Hello,

I've created a little opensource script:
http://openconcept.ca/guide-petition.phtml

Which uses addslashes() to help clean up data inserted from a web form.

This is fine, except that it appears that you can set up php, so that addslashes are 
automatically 
added:

"one small thing i noticed was the "addSlashes" issue. it seems like php is
sometimes installed (such as on my machine) in such a way that addSlashes
AUTOMATICALLY happens and therefore MANUAL addSlashes adds a SECOND,
superfluous forward slash."

"eg
Patrick "the skier" kuharic
comes out in invitea friend emails by your system as
Patrick \the skier\  kuharic"

Has anyone else experienced this?  Any suggestions for work arounds?

Mike
-- 
Mike Gifford, OpenConcept Consulting, http://openconcept.ca
Offering everything your organization needs for an effective web site.
Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
It is a miracle that curiosity survives formal education. - A Einstein


-- 
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] Add Slashes - Server Adds Them Automatically - Advice Requested!

2001-08-29 Thread Johnson, Kirk

See the magic_quotes_gpc setting in the php.ini file. This can be set to on
or off, and is responsible for escaping GET/POST/COOKIE data automatically.

Kirk

> -Original Message-
> From: Mike Gifford [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 9:58 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Add Slashes - Server Adds Them Automatically - Advice
> Requested!
> 
> 
> Hello,
> 
> I've created a little opensource script:
>   http://openconcept.ca/guide-petition.phtml
> 
> Which uses addslashes() to help clean up data inserted from a 
> web form.
> 
> This is fine, except that it appears that you can set up php, 
> so that addslashes are automatically 
> added:
> 
> "one small thing i noticed was the "addSlashes" issue. it 
> seems like php is
> sometimes installed (such as on my machine) in such a way 
> that addSlashes
> AUTOMATICALLY happens and therefore MANUAL addSlashes adds a SECOND,
> superfluous forward slash."
> 
> "eg
> Patrick "the skier" kuharic
> comes out in invitea friend emails by your system as
> Patrick \the skier\  kuharic"
> 
> Has anyone else experienced this?  Any suggestions for work arounds?
> 
> Mike

-- 
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] Add Slashes - Server Adds Them Automatically - Advice Requested!

2001-08-29 Thread Andrey Hristov

I think that always from a form the script gets slashed data.

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%

- Original Message - 
From: "Mike Gifford" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 6:58 PM
Subject: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!


> Hello,
> 
> I've created a little opensource script:
> http://openconcept.ca/guide-petition.phtml
> 
> Which uses addslashes() to help clean up data inserted from a web form.
> 
> This is fine, except that it appears that you can set up php, so that addslashes are 
>automatically 
> added:
> 
> "one small thing i noticed was the "addSlashes" issue. it seems like php is
> sometimes installed (such as on my machine) in such a way that addSlashes
> AUTOMATICALLY happens and therefore MANUAL addSlashes adds a SECOND,
> superfluous forward slash."
> 
> "eg
> Patrick "the skier" kuharic
> comes out in invitea friend emails by your system as
> Patrick \the skier\  kuharic"
> 
> Has anyone else experienced this?  Any suggestions for work arounds?
> 
> Mike
> -- 
> Mike Gifford, OpenConcept Consulting, http://openconcept.ca
> Offering everything your organization needs for an effective web site.
> Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
> It is a miracle that curiosity survives formal education. - A Einstein
> 
> 
> -- 
> 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] FTPs

2001-08-29 Thread ReDucTor

Does anyone know any FTP sites that have lots of CGI, PHP, JavaScript, Java,
ASP, etc, so i can just leech them all :D
  - James "ReDucTor" Mitchell


-- 
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] FTPs

2001-08-29 Thread Andrey Hristov

http://www.hotscripts.com
It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are available there
- Original Message - 
From: "ReDucTor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 7:00 PM
Subject: [PHP] FTPs


> Does anyone know any FTP sites that have lots of CGI, PHP, JavaScript, Java,
> ASP, etc, so i can just leech them all :D
>   - James "ReDucTor" Mitchell
> 
> 
> -- 
> 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] FTPs

2001-08-29 Thread ReDucTor

Ya, i browse Hotscripts alot, but i just want to connect with FTP, and
leech :D
- James "ReDucTor" Mitchell
- Original Message -
From: "Andrey Hristov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 30, 2001 2:03 AM
Subject: Re: [PHP] FTPs


> http://www.hotscripts.com
> It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are
available there
> - Original Message -
> From: "ReDucTor" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 29, 2001 7:00 PM
> Subject: [PHP] FTPs
>
>
> > Does anyone know any FTP sites that have lots of CGI, PHP, JavaScript,
Java,
> > ASP, etc, so i can just leech them all :D
> >   - James "ReDucTor" Mitchell
> >
> >
> > --
> > 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] The future of PHP

2001-08-29 Thread Manuel Lemos

Hello,

>  one assumption you seem to have is the ongoing viability of php (if not
> the very livelihood of we the developers using php) is somehow a function
> of the number of folks who know what php is. that somehow the more folks
> know about php, the better php gets. it also seems that you feel 'the PHP
> people' are not putting forth enough effort to further php's acceptance and
> viability.
> 
>  from my point of view as a developer using php, recognition of php in the
> corporate world is not as important as how good php is. i prefer to see
> efforts focused on developing the best darn HTML-embedded scripting
> language this side of the railroad tracks. whether or not php gets talked
> about on the evening news doesn't really matter. what matters is whether
> php helps me as a programmer. i don't care how many folks recognize the
> power of php. i care about the power of php. the number of folks using php
> is a function of whether or not 'the PHP people' can continue to produce
> such rockin' code over the next few years. not the other way around.
> 
>  i imagine you have a unique perspective on the effort it takes to promote
> php. but, i'm guessing that 'the PHP people' probably do as well. i myself
> am unduly grateful for the effort that they put forth, not only in
> producing the rockin'st language anyone could have hoped for when learning
> to program, but in promoting php as well. when i saw php was featured at
> the open source convention in san jose, i knew things were moving along
> just fine. that's the kind of promotion i want to see. i believe 'the PHP
> people' should be allowed to promote php in a manner they are comfortable
> with. after all, it's their itch.
> 
>  ya know, making the best HTML-embedded scripting language seems a pretty
> noble goal to me.

If you read my messages in the thread from the beginning you can see
that basically the current problems of PHP in its acceptance are more
with the people view of PHP than about its technical abilities. It is a
known fact that PHP is very good for Web programming. The problem is
that not everybody that could use PHP knows or is so sure about it. That
is why PHP needs to be better marketed.

Regards,
Manuel Lemos

-- 
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] FTPs

2001-08-29 Thread Andrey Hristov

Kakto se kazva, sorry majna ne moga da ti pomogna.

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%

- Original Message - 
From: "ReDucTor" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 7:10 PM
Subject: Re: [PHP] FTPs


> Ya, i browse Hotscripts alot, but i just want to connect with FTP, and
> leech :D
> - James "ReDucTor" Mitchell
> - Original Message -
> From: "Andrey Hristov" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 30, 2001 2:03 AM
> Subject: Re: [PHP] FTPs
> 
> 
> > http://www.hotscripts.com
> > It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are
> available there
> > - Original Message -
> > From: "ReDucTor" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 29, 2001 7:00 PM
> > Subject: [PHP] FTPs
> >
> >
> > > Does anyone know any FTP sites that have lots of CGI, PHP, JavaScript,
> Java,
> > > ASP, etc, so i can just leech them all :D
> > >   - James "ReDucTor" Mitchell
> > >
> > >
> > > --
> > > 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 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: how to sort search results by relevance?

2001-08-29 Thread Mark Maggelet

On Wed, 29 Aug 2001 13:58:34 +0200, BRACK ([EMAIL PROTECTED]) wrote:
>> In article <3B8A1D6A.4295.2947D@localhost>, [EMAIL PROTECTED]
>> (Yura) wrote:
>>
>> > How to sort search results of php-mysql site by relevance?
>>
>> See the mysql manual's chapter on FULLTEXT indexes.
>
>I indexed column 'text' and tried to add "ORDER BY text DESC" in
>query and deleted wildcards in front of variables but still it
>doesn't
>sort results by number of found words (or parts of words). Maybe I
>didn't quite understand what to do?

or maybe you didn't look up fulltext indexes :)



--
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] FTPs

2001-08-29 Thread ReDucTor

And what would that be in english?!? :D
- Original Message -
From: "Andrey Hristov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 30, 2001 2:19 AM
Subject: Re: [PHP] FTPs


> Kakto se kazva, sorry majna ne moga da ti pomogna.
>
> Andrey Hristov
> IcyGEN Corporation
> http://www.icygen.com
> 99%
>
> - Original Message -
> From: "ReDucTor" <[EMAIL PROTECTED]>
> To: "Andrey Hristov" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, August 29, 2001 7:10 PM
> Subject: Re: [PHP] FTPs
>
>
> > Ya, i browse Hotscripts alot, but i just want to connect with FTP, and
> > leech :D
> > - James "ReDucTor" Mitchell
> > - Original Message -
> > From: "Andrey Hristov" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, August 30, 2001 2:03 AM
> > Subject: Re: [PHP] FTPs
> >
> >
> > > http://www.hotscripts.com
> > > It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are
> > available there
> > > - Original Message -
> > > From: "ReDucTor" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, August 29, 2001 7:00 PM
> > > Subject: [PHP] FTPs
> > >
> > >
> > > > Does anyone know any FTP sites that have lots of CGI, PHP,
JavaScript,
> > Java,
> > > > ASP, etc, so i can just leech them all :D
> > > >   - James "ReDucTor" Mitchell
> > > >
> > > >
> > > > --
> > > > 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 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] FTPs

2001-08-29 Thread Andrey Hristov

As is said, sorry majna(nickname for citizens of second biggest city in Bulgaria) I 
can not help you.

Have phun.

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%

- Original Message - 
From: "ReDucTor" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 7:21 PM
Subject: Re: [PHP] FTPs


> And what would that be in english?!? :D
> - Original Message -
> From: "Andrey Hristov" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 30, 2001 2:19 AM
> Subject: Re: [PHP] FTPs
> 
> 
> > Kakto se kazva, sorry majna ne moga da ti pomogna.
> >
> > Andrey Hristov
> > IcyGEN Corporation
> > http://www.icygen.com
> > 99%
> >
> > - Original Message -
> > From: "ReDucTor" <[EMAIL PROTECTED]>
> > To: "Andrey Hristov" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 29, 2001 7:10 PM
> > Subject: Re: [PHP] FTPs
> >
> >
> > > Ya, i browse Hotscripts alot, but i just want to connect with FTP, and
> > > leech :D
> > > - James "ReDucTor" Mitchell
> > > - Original Message -
> > > From: "Andrey Hristov" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, August 30, 2001 2:03 AM
> > > Subject: Re: [PHP] FTPs
> > >
> > >
> > > > http://www.hotscripts.com
> > > > It is HTTP, so you cannot leech with ftp. as much as 1000 scripts are
> > > available there
> > > > - Original Message -
> > > > From: "ReDucTor" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, August 29, 2001 7:00 PM
> > > > Subject: [PHP] FTPs
> > > >
> > > >
> > > > > Does anyone know any FTP sites that have lots of CGI, PHP,
> JavaScript,
> > > Java,
> > > > > ASP, etc, so i can just leech them all :D
> > > > >   - James "ReDucTor" Mitchell
> > > > >
> > > > >
> > > > > --
> > > > > 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 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] ldap_connect question

2001-08-29 Thread Ian McNish


the ldap_connect man page states that calling ldap_connect with no
arguements should return the link identifier to the open ldap
connection. in the following code i find that the script stops before
writing the second printf statement:

$LDAP_CONNECTION = ldap_connect($MY_LDAP_SERVER);
printf("stop1.1 ==> LDAP_CONNECTION -->%d<--", $LDAP_CONNECTION);
printf("stop1.2 ==> current link id -->%d<--", ldap_connect());


the first printf statement tells me that the link id is 1. if i use
"ldap_connect('')", then i get a link id of 2; it seems as though
ldap_connect is trying to connect to a null server name. if i use
"ldap_connect" then i get a link id of 0.

any ideas?

-- 
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: how to sort search results by relevance?

2001-08-29 Thread BRACK

On 29 Aug 2001, at 9:18, Mark Maggelet wrote:

> On Wed, 29 Aug 2001 13:58:34 +0200, BRACK ([EMAIL PROTECTED]) wrote:
> >> In article <3B8A1D6A.4295.2947D@localhost>, [EMAIL PROTECTED]
> >> (Yura) wrote:
> >> 
> >> > How to sort search results of php-mysql site by relevance?
> >> 
> >> See the mysql manual's chapter on FULLTEXT indexes.
> >
> >I indexed column 'text' and tried to add "ORDER BY text DESC" in 
> >query and deleted wildcards in front of variables but still it 
> >doesn't 
> >sort results by number of found words (or parts of words). Maybe I 
> >didn't quite understand what to do?
> 
> or maybe you didn't look up fulltext indexes :)
> 
> 
But I didn't find "FULLTEXT" word in entire MySQL library...?


<>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
http://www.body-builders.org

-- 
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] The future of PHP

2001-08-29 Thread Zeev Suraski

At 15:19 29-08-01, Alexander Skwar wrote:
>So sprach »Manuel Lemos« am 2001-08-28 um 23:21:54 -0300 :
> > Man, give it some time! How long was it since Andrei released PHP-GTK?
> > How old is PHP now?
>
>Exactly.  And also Perl wasn't made to create GUI apps, was it?  But
>look how many Perl GUI apps there are out there now.

I've yet to see one, which doesn't come to say that they don't exist (you 
named a couple) - but does come to say that Perl did not succeed at 
becoming a serious contended in the GUI market.

As I told Manuel, the issue isn't *time*, but *timing*.  If PHP's goal was 
to become a serious contended in the GUI app market (which it was not) - it 
long missed this opportunity.  GUI applications of PHP are cool, can be 
very useful, especially to people who already know PHP.  However, assuming 
that it would ever catch a significant share of the GUI market is naive, IMHO.

Zeev


--
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: how to sort search results by relevance?

2001-08-29 Thread Michael Geier, CDM Systems Admin

www.google.com
search "relevance searches in MySQL"

1. www.mysql.com/documentation/mysql/bychapter/manual_Fulltext_Search.html

-Original Message-
From: BRACK [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:40 AM
To: Mark Maggelet
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: how to sort search results by relevance?


On 29 Aug 2001, at 9:18, Mark Maggelet wrote:

> On Wed, 29 Aug 2001 13:58:34 +0200, BRACK ([EMAIL PROTECTED]) wrote:
> >> In article <3B8A1D6A.4295.2947D@localhost>, [EMAIL PROTECTED]
> >> (Yura) wrote:
> >> 
> >> > How to sort search results of php-mysql site by relevance?
> >> 
> >> See the mysql manual's chapter on FULLTEXT indexes.
> >
> >I indexed column 'text' and tried to add "ORDER BY text DESC" in 
> >query and deleted wildcards in front of variables but still it 
> >doesn't 
> >sort results by number of found words (or parts of words). Maybe I 
> >didn't quite understand what to do?
> 
> or maybe you didn't look up fulltext indexes :)
> 
> 
But I didn't find "FULLTEXT" word in entire MySQL library...?


<>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
http://www.body-builders.org

-- 
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] Im back, oh and....

2001-08-29 Thread Miles Thompson


Kyle,
Grow up and learn some manners!
Miles Thompson

At 03:25 PM 8/29/01 -0700, Kyle Smith wrote:
>thanks and  you age discrimination sucks!
>
>
>-lk6-
>http://www.StupeedStudios.f2s.com
>Home of the burning lego man!
>
>ICQ: 115852509
>MSN: [EMAIL PROTECTED]
>AIM: legokiller666
>
>
>- Original Message -
>From: "B. van Ouwerkerk" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, August 29, 2001 5:13 AM
>Subject: Re: [PHP] Im back, oh and
>
>
>
> >... could someone give me the name of the best PHP learning book they have
> >read cause I just scored £110!
>
>PHP 4 bible (IDG books), MySQL (NewRiders), several books from Wrox.. read
>the archive several books are mentioned there.
>
> >(yes, it was my birthday on august 16th and im now a whole 14 so i can
> >have my first urine test!)
>
>So you're 14.. does you mom know you're here :-)
>
>Bye,
>
>
>B.
>
>
>--
>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] Strange Form Error

2001-08-29 Thread PHP List

Hi,
Can anyone tell me why php is behaving like this?

If I use enctype="multipart/form-data", it seems the first form field is not passed to 
php.
ex:



$cmd will not be passed to php, I have to do this:





Now I can use $cmd.
Is this normal?
 
Windows Law 1: What boots up must come down...
 All I ask of life is a constant and exaggerated sense of my own
importance.  
Chris Kovalcik
Systems Administrator
Interactive Broadcasting Corporation
[EMAIL PROTECTED]
-
Creators of:
BC Adventure Network www.bcadventure.com
BC Books www.bcbooks.com
Casting Shadows www.castingshadows.com
Cowboylife www.cowboylife.com
Fish BC www.fishbc.com
Western Fly Fisher Magazine www.westernflyfisher.com




Re: [PHP] Re: Sorry, i need HTML help

2001-08-29 Thread Kyle Smith

Not sure but ive changed my mind on my site design and no-longer need it!


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666


- Original Message - 
From: "Tim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 7:51 AM
Subject: Re: [PHP] Re: Sorry, i need HTML help


> Yeah, but isn't "marquee" the ancient Aztec word for "tar and feather
> me, I'm a tastless HTML author who is mesmerised by blinking lights and
> horizonally scrolling text beyond my control"??
> 
> Someething like that.
> 
> - Tim ;)
> 
> On Wed, 2001-08-29 at 11:35, Gary wrote:
> >  will only work in Internet Explorier. If you want a
> > marquee to work in all browsers you will have to use DHTML.
> 
> 
> 
> --
> 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] The future of PHP

2001-08-29 Thread Rasmus Lerdorf

> If you read my messages in the thread from the beginning you can see
> that basically the current problems of PHP in its acceptance are more
> with the people view of PHP than about its technical abilities. It is a
> known fact that PHP is very good for Web programming. The problem is
> that not everybody that could use PHP knows or is so sure about it. That
> is why PHP needs to be better marketed.

Well, at least some of us are spending a whole lot of time getting in
front of people and showing them how useful PHP is.  For the month of
August I have seen my wife a total of 5 days.  In July I saw her about 9
days.  The rest of the time I was on the road and in front of people
showing them how cool PHP is or sometimes I was home and she was on the
road.  Just to give you an idea.  A list of recent talks and
presentations:

June:

 - Conference in Porto Alegre, Brazil
 - University in Lajeado, Brazil
 - Large government institution in Porto Alegre, Brazil
 - Linux User Group in Toronto, Canada
 - Linux Expo - Montreal, Canada
 - PHP User Group in Boston
 - SoftwareLivre conference in Montevideo, Uruguay

July:

 - Talk and PHP booth at LinuxTag, Stuttgart Germany
 - Tutorial and session at OSCON in San Diego
 - Seminar in Herndon, Virginia

August

 - Seminar in Pittsburgh
 - Seminar in Atlanta
 - PHP User Group meeting in Atlanta
 - Seminar in San Francisco
 - Seminar in Portland
 - Seminar in Austin
 - Seminar in Minneapolis
 - 6 hours of tutorials at LinuxWorld in San Francisco

And the next 3 months look just as busy.

The seminars were geared at semi-technical business managers and were held
in conjunction with Nusphere.  I also had an article in Linux Magazine
during this time.

And by the way, this is not my job.  I do not get paid for this, nor does
my future in any way depend on PHP.  PHP happens to be the most visible
thing I am involved in and people assume that my life therefore must
revolve around it.  That actually is not true.

If you don't think I and others involved in PHP development is doing
enough to promote PHP that is fine.  And suggestions are welcome.  But
telling us that we are sitting on our hands watching the world pass us by
without doing anything at all is rather insulting.  Especially given the
amount of time I have personally spent sitting on crummy airplanes in the
past year or two for the sole purpose of promoting PHP.

-Rasmus


-- 
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] The future of PHP

2001-08-29 Thread Ninety-Nine Ways To Die

I attended one of your conferences / training sessions, the Linux Conference in NYC, 
and I have to say it was excellent, and certainly motivational. Through that one day 
of your speech it motivated me enough to get off my bum and start using PHP in our 
environment for whatever we possibly could... and we have been pretty sucessful in the 
short time we've been implementing it. The ease of use, ease of learning, and overall 
excellent design of the language has made it a pleasure to use... And I recommend it 
to customers now, any one that is willing to listen to me blabber more than 2 minutes.

--Matthew

PS: The power of open source is not in the advertising... it's in the product, which 
makes it all the more worthwhile.


--

On Wed, 29 Aug 2001 10:03:21  
 Rasmus Lerdorf wrote:
>> If you read my messages in the thread from the beginning you can see
>> that basically the current problems of PHP in its acceptance are more
>> with the people view of PHP than about its technical abilities. It is a
>> known fact that PHP is very good for Web programming. The problem is
>> that not everybody that could use PHP knows or is so sure about it. That
>> is why PHP needs to be better marketed.
>
>Well, at least some of us are spending a whole lot of time getting in
>front of people and showing them how useful PHP is.  For the month of
>August I have seen my wife a total of 5 days.  In July I saw her about 9
>days.  The rest of the time I was on the road and in front of people
>showing them how cool PHP is or sometimes I was home and she was on the
>road.  Just to give you an idea.  A list of recent talks and
>presentations:
>
>June:
>
> - Conference in Porto Alegre, Brazil
> - University in Lajeado, Brazil
> - Large government institution in Porto Alegre, Brazil
> - Linux User Group in Toronto, Canada
> - Linux Expo - Montreal, Canada
> - PHP User Group in Boston
> - SoftwareLivre conference in Montevideo, Uruguay
>
>July:
>
> - Talk and PHP booth at LinuxTag, Stuttgart Germany
> - Tutorial and session at OSCON in San Diego
> - Seminar in Herndon, Virginia
>
>August
>
> - Seminar in Pittsburgh
> - Seminar in Atlanta
> - PHP User Group meeting in Atlanta
> - Seminar in San Francisco
> - Seminar in Portland
> - Seminar in Austin
> - Seminar in Minneapolis
> - 6 hours of tutorials at LinuxWorld in San Francisco
>
>And the next 3 months look just as busy.
>
>The seminars were geared at semi-technical business managers and were held
>in conjunction with Nusphere.  I also had an article in Linux Magazine
>during this time.
>
>And by the way, this is not my job.  I do not get paid for this, nor does
>my future in any way depend on PHP.  PHP happens to be the most visible
>thing I am involved in and people assume that my life therefore must
>revolve around it.  That actually is not true.
>
>If you don't think I and others involved in PHP development is doing
>enough to promote PHP that is fine.  And suggestions are welcome.  But
>telling us that we are sitting on our hands watching the world pass us by
>without doing anything at all is rather insulting.  Especially given the
>amount of time I have personally spent sitting on crummy airplanes in the
>past year or two for the sole purpose of promoting PHP.
>
>-Rasmus
>
>
>-- 
>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 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/

-- 
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] The future of PHP

2001-08-29 Thread Jeff Lewis

Damn, I wish I had read that thre was this event in Toronto, I would have
liked to attend! :)

>  - Linux User Group in Toronto, Canada

I agree, suggestion and constructive criticism are fine but lets not start
attacking the guys who have put in countless hours to make PHP what it is
today.  I'm sure they will take in suggestions and do as much as humanly
possible to keep everyone happy ;)

> telling us that we are sitting on our hands watching the world pass us by
> without doing anything at all is rather insulting.  Especially given the
> amount of time I have personally spent sitting on crummy airplanes in the
> past year or two for the sole purpose of promoting PHP.
>
> -Rasmus


-- 
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] Database Preference? -- Manuel, Michael, Miles

2001-08-29 Thread james

I appreciate all your thoughts.

Miles, regarding the price-per-seat issue, it isn't a question of the number
of developers but the number of simultaneous connections to the database.
For example, a 64-user Informix license is over $5,000 ...  While I doubt we
will need to maintain persistent connections, I could envision longer
transactions creating a queue in the WAIT line.

While most of our SQL code is fairly vanilla, the code has lots of
sub-queries, unions, outer joins, and transactions, etc.  That appears to
rule-out MySQL.

Regarding a database abstraction package: does Metabase handle all
"standard" SQL constructs (as opposed to vendor-specific SQL extensions)?
The GUI applications to be ported were built with JAM, which basically
provides an abstraction layer via its JPL language.  JPL has not been
restrictive in terms of required functionality, nor was there any real
performance hits.  Can the same be said of Metabase?  Also, would Metabase
present a significant learning curve for experienced C and SQL programmers?

I will download PostgreSQL and check it out.

Again, your input is appreciated and helpful.

James Potts



"Miles Thompson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> If you are used to Informix, MySQL will be unsatisfying - no stored
> procedures, outer joins, sub-queries, transactions. MySQL is much like
> early dBase II.
>
> I'm not familiar with MS SQL on a price per seat basis, but how many
> developers do you have? If you are doing this web-based you don't have
that
> many "seats". Given that your developers are used to working in MS SQL it
> may be cheaper in terms of overall developer costs.
>
> The downside of that course is that you are locked into MSFT's plans for
> the product and Windows NT/2000/XP.
>
> A robust and reliable open source alternative is PostgreSQL. It has
> features your developers are used to, is adequately fast, and is certainly
> robust. It would probably be the easiest port. Drivers are kept current in
> PHP, Python, Perl and of course ODBC.
>
> Regards - Miles Thompson
>
> At 09:50 PM 8/28/01 -0400, james wrote:
> >We have several GUI applications that we are preparing to convert to
> >web-based applications, based primarily on PHP.  The applications are
based
> >on Informix On-Line (on a SCO Unix server) and MS SQL (on NT).  Since we
> >will be doing a port, in any case, I am wondering your thoughts on
whether
> >MySQL may be a better database solution.  This is particularly important
> >from a price-performance point of view since the other two databases are
> >quite pricy on a per-seat basis.
> >
> >TIA,
> >James
> >
> >
> >
> >--
> >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]




  1   2   3   >