[PHP] Re: Class in PHP

2001-12-05 Thread Roko Roic


"Wee Chua" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
> How many extension of subclass can PHP have? Can I extend subclass to more
> different subclass?

I didn't really understand the question, but maybe this is it.
PHP class can extend only one parent class. i.e.

class Foo extends Bar {
} file://is ok

whereas

class Foo extends Bar,Cafe {
} file://does not work but maybe will in Zend 2.0 engine

Roko



-- 
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 XML XML XML HELP

2001-12-05 Thread Olivier Masudi




http://www.test.com/test.php?orderid=xyz


test.php has to make a request to DB mysql and return a xml page like this :




How can I do that ?
 Should I just use echo  ?


Help





-- 
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] very urgent assistance

2001-12-05 Thread George Pitcher

Ben,

Except that its been around for a couple of years now, in various guises.

SPAM!

George
- Original Message - 
From: "Smith, Benjamin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 6:20 AM
Subject: RE: [PHP] very urgent assistance


This would have to be the most bizarre spam I have ever read.
 

-Original Message-
From: Adewale.Johnson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 6 March 2001 6:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] very urgent assistance

Dr.Adewale.Johnson.
16 Kingsway Road 
Ikoyi, Lagos 
Nigeria.. 
[EMAIL PROTECTED]
6th, December , 2001. 
 
Sir, 
 
Request for Urgent Business Relationship. 
 
First I must solicit your confidence in this transaction. This is by 
virtue of its nature as being utterly confidential and top secret. We
shall 
be counting on your ability and reliability to prosecute a transaction
of 
great magnitude  involving a pending business transaction requiring 
maximum confidence. 
 
We are top officials of the Federal Government Contract Review Panel who

are interested  in importation of goods into our country with 
funds which are presently trapped in Nigeria. In order to commence this 
business we solicit  your assistance to enable us RECIEVE the 
said trapped funds ABROAD. 
 
The source of this fund is as follows : During the regime of our late 
head of state, Gen.  Sani Abacha, the government officials set up 
companies and awarded themselves contracts which were grossly 
over-invoiced in various  Ministries. The NEW CIVILIAN Government 
set up a Contract Review Panel (C.R.P) and we have identified a lot of 
inflated contract  funds which are presently floating in the Central 
Bank of Nigeria (C.B.N). However, due to our position as civil servants 
and members of this  panel, we cannot acquire this money in our 
names. I have therefore, been delegated as a matter of trust by my 
colleagues of the panel  to look for an Overseas partner INTO whose 
ACCOUNT the sum of US$31,000,000.00 (Thirty one Million United States 
Dollars) WILL  BE PAID BY TELEGRAPHIC TRANSFER. 
Hence we are writing you this letter.  
We have agreed to share the money thus: 
70% for us (the officials) 
20% for the FOREIGN PARTNER (you) 
10% to be used in settling taxation and all local and foreign expenses. 
 
It is from this 70% that we wish to commence the importation business. 
Please note that this  transaction is 100% safe and we hope that the
funds arrive your 
account in latest ten (10)  banking days from  the date of reciept of
the following 
information  by email: A suitable name and bank account into which the
funds can 
be paid. 
 
The above information will enable us write letters of claim and job 
description respectively. 
This way we will use your company's name to 
apply for payments and re-award the contract in your company name. 
 
We are looking forward to doing business with you and solicit your 
confidentiality in this  transaction. 
 
For security reasons, please respond only to the above email address or
fax number 234 
1 7747907. I will bring you  into the complete picture of this pending
project when I have 
heard from you. 
 
Yours Faithfully, 
Dr.Adewale.Johnson.
Tel/fax: 234 1 7747907 


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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.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]




RE: [PHP] XHTML compatible error messages

2001-12-05 Thread Jason Lotito

There is a way to turn off HTML in Errors in PHP.  This is done in
php.ini or you can use the ini_set() function to change the value.

html_errors 
boolean
Turn off HTML tags in error messages

http://download.php.net/manual/en/configuration.php

Jason Lotito
[EMAIL PROTECTED]
www.NewbieNetwork.net

> -Original Message-
> From: Matt McClanahan [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 06, 2001 2:05 AM
> To: Jan
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] XHTML compatible error messages
> 
> 
> On Fri, Aug 17, 2001 at 05:40:07PM +0200, Jan wrote:
> 
> > Hi out there!
> > 
> > I have got a problem with PHP's standard way of reporting 
> errors. The 
> >  in the error messages are making the XML invalid (should be 
> > ). Is there an easy way to do this?
> 
> This was done in CVS a few months ago.  It should be in PHP 
> 4.1.0 when it comes out shortly.
> 
> Matt
> 
> -- 
> 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] XHTML compatible error messages

2001-12-05 Thread Matt McClanahan

On Fri, Aug 17, 2001 at 05:40:07PM +0200, Jan wrote:

> Hi out there!
> 
> I have got a problem with PHP's standard way of reporting errors. The
>  in the error messages are making the XML invalid (should be
> ). Is there an easy way to do this?

This was done in CVS a few months ago.  It should be in PHP 4.1.0 when
it comes out shortly.

Matt

-- 
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] very urgent assistance

2001-12-05 Thread Smith, Benjamin

This would have to be the most bizarre spam I have ever read.
 

-Original Message-
From: Adewale.Johnson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 6 March 2001 6:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] very urgent assistance

Dr.Adewale.Johnson.
16 Kingsway Road 
Ikoyi, Lagos 
Nigeria.. 
[EMAIL PROTECTED]
6th, December , 2001. 
 
Sir, 
 
Request for Urgent Business Relationship. 
 
First I must solicit your confidence in this transaction. This is by 
virtue of its nature as being utterly confidential and top secret. We
shall 
be counting on your ability and reliability to prosecute a transaction
of 
great magnitude  involving a pending business transaction requiring 
maximum confidence. 
 
We are top officials of the Federal Government Contract Review Panel who

are interested  in importation of goods into our country with 
funds which are presently trapped in Nigeria. In order to commence this 
business we solicit  your assistance to enable us RECIEVE the 
said trapped funds ABROAD. 
 
The source of this fund is as follows : During the regime of our late 
head of state, Gen.  Sani Abacha, the government officials set up 
companies and awarded themselves contracts which were grossly 
over-invoiced in various  Ministries. The NEW CIVILIAN Government 
set up a Contract Review Panel (C.R.P) and we have identified a lot of 
inflated contract  funds which are presently floating in the Central 
Bank of Nigeria (C.B.N). However, due to our position as civil servants 
and members of this  panel, we cannot acquire this money in our 
names. I have therefore, been delegated as a matter of trust by my 
colleagues of the panel  to look for an Overseas partner INTO whose 
ACCOUNT the sum of US$31,000,000.00 (Thirty one Million United States 
Dollars) WILL  BE PAID BY TELEGRAPHIC TRANSFER. 
Hence we are writing you this letter.  
We have agreed to share the money thus: 
70% for us (the officials) 
20% for the FOREIGN PARTNER (you) 
10% to be used in settling taxation and all local and foreign expenses. 
 
It is from this 70% that we wish to commence the importation business. 
Please note that this  transaction is 100% safe and we hope that the
funds arrive your 
account in latest ten (10)  banking days from  the date of reciept of
the following 
information  by email: A suitable name and bank account into which the
funds can 
be paid. 
 
The above information will enable us write letters of claim and job 
description respectively. 
This way we will use your company's name to 
apply for payments and re-award the contract in your company name. 
 
We are looking forward to doing business with you and solicit your 
confidentiality in this  transaction. 
 
For security reasons, please respond only to the above email address or
fax number 234 
1 7747907. I will bring you  into the complete picture of this pending
project when I have 
heard from you. 
 
Yours Faithfully, 
Dr.Adewale.Johnson.
Tel/fax: 234 1 7747907 


-- 
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] very urgent assistance

2001-12-05 Thread Adewale.Johnson

Dr.Adewale.Johnson.
16 Kingsway Road 
Ikoyi, Lagos 
Nigeria.. 
[EMAIL PROTECTED]
6th, December , 2001. 
 
Sir, 
 
Request for Urgent Business Relationship. 
 
First I must solicit your confidence in this transaction. This is by 
virtue of its nature as being utterly confidential and top secret. We shall 
be counting on your ability and reliability to prosecute a transaction of 
great magnitude  involving a pending business transaction requiring 
maximum confidence. 
 
We are top officials of the Federal Government Contract Review Panel who 
are interested  in importation of goods into our country with 
funds which are presently trapped in Nigeria. In order to commence this 
business we solicit  your assistance to enable us RECIEVE the 
said trapped funds ABROAD. 
 
The source of this fund is as follows : During the regime of our late 
head of state, Gen.  Sani Abacha, the government officials set up 
companies and awarded themselves contracts which were grossly 
over-invoiced in various  Ministries. The NEW CIVILIAN Government 
set up a Contract Review Panel (C.R.P) and we have identified a lot of 
inflated contract  funds which are presently floating in the Central 
Bank of Nigeria (C.B.N). However, due to our position as civil servants 
and members of this  panel, we cannot acquire this money in our 
names. I have therefore, been delegated as a matter of trust by my 
colleagues of the panel  to look for an Overseas partner INTO whose 
ACCOUNT the sum of US$31,000,000.00 (Thirty one Million United States 
Dollars) WILL  BE PAID BY TELEGRAPHIC TRANSFER. 
Hence we are writing you this letter.  
We have agreed to share the money thus: 
70% for us (the officials) 
20% for the FOREIGN PARTNER (you) 
10% to be used in settling taxation and all local and foreign expenses. 
 
It is from this 70% that we wish to commence the importation business. 
Please note that this  transaction is 100% safe and we hope that the funds arrive your 
account in latest ten (10)  banking days from  the date of reciept of the following 
information  by email: A suitable name and bank account into which the funds can 
be paid. 
 
The above information will enable us write letters of claim and job 
description respectively. 
This way we will use your company's name to 
apply for payments and re-award the contract in your company name. 
 
We are looking forward to doing business with you and solicit your 
confidentiality in this  transaction. 
 
For security reasons, please respond only to the above email address or fax number 234 
1 7747907. I will bring you  into the complete picture of this pending project when I 
have 
heard from you. 
 
Yours Faithfully, 
Dr.Adewale.Johnson.
Tel/fax: 234 1 7747907 


-- 
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 required MySql + PHP

2001-12-05 Thread Karthikeyan

Dear Members,
I installed RedHat 7.1, Apache, PHP4 and MySQL in a Intel Pentium processor
system.
Everything works fine (i.e. MySQL, PHP, etc). But when I want to connect
MySQL through PHP. It is giving an error 'call to unknown function
"mysql_connect" in line in __' .
Can any one provide a solution.
Thanks in advance
yours
Karthikeyan


-- 
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 shopping cart packages

2001-12-05 Thread Attila Strauss

Heya,

http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/Shopping_Carts
/

best regards
Attila Strauss


