[PHP] Passing many valaues to function

2001-11-03 Thread Daniel Harik
Hello I need to pass about 15 values to function, what would be best way of doing it? Thank you very much -- 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] Passing many valaues to function

2001-11-03 Thread Jason Brooke
maybe in an associative array jason - Original Message - From: Daniel Harik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 04, 2001 4:53 AM Subject: [PHP] Passing many valaues to function Hello I need to pass about 15 values to function, what would be best way

Re[2]: [PHP] Passing many valaues to function

2001-11-03 Thread Daniel Harik
I have following code ? class Member{ function vallidateForm ($HTTP_POST_VARS){ echo $HTTP_POST_VARS['frmUsername']; } } $user = new Member; if($action==register){ $user-vallidateForm($HTTP_POST_VARS); }else{ $user-displayForm(); } Why i try to run it i get error Parse error:

Re: Re[2]: [PHP] Passing many valaues to function

2001-11-03 Thread Liz Fulghum
which is line 235? Daniel Harik [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have following code ? class Member{ function vallidateForm ($HTTP_POST_VARS){ echo $HTTP_POST_VARS['frmUsername']; } } $user = new Member;

[PHP] Re: Passing many valaues to function

2001-11-03 Thread Galkov Vladimir
Good day! 1. Send array function_1($arr) where $arr: array. 2. This way is not very correct. just declare this varibles in function as global. 2.1. The enother way: get access to special array (in php3 only upper three are avible): $HTTP_GET_VARS $HTTP_POST_VARS $HTTP_COOKIE_VARS

Re: [PHP] Re: Questions about php.ini

2001-11-03 Thread DL Neil
Would the annotated manual LXV. PHP options information be of any use? =dn - Original Message - From: jennyw [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 03 November 2001 03:18 Subject: [PHP] Re: Questions about php.ini This is a dedicated server, and I have several sites on it.

[PHP] Trouble with PNGs

2001-11-03 Thread Daniel Reichenbach
Hy, I'm using PHP 4.0.6 with GD-2.0.1 and Freetype 2 compiled in. After playing a while with gd, I found that i can generate blank images with TTF text on it and can put text with imagestring on a png, but writing with ImageTTFText fails. Any idea? Daniel -- PHP General Mailing List

[PHP] Sendmail entry in PHP.ini

2001-11-03 Thread Michael, Jason
Does anyone know what the correct entry for the php.ini that allows you to to use sendmail in OSX 10.0.4 Server? Thanks, Jason -- 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

[PHP] passing variables between pages without using url??

2001-11-03 Thread sunny AT wde
hi php'ers! just a quick question please, it would help me out a lot. i've written a form, which passes value to a ph script to insert them into mysql. from there on, i forward onto another page, but using : header(Location: http://www.foo.com/foo2.php?id=4user=foo;); now i really don't want

[PHP] Re: passing variables between pages without using url??

2001-11-03 Thread Galkov Vladimir
may be you find accepteble usint input name=id value=? print $id? type=HIDDEN ??? -- 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] cron or something similar ?

2001-11-03 Thread JSheble
One way would be to choose a web hoster that provides you with cron access. See JTL Networks at http://www.jtlnet.com -Original Message- From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 10:22 PM To: [EMAIL PROTECTED] Subject: [PHP] cron or

Re: [PHP] cron or something similar ?

2001-11-03 Thread Steve Werby
Srinivasan Ranganathan [EMAIL PROTECTED] wrote: Im working on a newsletter using php. Is there any way, other than using a cron job? Of course. Run the script manually via the commandline version of PHP or require a password and form submission on a web-based version of the script and run it

Re: [PHP] passing variables between pages without using url??

2001-11-03 Thread Steve Werby
sunny AT wde [EMAIL PROTECTED] wrote: i've written a form, which passes value to a ph script to insert them into mysql. from there on, i forward onto another page, but using : header(Location: http://www.foo.com/foo2.php?id=4user=foo;); now i really don't want to have the url on the next

Re: [PHP] Sessions Header PROBLEM again!

2001-11-03 Thread Alessandro BOSSI
Hi, thank you for your attention This is only a sample to understand how the session work, in order to use them in a more complex web applications The goal is verify how to pass the var $count through each of the three pages by the php session function Particularly, when as usually, a client

php-general Digest 3 Nov 2001 16:19:17 -0000 Issue 973

2001-11-03 Thread php-general-digest-help
php-general Digest 3 Nov 2001 16:19:17 - Issue 973 Topics (messages 73323 through 73342): Re: Deleting Array elements 73323 by: Daniel Kushner cron or something similar ? 73324 by: Srinivasan Ranganathan 73339 by: JSheble 73340 by: Steve Werby Re: Query

[PHP] problem with copy($file,path) to up load a file

2001-11-03 Thread banyWilson
When i use function copy($file,$path)to uplode a file , the error message shows that :permision denied! what's wrong ,Who can help me!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] Trouble with PNGs

2001-11-03 Thread Daniel Reichenbach
I'm using PHP 4.0.6 with GD-2.0.1 and Freetype 2 compiled in. After playing a while with gd, I found that i can generate blank images with TTF text on it and can put text with imagestring on a png, but writing with ImageTTFText fails. Okay, I've tried it with PNG and JPEG, nut nothing works.

[PHP] Re: How to use Clibpdf

2001-11-03 Thread Justin Garrett
Clibpdf is not complied by default as a Shared Object. Once you compile it in you should just be able to use it. -- Justin Carlo loiudice [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm trying to install Clibpdf, but when I compile the source code, It

[PHP] Running 1 more script inside

2001-11-03 Thread Daniel Harik
Hello Thank you for your prevoius replies I have 1 main php and 1 chil, i was wondreing how can i execute that child php file from parent, i just don't know how to do it with eval() function Thank You very much -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] site last updated

2001-11-03 Thread oliver walkhoff
hi all i am looking for a simple way to find (and then display) the date of the last change to an entire web site. an example is in the footer on php.net: Last updated: Sat Nov 3 13:10:40 2001 EST thanks for your help oliver walkhoff -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Running 1 more script inside

2001-11-03 Thread Galkov Vladimir
Good day! The problem I thinck ot in how but in what ... what do you wont to do?... Not realy understand the situation... May be the better way is to convert you child php file in some number of functions put them in some.php and at include('some.php'); ? ... som realy this all will

[PHP] 2 Forms On 1 Page

2001-11-03 Thread Jeff Oien
If I have two forms on one page that both use the same script how do I get only the fields on one of the forms to be submitted? If that makes any sense. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] 2 Forms On 1 Page

2001-11-03 Thread Kurt Lieber
On Saturday 03 November 2001 11:28 am, you wrote: If I have two forms on one page that both use the same script how do I get only the fields on one of the forms to be submitted? If that makes any sense. Jeff Oien as long as you enclose each form within it's own set of form.../form tags and

RE: [PHP] problem with copy($file,path) to up load a file

2001-11-03 Thread Jack Dempsey
that means you don't have permissions to write that file to whatever directory is your target.if you tried the same thing from teh command line you'd get the same error -Original Message- From: banyWilson [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 03, 2001 11:39 AM To:

Re: [PHP] Re: Running 1 more script inside

2001-11-03 Thread Daniel Harik
Yes i tried that, but problem, is that child file is 1 more class, if i include it i get error: Fatal error: Cannot redeclare class blocks in c:\program files\apache group\apache\htdocs\cms\blocks.php on line 3 Thank You Have a nice day -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Mail and mime and attachments

2001-11-03 Thread Jason G.
I tried and tried. I finally got it to work (multipart/alternative) after reading the rfc. Read RFC 1521 at http://www.faqs.org/rfcs/rfc1521.html. Look at section 7.2.2. It will tell you all you need to know. By the way everyone, from faqs.org, WHICH I AM SURE MOST OF YOU USE TIME TO

Re: [PHP] Mail and mime and attachments

2001-11-03 Thread Richard Heyes
Jason G. [EMAIL PROTECTED] scrawled: I tried and tried. I finally got it to work (multipart/alternative) after reading the rfc. Read RFC 1521 at http://www.faqs.org/rfcs/rfc1521.html. Look at section 7.2.2. It will tell you all you need to know. RFCs 2045 - 2049 would be a better

[PHP] problem with function array_* that preserved the key

2001-11-03 Thread Reuben D Budiardja
Hi, I have problem with array function that return an array and preserved the key of the array argument. Take example of array_diff: I have 2 arrays that has index 0,1,2, ... as the key, and use it as the argument, say $arrA, and $arrB, $arrC = array_diff($arrA, $arrB); since the key are

[PHP] form and java ?

2001-11-03 Thread Teqila MAN
input type=checkbox name="Option1" value="440||014" " input type=checkbox name="Option2" value="340||015" " input type=checkbox name="Option3" value="240||016" " input type=checkbox name="Option4 that also includes product of code 014" value="440||000" I have the form (look at top) and i

[PHP] bcc

2001-11-03 Thread Nikola Karovi
hello, how can i send bcc from my php @mail script. regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] What to use when HTTP_REFERER is not set?

2001-11-03 Thread Pierre-Yves Lemaire
Hello, I need to put a small security feature in one of my page. The page is open as a popup from another web site. By checking the referer I tought I could block any other call to this page but the referer variable is often not set... What else could I do? ( no ssl so far is available for this

RE: [PHP] 2 Forms On 1 Page

2001-11-03 Thread Jeff Oien
On Saturday 03 November 2001 11:28 am, you wrote: If I have two forms on one page that both use the same script how do I get only the fields on one of the forms to be submitted? If that makes any sense. Jeff Oien as long as you enclose each form within it's own set of form.../form

Re: [PHP] bcc

2001-11-03 Thread Steve Werby
"Nikola Karovi" [EMAIL PROTECTED] wrote: how can i send bcc from my php @mail script. mail( $to, $subject, $message_body, "From: $from_name $from_address\nbcc:[EMAIL PROTECTED]" ); -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List

[PHP] Incoming mail to PHP as Apache module

2001-11-03 Thread Ross
Hi all Maybe I should be posting this on the Procmail list but someone here might have a non-Procmail solution. I'm trying to get a PHP script to process incoming email. The script will lookup a database and do something depending on the mail headers. I'm running on a FreeBSD virtual server

Re: [PHP] Incoming mail to PHP as Apache module

2001-11-03 Thread Kurt Lieber
On Saturday 03 November 2001 02:08 pm, Ross wrote: Maybe I should be posting this on the Procmail list but someone here might have a non-Procmail solution. I'm trying to get a PHP script to process incoming email. I'm sure it can be done with PHP, but my first thought was why would you want

[PHP] Number_Format Question

2001-11-03 Thread Jeff Oien
I have a number like this 0.51 and I would like it to display without the leading 0. How can I do this? Thanks. Jeff Oien -- 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

RE: [PHP] site last updated

2001-11-03 Thread Ryan Christensen
You can do this in a per-page basis w/: $modified = stat(yourfile.html); echo date(l, F dS,$modified[9]); (As with most things ;).. this can be found in the manual. Check @ php.net/stat for more info.. %Ryan -Original Message- From: oliver walkhoff [mailto:[EMAIL PROTECTED]]

[PHP] test

2001-11-03 Thread Chris Allen
php - php-gtk -- 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] Incoming mail to PHP as Apache module

2001-11-03 Thread DL Neil
Maybe I should be posting this on the Procmail list but someone here might have a non-Procmail solution. I'm trying to get a PHP script to process incoming email. The script will lookup a database and do something depending on the mail headers. I'm running on a FreeBSD virtual server account

[PHP] Re: Sendmail entry in PHP.ini

2001-11-03 Thread Yasuo Ohgaki
Jason Michael wrote: Does anyone know what the correct entry for the php.ini that allows you to to use sendmail in OSX 10.0.4 Server? Sendmail support is disabled when OS is Windows, it should be able to use sendmail support with Mac OSX. (It it work :) -- Yasuo Ohgaki -- PHP General

[PHP] multiple http authentication under one directory

2001-11-03 Thread Kal Amry
I have two private areas within each other. The parent folder has one and then another inner folder has another authentication or private area using http basic authentication for both of the above. The problem is that when I enter the password of the Parent directory, the password is set to

[PHP] Re: Questions per installing on linux (Php 4)

2001-11-03 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: Hello, and thanks for your time. First time... I saw a great resource on installing php on raq 3 (What I have, linux) http://marc.theaimsgroup.com/?l=php-generalm=98039640119670q=raw but the thing is I have mysql installed when I do am done downloading, it

Re: [PHP] passing variables between pages without using url??

2001-11-03 Thread sunny AT wde
Ok, but how do I use post when using Header?? I would like to have a form, but I don't know how I would make the script automatcially re-direct in a form... becase I know how to use form variables that way. But all I can think of is using header, yet that displays the variables as its like get

Re: [PHP] Questions per installing on linux (Php 4)

2001-11-03 Thread Steve Werby
[EMAIL PROTECTED] wrote: when I do am done downloading, it says to use: ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql --enable-track-vars --enable-trans-sid --enable-ftp Ok, but I have mysql. Should I remove the --with mysql ... If you want MySQL support in PHP you

php-general Digest 4 Nov 2001 04:57:36 -0000 Issue 974

2001-11-03 Thread php-general-digest-help
php-general Digest 4 Nov 2001 04:57:36 - Issue 974 Topics (messages 73343 through 73372): problem with copy($file,path) to up load a file 73343 by: banyWilson 73351 by: Jack Dempsey Re: Trouble with PNGs 73344 by: Daniel Reichenbach Re: How to use Clibpdf

Re: [PHP] Number_Format Question

2001-11-03 Thread Steve Werby
Jeff Oien [EMAIL PROTECTED] wrote: I have a number like this 0.51 and I would like it to display without the leading 0. How can I do this? Thanks. There are lots of solutions. $num = 0.51; $num_parts = explode( '.', $num ); $num_new = '.' . $num_parts[1]; Or if it's always going to be a

Re: [PHP] site last updated

2001-11-03 Thread Steve Werby
Ryan Christensen [EMAIL PROTECTED] wrote: You can do this in a per-page basis w/: $modified = stat(yourfile.html); echo date(l, F dS,$modified[9]); Also see getlastmod() and filemtime(). -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General

Re: [PHP] site last updated

2001-11-03 Thread Chip
On Saturday 03 November 2001 21:12, Steve Werby wrote: Ryan Christensen [EMAIL PROTECTED] wrote: You can do this in a per-page basis w/: $modified = stat(yourfile.html); echo date(l, F dS,$modified[9]); Also see getlastmod() and filemtime(). I am interested in this also. I understand

Re: [PHP] site last updated

2001-11-03 Thread speedboy
last modified ?php echo date(D d-m-Y H:i:s, filectime(__FILE__)); ? ^ I put that on the bottom of every page on some sites I make. -- 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

[PHP] filemtime() problems

2001-11-03 Thread Ventsyslav Vassilev
Hi, i have little problems while trying to retrieve the modification time for some files. The OS is Linux Red Hat 7.1 and i'm trying to get the modification time for a MySQL table (.MYD or .MYI file). In the beginning everything was OK and the filemtime() function worked without any problems. But

[PHP] why cant I: array_keys($arr)[0] ?

2001-11-03 Thread operator
Why does PHP give a parse error if you do: echo array_keys($arr)[0]; It makes you assign the result of the function to a var first like this: $arr = array_keys($arr); echo $arr[0]; I just want to grab the 1st element of the array. Why does it make you do it in 2 lines