[PHP] MsSQL from FreeBSD

2001-12-27 Thread Valentin V. Petruchek
Hello php-world! I'm working on Apache 22, php 4.1.0 and try to work with MsSQL 2000. PHP is configured './configure' '--with-apache=../apache_1.3.22' '--with-mysql' '--with-sybase=/usr/local/freetds' '--enable-track-vars' Everything works fine when using mssq-Functions, except extracting imag

Re: [PHP] MsSQL from FreeBSD

2001-12-27 Thread Valentin V. Petruchek
Total Links 0/unlimited Application Name PHP 4.0 Client API Version - Original Message - From: "Brian Clark" <[EMAIL PROTECTED]> To: "PHP is not a drug." <[EMAIL PROTECTED]> Sent: Thursday, December 27, 2001 4:59 PM Subject: Re: [PHP] MsS

Re: [PHP] MsSQL from FreeBSD

2001-12-28 Thread Valentin V. Petruchek
> OK, we're talking about Linux, right? No ;) FreeBsd 4.x don't know exactly about x > I'll bet `cat /proc/sys/fs/file-max` gives you 4096 > > Try upping the file descriptor limit in /proc/sys/fs/file-max. That > may or may not solve the problem; worth a try. How much memory does > the client ma

Re: [PHP] PHP Forms

2002-01-02 Thread Valentin V. Petruchek
Mail() function works fine on win32, you need enter smtp server in your php.ini and sendfrom address. example: SMTP = 10.1.25.1 ; for Win32 only sendmail_from = [EMAIL PROTECTED] Valentin Petruchek (aki Zliy Pes) *** ??? ?? *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Origina

[PHP] Case insensitive str_replace

2002-01-10 Thread Valentin V. Petruchek
Hello list. Need you help. My aim is to str_replace ($word,"$word",$str). But: i want str_replace not to differ uppers and lowers: Rector => Rector after str_replace ('rec',"rec","Rector") in other words. It seemes to me ereg can help, but i'm still not good at it. Help please Valentin Petru

[PHP] IMAP Question

2001-10-18 Thread Valentin V. Petruchek
Hello, Masters! I'm sending a mail through with imap_mail() and want to save a copy of it in "Sent Items" folders. I can not find function which an do it. It seemes to me it should look like saving letter to specified mailbox (e.g. "Drafts"). Thank you Val.zp.ua. -- PHP General Mailing Lis

Re: [PHP] class problems

2001-10-18 Thread Valentin V. Petruchek
Try to create an instant of the class like this: table; } } $test = new Test; echo $test->showName(); ?> - Original Message - From: "Matt Williams" <[EMAIL PROTECTED]> To: "PHP General List" <[EMAIL PROTECTED]>; "PHP_UK@egroups." <[EMAIL PROTECTED]> Sent: Thursday, October 18, 2001 4:25

[PHP] Help, please!

2001-10-18 Thread Valentin V. Petruchek
Hello, Professionals! I've such problem: i need to change parameters from php.ini (such as sendmail_from) during execution script. Is it possible to perform and if is, how can i do it. Thanks Val.zp.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

RE: [PHP] class problems

2001-10-18 Thread Valentin V. Petruchek
Sorry and thanks - have not use it before/ But i've tried this: qtable = 'val'; return $this->qtable; } } echo test::showName(); ?> worked :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] IMAP Question

2001-10-18 Thread Valentin V. Petruchek
Is it possible to use imap_mail() on php 4.0.6 on NT machine? Maybe anyone has dll for this. Thank you Val.zp.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

Re: [PHP] Update Query - Urgent

2001-10-23 Thread Valentin V. Petruchek
Send your codes to mailing list. If they are not very secret :) - Original Message - From: "Srinivasan Ranganathan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 23, 2001 3:21 PM Subject: [PHP] Update Query - Urgent > Hi > > I have a php script generate a sql update

Re: [PHP] Update Query - Urgent

2001-10-23 Thread Valentin V. Petruchek
What if use mysql_select_db()? - Original Message - From: "Srinivasan Ranganathan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 23, 2001 4:22 PM Subject: [PHP] Update Query - Urgent -- Yes, Full Rights! > Hi > > Yes, I do have full rights! > > > > __

Re: [PHP] redirecting the browser

2001-10-23 Thread Valentin V. Petruchek
Use this: - Original Message - From: "Ozgur Demirtas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 9:47 AM Subject: [PHP] redirecting the browser > Hi all, > > I have a PHP script and at one point of the script I am trying to redirect > my browser to a c

