[PHP] Re: imap_mail_move and imap_mail_copy

2002-07-18 Thread val petruchek
functions is just interface for IMAP protocol. -- Sincerely, val petruchek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] win32 mail()

2002-07-17 Thread val petruchek
> Have a look the the Pear mail.php or google for "php smtp auth" already done, but i've my own smtp class anyway. i hoped to avoid rewriting code which used mail(). thanks -- Sincerely, val petruchek "Jason Wong" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ

[PHP] win32 mail()

2002-07-17 Thread val petruchek
don't be afraid - it works perfect. i mean mail() on win32 server my question is - how to set up SMTP authorization in php ini (if smtp server requires pop auth) is it possible or should i use direct smtp connection? -- Sincerely, val petruchek -- PHP General Mailing List

[PHP] Re: CRON JOB

2002-07-17 Thread val petruchek
*/1 * * * * val /usr/local/bin/lynx -source http://php.net/crontab/steward.php - example of how to call script every minute -- Sincerely, val petruchek "Maas" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >

[PHP] Re: how to know upload progress status

2002-07-11 Thread val petruchek
rver. -- Sincerely, val petruchek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] autoresponder

2002-07-05 Thread val petruchek
I receive this sh!t everytime i post message here. Can we get him out of the list? > Hello, > > > > I will be on vacation from 07/08/02 till 07/19/02 . If you need assistance with your website, please contact either Chris : [EMAIL PROTECTED] or Dave : [EMAIL PROTECTED] > > > > Best Regards, > >

[PHP] Re: upload file size

2002-07-05 Thread val petruchek
Check Apache limitations -- Sincerely, val petruchek "Norman Zhang" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I can't seem to upload file bigger than 5M even if I set the >

[PHP] Re: [OFF] Expiration Page

2002-07-05 Thread val petruchek
-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // HTTP/1.0 -- Sincerely, val petruchek "Skyhawk" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔ

[PHP] Re: returning more than 1 value from function

2002-07-04 Thread val petruchek
If you don't like arrays you can use objects: function multireturn() { $result->first = "Ticket #1"; $result->second = "Ticket #2"; return $result; } -- Sincerely, val petruchek "Andy" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×

[PHP] Re: Nothing will execute after calling imagejpeg.

2002-07-04 Thread val petruchek
tion and doesn't report about error. Maybe this helps -- Sincerely, val petruchek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: adding a variable to a variable name

2002-07-03 Thread val petruchek
check for eval function -- Sincerely, val petruchek "Tom Beidler" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm wondering if this can be done, and if so, what's the proper way to do > it.

[PHP] revecom + php

2002-07-03 Thread val petruchek
Hi again, php gurus! Does anyone of you have any experience working with revecom rfom php script? Will be grateful for any comments and links to articles of the subject -- Sincerely, val petruchek http://val.zp.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] testing

2002-02-14 Thread val petruchek
test msg pls ignore -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] last char in string?

2002-02-14 Thread val petruchek
$s = substr($s,0,strlen($s)-1); Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "marcbey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 14, 2002 1:48 PM Subject: [PHP] last char in

Re: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread val petruchek
IL PROTECTED]> > Sent: Wednesday, February 13, 2002 7:36 PM > Subject: Re: [PHP] Re-Importing .CSV file into Database > > > > Val, > > > > quite frankly, i'm not quite sure i know what you're > > talking about. i don't think i know enum() function!

Re: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread val petruchek
ankly, i'm not quite sure i know what you're > talking about. i don't think i know enum() function!! > > T. Edison jr. > > --- val petruchek <[EMAIL PROTECTED]> wrote: > > > Hi Rick, > > > > > > Thanks for the support! > >

Re: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread val petruchek
> Hi Rick, > > Thanks for the support! > This is the mySQL Table Structure : > > $sql = "CREATE table fanlist_try (ID bigint(21) NOT > NULL auto_increment, name varchar(50), email > varchar(70), age int(10), sex varchar(20), country > varchar(50), PRIMARY KEY (ID))"; sex varchar(20) sounds great.

Re: [PHP] Printing files

2002-02-13 Thread val petruchek
$data = file ($certain_file); echo "{$data[0]}\n"; echo "{$data[3]}\n"; echo "{$data[7]}\n"; Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "John Gurley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent

Re: [PHP] printing files