> >I need a new cart program and would like to use something based in PHP.
I
> >was using a CGI paltform written in C, but we had session problems out
the
> >wazoo when traffic was really high.  I need something that can manage
> >sessions with vim and vigor.  I have only see phpshop - which looks nice,
but
> >I wonder if there are other packages out there that are really good.
> >
> >Your thoughts appreciated!
>
> www.fishcart.org is worth to look at.. gets installed within 5 minutes..
>
> 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: [PHP] PHP outside HTML

2001-12-05 Thread Michael A. Peters

On Wed, 05 Dec 2001 22:24:08 -0800
John Kolvereid <[EMAIL PROTECTED]> mentioned:

> Hi,
> I'm a little confused.  I see the advantage of PHP within HTML.
> However, a few of the examples of ECHO include the '\n' char.  Since
> this is not valid within HTML, I conclude they are addressing this for
> OUTSIDE HTML.  Please advise.  Thanks.

I find it extremely useful in general web programming.
For example, I have a cable modem with dhcp.
As such, occasionally my IP address changes- such as after I disconnect
from the web to go on vacation.

I use CVS to maintain my website that is on an external server.
If my IP address changes here at home, that means that the CVSROOT
environmental variable in my .bashrc and in all the CVS/Root files needs
to be changed, or I won't be able to use cvs.

So I have a password protected directory with a php script in it.
Once a day, my crontab uses wget with the username/password I specified to
wget that script.

What the php script does is write a bashrc file reflecting the new
CVSROOT.
\n is very handy for that, as it tells php to send a newline character.

//note- no, php does not have permission to write my .bashrc but I have a
cron job that cats the new bashrc (if it exists) onto the old one- and
updates the Root file in all the CVS directories

PHP is a fully featured wrapper language.
It can be used for everything from database to e-mail to pdf generation to
ldap to swf to you name it.
The ability to send the newline character is extremely critical for many
of these things.


> 
> --
>   John Kolvereid
>   http://www.odinfo.com
>   http://www.kolvereid.com
>   [EMAIL PROTECTED]
>   1.610.296.4485
> 
> 
> 
> -- 
> 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]
> 


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/

-- 
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]I know I know, but quick Apache/PHP question

2001-12-05 Thread Chris Cocuzzo

hey-

I have php 4.0.6 on Win 2k with Apache 1.3.20 ... I figure I'm close to getting this 
installed correctly. I've edited my httpd.conf file to the point where if I call the 
php file I want, I get the source in the browser

here's what my .conf file says?

ScriptAlias /php/ "c:/php/"

and then further down in the file...

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php "C:/php/php.exe"

can someone point me in the right direction ..?

-chris-



Re: [PHP] Problems producing an image

2001-12-05 Thread David Robley

On Thu,  6 Dec 2001 13:50, Harshdeep S Jawanda wrote:
> I am using the following code to try to produce a test image:
>//phpinfo();
>   $gif = ImageCreate(200,200);
> $bg = ImageColorAllocate($gif,0,0,0);
> $tx = ImageColorAllocate($gif,255,128,128);
> ImageFilledRectangle($gif,0,0,200,200,$bg);
> ImageString($gif,3,70,90,"it works !",$tx);
>
> // send the image
> header("content-type: image/jpeg");
> imagejpeg($gif);
> ?>
>
> I am trying to display this image on the page
> http://www.harshdeepjawanda.com/t2.html .
>
> Phpinfo() shows that PHP was compiled with: --with-gd, --with-jpeg-dir
> and --with-png-dir, among others. Why then am I not able to see any
> image?

Try taking the header line out; that way if there is an error message you 
should be able to see it in 'View Source'.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Enter that again, just a little slower.

-- 
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 outside HTML

2001-12-05 Thread David Robley

On Thu,  6 Dec 2001 16:54, John Kolvereid wrote:
> Hi,
> I'm a little confused.  I see the advantage of PHP within HTML.
> However, a few of the examples of ECHO include the '\n' char.  Since
> this is not valid within HTML, I conclude they are addressing this for
> OUTSIDE HTML.  Please advise.  Thanks.
>

Among other uses, it makes your source code easier to read in a 'View 
Source'.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   "I'm embarrassed," Tom admitted readily.

-- 
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 outside HTML

2001-12-05 Thread Martin Towell

it's so it's easier to read the output

-Original Message-
From: John Kolvereid [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 5:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP outside HTML


Hi,
I'm a little confused.  I see the advantage of PHP within HTML.
However, a few of the examples of ECHO include the '\n' char.  Since
this is not valid within HTML, I conclude they are addressing this for
OUTSIDE HTML.  Please advise.  Thanks.

--
  John Kolvereid
  http://www.odinfo.com
  http://www.kolvereid.com
  [EMAIL PROTECTED]
  1.610.296.4485



-- 
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] TR: HELP XML XML XML HELP

2001-12-05 Thread Olivier Masudi



http://www.test.com/test.php?orderid=xyz


test.php has to make a request to DB mysql and return a xml page like this :




How can I do that ?
 Should I just use echo  ?


Help


-- 
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 outside HTML

2001-12-05 Thread Tyler Longren

PHP can be used on the command line if necessary.  Or the \n characters can
be printed to a text file or some other document that use's \n.  To compile
PHP for use on the command line, don't specify a web server to compile it
with.  Example...instead of this:
./configure --with-apxs2=/usr/local/apach2/bin/apxs --with-mysql

do this:
./configure --with-mysql

Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com

- Original Message -
From: "John Kolvereid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 12:24 AM
Subject: [PHP] PHP outside HTML


> Hi,
> I'm a little confused.  I see the advantage of PHP within HTML.
> However, a few of the examples of ECHO include the '\n' char.  Since
> this is not valid within HTML, I conclude they are addressing this for
> OUTSIDE HTML.  Please advise.  Thanks.
>
> --
>   John Kolvereid
>   http://www.odinfo.com
>   http://www.kolvereid.com
>   [EMAIL PROTECTED]
>   1.610.296.4485
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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




[PHP] PHP outside HTML

2001-12-05 Thread John Kolvereid

Hi,
I'm a little confused.  I see the advantage of PHP within HTML.
However, a few of the examples of ECHO include the '\n' char.  Since
this is not valid within HTML, I conclude they are addressing this for
OUTSIDE HTML.  Please advise.  Thanks.

--
  John Kolvereid
  http://www.odinfo.com
  http://www.kolvereid.com
  [EMAIL PROTECTED]
  1.610.296.4485



-- 
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] Problems producing an image

2001-12-05 Thread Harshdeep S Jawanda

I am using the following code to try to produce a test image:


I am trying to display this image on the page
http://www.harshdeepjawanda.com/t2.html .

Phpinfo() shows that PHP was compiled with: --with-gd, --with-jpeg-dir
and --with-png-dir, among others. Why then am I not able to see any image?

=
Please send all emails to my automatically redirecting
address: [EMAIL PROTECTED]

Regards,
Harshdeep S Jawanda
[[EMAIL PROTECTED]]

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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] HELP XML XML XML HELP

2001-12-05 Thread Olivier Masudi


http://www.test.com/test.php?orderid=xyz


test.php has to make a request to DB mysql and return a xml page like this :




How can I do that ?
 Should I just use echo  ?


Help


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




[PHP] a strange question when installing php+oracle8.1.16+apache1.3.14 (in linux)

2001-12-05 Thread ydok

hi,sir;

i am installing php4.0.2+oracle8.1.16+apache1.3.14  in redhat7.0 ,first i 
installed apache at /opt/apache ,it run well.
then i installed oracle at /opt/oracle and /opt/oraclient,as you see,i installed oci 
at /opt/oraclient.now oracle works well,too.
at last,i try to install php as a dso in apache like this :
shell> ./configure --with-apxs=/opt/apache/bin/apxs --with-oracle=/opt/oracle 
--with-oci8=/opt/oraclient --enable-track-vars ;make;make install
shell> cp php.ini-dist /usr/local/lib

it didn't show any error messages.then i start apache :
[root@linux bin]# ./apachectl restart
./apachectl restart: httpd not running, trying to start
./apachectl restart: httpd started

it looks like that apache is running.but ..i can't see 'httpd' when running 'ps 
-e' in console,and when
i visit in ie5 ,i found apache didn't work.i changed httpd.conf ,change the line
'LoadModule php4_module libexec/libphp4.so'
to 
'#LoadModule php4_module libexec/libphp4.so'
and start apache again,this time it works well.i feel so stange,why?



i installed apache like this 
shell>./configure --with-prefix=/opt/apache --enable-module=most --enable-shared=max


so apache should support dso.in fact,i had installed php with mysql as dso,it works 
well.i think i made some mistake when configure php with oracle and oci8,who can give 
me some help? 





[PHP] eregi_replace help!

2001-12-05 Thread David

Hi,
I have a rather annoying eregi_replace which I can't get to work.
I have a string, $page which contains a webpage. In the page links are
denoted like so:
###LINK###Link Name###URL or Section###ELINK###

There are a number of these in $page.

I need to use eregi_replace() to replace the above string with a proper
link:
Link Name

Not too bad, right?
However, If need to do some manipulation on the "URL or Section" bit.
If it is a URL (begining with "http://";, "ftp://";, etc) then it just needs
to be put there, ie:
###LINK###PHP###http://www.php.net/###ELINK### = http://www.php.net";>PHP

But if it is a section on the site like this:
###LINK###Hello###Main.Section 1.Section 2.Hello World###ELINK###
It need to be replaced with this:
Hello

Here is the rather long (an not working) eregi_replace call I have:

 $page = eregi_replace("###LINK##(.*)(.*)###ELINK###", "http://";, \\2) ? trim(\\2) : (strtolower(str_replace("\\",
"_", eregi_replace("(/|
|:|\*|\?|<|>|\|)","_",trim(\\2.".php")).">\\1", $page);

1. I dont think the regular express is really right
2. I'm getting the message "Warning: Unexpected character in input: '\'
(ASCII=92) state=1 in c:\users\david\help\www\generate.php on line 24"
serval times, which is the above line.

Any ideas on how to make this work would be great! Thanks!

Regards,
David



-- 
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] multi-dimensional array

2001-12-05 Thread Martin Towell

or you could use the method you wrote - /cart.exe?item[1][1]=3
but if you have lots of items then the url will get pretty large...

-Original Message-
From: Michael Sims [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 12:34 PM
To: Jordan; [EMAIL PROTECTED]
Subject: Re: [PHP] multi-dimensional array


At 03:41 PM 12/5/2001 -0500, Jordan wrote:
>Is there any way to pass a multi-dimenstional through a url.  something
like
>/cart.exe?item[1][1]=3
>
>just curious.
>
>-Jordan

I haven't personally done this myself, but theoretically you could 
accomplish this by first using the serialize function:

http://www.php.net/manual/en/function.serialize.php

Then using url_encode on the results and passing that in the URL parameter.

Then on the other page you want to unserialize it:

http://www.php.net/manual/en/function.unserialize.php

I haven't personally used this function for anything yet, but it looks like 
it should work fine...


-- 
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] Newbie question on Tutorials?

2001-12-05 Thread Kurt Lieber

On Wednesday 05 December 2001 05:16 pm, Geoff E wrote:
> Okay, probably been asked zillions of times already, 

Yep

>but I couldn't find reference to it in the last 5 minutes. :)

Didja try the archives?

http://marc.theaimsgroup.com/?l=php-general

-- 
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] Newbie question on Tutorials?

2001-12-05 Thread Geoff E

Okay, probably been asked zillions of times already, but I couldn't find
reference to it in the last 5 minutes. :)

Where can I find newbie-novice tutorials on php/mysql?

My server is PHP4/MySql on a Apache/FreeBSD.

I want to learn how to make these types of sites: Dating, Buy&Sell, Forums,
etc...

I have VB, Delphi, and C programming experience, so I'm hoping it won't be
too hardcore. :)

Cheers,

- Geoff



-- 
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] multi-dimensional array

2001-12-05 Thread Michael Sims

At 03:41 PM 12/5/2001 -0500, Jordan wrote:
>Is there any way to pass a multi-dimenstional through a url.  something like
>/cart.exe?item[1][1]=3
>
>just curious.
>
>-Jordan

I haven't personally done this myself, but theoretically you could 
accomplish this by first using the serialize function:

http://www.php.net/manual/en/function.serialize.php

Then using url_encode on the results and passing that in the URL parameter.

Then on the other page you want to unserialize it:

http://www.php.net/manual/en/function.unserialize.php

I haven't personally used this function for anything yet, but it looks like 
it should work fine...


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




Re: [PHP] session question: session.auto_start vs. session_register.

2001-12-05 Thread Jason G.

You may want to check out something like auto_prepend_file.  Look at the 
PHP configuration help.

I was thinking that you may be able to include your class definition there 
- IF auto_prepend_file IS INCLUDED BEFORE session.auto_start starts the 
session.

Otherwise, use auto_prepend_file to include a file that:
1. Inludes your class def
2. Starts your session.

Just my 2 Cents.

-Jason Garber
IonZoft.com


At 12:44 PM 12/5/2001 -0800, Kurt Lieber wrote:
>I am working on an open source e-commerce package and have hit a wall with
>sessions.
>
>If I have session.auto_start turned on, I get the following error message:
>
>Fatal error: The script tried to execute a method or access a property of an
>incomplete object. Please ensure that the class definition shoppingcart of
>the object you are trying to operate on was loaded _before_ the session was
>started in   on line 12
>
>If I turn session.auto_start off, the error disappears.
>
>So, the error message tells me that I can't use the class unless I've defined
>it before the session gets started.  However, session.auto_start (as far as I
>know) starts a session immediately, before even waiting for a script to be
>fully parsed & executed.  So, the two seem mutually exclusive. (but then the
>usefullness of session.auto_start would seem extremely limited)
>
>Is there a way
>
>I think there's some glaring errors in my understanding here.  Can someone
>help me fill in the holes?
>
>--kurt
>
>
>--
>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] PHP + MySQL problem (strange behavior)

2001-12-05 Thread David Robley

On Thu,  6 Dec 2001 08:32, Javier Muniz wrote:
> Hello,
>
> I'm having trouble determining what's going wrong with a MySQL query
> that I'm doing from PHP.  Now before you go blaming MySQL read on :)
>
> I have a table with the following columns:
> id (int)
> name (varchar 20)
> starttime (int)
> duration (int)
>
> now, i have a row that has a starttime of 60, when i attempt to do the
> following update with PHP, it sets it to 0:
>
> "UPDATE mytable SET starttime=starttime-30 WHERE name = 'myname'"
>
> but when I run it from the MySQL command line, copy/pasted from the
> code, it sets the value of starttime to 30 as expected.
>
> Anyone have any clue why this is?

mysql_error() is a good debugging tool; it will return an error string 
that may be useful.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   A waist is a terrible thing to mind.

-- 
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: automatic forward URL to other URL

2001-12-05 Thread Chris Lee

header("Location: www.domain2.com");

--

  Chris Lee
  [EMAIL PROTECTED]


"Manu Verhaegen" <[EMAIL PROTECTED]> wrote in message
001301c17c93$53be4620$[EMAIL PROTECTED]">news:001301c17c93$53be4620$[EMAIL PROTECTED]...
I want automatic forward URL (www.mydomain.com) to (www.mydomain2.com)

If i type in my brower www.mydomain.com the i will see www.mydomain2.com


Greetings,
Manu





-- 
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: Recursive Threading with PHP and MySQL.

2001-12-05 Thread Prottoss

Recursive functions are generally a bad idea especially in php.
By using a recursive function it is possible you may "smash the stack", which 
will crash an apache child (segfaults) and on a multi-threaded server take 
down the whole webserver.
Even with a default memory limit of 8 megs an attacker could crash php by 
accessing the same thread multiple times.

This is NOT a theoretical situation, I've actually came across it while 
writing a tree drawing code for a forum. The problem exists in all the php 
that I've tested (PHP 4.0.5,4.0.6,4.1.0RC5).

-- 
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: folver view options

2001-12-05 Thread Chris Lee

wrong newsgroup.

--

  Chris Lee
  [EMAIL PROTECTED]


"Caspar Kennerdale" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have just installed mandrake
>
> something that is annoying me with KDE is that the default view within the
> file manager is with icons.
>
> Is is possible to have the tree or detailed view as the default.
>
> I briefly looked at the prefences and could find it anywhere
>
> Thanks
>
>



-- 
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: serialize object & session_auto_start

2001-12-05 Thread Chris Lee

to be blunt. then dont use session.auto_start. classes must be defined
before variables can be created based on that class, obviously. the proper
order has to be.

- class definition
- session initialized

--

  Chris Lee
  [EMAIL PROTECTED]



"Matthieu Brunet" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I'm trying to save an object in the session, with the serialize and
> uunserialize fonction.
> But i got an error message wich say me that i must define the class before
> the session start.
> But my session start automaticly. So I can't include my class before the
> session start.
> I'm looking for a workaround.
>
> Thanks
>
> --
> --
> Matthieu Brunet - [EMAIL PROTECTED]
> Réseau-Photo S.A. - http://www.reseau-photo.com
> 15, rue du Général Campredon - 34000 Montpellier
> Tél. : 04 67 58 07 08 - Fax : 04 67 58 03 04
> Icq : 119683958
>
>
>



-- 
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: Recursive Threading with PHP and MySQL.

2001-12-05 Thread Chris Lee

recursion is something that can be fun and practical at times, other times
its a bad coder trying to do something they think is clever. use it wisly.




this example is purposely coded bad to show you how recursion can mess up
with bad error checking. this example will work. change to power(30) and
you'll get a segfault because $num will allways equal anything but 2. this
gives you a starting point on recursion.

--

  Chris Lee
  [EMAIL PROTECTED]



"Alawi" <[EMAIL PROTECTED]> wrote in message
002201c17dc2$75276cd0$753f47d4@mcsh2l7jqy8bgj">news:002201c17dc2$75276cd0$753f47d4@mcsh2l7jqy8bgj...
I want to know how can i do that Recursive loop to get categories as example
can any body help me by give my tutorial or any thing to understand this
techniqe




-- 
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: Looking for help in making a Mulit Page Form

2001-12-05 Thread Manuel Lemos

Hello,

Ben Clumeck wrote:
> 
> How do I make a multi page form with the ability to attach a file.  The form
> will be about 3 different pages and the last will be a place to attach the
> file.  Then I results will be sent to me via email.
> 
> Please provide recommendations or any help!

I think this does part of what you need. I just don't know about the
file upload because you can't pass it as an hidden field between pages.

http://phpclasses.upperdesign.com/browse.html/package/108

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] Re: session question: session.auto_start vs. session_register.

2001-12-05 Thread Chris Lee

session.auto_start is only usefull when not using classes as session
variables. because a class must be defined before it can be created (or
brought back to life from a session) it must be defined, this cant be done
with session.auto_start. I dont use session.auto_start. I find the ability
to use class's as session variables much more handy.

--

  Chris Lee
  [EMAIL PROTECTED]



"Kurt Lieber" <[EMAIL PROTECTED]> wrote in message
E16Bitf-00049T-00@z8">news:E16Bitf-00049T-00@z8...
> I am working on an open source e-commerce package and have hit a wall with
> sessions.
>
> If I have session.auto_start turned on, I get the following error message:
>
> Fatal error: The script tried to execute a method or access a property of
an
> incomplete object. Please ensure that the class definition shoppingcart of
> the object you are trying to operate on was loaded _before_ the session
was
> started in   on line 12
>
> If I turn session.auto_start off, the error disappears.
>
> So, the error message tells me that I can't use the class unless I've
defined
> it before the session gets started.  However, session.auto_start (as far
as I
> know) starts a session immediately, before even waiting for a script to be
> fully parsed & executed.  So, the two seem mutually exclusive. (but then
the
> usefullness of session.auto_start would seem extremely limited)
>
> Is there a way
>
> I think there's some glaring errors in my understanding here.  Can someone
> help me fill in the holes?
>
> --kurt
>



-- 
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: Simple(?) Question

2001-12-05 Thread Chris Lee

do a header re-direct.

header("Location: http://domain.com/page.php";);

include any variables you want, inc session vars if needed.

--

  Chris Lee
  [EMAIL PROTECTED]


"Andrew Forgue" <[EMAIL PROTECTED]> wrote in message
001d01c17ddc$a898fc40$6701a8c0@ajf">news:001d01c17ddc$a898fc40$6701a8c0@ajf...
Hello,

Is there a way to "post" to a script without any user interventions... e.g
The user posts to a script, and the script posts back to the original one.

Thanks!




-- 
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: Pulling data out of a domain name

2001-12-05 Thread CC Zona

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
wrote:

>  Is there a more efficient way of doing what this script does is check
>   a domain name and separate the domain name from the ext.
>   The domain names could be in a few different formats. Like the
>   samples below. This script works but I was just wondering does it
>   have to be so long winded
> 
>   www.domain.com  www.domain.com.au domain.com domain.com.au
> 
>$number= substr_count ($domaname,".");


Regex time (untested, so may need to be tweaked slightly):

$domaname=preg_replace("/^(www\.)?(.+)\.com(\.au)$/i","$2",$domaname);

-- 
CC

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




Re: Re[2]: [PHP] Pulling data out of a domain name

2001-12-05 Thread Brian Clark

* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [Dec 05. 2001 18:38]:

> Hello Brian,
> actually no parse_url() will return various components of the URL
> like
> $url[scheme] = http
> $url[host] = www.php.net 
> $url[path] = /download-php.php3 
> $url[query] = csel=br
> I what to split the host name up not the whole URL.

Ahh, so I see now. I guess that's what I get for being in such a hurry.
:-)

You're not using any regular expressions or anything, so I'd just go
with what you had. It's probably not going to be that slow, even on
large lists of domains, for example.

> Wednesday, December 05, 2001, 3:21:38 PM, you wrote:
> 
> >>   Is there a more efficient way of doing what this script does is check
> >>   a domain name and separate the domain name from the ext.
> >>   The domain names could be in a few different formats. Like the
> >>   samples below. This script works but I was just wondering does it
> >>   have to be so long winded
> 
> BC> I think you want parse_url()
> 
> BC> 

-- 
 -Brian Clark


-- 
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[2]: [PHP] Pulling data out of a domain name

2001-12-05 Thread rdkurth

