[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 instea

[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

Re: [PHP] site last updated

2001-11-03 Thread speedboy
last modified ^ 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 administrators, e-mail: [EMAIL PROTECTED]

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 a

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

2001-11-03 Thread Steve Werby
"sunny AT wde" <[EMAIL PROTECTED]> wrote: > Ok, but how do I use post when using Header?? You don't. What are you trying to achieve that makes this necessary? > 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

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/ -- PH

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

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 7

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

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 :

[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-general&m=98039640119670&q=raw > > but the thing is I have mysql installed > > when I do am done downloadin

[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 SOME

[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 Ma

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 acc

[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] 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] 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 administrat

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 w

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

2001-11-03 Thread Joelmon2001
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-general&m=98039640119670&q=raw but the thing is I have mysql installed when I do am done downloading, it says to use: ./configure --with-apxs

[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 accou

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

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 ... ta

[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 :

[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] form and java ?

2001-11-03 Thread Teqila MAN
I have the form (look at top) and i send valuesnormaly i had this code (440||014 ... 1st value is prize and second code) while (list ($name, $value, $kod_prod) = each($HTTP_POST_VARS)) { $wartosc = explode("||", $value); print("$name"); print("[$wartosc[0] dolars "); print("code :$war

[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 pres

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 bet

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 TIME

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] 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: [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 ... tags and make s

[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 P

[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] 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 uns

[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] 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

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 work

[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 the

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 Dat

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 has

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=4&user=foo";); > > now i really don't want to have the url on t

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 ru

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

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

2001-11-03 Thread Galkov Vladimir
may be you find accepteble usint ??? -- 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] 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=4&user=foo";); now i really don't want

[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 admin

[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 (http:/

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

[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 $HTTP_ENV_V

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; > if($ac

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

2001-11-03 Thread Daniel Harik
I have following code vallidateForm($HTTP_POST_VARS); }else{ $user->displayForm(); } Why i try to run it i get error Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache group\apache\htdocs\cms\member.php on line 235 Thank you very muc

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 b

[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, e-mail: