OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: php3 Digest 27 May 2000 17:34:05 -0000 Issue 1697
From: php3-digest-helplists.php.net
Date: Sat May 27 2000 - 12:34:05 CDT


php3 Digest 27 May 2000 17:34:05 -0000 Issue 1697

Topics (messages 91795 through 91805):

Re: PHP + ODBC + Progress
        91795 by: Erik Mathy

Re: PostgreSQL or MySQL
        91796 by: Rob Hardowa
        91799 by: Erol Oz

formatting email
        91797 by: Floyd Baker

Re: informix conexion problem
        91798 by: LRJ

Urgent please: Using special characters such as þ and ÿ
        91800 by: Sumitha
        91801 by: Erol Oz
        91802 by: Sumitha
        91803 by: Erol Oz

eliminating empty space in a url parameter
        91804 by: Rochmad Setyadi

limiting uploads by file type
        91805 by: Wizaerd

Administrivia:

To subscribe to the digest, e-mail:
        php3-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php3-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php3lists.php.net

----------------------------------------------------------------------

attached mail follows:


Hi!

>$hst_query = "select * from $TBL_PRODUCER order by $PRD_PRODUCER";

So you're using variables to enter the table name and the sort field. Have
you double checked to make sure the variables are being set properly? Just
toss...

print($hst_query);
exit;

...underneath the query def and execute the page. I often do this when a
query doesn't do what I expect (more often than I care to admit some days).
Then I can also cut and paste the query into another interface (phpMyAdmin
for MySQL or Query Manager for MS SQL, whatever I am using) to check the
results.

Hope it's something nice and easy like that!

Salute!
- Erik

attached mail follows:


You know what?

If more hosts used PG I'd be using it too. I moved from MySQL in web
development to Oracle in training and back to MySQL for dev again. I
really miss the features of Oracle! I can't tell you how much time I've
spent trying to figure out how to do this or that in MySQL. I had PG
installed on my local machine, but it just seems really hard to find a
good host that will support PG plus all the other needed features and not
charge a mint. Oh ya, and that is a plea if anyone personally knows a
good PG host :)

On Thu, 25 May 2000, you wrote:
> FINALLY!!!!!!!!!!!!!!!!!!!!!!
>
> Sorry about the caps, but i'm kinda tired of all the mysql support in PHP's
> community.
> Sure, MySQL is superfast, Sure, it's cheap on linux, BUT:
>
> Postgresql is much more sophisticated (featurerich)
> It's cheaper (free on windows too)
>
> My 2 reasons to use it for anything but simple page serving, because that is
> where MySQL is the star.
>
> Maarten

-- 
We the unwilling, led by the ungrateful, are doing the impossible.
We've done so much, for so long, with so little,
that we are now qualified to do something with nothing.

-------------------------------------------------------- This mail proudly composed and transmitted without the interference of any Micro$oft products or protocols. --------------------------------------------------------

attached mail follows:


Rob Hardowa wrote:

> You know what? > > If more hosts used PG I'd be using it too. I moved from MySQL in web > development to Oracle in training and back to MySQL for dev again. I > really miss the features of Oracle! I can't tell you how much time I've > spent trying to figure out how to do this or that in MySQL. I had PG > installed on my local machine, but it just seems really hard to find a > good host that will support PG plus all the other needed features and not > charge a mint. Oh ya, and that is a plea if anyone personally knows a > good PG host :) >

Hi, If you have not already done, you may check http://www.hub.org

Regards,

> > On Thu, 25 May 2000, you wrote: > > FINALLY!!!!!!!!!!!!!!!!!!!!!! > > > > Sorry about the caps, but i'm kinda tired of all the mysql support in PHP's > > community. > > Sure, MySQL is superfast, Sure, it's cheap on linux, BUT: > > > > Postgresql is much more sophisticated (featurerich) > > It's cheaper (free on windows too) > > > > My 2 reasons to use it for anything but simple page serving, because that is > > where MySQL is the star. > > > > Maarten > -- > We the unwilling, led by the ungrateful, are doing the impossible. > We've done so much, for so long, with so little, > that we are now qualified to do something with nothing. > > -------------------------------------------------------- > This mail proudly composed and transmitted without the > interference of any Micro$oft products or protocols. > -------------------------------------------------------- > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