Hello Brian,
actually no parse_url() will return various components of the URL
like
$url[scheme] = http
$url[host] = www.php.net 
$url[path] = /download-php.php3 
$url[query] = csel=br
I what to split the host name up not the whole URL.

Wednesday, December 05, 2001, 3:21:38 PM, you wrote:

BC> * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [Dec 05. 2001 18:05]:

>>   Is there a more efficient way of doing what this script does is check
>>   a domain name and separate the domain name from the ext.
>>   The domain names could be in a few different formats. Like the
>>   samples below. This script works but I was just wondering does it
>>   have to be so long winded

BC> I think you want parse_url()

BC> 




-- 
Best regards,
 rdkurthmailto:[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] PHP shopping cart packages

2001-12-05 Thread B. van Ouwerkerk

At 16:05 5-12-01 -0600, rory o'connor wrote:
>I need a new cart program and would like to use something based in PHP.  I
>was using a CGI paltform written in C, but we had session problems out the
>wazoo when traffic was really high.  I need something that can manage
>sessions with vim and vigor.  I have only see phpshop - which looks nice, but
>I wonder if there are other packages out there that are really good.
>
>Your thoughts appreciated!

www.fishcart.org is worth to look at.. gets installed within 5 minutes..

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] Looking for help in making a Mulit Page Form

2001-12-05 Thread Brian Clark

* Ben Clumeck <[EMAIL PROTECTED]> [Dec 05. 2001 18:27]:

> How do I make a multi page form with the ability to attach a file.  The form
> will be about 3 different pages and the last will be a place to attach the
> file.  Then I results will be sent to me via email.
> 
> Please provide recommendations or any help!



-- 
 -Brian Clark


-- 
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] Simple(?) Question

2001-12-05 Thread Brian Clark

* Andrew Forgue <[EMAIL PROTECTED]> [Dec 05. 2001 17:35]:

> Is there a way to "post" to a script without any user interventions... e.g The user 
>posts to a script, and the script posts back to the original one.

(Please set your mail client to wrap at 72 chars)

cURL can do this, among other things: curl.haxx.se

Or something like this:



-- 
 -Brian Clark


-- 
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] Looking for help in making a Mulit Page Form

2001-12-05 Thread Ben Clumeck

How do I make a multi page form with the ability to attach a file.  The form
will be about 3 different pages and the last will be a place to attach the
file.  Then I results will be sent to me via email.

Please provide recommendations or any help!

Thanks,
Ben


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




Re: [PHP] Pulling data out of a domain name

2001-12-05 Thread Brian Clark

* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [Dec 05. 2001 18:05]:

>   Is there a more efficient way of doing what this script does is check
>   a domain name and separate the domain name from the ext.
>   The domain names could be in a few different formats. Like the
>   samples below. This script works but I was just wondering does it
>   have to be so long winded

I think you want parse_url()



-- 
 -Brian Clark


-- 
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] Pulling data out of a domain name

2001-12-05 Thread rdkurth

  Is there a more efficient way of doing what this script does is check
  a domain name and separate the domain name from the ext.
  The domain names could be in a few different formats. Like the
  samples below. This script works but I was just wondering does it
  have to be so long winded

  www.domain.com  www.domain.com.au domain.com domain.com.au



   $number= substr_count ($domaname,".");
  If ($number=="1"){
  $host1=explode(".",$domaname);
   $dhost=$host1[0] ;
   $chost=$host1[1] ;
  }
 
 If ($number=="2"){
  $host1=explode(".",$domaname);
 if($host1[0]=="www"){
   $dhost=$host1[1] ;
   $chost=$host1[2] ;
 
  }else{
$dhost=$host1[0] ;
$dhost1=$host1[1] ;
$dhost2=$host1[2] ;
$chost=$dhost1 . "." . $dhost2;
   }}
   If ($number=="3"){
  $host1=explode(".",$domaname);
 if($host1[0]=="www"){
 $dhost1=$host1[0] ;
 $dhost2=$host1[1] ;
 $dhost3=$host1[2] ;
 $dhost4=$host1[3] ;
 $dhost=$dhost2;
 $chost=$dhost3 . "." . $dhost4;
  }else{
 $dhost1=$host1[0] ;
 $dhost2=$host1[1] ;
 $dhost3=$host1[2] ;
 $dhost=$dhost1;
 $chost=$dhost2 . "." . $dhost3;
 }
  }

  

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


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




[PHP] URGENT: IIS doesn't like GET or POST

2001-12-05 Thread Ron Newman

Hi,
When I pass form variables to PHP using either GET or POST it works under
PWS running on "localhost", but when I run the same script remotely on a
Win2K Advanced Server and IIS machine, I get "Warning, not defined" errors
for all the variables passed.

Is there some configuration problem with IIS, or am I overlooking something
else?

Ron



-- 
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 shopping cart packages

2001-12-05 Thread Kurt Lieber

On Wednesday 05 December 2001 02:05 pm, you wrote:
> Your thoughts appreciated!

Check out The Exchange Project.  

http://www.theexchangeproject.org/

I've been using it for a few months now.  My biggest complaint is there 
doesn't seem to be a clear sense of direction in the development process.  
Development happens, but there's no set milestones that people are marching 
towards.  (at least, not that are published or discussed)   Also, the 
documentation is *severely* lacking.

However, the product itself is fairly feature-rich and is robust enough to 
use for a live shop.  If you're comfortable with PHP, it might be a great 
fit. 

If you do decide to go with it, my suggestion is to ignore the current 
release (PR2.1) and go with one of the PR2.2 snapshots.  Many people are 
using the snapshots for live shops with good results and there are a lot of 
features in the 2.2 version that are important for an e-commerce shop, IMO.

hth

--kurt

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

2001-12-05 Thread faeton



Linux is like a wigwam - no windows, no gates, aðache inside!



Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) [EMAIL PROTECTED] www.xemi.info


-- 
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] Simple(?) Question

2001-12-05 Thread Martin Towell

if you want the browser to do it (as opposed to getting php to do it), then
you could use a "hidden" form, like:




... etc (all hidden fields) ...


-Original Message-
From: Andrew Forgue [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 9:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Simple(?) Question


Hello,

Is there a way to "post" to a script without any user interventions... e.g
The user posts to a script, and the script posts back to the original one.

Thanks!



[PHP] Forms lose data when going "back" in browser

2001-12-05 Thread Zavier Sheran

I have a submission form distributed over 5 pages. When the user hits the
"back" button in the browser on one of the pages to make changes on a
previous page, all fields are emptied. This is only when I have a session
running. When I use the same pages without the session, the data stays in
the form. 

So I understand that the session expires the page immediately after leaving
it. Is there a way to give the page a few minutes before it expires or a
similar behaviour? 

Thanks a lot. 

-Zavier


-- 
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] Simple(?) Question

2001-12-05 Thread Andrew Forgue

Hello,

Is there a way to "post" to a script without any user interventions... e.g The user 
posts to a script, and the script posts back to the original one.

Thanks!



[PHP] PHP + MySQL problem (strange behavior)

2001-12-05 Thread Javier Muniz

Hello,

I'm having trouble determining what's going wrong with a MySQL query that
I'm doing from PHP.  Now before you go blaming MySQL read on :)

I have a table with the following columns:
id (int)
name (varchar 20)
starttime (int)
duration (int)

now, i have a row that has a starttime of 60, when i attempt to do the
following update with PHP, it sets it to 0:

"UPDATE mytable SET starttime=starttime-30 WHERE name = 'myname'"

but when I run it from the MySQL command line, copy/pasted from the code, it
sets the value of starttime to 30 as expected.

Anyone have any clue why this is?


Javier Muniz
Chief Technology Officer
Granicus, LTD.
Tel: (415) 522-5216
Fax: (415) 522-5215


-- 
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 shopping cart packages

2001-12-05 Thread rory o'connor

I need a new cart program and would like to use something based in PHP.  I 
was using a CGI paltform written in C, but we had session problems out the 
wazoo when traffic was really high.  I need something that can manage 
sessions with vim and vigor.  I have only see phpshop - which looks nice, but 
I wonder if there are other packages out there that are really good.  

Your thoughts appreciated!


-- 
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] Xml Parse Extended Chars

2001-12-05 Thread Chris Noble

Ive ran into a stumbling block trying to parse an xml document. I control
the parsing and the creation of the xml document so I can do any changes
from either side of it. Problem I have run into is my xml document has a é
in it. Ive ran htmlentities on it and it converts it to é but
everytime I try and run xml parse on that I get the error code of "undefined
entity at line 108". Has anyone ran into this problem before or know a
solution to handle these issues?

Chris Noble



-- 
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] Large file uploads timeout - ouch!

2001-12-05 Thread Fred

I believe that you must normally restart apache for php.ini changes to take
affect.  The fact that the changes show up in phpinfo() may or may not
indicate that the changes are actually in effect.  If your ISP has not
restarted apache, you may want to ask them to do so in order to save
yourself a lot of head aches.  If that is not the problem, then read on.

In your initial request you mentioned that you suspected that
HTTP_KEEP_ALIVE was suspect and you asked for information on how to change
that environmental variable.  The HTTP_KEEP_ALIVE setting in apache controls
how long the server wait for a second request on a single connection before
closing the connection.  This setting is typically set to something like 15
seconds and would not affect the behavior of your script.

If you look at your phpinfo() under the apache heading you will notice a row
called "Timeouts".  There are two settings listed here.  The first is
"Connection" which is typically 300 and the second is keep-alive which is
typically 15.

If your ISP has 300 set for keep-alive then you may want to advise them to
change it because it leaves unused connections open for 5 minutes clogging
up memory and child processes.

I suspect, however, that it is the "Connections" setting that is set to 300.
If that is the case then your ISP can open httpd.conf and edit the line that
says:

timeout 300

and change it to a larger number.  They could also change this setting to
"0" which means there is no timeout.  That could also cause problems,
however, because abandoned connections could tie up system resources.

This may solve your problem, but I dount it.  This timeout setting controls
the amount of time that apache waits for three things:

1. The total amount of time it takes to receive a GET request.
2. The amount of time between receipt of TCP packets on a POST or PUT
request.
3. The amount of time between ACKs on transmissions of TCP packets in
responses.

In other words, as long as data is flowing apache will not timeout.  I have
a script that automatically generates 20MB word files and apache has no
problem keeping the connection alive for the 30 minutes it takes to download
the data over a slow connection despite the fact that "Timeout" is set to
300.

If your php.ini settings are indeed correct, it may well be that apache is
timing out for some reason, but if that is the case it is caused by one of
the three reasons above.

The first reason is not the issue because you are not using the GET method.
The third reason is not the issue because ACKs are sent by the receiving
host rather than the sender, so apache is not expecting ACKs.

That leaves only the second reason:

The amount of time between receipt of TCP packets on a POST or PUT request.

If this is the problem, it would indicate that your browser has stopped
sending packets for more than 300 seconds.  If you have not done so, you may
wish to monitor the data flow to determine if this is the case.  If so, then
your browser is timing out for some reason unrelated to apache or php and
you may want to try another browser.

If this is not the problem then you have me stumped.

Fred