Re: [PHP] Check mail user

2001-10-24 Thread Valentin V. Petruchek
If I understand you properly you need smth like this function checkmail ($email) { return (eregi("^[_\.0-9a-z-]+@([0-9a-z][-0-9a-z\.]+)\.([a-z]{2,3}$)", $email, $check)); } - Original Message - From: "Rosen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 10

[PHP] Re: regardnig receiving mails

2001-10-25 Thread Valentin V. Petruchek
Look in http://www.php.net/manual/en/ref.imap.php - Original Message - From: "Nigam Chheda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 12:41 PM Subject: [PHP] regardnig receiving mails > Hi > For sending mail php has a function ma

Re: [PHP] Replace text

2001-10-27 Thread Valentin V. Petruchek
What if pass some parameters to function - i mean not use global $comment but do like function replace_text_smiley($comment) - Original Message - From: "Daniel Harik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 28, 2001 12:20 AM Subject: [PHP] Replace text > Hello g

Re: [PHP] HELP PLEASE!! Get query error when inserting into MySql

2001-10-27 Thread Valentin V. Petruchek
What if you single quotes like this: '$REMOTE_ADDR' ??? - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 27, 2001 3:20 PM Subject: [PHP] HELP PLEASE!! Get query error when inserting into MySql > Hi There, > > I have a query whenever I try to

[PHP] Re: Parse Error