Hi.

I've done fairly well with a routine where a user uploads an include file from one page to update the text on another page. I used nl2br() to format the text to the web page. Now I want to extend that input to update the text of an email autoresponder. But, I'm having trouble formatting the text in this situation. So far, the text comes out as just one long line of wrapped text.

How are paragraphs maintained in this situation? I can't get them to hang in and I need a clue. Thanks much.

Floyd Baker

--

attached mail follows:


Just type in finderr [errno] at the command prompt to get info on the informix error message. This is what I get for an error -461:

File open error.

This statement transfers a value between a file and a BYTE or TEXT column, or the statement attempts to drop a database when a required file is not available. Because the locator structure field loc_loctype was set to LOCFNAME, the database server tried to open the file using the pathname in loc_fname and the flags in loc_oflags. An operating-system error was returned. Check the accompanying ISAM error code for more information and look for operating-system messages. Typical causes include lack of disk space, file permission problems, and limits on the number of open files.

LRJ

> I think I have a problem connecting to my informix data base server through > php, which is in the same computer. I made a small script to try out the > connection: > > <HTML> > <BODY> > <? > $conn=ifx_pconnect("sysmaster","informix","my_password"); > echo(sprintf($conn)); > </BODY> > </HTML> > > and I get this error: > > Warning: E [SQLSTATE=IX 000 SQLCODE=-461] in /usr/local/apache/htdocs/informix/publicar.php on line 5 > > > Any ideas on what it can be? > > Thanks > > > -- > "And I'm happy, because you make me feel good, about me." - Melvin Udall > ----------------------------------------------------------------- > Martín Marqués email: martinmath.unl.edu.ar > Santa Fe - Argentina http://math.unl.edu.ar/~martin/ > Administrador de sistemas en math.unl.edu.ar > ----------------------------------------------------------------- > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

attached mail follows:


Hello !

I want to send some values in a form using PHP. The problem is that I want some of the values to have special characters like þ and ÿ. I have to use PHP to "print" or send these arrays to the page as they would be in a loop. So, question is how do I do that please? I need help on this most urgently, so any ideas/ suggestions will be very welcome.

Thanks in advance

SM

attached mail follows:


Hi, Could you explain the problem exactly? Regards

Sumitha wrote:

> Hello ! > > I want to send some values in a form using PHP. The problem is that I want > some of the values to have special characters like þ and ÿ. I have to use > PHP to "print" or send these arrays to the page as they would be in a loop. > So, question is how do I do that please? I need help on this most urgently, > so any ideas/ suggestions will be very welcome. > > Thanks in advance > > SM > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


What I have to do is from my web site, redirect a form to post to another web site. One of the hidden fields would have a long chain of variables, which will be separated by þ and ÿ. I will simply use PHP to combine all the variables from an array, join them using "." and assign it to the hidden field.

But the problem is how do I do it in php?

For example, I want something like this in the hidden field

<input type="hidden" name="allfields" value="<?php echo $thefields; ?>"">

In order to do this, i have to do something like the following:

<?php $item[] = "bananas"; $item[] = "fruits"; // and so on... for ($i = 0; $i < count($item); $i++) { $thefields .= "ÿ" . $item[$i] ; } ?>

When I do this in PHP, instead of just typing the character ÿ, i want to use a character that would be understood by most browsers as ÿ. I am not sure whether i should html encode it... and if yes, then how? I need to use 2 characters : þ and ÿ

TIA

SM