Fred <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Did you read my post?  I did all of that *before* I posted my question.
>
> Anyone else have a suggestion?
>
> TIA
>
> Fred
>
> On Wed, 05 Dec 2001 05:16:38 -0500, Mirek Novak wrote:
>
> > fred wrote:
> >
> >> After all of this, and you give me the wrong answer.  If you read the
> >> PHP manual, you will see that set_time_limit falls defaults to
> >> max_execution_time, which I already have set to 2400, so your answer is
> >> irrelevant.  That is not controlling HTTP_KEEP_ALIVE, which is
> >> defaulting to 300 seconds somewhere - probably httpd.conf.
> >>
> >> Now who is lazy?
> >
> > it was ONE question to google.com:  +"large file uploads" +php results
> > in
> >
http://www.phpbuilder.com/forum/read.php3?num=2&id=137901&loc=0&thread=11834
0
> >
> > -X-
> >
> >
> >



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

2001-12-05 Thread Mike Eheler

if ($str1 == $str2) ?

If that's not it, check http://download.php.net/manual/en/ref.strings.php

Mike

Mainolfi, Joe wrote:

>Is there another way to compare the values of 2 strings other than strcmp().
>This function is not consistent with its results and is causing so many
>headaches.  I am somewhat new to Php so any help is appreciated.  Thanks
>
>__   
>Joseph D. Mainolfi Jr.
>IT Specialist
>American Bridge Company
>1000 American Bridge Way
>Coraopolis, PA 15108
>(412) 631-1018 phone
>(412) 631-2000 fax
>[EMAIL PROTECTED]
>http://www.americanbridge.net
>
>



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




[PHP] Compare strings

2001-12-05 Thread Mainolfi, Joe

Is there another way to compare the values of 2 strings other than strcmp().
This function is not consistent with its results and is causing so many
headaches.  I am somewhat new to Php so any help is appreciated.  Thanks

__   
Joseph D. Mainolfi Jr.
IT Specialist
American Bridge Company
1000 American Bridge Way
Coraopolis, PA 15108
(412) 631-1018 phone
(412) 631-2000 fax
[EMAIL PROTECTED]
http://www.americanbridge.net


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




Re: [PHP] multi-dimensional array

2001-12-05 Thread Mike Eheler

Sorry, I sent that too soon.. here's my test results:

http://localhost/test.php?var[test][5][]=test

[HTTP_GET_VARS] => Array
(
[var] => Array
(
[test] => Array
(
[5] => Array
(
[0] => test
)

)

)

)


Jordan wrote:

>Is there any way to pass a multi-dimenstional through a url.  something like
>/cart.exe?item[1][1]=3
>
>just curious.
>
>-Jordan
>
>
>



-- 
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] multi-dimensional array

2001-12-05 Thread Mike Eheler

Should work. Why not give it a try, and let the good people of this list 
know?

Mike

Jordan wrote:

>Is there any way to pass a multi-dimenstional through a url.  something like
>/cart.exe?item[1][1]=3
>
>just curious.
>
>-Jordan
>
>
>



-- 
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] multi-dimensional array

2001-12-05 Thread Jordan

Is there any way to pass a multi-dimenstional through a url.  something like
/cart.exe?item[1][1]=3

just curious.

-Jordan



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

2001-12-05 Thread Matthew Loff


The proper content type is text/xml.

--Matt


-Original Message-
From: bill [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 05, 2001 3:11 PM
To: Tyler Longren
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] xml header


Hmmm.  I'm thinking of the http headers.

Assume you have an xml file in memory as a variable ($xmlfiledata) and 
you want to send it to the browser.

If you just echo it, you are sending it as text (which isn't necessarily

bad, it just isn't as good as it should be, I think).

So far, I've been tossing this around:

$clength=strlen($xmlfiledata);
header("Host: myhost.com");
header("Content-Type: application/xml; charset=iso-8859-1");
header ("Content-length: $clength");
echo "$xmlfiledata";

I thought about sending "Content-Type: text/xml" too.

Any thoughts.

kind regards,

bill hollett

Tyler Longren wrote:

>Hi Bill,
>
>I don't believe there are any.
>
>Tyler
>
>- Original Message - 
>From: "bill" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, December 05, 2001 1:42 PM
>Subject: [PHP] xml header
>
>
>>What is the proper header to send when presenting dynamic xml pages to

>>the browser?
>>
>>
>>-- 
>>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] session question: session.auto_start vs. session_register.

2001-12-05 Thread Kurt Lieber

I am working on an open source e-commerce package and have hit a wall with 
sessions.

If I have session.auto_start turned on, I get the following error message:

Fatal error: The script tried to execute a method or access a property of an 
incomplete object. Please ensure that the class definition shoppingcart of 
the object you are trying to operate on was loaded _before_ the session was 
started in   on line 12

If I turn session.auto_start off, the error disappears.

So, the error message tells me that I can't use the class unless I've defined 
it before the session gets started.  However, session.auto_start (as far as I 
know) starts a session immediately, before even waiting for a script to be 
fully parsed & executed.  So, the two seem mutually exclusive. (but then the 
usefullness of session.auto_start would seem extremely limited)

Is there a way 

I think there's some glaring errors in my understanding here.  Can someone 
help me fill in the holes? 

--kurt


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

2001-12-05 Thread bill

Hmmm.  I'm thinking of the http headers.

Assume you have an xml file in memory as a variable ($xmlfiledata) and 
you want to send it to the browser.

If you just echo it, you are sending it as text (which isn't necessarily 
bad, it just isn't as good as it should be, I think).

So far, I've been tossing this around:

$clength=strlen($xmlfiledata);
header("Host: myhost.com");
header("Content-Type: application/xml; charset=iso-8859-1");
header ("Content-length: $clength");
echo "$xmlfiledata";

I thought about sending "Content-Type: text/xml" too.

Any thoughts.

kind regards,

bill hollett

Tyler Longren wrote:

>Hi Bill,
>
>I don't believe there are any.
>
>Tyler
>
>- Original Message - 
>From: "bill" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, December 05, 2001 1:42 PM
>Subject: [PHP] xml header
>
>
>>What is the proper header to send when presenting dynamic xml pages to 
>>the browser?
>>
>>
>>-- 
>>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] xml header

2001-12-05 Thread Tyler Longren

Hi Bill,

I don't believe there are any.

Tyler

- Original Message - 
From: "bill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 1:42 PM
Subject: [PHP] xml header


> What is the proper header to send when presenting dynamic xml pages to 
> the browser?
> 
> 
> -- 
> 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] Class in PHP

2001-12-05 Thread andreas

On Wed, 5 Dec 2001 10:41:53 -0500  Wee Chua <[EMAIL PROTECTED]> wrote:
>Hi all,
>How many extension of subclass can PHP have? Can I extend subclass to more
>different subclass?

Do you mean how deep a inheritance you can have?

e.g.
A
  \
   B
   | \
   C  D
  | \
  E  F


There is nothing wrong with doing 
Class F extends D (which then in turn
inherits it's stuff from class b, etc.)



-- 
Get your firstname@lastname email for FREE at http://Nameplanet.com/?su

-- 
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] Is php safe for e-commerce applications?

2001-12-05 Thread Jim


Would sprintf() handle your needs?

This seems to work correctly...

$val = sprintf("%.0f",(10*(8.20-0.20)));

produces a string $val equal to 80.

Is this too geeky?

Jimtronic


>What a scary day, and it just gets worse
>
>1. A user finds their account balance is displayed incorrectly on 
>one of my live e-commerce sites.
>
>2. I discover that "floor()" intermittently gives the wrong answer i.e.
>
>print floor(10*(8.20 - 0.20));
>Answer : 79
>
>print floor(10*(8.10 - 0.10));
>Answer : 80
>
>(php 4.0.6 and 4.0.4.pl1 under Linux 2.2.19.)
>
>3. I find this is a known "feature" with no intention of ever being fixed. See
>http://bugs.php.net/bug.php?id=6220
>
>print floor( (0.7 + 0.1) * 10);
>Answer : 7
>
>
>4. I check the php documentation that was added because of that bug
>(http://www.php.net/manual/en/language.types.float.php) and discover :-
>
>   "never trust floating number results to the last digit and never 
>compare floating point numbers
>for equality."
>
>5. I realise that the "last digit" might also be the first so that 
>means never trust anything except
>integers!
>
>6. The truth really sinks in... It seems I simply cannot use php for 
>e-commerce applications unless
>I convert all money to integers e.g. $4.32 must be handled as 432 
>cents, or all arithmetic
>operations and comparisons have to be converted to use bc functions. 
>Instead of :
>
>  if ($cost == 10.00)
>you must write
>  if (bcomp($cost,10.00,2)) == 0)
>etc.,etc.
>
>7. The horror unfolds...  php is just as full of geeko-trash as 
>C/Perl/Java and the rest of them! I
>will have to spend the rest of my life worrying about 
>types/casts/floating point precision and all
>that garbage even when I'm just adding up dollars and cents! I can't 
>even escape to Italy and work
>in Lira, they're switching to  euros with decimal places too! I 
>should have stayed with Java, it may
>be rubbish but at least it's obviously rubbish!
>
>
>Please someone, tell me I'm wrong!
>
>Tell me that 0.1 + 0.7  can be 0.8 and not almost 0.8! 
>Tell me I don't have to check the last three years of work!
>Tell me php isn't just for kids waiting to graduate/degradate to Java!
>Tell me the techno-geeks haven't won!
>
>Hell..
>
>
>George
>
>--
>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]


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] Is php safe for e-commerce applications?

2001-12-05 Thread Jason Lotito

Reading the Bug report, it was mentioned if you want precision
mathmatics, use BCMath

http://www.php.net/manual/en/ref.bc.php

That will give you the precision you are looking for.

Jason Lotito
[EMAIL PROTECTED]
www.NewbieNetwork.net

> -Original Message-
> From: George Whiffen [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, December 05, 2001 3:05 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Is php safe for e-commerce applications?
> 
> 
> What a scary day, and it just gets worse
> 
> 1. A user finds their account balance is displayed 
> incorrectly on one of my live e-commerce sites.
> 
> 2. I discover that "floor()" intermittently gives the wrong 
> answer i.e. 
> 
> print floor(10*(8.20 - 0.20)); 
> Answer : 79
> 
> print floor(10*(8.10 - 0.10));
> Answer : 80
> 
> (php 4.0.6 and 4.0.4.pl1 under Linux 2.2.19.)
> 
> 3. I find this is a known "feature" with no intention of ever 
> being fixed. See http://bugs.php.net/bug.php?id=6220 
> 
> print floor( (0.7 + 0.1) * 10);
> Answer : 7
> 
> 
> 4. I check the php documentation that was added because of that bug
> (http://www.php.net/manual/en/language.types.float.php) and 
> discover :-
> 
>   "never trust floating number results to the last digit and 
> never compare floating point numbers for equality."
> 
> 5. I realise that the "last digit" might also be the first so 
> that means never trust anything except integers!
> 
> 6. The truth really sinks in... It seems I simply cannot use 
> php for e-commerce applications unless I convert all money to 
> integers e.g. $4.32 must be handled as 432 cents, or all 
> arithmetic operations and comparisons have to be converted to 
> use bc functions.  Instead of :
> 
>  if ($cost == 10.00)
> you must write 
>  if (bcomp($cost,10.00,2)) == 0) 
> etc.,etc.
> 
> 7. The horror unfolds...  php is just as full of geeko-trash 
> as C/Perl/Java and the rest of them! I will have to spend the 
> rest of my life worrying about types/casts/floating point 
> precision and all that garbage even when I'm just adding up 
> dollars and cents! I can't even escape to Italy and work in 
> Lira, they're switching to  euros with decimal places too! I 
> should have stayed with Java, it may be rubbish but at least 
> it's obviously rubbish!
> 
> 
> Please someone, tell me I'm wrong!
> 
> Tell me that 0.1 + 0.7  can be 0.8 and not almost 0.8!  
> Tell me I don't have to check the last three years of work! 
> Tell me php isn't just for kids waiting to graduate/degradate 
> to Java! Tell me the techno-geeks haven't won!
> 
> Hell..
> 
> 
> George
> 
> -- 
> 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] Reg ex help-Removing extra blank spaces before HTML output