2002-02-13 Thread val petruchek
$data = file ($certain_file); echo "{$data[0]}\n"; echo "{$data[3]}\n"; echo "{$data[7]}\n"; Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "John Gurley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent

Re: [PHP] MsSQL PASSWORD()

2002-02-13 Thread val petruchek
AIL PROTECTED]> Sent: Tuesday, February 12, 2002 3:06 PM Subject: Re: [PHP] MsSQL PASSWORD() > At 09:26 AM 2/12/2002 +0200, val petruchek wrote: > >My current project runs on Win2k, MsSQL 2k, and PHP 4.0.6 > > > >My problem is that i can not enable md5 extension because

Re: [PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread val petruchek
Call phpinfo() and search for necessery variable ($SERVER_NAME maybe) Valentin Petruchek (aki Zliy Pes) *** Cut the beginning*** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "Christian Blichmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, Februa

Re: [PHP] ereg-digits only...

2002-02-12 Thread val petruchek
n't work! > 1) You meant to write: if (((int)$string==$string) && ($string>0)) > > 2) (int)'5a' == 5, so this formula would result is 5a == 5! > > --Daniel > > > > -Original Message- > > From: val petruchek [mailto:[EMAIL PROTECTED]]

Re: [PHP] ereg-digits only...

2002-02-12 Thread val petruchek
if ((int($string)==($string)) && ($string>0)) {then positive integer} not sure exactly, but try Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "B. Verbeek" <[EMAIL PROTECTED]> To: "Php-Db-Help (E-mail)

Re: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-12 Thread val petruchek
IMHO escribed feature is not a bug. most probably this 'bug' is a special hole just in case. Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "Lars Torben Wilson" <[EMAIL PROTECTED]> To: "Jerry Verhoef (U

Re: [PHP] MsSQL PASSWORD()

2002-02-11 Thread val petruchek
entin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "Michael Sims" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 12, 2002 2:29 AM Subject: Re: [PHP] MsSQL PASSWORD() &g

Re: [PHP] help - to get client IP

2002-02-11 Thread val petruchek
$remote_addr returns exactly client ip; but if user is behind proxy then $remote_addr will return you proxy ip and you can do nothing with it Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

Re: [PHP] how can i pass a javascript variable into a PHP variable?

2002-02-11 Thread val petruchek
You can add hidden field in form and before posting set it value to js variable value that can be easily used by PHP script Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] One more quickie

2002-02-09 Thread val petruchek
> Don?t really want to bother you with these quickies - but: > > If i have a result from mysql that is a date (2002-02-09) - how do i change > that into a variable with only the first 7 characters (2002-02)? > SELECT year(data), month (data) from table; Valentin Petruchek (aki Zliy Pes) *** Cut

Re: [PHP] Help with query

2002-02-09 Thread val petruchek
> Hi, > > i can?t seem to get my head to wake up... > > How would i do to count how many different values that exists in a mysql > field? Ie i have a date-field and need to know how many different dates that > exists in the table. select count(distinct name) from site; in Mysql Valentin Petruche

Re: [PHP] How to Configure the MySql Database?

2002-02-07 Thread val petruchek
USE MANUAL! I don't know to configure MySql Database On Apache Server in Windows System. What I must do? (step by step) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function to post data

2002-02-06 Thread val petruchek
Or use such method: 1. create form with $PHP_SELF as action 2. in the beginning of php script check if form was posted and if was check it for correctness 3. if form is ok, save post data and then redirect user with Header(to certain page) 4. if form is bad, stay at this script and display both: e

Re: [PHP] Is this possible?

2002-02-06 Thread val petruchek
Let prices(id,price etc.) be table of prices, products(NUM,name etc). Try smth like this: SELECT DISTINCT * FROM PRODUCTS P, PRICES P1, PRICES P2 WHERE P.NUM=P1.ID AND P.NUM=P2.ID AND P1.SIZE=SIZE1 AND P2.SIZE=P2 Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED]

Re: [PHP] Array length

2002-02-06 Thread val petruchek
count($array) Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "David Orn Johannsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 06, 2002 1:50 PM Subject: [PHP] Array length Isin't there a function to

Re: [PHP] show something

2002-02-06 Thread val petruchek
Thanks! Exactly what i need! Thanks a lot! > By default, PHP's output is buffered. > > To disable output buffering use > > ob_implicit_flush(); > > somewhere in your script. > > This flushes previous output to the client and disables buffering. > > For more info look at the manual's chapter on 'Ou

[PHP] show something

2002-02-05 Thread val petruchek
Hello, list! I've php script that works for seveeral minutes (3-5) - it indexes my site and when page is indexed it echoes a one-row table (page bla.bla.bla indexed). But browser shows it only when it gets all the page. I want it to show line by line... I know it can be done in perl (www.tracert

Re: [PHP] mysql fails

2002-02-05 Thread val petruchek
> Suppress the error message: > $result = @mysql_query("sql statement",$db); DL Neil, thank you: INSERT IGNORE is exactly what i need. You helped me greatly! Matt, thaks you for help too, but my non-perfect english doesn't allow me to express my thoughts correctly. Thanks! Valentin Petruchek (

[PHP] mysql fails

2002-02-05 Thread val petruchek
Sorry, incorrect subj! Hello! a have following mysql problem: i need to execute several inserts at one query like this-> $sql->action("insert into words(word) values ('php'); insert into words(word) values ('general'); insert into words(word) values ('list');"); The word fild is unique My prob

Re: [PHP] Re: Tricky array question

2002-02-05 Thread val petruchek
Hello! a have following mysql problem: i need to execute several inserts at one query like this-> $sql->action("insert into words(word) values ('php'); insert into words(word) values ('general'); insert into words(word) values ('list');"); The word fild is unique My problem is: when certain wo

[PHP] tab inserting tab

2002-02-04 Thread val petruchek
Hello, list! I have in my page and want it to insert \tabs when clicking Tab instead of focusing on the next control element. Any thoughts or suggestions? Thanks Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] -- PHP General Maili

Re: [PHP] Parsing commands to a program

2002-02-02 Thread val petruchek
> Hello, > > I was wondering, how would I pass commands to a program and print the > results on my screen? > For instance, to add an FTP user the command would be: > "pure-pw useradd joeblow -u ftpuser -d /home/joeblow" > How would I make a php script do that and display it's output when it's > do

[PHP] script running under certain user

2002-02-02 Thread val petruchek
Hello, php-world! I know my question a little offtopic;), but: we have apache running under user "nobody". now we want to change this user to another one on certain folder. We want php to run under this new user. We cannot change set httpd.conf to do it. can anyone give an example of such sol

Re: [PHP] PHP and listbox multiple selections

2002-01-31 Thread val petruchek
> Hello to everyone > > Problem : > > A php form contains a listbox (named foolist) with n Items which can be > multiple selected and form posted to > results.php how can results.php determine which items were selected in order > to add all the items in a Mysql table ??? > > thanks in advance f

[PHP] File Manager

2002-01-31 Thread val petruchek
Hello, php-world! I'm developing web-based file manager and need to call unlink(), copy(), mkdir(). May be you've already guessed that i failed with them because of "Permission denied". How can i avoid this? Maybe using `command line` and logging in before calling funcs. I'm using php 4.1.0 on

Re: [PHP] echo " HTML code ";

2002-01-31 Thread val petruchek
> ok.. well an echo goes > echo "what u want to echo"; > so u would do it this way > > echo "html code.. making sure u dont use a " in any of ur html code"; > php stuff > echo "$phpvariable & more html code.. if u want to use a " use a ' > instead."; > more php stuff. > If u want to use " use \"

Re: [PHP] What is ? Mean in the Action Box

2002-01-31 Thread val petruchek
> Dear all > I had open a webpage which design from my company's pervious staff! > This page is a input form, and when i look at the properity of the Form i > saw this: > > form name="o_form" action="deposit_admin.php?save=yes" method="post" > > What is the "?" mean in the Action part? > after ?

Re: [PHP] mailing to 19000 users

2002-01-29 Thread val petruchek
> How about creating a mailing list will 19000 users and > then using the mail() function to send mail to that > list. so that you will not have to loop through. The main disadvantage (not sure of such long $to) is that EVERY user will receive e-mail's of others. Valentin Petruchek (aki Zliy Pe

Re: [PHP] Creating a pdf document

2002-01-24 Thread val petruchek
http://www.php.net/manual/en/ref.com.php Valentin Petruchek (aki Zliy Pes) *** ??? ?? *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "Mihail Bota" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 24, 2002 9:52