2001-10-29 Thread Valentin V. Petruchek
Try this: var $VAL_ID; var $VAL_TICKER; var $VAL_ID_FEED; -- PHP General Mailing List (http://www.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] Some facts about MsSQL/ODBC

2001-11-01 Thread Valentin V. Petruchek
Hello everyone! Here i'm not going to ask community about smth. I would like to present results of one test speed. i perform the same query to MsSQL directly (using mssql_...) and through ODBC (odbc_...) In first case (direct connection) php works SLOWER than through ODBC. My server is on NT 5.1

[PHP] Url Length Limitations?

2001-11-12 Thread Valentin V. Petruchek
Hi everyone! Is there any limitation for length of url like this accept.php?set=qwerty... What is the maximum $set length i can pass to script as a parameter? Zliy Pes: http://zliypes.com.ua [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re2: [PHP] Url Length Limitations?

2001-11-12 Thread Valentin V. Petruchek
You see, I call for php script from Delphi program... I can do it with InternetOpen() so the only method available for me is GET - i can use page url only Or I'm mistaken and it's possible to use POST here? who knows? - Original Message - From: "Christoph Starkmann" <[EMAIL PROTECTED]> To

Re: [PHP] matches problem ("preg_match")

2001-11-13 Thread Valentin V. Petruchek
Try this code: $str="eins zwei drei vier fünf sechs"; $Wort = explode (' ',$str); $n=count($Wort); for($i=0;$i<$n;$i++){echo "$i: $Wort[$i]";} It should works Zliy Pes [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: [PHP] Authenticating Users with their Windows Login - Desperate

2001-11-30 Thread Valentin V. Petruchek
You can protect folder where your scripts lie with NT/2000 security - so only allowed users will be able to run scripts from this folder. - Original Message - From: "SED" <[EMAIL PROTECTED]> To: "'Feroze Md. Arif'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, November 30, 200

[PHP] Student need help

2001-11-30 Thread Valentin V. Petruchek
Hello everyone! sorry, but thing i'm asking for is interesting for Ru.Net users only so i'm gonna write it in Russian: çÏÓÐÏÄÁ ÄÅ×ÅÌÏÐÅÒÙ! ðÏÍÏÇÉÔÅ ÓÔÕÄÅÎÔÕ - ÐÒÉÍÉÔÅ ÕÞÁÓÔÉÅ × ÓÏÃÉÏÌÏÇÉÞÅÓËÏÍ ÏÐÒÏÓÅ, ËÏÔÏÒÙÊ Ñ ÐÒÏ×ÏÖÕ × ÒÁÍËÁÈ ÉÚÕÞÁÅÍÏÇÏ ËÕÒÓÁ ÓÏÃÉÏÌÏÇÉÉ. ïÐÒÏÓ ÐÒÏ×ÏÄÉÔÓÑ ÎÁ ÔÅÍÕ ÉÓÐÏÌØÚÏ×ÁÎÉÑ

Re: [PHP] HELP URGENT VARS !!!

2001-11-30 Thread Valentin V. Petruchek
'; } ?> Zliy Pes, http://www.zliypes.com.ua -- PHP General Mailing List (http://www.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_int with HTML FORM

2001-11-30 Thread Valentin V. Petruchek
$id = '10002'; //comes from form $defaultvalue = '13'; $id = intval($id); if (($id<1)||($id>)) $id = $defaultvalue; echo $id; Zliy Pes, http://zliypes.com.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: [PHP] Multiple database seeking

2001-12-03 Thread Valentin V. Petruchek
Use smth like this -> $need_prices = '01,02'; $prices = new Array(); $sql = "select * from price_list where id in ($need_prices)" $result = mysql_query ($sql); {//cycle while $result is not empty - for every record $row = mysql_fetch_array($result); $prices[$row["id"]] = $row[

[PHP] ereg help

2001-12-03 Thread Valentin V. Petruchek
- Original Message - From: "Valentin V. Petruchek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 03, 2001 6:35 PM Subject: [PHP] ereg help > I'm not new for php, but have no experience working with ereg functions. My > problem is

Re: [PHP] Re: Something wrong with the file() command.

2001-12-03 Thread Valentin V. Petruchek
Try this: "; print_r ($temp); echo ""; ?> and look for $temp content. Zliy Pes http://zliypes.com.ua - Original Message - From: "Fred" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 03, 2001 7:58 PM Subject: [PHP] Re: Something wrong with the file() command. > When

Re: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread Valentin V. Petruchek
Set the form receiver to $PHP_SELF. When data is posted (use $HTPP_POST_VARS to check if is) check it for correctness. If everything is ok, use Header("Location: work_for_authorized.php") otherwise show the current (i.e. login page) with $user, $pass available... Zliy PEs, http://www.zliypes.com.

Re: [PHP] phpinfo() returning Zero Sized Reply

2001-12-04 Thread Valentin V. Petruchek
phpinfo() is a function itself. It needn't echo: Zliy Pes, http://www.zliypes.com.ua - Original Message - From: "Brian C. Doyle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 8:07 PM Subject: [PHP] phpinfo() returning Zero Sized Reply > hello all, > > I h

Re: [PHP] mad .... again jpeg files...

2001-12-04 Thread Valentin V. Petruchek
Try to specify absolute path to the jpeg - possible php do not look up for jpeg in current folder... (or use './image.jpg') Zliy Pes, http://zliypes.com.ua - Original Message - From: "Miguel Loureiro" <[EMAIL PROTECTED]> To: "php-gen" <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001

[PHP] MsSQL question

2001-12-05 Thread Valentin V. Petruchek
Hello world! I'm using php 4.0.6 to work with MsSQL (FreeBSD 4.4, Apache 1.3.20). How should i compile php to enable mssql functions? Thanks Zliy pes, http://www.zliypes.com.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: [PHP] MsSQL question

2001-12-05 Thread Valentin V. Petruchek
Thanks, i've looked in previously downloaded manual and 've found nothing ;) - Original Message - From: "Jon Farmer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 11:55 AM Subject: Re: [PHP] MsSQL question > > Hello world! > > I

Re: [PHP] Version To Version

2001-12-07 Thread Valentin V. Petruchek
Your problem is GD, not PHP. Use gd library corresponding to PHP 4.0.6 and PNG will be ok (tested by myself). Zliy Pes - Original Message - From: "Robert Covell" <[EMAIL PROTECTED]> To: "Neil Freeman" <[EMAIL PROTECTED]>; "Php-General" <[EMAIL PROTECTED]> Sent: Friday, December 07, 2001

Re: [PHP] Dynamic Document Creation

2001-12-07 Thread Valentin V. Petruchek
It's from manual do not remember it's chapter exactly: // starting word $word = new COM("word.application") or die("Unable to instanciate Word"); print "Loaded Word, version {$word->Version}\n"; //bring it to front $word->Visible = 1; //open an empty document $word->Documents->Add(); //do some

Re: [PHP] Costum Error Page

2001-12-08 Thread Valentin V. Petruchek
Use $QUERY_STRING instead - Original Message - From: "Daniel Urstöger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 08, 2001 1:51 PM Subject: Re: [PHP] Costum Error Page > Opps, sorry, I had a bug, now I have this problem: > Browser is showing this URL: > http:/

Re: [PHP] fopen to check if file exists

2001-12-08 Thread Valentin V. Petruchek
I've tested given url.. If there is no image php script return file = '139'. Check if file content is different from 139. or try to get image size of file: $size = GetImageSize ("http://waptopic.supereva.it/loghiesuonerie.it/LogoGen.php?id=1100";); and check what happens if there is no image

Re: [PHP] file downlaod via http

2001-12-10 Thread Valentin V. Petruchek
Security, you know... Browser will not allow you to save files on LOCAL drive Otherwise Internet should be very dangerous thing - Original Message - From: "Helmut Habiger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 10, 2001 5:57 PM Subject: [PHP] file downlaod

[PHP] Logo proposal

2001-12-10 Thread Valentin V. Petruchek
Hello world of php-programmers! It seemes to me PHP is very powerful tool and very popular among web-programmers, too. As for me I use php for solving web tasks for 2 years and I'm very satisfied with it. It seemes to me current PHP logo (can be found by http://www.php.net/gifs/logo.gif) doesn't

Re: [PHP] Returned error messages

2001-12-10 Thread Valentin V. Petruchek
My experince: MsSQL is keeping silence even freetds or sybase is not installed at all... - Original Message - From: "Dave Brotherstone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 10, 2001 7:58 PM Subject: [PHP] Returned error messages > > Has anyone got error mes

Re: [PHP] Setting Cookies

2001-12-10 Thread Valentin V. Petruchek
Not necessary on the top, but before any html begins Zliy Pes, http://zliypes.com.ua - Original Message - From: "Steve Osborne" <[EMAIL PROTECTED]> To: "PHP-General (E-mail)" <[EMAIL PROTECTED]> Sent: Monday, December 10, 2001 9:39 PM Subject: [PHP] Setting Cookies > I am attempting to

Re: [PHP] PHPhish Logo

2001-12-12 Thread Valentin V. Petruchek
As I started all these I propose to go to next stage of discuss: i.e. drawing proposed logos. We've got plenty of variants... So if anyone has enough free time and ability to develop a GRAPHICAL logo - lets post them! Zliy Pes, www.zliypes.com.ua -- PHP General Mailing List (http://www.ph

Re: [PHP] login, and

2001-12-12 Thread Valentin V. Petruchek
Try cookies. They help me greatly ;) What - Original Message - From: "Ward, Mark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 12, 2001 4:15 PM Subject: [PHP] login, and > I've got a question about how I should implement my logins with PHP.. > > I'm working on a

Re: [PHP] Logo proposal

2001-12-13 Thread Valentin V. Petruchek
Aunt is more similar very similar to PHP. Very industrious and powerful ;) - Original Message - From: "PHPGalaxy.com" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 1:31 PM Subject: Re: [PHP] Logo proposal > Actually I heard it's 50 times it'