2001-12-05 Thread Jack Dempsey

actually it does... james' solution will work but I forgot to mention a
\s is whitespace, not a space, therefore it will get tabs, newlines, and
spaces. look at http://www.cs.tut.fi/~jkorpela/perl/regexp.html
" \s matches any whitespace character (space, tab, newline)"
therefore my suggestion works: 
$t = preg_replace('/\s+/',' ',$text);
its quicker to code, easier to understand, and will run faster because
it doesn't have to match and remember or do alternation...

jack

-Original Message-
From: Ken [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 05, 2001 2:01 PM
To: Jack Dempsey
Subject: RE: [PHP] Reg ex help-Removing extra blank spaces before HTML
output

At 10:57 AM 12/5/01 -0500, Jack Dempsey wrote:
>a space (\s is from perl)

Ah, OK, yours doesn't deal with newlines.

 From list member "James", a solution that does:

-
From: "liljim" <[EMAIL PROTECTED]>

The example Jack gave you will clear up spaces well, though to get both
newlines and spaces into one:

$input = preg_replace("/([ ]|\n){1,}/", "\\1", $input);
-

Thanks again!

- Ken
[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] Dumped OK, Restore NOT

2001-12-05 Thread René Fournier

You know, I tried that, it it STILL didn't work. Then, after remembering 
to reboot my brain, I took a look at the smarts.sql that my ISP kindly 
dumped for me, to see what code/statements it might be missing--and lo 
and behold!--it didn't have a USE database; statement! Adding this one 
wee line made all the difference in the world. Your suggestions(s) work; 
I can now restore my database locally.

Thanks everyone for your help and patience! (And my apologies for 
posting off-topic oh PHP--I've been suitably chastised, and will 
remember to name the subject OT: next time I feel tempted to ignore 
netiquette.)

...Rene

On Wednesday, December 5, 2001, at 10:56  AM, Ernesto wrote:

>
> You should try:
>
> mysql -u username -p password database < dump.sql
>
> Example:
>
> mysql -u joe -p mypass smarts < smarts.sql
>
>
> René Fournier wrote:
>
>> Little problem with MySQL 3.23.46 under Windows ME. I'm trying to 
>> create a database from an .sql file (the dumped remains of a 
>> functioning database--also MySQL). The dumping was easy, but I'm 
>> having a problem putting it back. I have a dumped file called 
>> smarts.sql that starts this way:
>> -
>> # MySQL dump 8.14
>> #
>> # Host: localhostDatabase: smarts
>> #
>> # Server version3.23.38
>> #
>> # Table structure for table 'about'
>> #
>> CREATE TABLE about (
>>   id smallint(5) unsigned NOT NULL auto_increment,
>>   lang char(2) default NULL,
>>   recordname varchar(40) default NULL,
>>   key1 tinytext,
>>   key2 tinytext,
>>   status varchar(10) default NULL,
>>   title tinytext,
>>   par1 tinytext,
>>   PRIMARY KEY  (id)
>> ) TYPE=MyISAM;
>> #
>> # Dumping data for table 'about'
>> #
>> INSERT INTO about VALUES (1,'en','about'
>> ---(and so on)
>> This is what I'm doing to try to recreate the database locally:
>> 1. I type "mysqladmin create smarts"
>> OK--I see a new directory called "smarts" (no files in it)
>> 2. I type "mysql smarts < smarts.sql"
>> It pauses for a few seconds (seeming to input the file), then returns 
>> the DOS prompt with no message, error or otherwise. Seems to have 
>> worked, right? But when I check the 'smarts' database directory, there 
>> are no files in it. (Incidentally mysqld is running.)
>> What am I doing wrong??
>> ...Rene
---
René Fournier
[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: What is causing duplicate keys?

2001-12-05 Thread Rick Emery

it should read:  INSERT INTO recensioni VALUES( NULL,...

In order fot auto_increment to work, you must use NULL.  When you tried
NULL, what SPECIFIC error did you get when it complained?

FYI: it complains about the "duplicate key" because you already inserted a
record with 300 in the PRIMARY KEY field.  When you attempt to insert the
next key with 300, that is an error.

-Original Message-
From: mweb [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 1:16 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: What is causing duplicate keys?


Hello,

Always struggling on my php-odbc-MS access project, I managed to
successfully 
add a record to a table.

Now, no matter what I write in the first field (random numbers, AUTO, 
AUTO_INCREMENT...)

I get this:

Insert Into recensioni VALUES (300, 'riee', 'reworew', 'wer', 2001,'IT',
2.5, 
'dond to it, 'rew', 'uno',1, 'Caro', 3, 'stuff',
20011205201040, 'writeurl, 1, '5/12/2001 20.10.40', '1', '1','enter
keyword')

Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] The changes
you 
requested to the table were not successful because they would create
duplicate
values in the index, primary key, or relationship. Change the data in the 
field or fields that contain duplicate data, remove the index, or redefine 
the index to permit
duplicate entries and try again., SQL state 23000 in SQLExecDirect in 
C:\domini\mnet\inser_rec.php on line 109
Error in odbc_exec( no cursor returned ) 

How can I find out what I am duplicating? The first field is the unique key,

but what should I send to Access to tell it just auto increment and go?
If I put 0 or NULL it complains.
Also, Andrew Hill siggested the use of odbc_tables and odbc_columns to get 
info about the structure of each column which I don't know in detail because

the DB was written by the guy who quit, not me)
What is the exact syntax of those instructions? I have tried to apply the 
manual, but without success on the second one.

TIA,
mweb

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

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




[PHP] xml header

2001-12-05 Thread bill

What is the proper header to send when presenting dynamic xml pages to 
the browser?


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

2001-12-05 Thread Steve Werby

"Dan McCullough" <[EMAIL PROTECTED]> wrote:
> Is there away to take a md5 encrypted password and decrypt it and give
that to the client, if they
> fogot their password.

Short answer is no, long answer below.  I just answered this on another list
10 minutes ago so I'm pasting in part of my reply unedited.

You could use something like John the Ripper, which is a password cracker
you can install on the server.  It works by taking a list of words,
word-number combinations, etc. from a dictionary and encrypting them, then
comparing the encrypted results with the encrypted passwords stored on your
server.  If there's a match it notes the cracked password.  It's good for
detecting weak passwords and can actually detect them very quickly, but if
the passwords are strong then it's not effective for your purposes (that's a
good thing) since by the time it cracked the password (if it did) your user
would have likely taken their business elsewhere.  On a few servers I manage
I run it periodically to check for weak passwords, then I contact the users
with weak passwords and ask that they change them.

John the Ripper: http://www.openwall.com/john/

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


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




Re: [PHP] md5 decrypt

2001-12-05 Thread Jeff Lewis

I'm pretty sure you can't.  You would have to set up an area where they can
have their password reset and the new password emailed to their email
address.

Jeff
- Original Message -
From: "Dan McCullough" <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 2:21 PM
Subject: [PHP] md5 decrypt


> Is there away to take a md5 encrypted password and decrypt it and give
that to the client, if they
> fogot their password.
>
> =
> dan mccullough
> 
> "Theres no such thing as a problem unless the servers are on fire!"
>
>
> __
> Do You Yahoo!?
> Buy the perfect holiday gifts at Yahoo! Shopping.
> http://shopping.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 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] Minimum Apache & CD-ROM root

2001-12-05 Thread Valter Santos



running apache from a distro CD  mm!
I suppose you can't :(

why you don't build a static version of your PHP application???
it's far easy... there are some utilities for done it :)

do a search in google

cheers,

Valter Santos



- Original Message -
From: "John Monfort" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 04, 2001 4:21 AM
Subject: [PHP] Minimum Apache & CD-ROM root


>
>  Hello all,
>
>  I'm writing a PHP application that will run on a cd-rom. I have two
> questions:
>
>  1) Apache Server
> I wanted to add the apache server on the disk. What are the minimum
> files that I need, for apache to run? i.e.
> apache.exe
> httpd.conf
> etc.
>
>  2) Configuration File PATH
> In the apache configuration file, the ServerRoot asks for a absolute
> path.
> Is there a Window's (system) Variable to shows the current directory?
>
> I'm hoping for something like
>
> ServerRoot  "/Apache/"
>
> So that, apache would run correctly, regardless if the CD-ROM drive is
> D: or F: or any other name.
>
>  Any Ideas?
>
>  If you have any suggestions on a small, portable, browser with PHP
>  suport, then please let me know.
>
>  Thanks in advance.
>
>
> __John Monfort_
> _+---+_
>  P E P I E  D E S I G N S
>www.pepiedesigns.com
> "The world is waiting, are you ready?"
> -+___+-
>
>
>
> --
> 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] md5 decrypt

2001-12-05 Thread John S. Huggins

On Wed, 5 Dec 2001, Dan McCullough wrote:

>-Is there away to take a md5 encrypted password and decrypt it and give that to the 
>client, if they
>-fogot their password.

No.

>-
>-=
>-dan mccullough
>-
>-"Theres no such thing as a problem unless the servers are on fire!"
>-
>-
>-__
>-Do You Yahoo!?
>-Buy the perfect holiday gifts at Yahoo! Shopping.
>-http://shopping.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]
>-

**

John Huggins
VANet
7101 Oriole Avenue
Springfield, VA 22150
703-912-6453
703-912-4831 fax

[EMAIL PROTECTED]
http://www.va.net/

**


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




Re: [PHP] What is causing duplicate keys?

2001-12-05 Thread Jim


You should specify the column names to prevent this from happening.

Such as ...

INSERT INTO rcensioni (col1,col2,etc) VALUES ('value','value','etc...')

Just make sure you don't specify the column that is autonumbering.

Jim