Re: [PHP] newbie needs quick help with formatting dates

2002-01-23 Thread val petruchek
http://www.php.net/manual/en/ref.datetime.php Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua 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 ad

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread val petruchek
> Even with straight HTML, a server's load capacity is not infinite. If > my own server, an old Pentium with 4 GB of hard drive space, and which > serves nothing but static HTML pages, got hit with more than a couple > hundred hits in a short period of time, it would bomb. > > I must be misunders

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread val petruchek
> It seems to me that the major problem with news sites such as cnn.com or > msnbc.com on dates like 9/11 was the sheer number of visitors coming to > the site. No matter how the pages were served up, the load was > unbearable for the servers. You see, giving user static or dynamic pages differs

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread val petruchek
> Since reading your first post I've been racking my brains/teasing my memory. I'm sure there's an article on one > of the popular PHP sites that talks about exactly this: creating a web page dynamically, but serving it as > static HTML (ie with no back-end db access per serving). This idea came

Re: [PHP] .php unrecognizable extension

2002-01-21 Thread val petruchek
> I am running Apache 1.3 on WindowsXP just for some developement stuff that I > do at home. I just installed PHP to the server but I can't get it to > recognize .php as an extension and to have it load those as if they were > .html files. IE index.php it just shows a directory listing inste

Re: [PHP] File upload

2002-01-21 Thread val petruchek
> How can I, using: > > specify the file extension. > I want the user only to upload *.jpg. You can only check $userfile_type to detect the type of uploaded file. You can specify nor extension to browse dialog neither default path for browsing... Security, you know Valentin Petruchek (aki Zliy

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread val petruchek
> > The greatest way of doing this is > > 1. develope php-script for generating updated html from moved php-script > > and updating index.html (e.g. ;) > > 2. develope another script or program which will call the first one > > periodically (once an hour, e.g.) > > I like that. > It sounds

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread val petruchek
> But at 300,000 page views a day, even if the caches only have a ttl of 1 > hour I'm still saving over %90 of the traffic from having to query the > database. > > During our busy times I have a bottle neck with the database maxing out > the CPU's, so If I can cut the queries the server won't be

Re: [PHP] Integer in PHP

2002-01-21 Thread val petruchek
intval (2.05); Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "Jerry" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 21, 2002 3:35 PM Subject: [PHP] Integer in PHP > Hi, > > I'm new in PHP, coming from Java

Re: [PHP] How to call Calling Non-Existing function

2002-01-21 Thread val petruchek
Not sure this is exactly what you need but try this: @Draw_Table() or default_func(); Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "S. Murali Krishna" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, Janu

Re: [PHP] "/19", the "/" doesn't work??

2002-01-18 Thread val petruchek
"/19" is ok, but "\19" really fails. Try put "\\19" instead. Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: "Scott Fletcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 7:45 PM Subject: [PHP] "/19

Re: [PHP] Variable Problem

2002-01-18 Thread val petruchek
Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 19, 2002 2:47 AM Subject: [PHP] Variable Problem > > > How do I combine the following so it is treated as one

Re: [PHP] Create Image on the fly

2002-01-17 Thread val petruchek
in index.html you write in aaa.php you write You have to create separate php script for creating image and then use it in you html (php) file. > > Hi! > How do I change this if I will use the Image direct in my html-code? > Do I need to save it first. > $im = @ImageCreate (240, 80) >

Re: [PHP] Re: Redirect?

2002-01-16 Thread val petruchek
> If this isn't in the PHP FAQ (I couldn't find it), it definitely should be, > because somebody asks this question at the very least once a week on this > list. Very useful feature, i think :) and better to add it to the manual III. Features section (with file apploading, image functions etc) V

Re: [PHP] header("Location: question

2002-01-16 Thread val petruchek
> This works > header("Location: http://www.foo.com/data/register.php?exist=1";); > How can I pass exist value as parameter ??? If i understand you right like this: header("Location: http://www.foo.com/data/register.php?exist=$exist";); Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua ma

Re: [PHP] passing parameters from one page to another

2002-01-11 Thread val petruchek
> I want from a Form page to pass a couple of values (fooa, foob, fooc) > which are not form fields > when submit button pressed to the submited page... Use hidden fields: Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] -- PHP General Mailing List (ht