At 02:02 PM 5/27/00 +0300, Erol Oz wrote: >Hi, >Could you explain the problem exactly? >Regards > >Sumitha wrote: > >> Hello ! >> >> I want to send some values in a form using PHP. The problem is that I want >> some of the values to have special characters like þ and ÿ. I have to use >> PHP to "print" or send these arrays to the page as they would be in a loop. >> So, question is how do I do that please? I need help on this most urgently, >> so any ideas/ suggestions will be very welcome. >> >> Thanks in advance >> >> SM >> >> -- >> PHP 3 Mailing List <http://www.php.net/> >> To unsubscribe, send an empty message to php3-unsubscribelists.php.net >> To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net >> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 >> To contact the list administrators, e-mail: php-list-adminlists.php.net > > >-- >PHP 3 Mailing List <http://www.php.net/> >To unsubscribe, send an empty message to php3-unsubscribelists.php.net >To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net >To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 >To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


Sumitha wrote:

> What I have to do is from my web site, redirect a form to post to another > web site. One of the hidden fields would have a long chain of variables, > which will be separated by þ and ÿ. I will simply use PHP to combine all > the variables from an array, join them using "." and assign it to the > hidden field. > > But the problem is how do I do it in php? > > For example, I want something like this in the hidden field > > <input type="hidden" name="allfields" value="<?php echo $thefields; ?>""> > > In order to do this, i have to do something like the following: > > <?php > $item[] = "bananas"; > $item[] = "fruits"; > // and so on... > for ($i = 0; $i < count($item); $i++) > { > $thefields .= "ÿ" . $item[$i] ; > } > ?> > > When I do this in PHP, instead of just typing the character ÿ, i want to > use a character that would be understood by most browsers as ÿ. I am not > sure whether i should html encode it... and if yes, then how? I need to use > 2 characters : þ and ÿ >

I use non-iso8859-1 characters (for example ð, Ð, ý, Ý, þ, Þ) in similar fashion without html encode and I did not face with any problem. Regards Erol

> > TIA > > SM > > At 02:02 PM 5/27/00 +0300, Erol Oz wrote: > >Hi, > >Could you explain the problem exactly? > >Regards > > > >Sumitha wrote: > > > >> Hello ! > >> > >> I want to send some values in a form using PHP. The problem is that I want > >> some of the values to have special characters like þ and ÿ. I have to use > >> PHP to "print" or send these arrays to the page as they would be in a loop. > >> So, question is how do I do that please? I need help on this most urgently, > >> so any ideas/ suggestions will be very welcome. > >> > >> Thanks in advance > >> > >> SM > >> > >> -- > >> PHP 3 Mailing List <http://www.php.net/> > >> To unsubscribe, send an empty message to php3-unsubscribelists.php.net > >> To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > >> To search the mailing list archive, go to: > http://www.php.net/mailsearch.php3 > >> To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > > >-- > >PHP 3 Mailing List <http://www.php.net/> > >To unsubscribe, send an empty message to php3-unsubscribelists.php.net > >To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > >To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > >To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


hi all!

anybody know how to eliminate the empty space in a url?

like in .... http://myserver/ttp.php3?param1=first second (usualy broken and got from table field) the parameter should be "first second', but mine is broken, into just "first" ...

in my ASP way is by replacing the space with %20. Is the same thing can be applied? I need a function which has ability to search the empty space and replace them. please ..........

env.: redhat, php3, mysql

regards,

-rhd-

attached mail follows:


Is anyone aware of a way to limit the types of files that get uploaded via an HTML form and a php script? I'm creating a user submitted gallery and want to ensure only JPG and GIF images get uploaded instead of some huge document or executable...

thanx!

Joseph E. Sheble a.k.a. Wizaerd Wizaerd's Realm Canvas, 3D, Graphics, ColdFusion http://www.wizaerd.com ================================= Zanova, Inc. http://www.zanova.com Moving Business Forward..... =================================