>Hello,
>
>Always struggling on my php-odbc-MS access project, I managed to successfully
>add a record to a table.
>
>Now, no matter what I write in the first field (random numbers, AUTO,
>AUTO_INCREMENT...)
>
>I get this:
>
>Insert Into recensioni VALUES (300, 'riee', 'reworew', 'wer', 2001,'IT', 2.5,
>'dond to it, 'rew', 'uno',1, 'Caro', 3, 'stuff',
>20011205201040, 'writeurl, 1, '5/12/2001 20.10.40', '1', '1','enter keyword')
>
>Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] The changes you
>requested to the table were not successful because they would create duplicate
>values in the index, primary key, or relationship. Change the data in the
>field or fields that contain duplicate data, remove the index, or redefine
>the index to permit
>duplicate entries and try again., SQL state 23000 in SQLExecDirect in
>C:\domini\mnet\inser_rec.php on line 109
>Error in odbc_exec( no cursor returned )
>
>How can I find out what I am duplicating? The first field is the unique key,
>but what should I send to Access to tell it just auto increment and go?
>If I put 0 or NULL it complains.
>Also, Andrew Hill siggested the use of odbc_tables and odbc_columns to get
>info about the structure of each column which I don't know in detail because 
>the DB was written by the guy who quit, not me)
>What is the exact syntax of those instructions? I have tried to apply the
>manual, but without success on the second one.
>
>   TIA,
>   mweb
>
>--
>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]


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] Recursive Threading with PHP and MySQL.

2001-12-05 Thread Alawi

I want to know how can i do that Recursive loop to get categories as example 
can any body help me by give my tutorial or any thing to understand this techniqe



[PHP] md5 decrypt

2001-12-05 Thread Dan McCullough

Is there away to take a md5 encrypted password and decrypt it and give that to the 
client, if they
fogot their password.

=
dan mccullough

"Theres no such thing as a problem unless the servers are on fire!"


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.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]




Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred

Did you read my post?  I did all of that *before* I posted my question.

Anyone else have a suggestion?

TIA

Fred

On Wed, 05 Dec 2001 05:16:38 -0500, Mirek Novak wrote:

> fred wrote:
> 
>> After all of this, and you give me the wrong answer.  If you read the
>> PHP manual, you will see that set_time_limit falls defaults to
>> max_execution_time, which I already have set to 2400, so your answer is
>> irrelevant.  That is not controlling HTTP_KEEP_ALIVE, which is
>> defaulting to 300 seconds somewhere - probably httpd.conf.
>>
>> Now who is lazy?
> 
> it was ONE question to google.com:  +"large file uploads" +php results
> in
> http://www.phpbuilder.com/forum/read.php3?num=2&id=137901&loc=0&thread=118340
> 
> -X-
> 
> 
>

-- 
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] Is php safe for e-commerce applications?

2001-12-05 Thread George Whiffen

What a scary day, and it just gets worse

1. A user finds their account balance is displayed incorrectly on one of my live 
e-commerce sites.

2. I discover that "floor()" intermittently gives the wrong answer i.e. 

print floor(10*(8.20 - 0.20)); 
Answer : 79

print floor(10*(8.10 - 0.10));
Answer : 80

(php 4.0.6 and 4.0.4.pl1 under Linux 2.2.19.)

3. I find this is a known "feature" with no intention of ever being fixed. See
http://bugs.php.net/bug.php?id=6220 

print floor( (0.7 + 0.1) * 10);
Answer : 7


4. I check the php documentation that was added because of that bug
(http://www.php.net/manual/en/language.types.float.php) and discover :-

  "never trust floating number results to the last digit and never compare floating 
point numbers
for equality."

5. I realise that the "last digit" might also be the first so that means never trust 
anything except
integers!

6. The truth really sinks in... It seems I simply cannot use php for e-commerce 
applications unless
I convert all money to integers e.g. $4.32 must be handled as 432 cents, or all 
arithmetic
operations and comparisons have to be converted to use bc functions.  Instead of :

 if ($cost == 10.00)
you must write 
 if (bcomp($cost,10.00,2)) == 0) 
etc.,etc.

7. The horror unfolds...  php is just as full of geeko-trash as C/Perl/Java and the 
rest of them! I
will have to spend the rest of my life worrying about types/casts/floating point 
precision and all
that garbage even when I'm just adding up dollars and cents! I can't even escape to 
Italy and work
in Lira, they're switching to  euros with decimal places too! I should have stayed 
with Java, it may
be rubbish but at least it's obviously rubbish!


Please someone, tell me I'm wrong!

Tell me that 0.1 + 0.7  can be 0.8 and not almost 0.8!  
Tell me I don't have to check the last three years of work! 
Tell me php isn't just for kids waiting to graduate/degradate to Java!
Tell me the techno-geeks haven't won!

Hell..


George

-- 
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 is causing duplicate keys?

2001-12-05 Thread mweb

Hello,

Always struggling on my php-odbc-MS access project, I managed to successfully 
add a record to a table.

Now, no matter what I write in the first field (random numbers, AUTO, 
AUTO_INCREMENT...)

I get this:

Insert Into recensioni VALUES (300, 'riee', 'reworew', 'wer', 2001,'IT', 2.5, 
'dond to it, 'rew', 'uno',1, 'Caro', 3, 'stuff',
20011205201040, 'writeurl, 1, '5/12/2001 20.10.40', '1', '1','enter keyword')

Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] The changes you 
requested to the table were not successful because they would create duplicate
values in the index, primary key, or relationship. Change the data in the 
field or fields that contain duplicate data, remove the index, or redefine 
the index to permit
duplicate entries and try again., SQL state 23000 in SQLExecDirect in 
C:\domini\mnet\inser_rec.php on line 109
Error in odbc_exec( no cursor returned ) 

How can I find out what I am duplicating? The first field is the unique key, 
but what should I send to Access to tell it just auto increment and go?
If I put 0 or NULL it complains.
Also, Andrew Hill siggested the use of odbc_tables and odbc_columns to get 
info about the structure of each column which I don't know in detail because  
the DB was written by the guy who quit, not me)
What is the exact syntax of those instructions? I have tried to apply the 
manual, but without success on the second one.

TIA,
mweb

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




Re: [PHP] How do I pass variables from a PHP script to an HTML document?

2001-12-05 Thread Kurt Lieber

On Wednesday 05 December 2001 10:00 am, you wrote:

> Alternatively, is there another way to pass variables
> from a PHP script to a HTML form where I won't run into this limit?

I'm not seeing why you have to redirect the user just to get a custom 
response.

If you can instead use an include(); to customize your response, then you 
don't have to worry about redirecting the user to a different page.

In other words, instead of doing this:

form --> PHP Script --> confirmation page

Just do:

form --> PHP Script

And have the PHP script format and output the confirmation page.

--kurt

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




Re: [PHP] How do I pass variables from a PHP script to an HTMLdocument?

2001-12-05 Thread Jim


Why don't you try sessions? They make this sort of thing easy by 
letting you store all the data in $form and making it available on 
subsequent requests to this or other scripts.

http://php.net/sessions

Jim

>Hi,
>
>I currently have a form that calls a PHP script when submit is 
>pressed.  Within the PHP script, I wish to call a custom 
>confirmation screen.  I do so by issuing the following command:
>
>Header("Location: " . $form["redirect"]);
>
>Now, I wanted my form variables passed from the PHP script to my 
>HTML document so I wrote a function within the form that adds the 
>variable names and values to the URL by urlencoing them like such:
>
>$output = "?";
>$output .= urlencode($key) . "=" . urlencode(stripslashes($val)) . "&";
>
>returning the above in a variable $vars, I call my redirect as such:
>
>
>Header("Location: " . $form["redirect"] . $vars);
>
>If I am not mistaken, this is synonymous with an HTTP GET?
>
>Here is my problem; the above fails with a large form, i.e., a form 
>containing many fields.  A bit of investigation has determined that 
>there is a 1Kb limit on the total size of a request (URL+params) and 
>I have one form that must be exceeding the limit.
>
>Question: Is there a way to emulate my above scheme via an HTTP POST 
>as POST has no limit?  Alternatively, is there another way to pass 
>variables from a PHP script to a HTML form where I won't run into 
>this limit?
>
>Thanks,
>Don


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] How do I pass variables from a PHP script to an HTML document?

2001-12-05 Thread Don

Hi,

I currently have a form that calls a PHP script when submit is pressed.  Within the 
PHP script, I wish to call a custom confirmation screen.  I do so by issuing the 
following command:

Header("Location: " . $form["redirect"]);

Now, I wanted my form variables passed from the PHP script to my HTML document so I 
wrote a function within the form that adds the variable names and values to the URL by 
urlencoing them like such:

$output = "?";
$output .= urlencode($key) . "=" . urlencode(stripslashes($val)) . "&";

returning the above in a variable $vars, I call my redirect as such:


Header("Location: " . $form["redirect"] . $vars);

If I am not mistaken, this is synonymous with an HTTP GET?

Here is my problem; the above fails with a large form, i.e., a form containing many 
fields.  A bit of investigation has determined that there is a 1Kb limit on the total 
size of a request (URL+params) and I have one form that must be exceeding the limit.

Question: Is there a way to emulate my above scheme via an HTTP POST as POST has no 
limit?  Alternatively, is there another way to pass variables from a PHP script to a 
HTML form where I won't run into this limit?

Thanks,
Don



[PHP] Re: How can I uncompress zlib data in the browser?

2001-12-05 Thread Brian Duke

Thanks! It seems to work when I put this at the very top of my php
file:

ob_start("ob_gzhandler");

When I do a tcpdump on port 80, I see a small amount of garbage with
that statement and huge amount of text without it. The text displays
correctly in my browser either way, so it looks like it works.

- Brian

>Yes.
>
>Read the manual about "output buffering".
>Also read up on Apache's site about mod_gzip.
>http://apache.org
>Now, the 64 dollar question:
>
>Will the browser *CORRECTLY* identify and decompress the gzipped data?

- Brian

(Be sure to remove the # symbol before replying to my email address)

-- 
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 newbie alert

2001-12-05 Thread Jonathan Wheat


I use PHP Coder (http://www.phpide.de ) which has been changed to Maguma
PHP4EE Studio.

http://www.maguma.com/english/welcome.html  There's a Light and a Pro
version.  The Light version is free

-Jon

 -Original Message-
From:   shaun murphy [mailto:[EMAIL PROTECTED]] 
Sent:   Tuesday, December 04, 2001 5:25 AM
To: [EMAIL PROTECTED]
Subject:[PHP] PHP newbie alert

Hello!

Being one not to refuse a challenge, I have been asked to administer and
update a PHP based website. I was wondering what a good editor is for such a
task. I have been having a look at Dreamweaver as I use that quite a lot but
are there any extensions I should be using?



-- 
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] possible to override session.auto_start in php.ini

2001-12-05 Thread Kurt Lieber

That worked!  Thanks!

For those who may be interested, I added the following lines to my .htaccess 
file:

# change some php.ini settings

php_flag session.auto_start off


Also, this obviously only works with Apache with PHP running as a module.  
Not sure if there's an equivalent option for IIS.  (if you remove the 
IfModule lines from the above example and just include the php_flag line, it 
should work for php compiled as a CGI, but I haven't tested that.)

--kurt

On Wednesday 05 December 2001 09:07 am, Andrey Hristov wrote:
> I think that I found the solution:
>
> http://www.zend.com/manual/configuration.php
>

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




Re: [PHP] Qukc days to time() conversion?

2001-12-05 Thread Andrey Hristov

Read this :
http://www.mysql.com/doc/D/a/Date_calculations.html

Regards,
Andrey Hristov
- Original Message -
From: "Jeff Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 7:19 PM
Subject: [PHP] Qukc days to time() conversion?


I am prompting users for a number of days and then wanting to pull items from a 
database older than the number of days.  All dates
are stored as timestamps in the database so wondering how I can come up witht he 
required timestamp to compare with? (for for
example 30 days).

I have a difference conversion between the two timestamps but don't have it to that I 
can find the timestamp to search on...

Jeff



-- 
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] Qukc days to time() conversion?

