RE: [PHP] Change 'key' names of an associative array.

2001-05-15 Thread Altunergil, Oktay

Yes. But I want to change the name of the key, not the value. Plus I want to
be able to do this without creating an extra key/value pair for each
conversion I do.

oktay

-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 4:22 PM
To: Altunergil, Oktay; [EMAIL PROTECTED]
Subject: RE: [PHP] Change 'key' names of an associative array.


have you tried http://www.php.net/manual/en/function.strtoupper.php

-jack

-Original Message-
From: Altunergil, Oktay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 4:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Change 'key' names of an associative array.



I have been trying to convert a MySQL application to Oracle. Oracle needs
the field names to be upper case.
For this reason even if I can fetch the result row, I can't access it by
$row[name] because I have to do
$row[NAME].


Is there a way to change the the key name to upper case, without making a
copy.? (I mean without creating another array key with the same name in
upper case)

Thanks.

Oktay Altunergil

-- 
PHP General Mailing List (http://www.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 Editor

2001-05-12 Thread Altunergil, Oktay

There's no extended replace in textpad.. More specifically you can't do
extended replace if the files are not all Open.

On the other hand there's no , parantheses, bracket maching in HomeSite.

I still use HomeSite though :)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 2:40 PM
To: PHP
Subject: Re: [PHP] PHP Editor


I use textpad. http://www.textpad.com. You can arrange your own coloring
config
and there are some very cool elements about it there are even modules to
load into it for added functionality

once you use it you will never go back..mmuuwwahahahaha