Re: [PHP] pictures width and height

2001-12-13 Thread Valentin V. Petruchek
"; print_r($size); echo ""; ?> userfile is file you want to get size of. Zliy Pes, http://www.zliypes.com.ua - Original Message - From: "Tommy Straetemans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 4:32 PM Subject: [PHP] pictures width and height > H

Re: [PHP] Logo proposal - voting script!

2001-12-13 Thread Valentin V. Petruchek
---- > > > >Powerful hosting from www.inovicahosting.com > > > > > > > > > -Original Message- > > > From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]] > > > Sent: 13 Decembe

Re: [PHP] Logo proposal - voting script!

2001-12-13 Thread Valentin V. Petruchek
myself :) > > > >Someone put up a voting script ! > > > >Ade > > > >--- i n o v i c a h o s t i n g . c o m ------ > > > >Powerful hosting from www.inovicahosting.com > > > > > >

Re: [PHP] How can i send eMail under Win32

2001-12-17 Thread Valentin V. Petruchek
Mail() function works fine on win32, you need enter smtp server in your php.ini and sendfrom address. example: SMTP = 10.1.25.1 ; for Win32 only sendmail_from = [EMAIL PROTECTED] Zliy Pes, http://zliypes.com.ua - Original Message - From: "William Sanchez Sanchez" <[EMAIL PROTECTED]> To

[PHP] Looking for a function

2001-12-24 Thread Valentin V. Petruchek
Hello, cannot find function to convert all dangerous symbols (spaces,dots etc) into %20 variant. Is there any standard, or i have to develop my own? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Looking for a function

2001-12-24 Thread Valentin V. Petruchek
www.php.net/urlencode > > Merry Christmas! > > James Cox > > > -Original Message- > > From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]] > > Sent: Monday, December 24, 2001 3:58 PM > > To: PHP > > Subject: [PHP] Looking for a function > > >