2001-12-05 Thread Jeff Lewis

I am prompting users for a number of days and then wanting to pull items from a 
database older than the number of days.  All dates are stored as timestamps in the 
database so wondering how I can come up witht he required timestamp to compare with? 
(for for example 30 days).

I have a difference conversion between the two timestamps but don't have it to that I 
can find the timestamp to search on...

Jeff



[PHP] Re: mysql update query

2001-12-05 Thread Richard Creech - DreamRiver.com

Greg,
You must specify the tablename :)

Like this:
UPDATE myTableName ...
or
mysql> UPDATE persondata SET age=age+1;

For the official syntax visit mysql language reference at http://www.mysql.com at
http://www.mysql.com/doc/U/P/UPDATE.html

Kind Regards,

Richard Creech
[EMAIL PROTECTED]
250.744.3350 Pacific Time Canada
Dreamriver Software Powers the Net
http://www.dreamriver.com



You wrote:
From: "Greg Sidelinger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Tue, 4 Dec 2001 22:27:20 -0500
Message-ID: <000d01c17d3c$c0a393e0$1000a8c0@asylum>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="=_NextPart_000_000E_01C17D12.D7CD8BE0"
Subject: mysql update query

I'm having trouble getting an update query to work
 
Here is what I'm doing
 
$result = mysql_query("update table set value1='$value1',
value2='$value2' where id='$id'");
 
It is not updating the database.  All the $vars have values and I'm
using the correct columns names.  Could someone please point me in the
correct direction because I have been trying different things for a
while but can't seem to get it to work.
 
Greg


-- 
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] Dumped OK, Restore NOT

2001-12-05 Thread Nicolas Guilhot

Maybe you can try to launch the sql dump file from the SQL shell, not
directly from the command line. I think it will give you more feedback about
what is going on.
Go to the directory where you have your smarts.sql file.
Just type "mysql smarts"
And in the SQL shell type "\. smarts.sql"
If you are not in the directory of the file smarts.sql then you need to give
a full path to this file.

Hope it helps.

Nicolas

-Message d'origine-
De : René Fournier [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 5 décembre 2001 17:02
À : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : [PHP] Dumped OK, Restore NOT


Little problem with MySQL 3.23.46 under Windows ME. I'm trying to create
a database from an .sql file (the dumped remains of a functioning
database--also MySQL). The dumping was easy, but I'm having a problem
putting it back. I have a dumped file called smarts.sql that starts this
way:
-

# MySQL dump 8.14
#
# Host: localhostDatabase: smarts
#
# Server version3.23.38

#
# Table structure for table 'about'
#

CREATE TABLE about (
   id smallint(5) unsigned NOT NULL auto_increment,
   lang char(2) default NULL,
   recordname varchar(40) default NULL,
   key1 tinytext,
   key2 tinytext,
   status varchar(10) default NULL,
   title tinytext,
   par1 tinytext,
   PRIMARY KEY  (id)
) TYPE=MyISAM;

#
# Dumping data for table 'about'
#

INSERT INTO about VALUES (1,'en','about'
---(and so on)

This is what I'm doing to try to recreate the database locally:

1. I type "mysqladmin create smarts"

OK--I see a new directory called "smarts" (no files in it)

2. I type "mysql smarts < smarts.sql"

It pauses for a few seconds (seeming to input the file), then returns
the DOS prompt with no message, error or otherwise. Seems to have
worked, right? But when I check the 'smarts' database directory, there
are no files in it. (Incidentally mysqld is running.)

What am I doing wrong??

...Rene

---
René Fournier
[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] possible to override session.auto_start in php.ini

2001-12-05 Thread Andrey Hristov

I think that I found the solution:

http://www.zend.com/manual/configuration.php

Regards
- Original Message - 
From: "Andrey Hristov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 7:04 PM
Subject: Re: [PHP] possible to override session.auto_start in php.ini


> Try this
> 
> 
>http://www.google.com/search?hl=en&q=%22.htaccess%22+%22override%22+%22php%22+%22settings%22&spell=1
> 
> Regards,
> Anrey Hristov
> - Original Message - 
> From: "Kurt Lieber" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 05, 2001 7:06 PM
> Subject: [PHP] possible to override session.auto_start in php.ini
> 
> 
> > I've read the manual notes for ini_set, so I have a feeling the answer to my 
> > question is no, but I'd like to make sure.
> > 
> > I have no control over my ISP's php.ini file, but the fact that they have 
> > session.auto_start set to 1 in php.ini is causing me problems.
> > 
> > Is there any way to override this?  The manual says that session.auto_start 
> > isn't one of the settings that can be manipulated by ini_set, so I'm looking 
> > for alternative methods.  
> > 
> > Thansk.
> > 
> > --kurt
> > 
> > -- 
> > 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] possible to override session.auto_start in php.ini

2001-12-05 Thread Andrey Hristov

Try this

http://www.google.com/search?hl=en&q=%22.htaccess%22+%22override%22+%22php%22+%22settings%22&spell=1

Regards,
Anrey Hristov
- Original Message - 
From: "Kurt Lieber" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 7:06 PM
Subject: [PHP] possible to override session.auto_start in php.ini


> I've read the manual notes for ini_set, so I have a feeling the answer to my 
> question is no, but I'd like to make sure.
> 
> I have no control over my ISP's php.ini file, but the fact that they have 
> session.auto_start set to 1 in php.ini is causing me problems.
> 
> Is there any way to override this?  The manual says that session.auto_start 
> isn't one of the settings that can be manipulated by ini_set, so I'm looking 
> for alternative methods.  
> 
> Thansk.
> 
> --kurt
> 
> -- 
> 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] Dumped OK, Restore NOT

2001-12-05 Thread Jon Haworth

> Anyways, if any PHP people here are--god forbid--actually using MySQL as 
> their database, I would GREATLY appreciate any help in this matter. I've 
> thoroughly read the mysqldump chapter in the docs, and gone through 
> several tutorials, but have found nothing on actually restoring a 
> database from a dumped file--ON Windows.

Have you tried something like phpMyAdmin (or something similar, like
Mascon)?

Cheers
Jon



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

**

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




Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Jim


How about another ISP?


>I've read the manual notes for ini_set, so I have a feeling the answer to my
>question is no, but I'd like to make sure.
>
>I have no control over my ISP's php.ini file, but the fact that they have
>session.auto_start set to 1 in php.ini is causing me problems.
>
>Is there any way to override this?  The manual says that session.auto_start
>isn't one of the settings that can be manipulated by ini_set, so I'm looking
>for alternative methods. 
>
>Thansk.
>
>--kurt
>
>--
>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]


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] possible to override session.auto_start in php.ini

2001-12-05 Thread Kurt Lieber

I've read the manual notes for ini_set, so I have a feeling the answer to my 
question is no, but I'd like to make sure.

I have no control over my ISP's php.ini file, but the fact that they have 
session.auto_start set to 1 in php.ini is causing me problems.

Is there any way to override this?  The manual says that session.auto_start 
isn't one of the settings that can be manipulated by ini_set, so I'm looking 
for alternative methods.  

Thansk.

--kurt

-- 
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] Dumped OK, Restore NOT

2001-12-05 Thread René Fournier

That's why I cross-posted there as well. But I've found that posting to 
the mysql list doesn't help, more often than not--perhaps fewer 
subscribers.

Anyways, if any PHP people here are--god forbid--actually using MySQL as 
their database, I would GREATLY appreciate any help in this matter. I've 
thoroughly read the mysqldump chapter in the docs, and gone through 
several tutorials, but have found nothing on actually restoring a 
database from a dumped file--ON Windows.

On Wednesday, December 5, 2001, at 09:49  AM, Kurt Lieber wrote:

> On Wednesday 05 December 2001 08:02 am, you wrote:
>> Little problem with MySQL 3.23.46 under Windows ME. I
>
> This would be an excellent question for the MySQL mailing list.
>
> --
> 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]
>
>
>
---
René Fournier
[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] delete array item and resort

2001-12-05 Thread Jim

$array = array("a","b","c");

print_r($array);

unset($array[1]);

print_r($array);

$array = array_values($array);

print_r($array);

--

produces

Array ( [0] => a [1] => b [2] => c )
Array ( [0] => a [2] => c )
Array ( [0] => a [1] => c )

Jim

>what is the easiest way to delete an array element and then resort the array
>so the elements receive the correct numbering.
>
>I was thinking something like this:
>
>$itemArray = array("red","blue","yellow");
>delete("$itemArray[1]");
>
>so key 0 is still "red" but key 2 is still yellow but is remembered to
>become key 1.
>
>Hopefully that makes sense, get rid of one item in the middle and the rest
>of the array moves up one position.
>Thanks,
>» Michael Krisher
>   [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]


--
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] Dumped OK, Restore NOT

2001-12-05 Thread Kurt Lieber

On Wednesday 05 December 2001 08:02 am, you wrote:
> Little problem with MySQL 3.23.46 under Windows ME. I

This would be an excellent question for the MySQL mailing list.

-- 
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] delete array item and resort

2001-12-05 Thread Mike Krisher

what is the easiest way to delete an array element and then resort the array
so the elements receive the correct numbering.

I was thinking something like this:

$itemArray = array("red","blue","yellow");
delete("$itemArray[1]");

so key 0 is still "red" but key 2 is still yellow but is remembered to
become key 1.

Hopefully that makes sense, get rid of one item in the middle and the rest
of the array moves up one position.
Thanks,
» Michael Krisher
  [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 bug

2001-12-05 Thread Ernesto


Hi,

I was having some problems with my PHP files (the first 3 HTML lines 
missing and Netscape trying to save the page to disk instead of showing it).

So, I telnet'd my web server and manually issued a GET as follows:

GET /anglers/index.php HTTP/1.1

And this was the response:

HTTP/1.0 200 OK
Date: Tue, 04 Dec 2001 21:09:57 GMT
Server: WebSitePro/2.4.9
Accept-ranges: bytes






Anglers Aventuras \ Inicio
etc. etc...

Note the CRLFs missing after the headers :-/
So the browser -naturally- understand those HTML remarks as being part 
of the header, and the HTML starting after those two CRLF I have in my 
HTML file.

I know I can "fix" this just typing two CRLFs at the very beggining of 
my PHP file, but I'm not supposed to do that. And even if I do that, the 
header is still incomplete (i.e. mime type missing).

This happens with 2 different servers, both running WebSite Pro 2.4 and 
PHP 4.0.6 (one Windows 2000 Advanced Server and the other Windows XP Pro).

Is this a PHP bug, a WebSite bug or my code?
I don't think I screwed something up because I'm not playing with the 
headers here.

Any ideas?

Regards,
Ernesto


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