- Original Message -
From: Laurie Landry [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Saturday, May 12, 2001 9:24 AM
Subject: RE: [PHP] PHP Editor


I like using Homesite - color coordination of code as well. I use
Dreamweaver for the design elements as well, but sometimes it doesn't work
very well for php coding.

Laurie M. Landry
lmlweb Design  Development

www.lmlweb.com
[EMAIL PROTECTED]

T: (604) 872-6915
F: (425) 732-1547

 -Original Message-
 From: Dave Mateer [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 11, 2001 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP Editor


 I'm using ColdFusion Studio which makes life very easy - good colour
 co-ordination of the code, and only takes 1 button the do an FTP upload up
 to the web-server (I'm using a Windows box to do editing, then a Linux box
 as webserver).

 We've been using Dreamweaver as well to bring the design elements
 together...works well, when you're doing the html stuff.  For
 pure coding, I
 recommend ColdFusion Studio.  ahhh it costs money though.

 Textpad (from textpad.com) is good...can d/load an evaluation copy (fully
 functional, and doesn't time out)..

 Hope this help

 David.



 Daniel [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi,
 
  Just wondering whether you guys use any type of editor when
 programming in
  PHP? if so what have you found to be useful?
 
 
  Thanks
 
 
  Daniel
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 





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



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

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




RE: [PHP] How good is the Interbase/Firebird API?

2001-05-11 Thread Altunergil, Oktay

Following the links you provided I came accross this.

(Installing, Configuring and Using Apache, PHP3 and Interbase on Linux.)
http://www.synectics.co.za/php3/tutorial/tutorial.html  


oktay

-Original Message-
From: Geoff Caplan [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 11:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How good is the Interbase/Firebird API?


Hi

I am hoping that someone can save me some testing time.

I am considering using Interbase/Firebird, but notice that there is no
facility to set the maximim number of connections in php.ini - the API
seems to be a bit basic.

Last time I tested an RDBMS without a maximum setting, I found that there
were problems with connection handling under heavy load with both persistent
and non-persistent connections (this was with FrontBase ). It seemed to run
out of connections and quickly died a nasty death ...

Can anyone share their practical experience with how the PHP Interbase API
functions under load?

Also, I see from the archive that someone was having problems getting the
API to function under Windows. Does anyone have this working ok?

Geoff Caplan






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

-- 
PHP General Mailing List (http://www.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] Book PHP4 Professional WROX Mail over SMTP

2001-05-11 Thread Altunergil, Oktay

I remember there was somebody who had a mail class and when I asked him to
he had added a similar functionality to his class that made it possible to
use another smtp domain to send email.

I'm very sorry that the above is the only info I have now. It was months
ago. Just wanted to let you know that it's out there or at least doable.

Oktay Altunergil


-Original Message-
From: Andreas Pucko [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 1:00 PM
To: Php (E-mail)
Subject: [PHP] Book PHP4 Professional WROX  Mail over SMTP


Hi there,

I bought this book tryed it for 2 days now to bring the Mail over SMTP
example to work.

It doesn' t work at all.

Does anybody have a class for sending E-Mails over SMTP? This really drives
me mad. It should not
be so complicated to send E-Mails over the net.

Can anybody please help me out?

Thanx in advance.

Cheers

Andy


-- 
PHP General Mailing List (http://www.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] Documentation

2001-05-11 Thread Altunergil, Oktay

I hate the fact that php.net, phpbuilder.com are down very frequently and
mysql.com is slow usually.. 

It's too bad for our image.

Oktay Altunergil

-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 1:26 PM
To: Don Pro
Cc: php list
Subject: Re: [PHP] Documentation




  http://uk.php.net/mirrors.php


regards,
philip

On Fri, 11 May 2001, Don Pro wrote:

 Does anyone know alternative sites for PHP documentation?
 
 www.php.net seems to be down.
 
 Thankls,
 Don
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.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] phpjobs.com

2001-05-11 Thread Altunergil, Oktay

I'm looking for a site like that too.. Is there a php-employment kind
mailing list?

Oktay Altunergil

-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 2:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] phpjobs.com


anyone know what the deal with it is? i'm trying to find some work for
the summer (been REAL hard) and noticed that the site is there,
although not really...

-jack

-- 
PHP General Mailing List (http://www.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] Free Database Design Program

2001-05-11 Thread Altunergil, Oktay

There's also the free version of Mascon ( www.scibit.com ) and a free
application MySQLFront (www.mysqlfront.de) .

The former has some report generation functionality like Crystal Reports.

Oktay Altunergil

-Original Message-
From: scott [gts] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 2:56 PM
To: Php-General
Subject: RE: [PHP] Free Database Design Program


phpMyAdmin
and 
phpMyEdit

are two free PHP MySQL thingies.

check out http://www.phpwizard.net/

 -Original Message-
 From: Anuradha Ratnaweera [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 10, 2001 11:52 PM
 To: Augusto Cesar Castoldi
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Free Database Design Program
 
 
 
 On Sat, 5 May 2001, Augusto Cesar Castoldi wrote:
 
  Anyone know a Free database Design program? I'm needing to organize my
  MySQL databases and design new databases.
 
 In what sence do you mean Free? Just curious;
 
 Anuradha
 
 
 --
 a href=http://www.bee.lk/people/anuradha/;home page/a
 
 
 -- 
 PHP General Mailing List (http://www.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] StripSlashes

2001-05-10 Thread Altunergil, Oktay

You can make the variables into a class and have the object call the same
function with all its variables.
Or turn magic quotes GPC on (and remove the addslashes() calls)

Oktay Altunergil

-Original Message-
From: Sterling [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 4:12 PM
To: PHP List
Subject: [PHP] StripSlashes


H-

I'd like to be able to strip the slashes from all the imported
HTTP_POST_VARS. 

I found the $string = stripslashes($string); command. 

But this becomes very tedious if I have 20 vars and I need to code each
one with its own stripslashes line. 
Which I am currently doing in a function. 

So I have two situations. 
One: 
function scrub_slashes(){
$email = stripslashes($email);
$first_name = stripslashes(first_name);
$last_name = stripslashes($last_name);
$street1 = stripslashes($street1);
$street2 = stripslashes($street2);
$city = stripslashes($city);
$zipcode = stripslashes($zipcode);
} 

I'm not sure if I'm doing this function correctly. From what I
understand I think I need to pass each variable to the function; which
would negate the speedyness of my typing which is what I'm going for
anyway. 
function scrub_slashes($email, $first_name, etc){ CODE }

and it'd be called like so $scrub_error = scrub_slashes($email,
$first_name, etc) 
I might as well copy paste the $email stripslashes($email); $first_name
= stripslashes($first_name);
in any location that it's needed. It might seem lazy but I really don't
see why I need to dupe the code when I could put it into a function.

Second situation:
Is there a better way to pass all the variables into the function
without typing out each one that's gonna be used in the function? 
Am I even using the function correctly? 
Am I confusing anyone? 

Thanks for any info or advice any can provide. 

Thoughts, Comments, Anecdotes? 
-Sterling

-- 
PHP General Mailing List (http://www.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] Sos

2001-05-07 Thread Altunergil, Oktay

Remove both rpms + apache

Do a source install. Using redhat is no excuse for installing
PHP+MySQL+Apache from rpms. You will be glad you did it when you're done.
It's much easier to usually.

oktay

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 10:30 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Sos


Hi,

   My name is Younes Khabchaouy , and am working as a junior system
administrator .
   i hade a request to install the php with apache .I did install both
with the RPM because we use the Red Hat platform
   And i did the changes in apache ( httpd.con) Load Modules and Add
modules  and i change the permission in the file to test the php
   and i steel get the same error wich is ( premature end of script) if you
can help me i apriciate




Many 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Altunergil, Oktay

$foo is a string not a PHP function which makes 'empty' a string and not a
function/command.

Am I missing something?

oktay

-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 1:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] variable functions: empty/isset/unset invalid?



This does not work as expected (as I expect it at least) and gives the
following error. This seems to result with use of empty(), isset(), and
unset(), perhaps others :

  Call to undefined function: empty()

When using :

  $foo = 'empty';
  if ($foo($var)) print 'worked.';

Of course the following works as expected.

  if (empty($var)) print 'worked.';

And with other functions :

  $foo = 'somefunction';
  if ($foo($var)) print 'worked.';

Why won't variable functions work with empty/isset/unset this way?  And
why the 'undefined function' fatal error?


regards,
philip



-- 
PHP General Mailing List (http://www.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] Multiple Result sets

2001-05-07 Thread Altunergil, Oktay

If it's anything like MySQL it should return unique result handlers
(identifiers).. You can reference them using the result handler if there's
such an option.. 

oktay

-Original Message-
From: James Crowley [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 1:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Multiple Result sets


Hi,
I've written a recursive stored procedure in MS SQL, which returns a
number
of result sets (ie 3 different recordsets rather than the usual 1). How can
I access the other result sets in php?

Regards,

- James

Editor, VB Web
==
Web   - http://www.vbweb.co.uk
Email - [EMAIL PROTECTED]
ICQ#  - 60612011
==


-- 
PHP General Mailing List (http://www.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] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Altunergil, Oktay

Though I didn't know about 'variable functions' when answered, this is
exactly what I said.. Interesting :)

$foo is a string not a PHP function which makes 'empty' a string and not a
function/command.

Am I missing something?

oktay

-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 2:43 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] variable functions: empty/isset/unset invalid?



Solved.

empty, isset and unset are not functions, they are language contructs,
which results in the error.  This makes sense, a workaround is creating
functions like isEmpty (or something similar) and using them.  I'll be
submitting a future request soon ;)

Thanks everyone, especially OpenSrc in #php

regards,
Philip

snip

  ?php
  
// works
if (empty($var)) print '$var is emptybr';

// works
$foo = 'is_string';
$var = 'abcdef';   
if ($foo($var)) print '$var is a stringbr';

// works
$foo = 'strlen';
$var = 'abcdef';
if ($foo($var)  5) print '$var is over 5 charsbr';

// doesn't work : Fatal Error : Call to undefined function: empty()
// same with isset() and unset()
$foo = 'empty';
if ($foo($var)) print '$var is empty';

  ?
  
  In otherwords, only these few functions aren't working as variable
  functions but result in a Fatal Error instead.  Why?



-- 
PHP General Mailing List (http://www.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] PostgreSQL vs. Interbase

2001-05-07 Thread Altunergil, Oktay

The link that goes to interbase's web site in freshmeat.com redirects to
http://www.borland.com/interbase/
which does not list the product as free or open source? 

Is there another version?

oktay

-Original Message-
From: Luke Welling [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 3:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PostgreSQL vs. Interbase


Arnold Gamboa wrote:
 I'm currently in serious research on what database to use for a B2B site
 which is expected to hold millions of records. I have in so far considered
 two open source databases - Interbase and PostgreSQL. With this in mind,
I'm
 sending this email to both the PostgreSQL and Interbase mailing lists and
 also on PHP's. I would appreciate what ever information you can provide.
 Thanks :)

 My inquiry:

 Please discuss as to your point of view the advantage of PostgreSQL over
 Interbase and/or vise versa. I'm considering three (3) important points

 1.  Speed
 2.  Data Reliability
 3.  Portability

I first saw your message on the PostgreSQL list, but figured what I was
going to answer belonged here more.

One other thing you might like to consider is documentation.  Interbase
probably has better documentation than PostgreSQL from their respective
primary sources, but you will find a *lot* more documentation on using PHP
with PostgreSQL than with Interbase.

Where PHP examples and documentation is database specific, it is mostly
MySQL, some PostgreSQL, some Oracle and very little of any other.

Cheers,

Luke Welling




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

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




RE: [PHP] Variable Variable

2001-05-07 Thread Altunergil, Oktay

http://www.php.net/manual/en/language.variables.variable.php

-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 4:53 PM
To: PHP User Group
Subject: [PHP] Variable Variable


Hello,

I can't find Variable Variable in the php manual.  If someone has a link to
the section in the PHP manual about this please send me a link.

Thank you,
Brandon Orther


-- 
PHP General Mailing List (http://www.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 using Forms

2001-05-04 Thread Altunergil, Oktay

The below does the newline and takes care of html tags which might otherwise
get parsed by the web browser.

# This function is to fix the characters. It replaces all htmlentities with
their amp kind representation
# and converts newlines to html breaks (BR)
function fix($string)
{
return(nl2br(htmlentities($string)));
}


-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 10:16 AM
To: 'Mike Mike'; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP using Forms


Try this:

$Home = nl2br($Home); // nl2br converts newlines to brs

See http://www.php.net/nl2br for more info.

(Incidentally, I answered exactly the same question yesterday, in exactly
the same way. *Please* check the list archives/last few days postings/manual
before posting this sort of thing :-)

HTH
Jon


-Original Message-
From: Mike Mike [mailto:[EMAIL PROTECTED]]
Sent: 04 May 2001 15:12
To: [EMAIL PROTECTED]
Subject: [PHP] PHP using Forms


Hello,
I have a form field  TEXTAREA name=Home ROWS=10
COLS=40? echo $Home ?/TEXTAREA 
with this data in it:

My Home
11 North 5th St
St. Paul MN
Phone: (555) 555-
Fax: (555) 555-
E-Mail: [EMAIL PROTECTED]

When submited it goes into a mysql database.  The
problem i'm running into is that the output looks like
this after the call from the mysql database to html:

My Home 11 North 5th St St. Paul MN Phone: (555)
555- Fax: (555) 555- E-Mail:
[EMAIL PROTECTED]

How do I get it to print out with line breaks like how
I have typed it into the form?
Thank you
  --Mike



__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.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]



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

**

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

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




RE: [PHP] Can not send new Header

2001-05-04 Thread Altunergil, Oktay

You have to send the HEADER before anything is sent to the browser. If you
have sent html tags like HTML,BODY etc or anything else the browser will
parse, subsequent calls to HEADER stuff will not work. (that is unless you
do output buffering of some sort)

oktay

-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can not send new Header


Hello,

I am a newbi.

Currently I try to relocate the viewed page after entering successful a

form.

I tryed it like that:

HEADER(Location:http://$HTTP_HOST/admin/admin.php?content=upload;);

But I did get an errormessage which said that I already have sent a header

( which was a body tag).

Can anybody please help me in that case??

Thanx

Andy




-- 
PHP General Mailing List (http://www.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] Homesite - Windows and CVS

2001-05-03 Thread Altunergil, Oktay

As far as I know there's no such application. We are using WinCVS for the
same purpose. I would be interested if you come accross some application
that would this though.

oktay

-Original Message-
From: Michael Stearne [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 10:18 AM
To: php-general
Subject: [PHP] Homesite - Windows and CVS


We are working on a project that is hosted on Linux, but the development 
is being done on Windows using Homesite.  I have looked around but 
haven't found any real solutions with an IDE that can work directly with 
a remote CVS project like MacOS's Project Builder can for example. 

Are there any editors/IDEs or plugins for Homesite that will allow you 
to use CVS (or some other Unix/Linux based versioning system) directly 
through the editor without using WinCVS or some other manual system to 
check files in and out?  I have looked at Zeus SCC-CVS that supposedly 
will get and SCC compliant app (Homesite) to work with CVS, but I get an 
error early on in the process and haven't gotten it to work.

Any ideas?
Michael



-- 
PHP General Mailing List (http://www.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] Session Problems....HELP!!!!

2001-05-03 Thread Altunergil, Oktay

If you don't use output buffering, the session stuff has to be the first
thing in you script. In other words, you should not send anything to the
browser before the session functions.

In your case you are sending html tags to the browser before the session
functions.
Rewrite it as the following:
?php
 session_start();
 session_register(test);
  ?
html
   head
   ...
   /head
   body
  
   /body
   /html


-Original Message-
From: Bruno Freire [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 4:42 PM


To: '[EMAIL PROTECTED]'
Subject: [PHP] Session ProblemsHELP


Hi! my name is bruno, from Brazil and i'm having some problems with
sessions.
Look my code:
html
   head
   ...
   /head
   body
  ?php
 session_start();
 session_register(test);
  ?
   /body
   /html

The message returned in my browser is:

Warning: Cannot send session cookie - headers already sent by (output
started at /home/httpd/html/intranet/teste.php:11) in
/home/httpd/html/intranet/teste.php on line 12

Warning: Cannot send session cache limiter - headers already sent (output
started at /home/httpd/html/intranet/teste.php:11) in
/home/httpd/html/intranet/teste.php on line 12
!--
A { text-decoration: none; }
A:hover { text-decoration: underline; }
H1 { font-family: arial,helvetica,sans-serif; font-size: 18pt; font-weight:
bold;}
H2 { font-family: arial,helvetica,sans-serif; font-size: 14pt; font-weight:
bold;}
BODY,TD { font-family: arial,helvetica,sans-serif; font-size: 10pt; }
TH { font-family: arial,helvetica,sans-serif; font-size: 11pt; font-weight:
bold; }
//--
What's wrong???
Maybe the PHP's configuration file... Or some command is needed first

Please, if somebody  know the solution...help me.
Thanks.

Bruno

-- 
PHP General Mailing List (http://www.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] HELP !!!!

2001-05-01 Thread Altunergil, Oktay

Try this if you are using Windows.

http://www.anse.de/mysqlfront/ 

This is a Windows GUI for MySQL. It is very well done but it still has some
issues. I don't think you will have a problem if all you'll be doing is
creating tables , databases etc.

You can also try installing phpMyAdmin on the server side and working on a
web browser. phpMyAdmin is also a very nice tool.

There are a lot more interfaces to mysql, but I haven't had a pleasent
experience with the others.

Oktay

-Original Message-
From: Hassan Arteaga [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 1:59 PM
To: Php (E-mail)
Subject: [PHP] HELP 


Hi all !!!

I need URL to download some visual tool to create Databases, tables,
etc..for mySQL

Thanks 

--
M. Sc. Hassan Arteaga Rodríguez
Microsoft Certified System Engineer
Network Admin, WEB Programmer
FUNDYCS, Ltd
[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] Going crazy again ...

2001-05-01 Thread Altunergil, Oktay

I was actually interested in the answer to this. I believe one can write in
English if one can read English. (PS: It's not my first language either)

oktay

-Original Message-
From: Jimmy Lantz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 3:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Going crazy again ...



Hej, jag hade nog inte använt åäö i case men det är bara en vana, kanske du
kan använda en dold
variabel via html-formuläret istället och använda den i case satsen?
Men det svarar ju inte på din fråga men lycka till.
/ iImmy
Martin Skjöldebrand wrote:

 Going grey haired again. In this code only the first case is working
 (adding stuff to tables). The second and third are producing - Warning:
 Supplied argument is not a valid MySQL-Link resource in
 /chroot/htdocs/diarium/settings.php on line 31 (which is $query_res
/ms)
 error:

 I've even copied and pasted the also clause which works from sendaction to
 recaction but I get the same result. Anyone sees what going on? I don't.
 And my deadline is tomorrow (or thursday).

 M.

 switch ($sendaction) {
 case Lägg till:

 $query=INSERT INTO employees (login, name);
 $query .= VALUES('$txtSend', '');
 $query_res =mysql_query($query, $mysql_link) or
die('error: ' .
 mysql_error());
 if ($also==Rec){
 $query=INSERT INTO contacts (id, name);
 $query .= VALUES('$txtSend', '');
 $query_res =mysql_query($query,
$mysql_link) or die('error: ' .
 mysql_error());
 }
 break;
 }

 switch ($recaction) {
 case Lägg till:
 $query=INSERT INTO contacts (id, name);
 $query .= VALUES('$txtRec', '');
 $query_res =mysql_query($query, $mysql_link) or
die('error: ' .
 mysql_error());
 break;
 }

 switch ($archaction) {
 case Lägg till:
 $query=INSERT INTO archive (s_name, name)
VALUES('$txtArch', '');
 $query_res =mysql_query($query, $mysql_link) or
die('error: ' .
 mysql_error());


 break;
 }

 --
 PHP General Mailing List (http://www.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] MySQL for translation ?

2001-04-13 Thread Altunergil, Oktay

Why don't you define all of those in seperate text files and include the
correct text file according to the users' preference.

You can take a look at how Mantis (it's a ligthning fast and small Bug
Tracking tool) does this at http://mantisbt.sourceforge.net


Oktay

-Original Message-
From: Marian Vasile [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 8:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL for translation ?


I have a web site for online ads.

I want to translate my web site in at least 3 languages.

The main problem is that I don't know which solution I should use...
I have one solution but I think it will slow down my web site...
The solution is:

put all the words (or phrases) in a database and just do some selects in the
database. the table it will look like this (example):
Id WordEn  Ro
1  Iagree  I agree.Sunt de acord.

I will select using "Iagree" identifier and I will get the translation in
both languages.

The question is...
It will slow down a lot this procedure in case of a web site full with
pages, search engine, forum, boards etc., and minimum 10.000 visitors a day
?

Thanx a lot

Marian


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

-- 
PHP General Mailing List (http://www.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] Geeklog or phpSlash?

2001-04-12 Thread Altunergil, Oktay


Do you still need to create a seperate database for phpnuke or did they add
functionality to customize the table names.?

oktay
-Original Message-
From: Charlie Llewellin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 2:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Geeklog or phpSlash?


Yes, this looks very good, thanks for the recommendation
- Original Message - 

 phpnuke would be my recommendation
 
 www.phpnuke.org
 



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

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




RE: [PHP] Can't redeclare already declared function

2001-04-11 Thread Altunergil, Oktay

If you're using php4 you can say include_once("include_file_name.php");

(there's also require_once() )

oktay

-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:18 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Can't redeclare already declared function


The function in question is defined in an included file, right? This
function definition file is most likely being included twice. The best bet
is that it is being included from another included file (at least, that's
how I usually manage to produce this error :) ). Check all your included
files for a line that re-includes the function definition file a second
time.

Kirk

 -Original Message-
 From: kenny.hibs [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 3:10 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Can't redeclare already declared function
 
 
 Anyone help with this
 
 Fatal error: Can't redeclare already declared function in 
 header.php3 on
 line 233
 The troubl is that there is no line 233 so it must be looking 
 at another
 page?
 

-- 
PHP General Mailing List (http://www.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] problem loading php4-document

2001-04-06 Thread Altunergil, Oktay


in .conf/httpd.conf
Do the following;

# For example, the PHP 3.x module (not part of the Apache distribution - see
# http://www.php.net) will typically use:
#
AddType application/x-httpd-php3 .php3 .php   #or whatever extensions.
AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
# 
AddType application/x-httpd-php .php4 .phtml  #or whatever extension as
long as it's different than the
#settings for the php3 files
AddType application/x-httpd-php-source .phps


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 7:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] problem loading php4-document




Hi All,

We  have successfully installed php3 and php4 under AIX4.3.3 with
Apache1.3.19.
Now we can see the php3-documents in the browser(NS4.7).
In opposition to that the php4-documents are only downloadable.
Is there any setting that is not described in the manual we have to do
therewith the browser can show us both types of php?

Thanks for help,


Markus Mattes


IT-Services and Solutions GmbHbusiness
unit: e-security
IBM Global Services Company   Phone : +49-221-304-2738 or
-2561, FAX: -2518
Gustav-Heinemann-Ufer 120-122, D-50968 Kln 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] reusing MySQL results

2001-04-04 Thread Altunergil, Oktay


use mysql_data_seek() just like you'd use reset() on an array.

from php.net :

"mysql_data_seek() moves the internal row pointer of the MySQL result
associated with the specified result identifier to point to the specified
row number. The next call to mysql_fetch_row() would return that row. "


-Original Message-
From: George Wright [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 10:35 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] reusing MySQL results


Hi All,

I have a page with two forms.  Both forms have drop-down option 
lists that are populated by a the same query.  The query and 
db connection are all done before either form is introduced 
(this is the select statement, mysql_pconnect(), mysql_select_db(), 
and mysql_query()).

I am using a while loop to build the options.  The loop "engine" 
is mysql_fetch_object(), which writes out the values inside of 
option tags.

Everything works fine the first time around, but when I call 
the query result for the second time, it's as if there are no 
rows to return so nothing is written out.  No errors are being 
thrown.

I know the resultant query object still exists, because I can 
access some of its properties (e.g.: mysql_num_rows has 
a value when it is called at this same place in the code as the 
second loop set).

One caveat: This code DOES work if, just before the second call 
to build the second set of options, I resend the query (again using 
mysql_query()).

I would think that looping on the object the first time should only 
read from it and not otherwise change it.  Why am I unable to reuse 
this object in a second mysql_fetch_object() without resending 
the query?

I have tried distinguishing the variable names that I set the results to for

each loop and this doesn't seem to make a difference.

Running PHP 4.0.4, MySQL 3.23.22-beta on Win2K.

Thanks, 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] Move data from one MySql table to another?

2001-03-23 Thread Altunergil, Oktay

from the docs;

The following will not yet work in MySQL: 

SELECT * FROM table1 WHERE id IN (SELECT id FROM table2);
SELECT * FROM table1 WHERE id NOT IN (SELECT id FROM table2);
SELECT * FROM table1 WHERE NOT EXISTS (SELECT id FROM table2 where
table1.id=table2.id);

.
.
.

MySQL only supports INSERT ... SELECT ... and REPLACE ... SELECT ...
Independent sub-selects will probably be available in Version 4.0. You can
now use the function IN() in other contexts, however. 




-Original Message-
From: Boget, Chris [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 1:41 PM
To: 'James Atkinson'; YoBro
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Move data from one MySql table to another?


 To populate new_table from old_table you can give it this SQL:
 INSERT INTO new_table (name, address) VALUES SELECT name, address FROM
 old_table;

Umm, I didn't think you could do subselects in MySQL?
Or am I missing something?

Chris

-- 
PHP General Mailing List (http://www.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] Array confusion.

2001-03-22 Thread Altunergil, Oktay

You can do this instead..
$month[] = array("Jan","Feb" .."Dec");

$m = 3;
$real_m = $m-1
echo "Month= $month[$real_m]; //Mar


You can also have PHP assign the first element of the array to index 1
instead of 0.. I think you accomplish that by doing something like $month[]
= array(1=Jan,Feb,Mar...);
If you need to get the month as $m='03';  you can strip the first zero using
any one of the suitable string functions.


PS: (i noticed that this doesn't really answer your specific question. But
this will work properly for your needs)

oktay

-Original Message-
From: Sterling [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Array confusion.


H-

I'm kinda new to the PHP scene so if the below plea for help is
incredibly simple ... well.. What can I say? I'm stuck. 

I've been on the PHP website for the last hour reading the documentation
on arrays and all the functions associated with it but have yet to find
a straight forward explaination on how to accomplish this code. 
Here's what I have: (PHP4)
 $m = "03";
 $list = array(01="Jan", 02="Feb", 03="Mar", 04="Apr", 05="May",
06="Jun", 07="Jul", 08="Aug", 09="Sep\", 10="Oct", 11="Nov",
12="Dec");
 $month = $list[$m];
 print "$month\n";

What I want to print is the month in Text format, which in this instance
should be Mar . 
I even tried: $month = array_keys($list, $m);

Now I know that $list[x]; references the location of an item so I know
why the previous code doesn't work in that respect, since nowhere is 01
a location but an association within the array. Right?

I've seen examples on printing every element of an array. Printing every
element of a 2d array, poping elements from the beginning and end of an
array but not an example of getting a single element from an array. 

I'm sure I'm doing something backwards and might even be confused on how
the array works but don't know what. 
If any one has any better solutions to this code please feel free to
post. 

Thanks for any assistance anyone can provide. 
-Sterling

-- 
PHP General Mailing List (http://www.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] How to convert '2001032018' - '2001 03 20 18' ? (Fomating Date)

2001-03-20 Thread Altunergil, Oktay


function sql_to_unix_time($timeString)
{
return mktime(substr($timeString, 8,2), substr($timeString,
10,2), substr($timeString, 12,2),
substr($timeString, 4,2), substr($timeString, 6,2),
substr($timeString, 0,4));
}


you can use the above function to convert your mysql time stamp to a unix
timestamp (how long ago was the epoch? ) and use php time related functions
(such as time() )to manipulate it however you want.
PS: The function is not mine.



-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How to convert '2001032018' - '2001 03 20 18' ?
(Fomating Date)


Hi,

I'm trying to convert the timestamp '2001032018' into '2001 03 20 18' or an
Array which I can easily format. Do you remember any date or string function
I can use?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

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


-- 
PHP General Mailing List (http://www.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] mail() question

2001-03-20 Thread Altunergil, Oktay

it's not /n .. it's \n

-Original Message-
From: Wade DeWerff [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 2:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mail() question


is there a way to do this in a mail() ? I need to add the $Phone and $Email
variables too the $message, but I need to format it so that it is on a new
line in the emailI tried using br and /n, but it formats as text not
code function. 


$message = $Info ."br". $Phone ."br". $Email;



-- 
PHP General Mailing List (http://www.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] mail() question

2001-03-20 Thread Altunergil, Oktay

I don't think email messages care about html breaks "BR"..(unless it's
HTML email or something)

This is what I always use..

$message = "$Info \n$Phone \n$Email";



You can use the '\n' to also make your HTML sources more readable.

-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 2:37 PM
To: Wade DeWerff; [EMAIL PROTECTED]
Subject: Re: [PHP] mail() question


$message .= $Info;
$message .="br";
$message .=$Phone;
$message .="br";
$message .=$Email;


This should append everything, but I could be wrong, I'm no Guru :-)


Clayton Dukes
-
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net


- Original Message -
From: "Wade DeWerff" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 20, 2001 2:36 PM
Subject: [PHP] mail() question


is there a way to do this in a mail() ? I need to add the $Phone and $Email
variables too the $message, but I need to format it so that it is on a new
line in the emailI tried using br and /n, but it formats as text not
code function.


$message = $Info ."br". $Phone ."br". $Email;





-- 
PHP General Mailing List (http://www.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] Change POST for GET

2001-03-19 Thread Altunergil, Oktay

You can use urlencode() to preserve the spaces. You don't have to any manual
conversions from space to + or something else.

-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 9:35 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Change POST for GET


sessions do not allow pages to be cached, when sessions are being used th
no-cache header is set.

GET and POST are very differnt in some areas and very alike in others.
obviously the two biggest changes is that all the variables and their values
are in the url bar. I beleive most browsers have a 1024 limit for data in
the url bar, I could be wrong. the other thing is you'll find spaces suck in
url bars.

http://www.mediawaveonline.com/index.php?name=Chris Lee
?php

echo $name;

?

will echo

Chris

thats all. the space ends all. you'll have to convert all spaces to %20 or +

http://www.mediawaveonline.com/index.php?name=Chris%20Lee
http://www.mediawaveonline.com/index.php?name=Chris+Lee


-- 

 Chris Lee
 [EMAIL PROTECTED]


""Jorge Alvarez"" [EMAIL PROTECTED] wrote in message
98u7rj$4nf$[EMAIL PROTECTED]">news:98u7rj$4nf$[EMAIL PROTECTED]...
Hi there,

I was using POST method on all my forms but I had to change them to GET
because of "expired page" errors (I noticed this as soon as I began using
PHP4 sessions).

It seems that GET works well so far, but I wonder if there's something else
I should be aware of. Are both methods equivalent?

TIA,

Jorge Alvarez



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



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

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




RE: [PHP] Re: php editors

2001-03-19 Thread Altunergil, Oktay

Try this. This guy has two versions. One with a debugger. It also does
previews if you have PHP installed on your machine.
Only WINDOWS though.

http://soysal.com/PHPEd/download.php3



-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 4:27 PM
To: McShen; [EMAIL PROTECTED]
Subject: [PHP] Re: php editors


 I am looking for good php editors. Currently, i am using PHP coder. It
 highlights syntax and checks my syntax. It's also executes my PHP codes.
Are
 there any editors like that? I just want a editor that highlights my code
 and check my syntax.

Give the Zend IDE a trial run.

You'll be able to debug your code with an integrated debugger.

There's also a site somewhere that lists all the PHP Editors, but I don't
have the URL handy...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.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]