[PHP] Passing many valaues to function
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: [EMAIL PROTECTED]
Re: [PHP] Passing many valaues to function
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 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: [EMAIL PROTECTED]
Re[2]: [PHP] Passing many valaues to function
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: 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 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: [EMAIL PROTECTED]
Re: Re[2]: [PHP] Passing many valaues to function
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($action==register){ $user-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 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: [EMAIL PROTECTED]
[PHP] Re: Passing many valaues to function
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_VARS $HTTP_SESSION_VARS $HTTP_SERVER_VARS This arrays store different types of varbles used during script's work. I never use this method to access to vars... so can't give 100% correct advice. just a way... read about using this arrays. Galkov Vladimir -- 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] Re: Questions about php.ini
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. One of the things I'd like to be able to set differently for each site is session expiration. Is there a way to do this without mucking around w/ php.ini? Thanks! Jen Jason Wood [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I host with iServer (now ViaVerio) and we dont have a php.ini file (that we can get to, anyways) either. I run phpinfo() and it says that the ini file is in /usr/local/lib but nuthin's there. What exactly do you want to use different ini files for anyways? -- Jason Wood Chief Technology Officer Expressive Tek, Inc. 407 Kehrs Mill Road Ballwin, MO 63011 Phone 636.256.1362 www.expressivetek.com Jennyw [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've signed up with a dedicated Web host that has PHP installed. The weird thing is that there is no php.ini anywhere. Is the file optional? Everything seems to be behaving okay. I have several Web sites that I'm setting up. Is it possible to use different php.ini files for each Web site? I'm using apache with mod-php. I see that PHP will search for php.ini in the working directory first. Does this mean that the way to accomplish what I want is to put a php.ini file in each directory that has .php files? It would be better if there was a way to have a php.ini file affect all files in a site, instead of putting php.ini files in all subdirectories of the site where there are .php files. Thanks! Jen -- 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 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] Trouble with PNGs
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://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] Sendmail entry in PHP.ini
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 administrators, e-mail: [EMAIL PROTECTED]
[PHP] passing variables between pages without using url??
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 to have the url on the next page looking like that because people might change the values, refresh the page and mess up my database. so is there any other ways i can pass values on?? thanks!! sunny __ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com -- 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] Re: passing variables between pages without using url??
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 ?
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 something similar ? Hi all Im working on a newsletter using php. Is there any way, other than using a cron job? Cuz, when i approach a my web host provider, how can i add a cron job to his system? how do other newsletter programs do this even when they are hosted at remote sites? Thanks in advance (Urgent plz) Regards Srinivasan Ranganathan ___ *NEW* Yahoo! Messenger for SMS. Now on your Cellforce phone*NEW* Visit http://in.mobile.yahoo.com/smsmgr_signin.html -- 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 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 ?
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 manually or schedule a program on another server with cron (or pc with scheduling program) to visit the page automatically. wget can be used to do this. Cuz, when i approach a my web host provider, how can i add a cron job to his system? If you have shell access and your user has privileges to add a cron entry then the program crontab can be used. man crontab for more info. If not, your hosting provider will have to do it for you, that is if the provider allows users to run cron jobs. how do other newsletter programs do this even when they are hosted at remote sites? Some people just use mailing list programs like majordomo, mailman, smarlist, etc. and send the newsletter out to the recipients manually... -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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] passing variables between pages without using url??
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 page looking like that because people might change the values, refresh the page and mess up my database. so is there any other ways i can pass values on?? Perhaps you should consider using the POST method instead of the GET method. Then the variables are not displayed in the query string. If you are passing across a series of pages, after the first page you'll want to add the variables you're going to pass to hidden input fields or use session variables which will make the variables available throughout the user's session or until you destroy the session. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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] Sessions Header PROBLEM again!
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 the session/cookies disabled Call First.php $count=1 Go to the Second.php, here $count would be always = 1 (but with session disabled $count stay not defined) Go to the Third.php == always $count=1 (but with session disabled $count stay not defined) Go to the First.php $count=2 (with session disabled $count is always =1) and go on 1) Ok is a writing mistake 2) I delete the hidden variable 'count' in the form, but the pb is not solved yet 3) The final php script has more fork I had to use header(Location...) 4) Yes!!! Is only a sample :-) 5) Deleted the hidden var Why with session enabled all is OK and with session disabled all is KO??? Bye bye Alessandro Steve Cayford wrote: Don't know offhand what the problem is, but a couple thoughts: 1. Why are you using session_name(mysession) instead of session_name('mysession')? 2. Assuming you have register_globals on, you're trying to pass $count both as a session variable and a post variable. One of these is going to get overwritten by the other if I'm not mistaken. 3. Why not have the page 1 form action point directly at page 2 instead of being redirected through page 1? Do posted variables follow a redirect? 4. If posted variables do follow a redirect then page 1 will see that $submit is set and redirect to page 2, which will redirect to page 3, which will redirect to page 1, etc... Can you get an infinite redirection loop? 5. The form on page 1 includes a hidden count variable, page 2 and page 3 don't. What happens when you run this? -Steve On Friday, November 2, 2001, at 08:49 AM, Alessandro BOSSI wrote: -- 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-general Digest 3 Nov 2001 16:19:17 -0000 Issue 973
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 Database and list in Columns 73325 by: Kacey A. Murphy header() and session issues... 73326 by: ahmad k. varoqua How one can calculate CRC of file on php ? 73327 by: ArsenKirillov PHP RPM BUILD ERROR - Help! 73328 by: Kal Amry Passing many valaues to function 73329 by: Daniel Harik 73330 by: Jason Brooke 73331 by: Daniel Harik 73332 by: Liz Fulghum 7 by: Galkov Vladimir Re: Questions about php.ini 73334 by: DL Neil Trouble with PNGs 73335 by: Daniel Reichenbach Sendmail entry in PHP.ini 73336 by: Michael, Jason passing variables between pages without using url?? 73337 by: sunny AT wde 73338 by: Galkov Vladimir 73341 by: Steve Werby Re: Sessions Header PROBLEM again! 73342 by: Alessandro BOSSI Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- Hi, Try out this class: http://www.websapp.com/classes/LineRemover/ --Daniel -Original Message- From: HEW Staff [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 9:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Deleting Array elements I'm looking for some code that will enable me to remove a line from a file. I have .htaccess which is being filled by a subscription processor, I need to know how to remove a user from this file once the subscription has either been cancelled or subscription term complete. Any help appreciated. Thanks Jonno -- 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] Hi all Im working on a newsletter using php. Is there any way, other than using a cron job? Cuz, when i approach a my web host provider, how can i add a cron job to his system? how do other newsletter programs do this even when they are hosted at remote sites? Thanks in advance (Urgent plz) Regards Srinivasan Ranganathan ___ *NEW* Yahoo! Messenger for SMS. Now on your Cellforce phone*NEW* Visit http://in.mobile.yahoo.com/smsmgr_signin.html 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 something similar ? Hi all Im working on a newsletter using php. Is there any way, other than using a cron job? Cuz, when i approach a my web host provider, how can i add a cron job to his system? how do other newsletter programs do this even when they are hosted at remote sites? Thanks in advance (Urgent plz) Regards Srinivasan Ranganathan ___ *NEW* Yahoo! Messenger for SMS. Now on your Cellforce phone*NEW* Visit http://in.mobile.yahoo.com/smsmgr_signin.html -- 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] 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 manually or schedule a program on another server with cron (or pc with scheduling program) to visit the page automatically. wget can be used to do this. Cuz, when i approach a my web host provider, how can i add a cron job to his system? If you have shell access and your user has privileges to add a cron entry then the program crontab can be used. man crontab for more info. If not, your hosting provider will have to do it for you, that is if the provider allows users to run cron jobs. how do other newsletter programs do this even when they are hosted at remote sites? Some people just use mailing list programs like majordomo, mailman, smarlist, etc. and send the newsletter out to the recipients manually... -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ This is the repeat code using Dreamweaver and not understand PHP
[PHP] problem with copy($file,path) to up load a file
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 list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Trouble with PNGs
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. The sample i use can be viewed at: http://195.127.171.50/php/testimages.php First picture is PNG, second is JPEG. On both i tried to write using the windows arial.ttf font. Source is available at: http://195.127.171.50/php/gd_image_inc.phps What the %%/ is going in here? Can anyone please help me? This makes me go crazy. Daniel -- 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] Re: How to use Clibpdf
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 doesn't seem to be a .so library. So when I say in php.ini to load the extension, it give me an error. Ciao __ Abbonati a Yahoo! ADSL con Atlanet! Naviga su Internet ad alta velocità, e senza limiti di tempo! Avrai sempre il telefono libero e non dovrai pagare il traffico telefonico per collegarti a Internet. Per saperne di più vai alla pagina http://adsl.yahoo.it -- 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] Running 1 more script inside
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 PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] site last updated
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Running 1 more script inside
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 work as one program but realy be different files? Galkov Vladimir [EMAIL PROTECTED] ICQ 84873967 Daniel Harik [EMAIL PROTECTED] ïèøåò â ñîîáùåíèè:[EMAIL PROTECTED] 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 PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] 2 Forms On 1 Page
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 PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] 2 Forms On 1 Page
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 make sure the submit button for each form is within those tags, it should only submit one form at a time. (also make sure that you don't assign the same name= parameter to both forms) --kurt -- 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] problem with copy($file,path) to up load a file
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 PROTECTED] Subject: [PHP] problem with copy($file,path) to up load a file 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 list administrators, e-mail: [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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Running 1 more script inside
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Mail and mime and attachments
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... If something is not done VERY, VERY shortly, FAQS.org will have to be shutdown. FAQS.org has lost its funding and I cannot personally pay for the bandwidth needed to keep it operational. The care and feeding is not a problem, paying for the bandwidth is. I will shortly have none unless you can help If you can, take a look at www.faqs.org and see if there is anything you can do. -Jason Garber IonZoft.com At 12:30 AM 11/3/2001 +0100, you wrote: Hi, I've read all docs on how to send multiple attachments with mime headers... But all I get is the headers in plain text in the resulting e-mail! No attachments at all! Could anyone give me short working example please... Thanks, Simon. -- 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 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] Mail and mime and attachments
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 read. Also, there's a class here: http://www.phpguru.org/ that will handle mime mail for you. -- Richard Heyes -- 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] problem with function array_* that preserved the key
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 preserved, arrC is no longer indexed from 0. Well, in most cases I don't care about the key if it's just indexed array. But since the key I preserved, I can no longer do for($i=0; $icount($arrC);$i++) echo $arrC[$i]; if it happens that the returned indedex in array C 19, 20,25, for example. Any workaround? Thanks. Reuben D. Budiardja -- 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 ?
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 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("br[$wartosc[0] dolars "); print("code :$wartosc[1] ]"); } But now i want to make that if someone checks the "Option4 that also include s product of code 014" and Option1 ... the form will say sorry you have choo sen 014 already by choosing Option4. The javascript without sending the form someone knows the solution... Big thanks even for reading this :) TEqilaman -- 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] bcc
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?
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 :( ) Any advice, tutorial or doc on the subject would be helpful. thanks, py
RE: [PHP] 2 Forms On 1 Page
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 make sure the submit button for each form is within those tags, it should only submit one form at a time. (also make sure that you don't assign the same name= parameter to both forms) --kurt I was missing a closing /form tag in there. Thanks for letting me know it should work, that helped me figure it out. 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] bcc
"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 (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] Incoming mail to PHP as Apache module
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 account with sendmail as the mta. I've searched the archives and read numerous discussions about this but I'm not quite sure what my best option is. Most suggestions say to use aliases or Procmail to pipe to PHP running in cgi mode. I'm trying to avoid that because I have PHP running very nicely as an Apache module and disk space is at a premium so I don't want to waste another 4 Mb or so on the cgi executable. Another idea is to send the mail to a pop mailbox and use PHP to poll the mailbox every five minutes or so. I can hit a PHP script from cron using wget. I'm not really thrilled with the idea of polling and the delay could put some users off. It seems that I could do with a way of writing a message to a unique file and then calling the PHP script with wget. The script can then read the file. I almost have this working with Procmail by using a maildir type mailbox but its back to front, I can only call PHP before the message is written to the file because Procmail stops once it is 'delivered'. I'd appreciate any suggestions or ideas. Thanks Ross __ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com -- 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
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 to? Is there a specific reason you want/have to use PHP for this particular project? PHP is a great web scripting language, but it's not designed as an incoming mail processing tool, so it likely won't do as good of a job as procmail or other similar tools that are written expressly for mail processing. It seems that I could do with a way of writing a message to a unique file and then calling the PHP script with wget. The script can then read the file. I almost have this working with Procmail by using a maildir type mailbox but its back to front, I can only call PHP before the message is written to the file because Procmail stops once it is 'delivered'. If you're looking for something that can look up data in a database and manipulate message headers based on the return data, then I'd say Perl is a better option since it will provide a better blend of powerful text processing with web and database enablement. Specifically, the Mail::Audit perl module available (for free) at CPAN.org. It's intended as a procmail replacement, but with easier syntax and is written in Perl, so you can easily modifiy it to hook into a database. (If you're just playing around with PHP, trying to see what you can do with it, then by all means, give it a whirl and let us all know how it turns out. If not, then hopefully mail::audit or something similar might help you out.) --kurt -- 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] Number_Format Question
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 administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] site last updated
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]] Sent: Saturday, November 03, 2001 10:26 AM To: [EMAIL PROTECTED] Subject: [PHP] site last updated 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [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 administrators, e-mail: [EMAIL PROTECTED]
[PHP] test
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
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 with sendmail as the mta. I've searched the archives and read numerous discussions about this but I'm not quite sure what my best option is. Most suggestions say to use aliases or Procmail to pipe to PHP running in cgi mode. I'm trying to avoid that because I have PHP running very nicely as an Apache module and disk space is at a premium so I don't want to waste another 4 Mb or so on the cgi executable. ... I'd appreciate any suggestions or ideas. Ross, Following your comments about HDD space, would the PHP-IMAP functions be any use? Annotated manual: XXXVII. IMAP, POP3 and NNTP functions =dn -- 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] Re: Sendmail entry in PHP.ini
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 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] multiple http authentication under one directory
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 SOMETHING - Then when I try to authenticate against the inner folder, I set $PHP_AUTH_PW but now, I get the password dialogue again trying to authenticate me against the parent directory. Thus, if I enter the Parent directory password, and then try accessing that inner folder again, I will have to enter the password for that inner directory which is in the Parent directory - And when I do that, a password dialogue pops up again trying to authenticate me on the Parent directory, and so on!! One solution is to use the same username password for the Parent directory and inner directory. However, I want to use different passwords and user names on those directories!! Any solutions! -- 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] Re: Questions per installing on linux (Php 4)
[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 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 ... Depends, use which ever works better for you. and to have GD support, do I need a 'with gd ...' if so, what would that be? (I thought it was included) Read manual and do ./configure --help for this Or if I install postgres. Should I do that first? Yes. You need libpq and headers. Do I need *Specific* syntax for postgres, such as --with-mysql=/usr/... If you install postgres to default locations, it's not required. -- Yasuo Ohgaki -- 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] passing variables between pages without using url??
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 :( /sunny --- Steve Werby [EMAIL PROTECTED] wrote: 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 page looking like that because people might change the values, refresh the page and mess up my database. so is there any other ways i can pass values on?? Perhaps you should consider using the POST method instead of the GET method. Then the variables are not displayed in the query string. If you are passing across a series of pages, after the first page you'll want to add the variables you're going to pass to hidden input fields or use session variables which will make the variables available throughout the user's session or until you destroy the session. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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] __ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com -- 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] Questions per installing on linux (Php 4)
[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 *must* include the --with-mysql option. If you don't specify the location of the MySQL library files (the part after the =) then PHP will use its built-in libraries which is fine on the RaQ3. and to have GD support, do I need a 'with gd ...' if so, what would that be? (I thought it was included) Yes, include --with-gd. --with-gd=/usr should do it. I don't recall what version of GD is on the RaQ3 by default so you may want to check and if it's old you may want to consider upgrading before installing PHP. Or if I install postgres. Should I do that first? Do I need *Specific* syntax for postgres, such as --with-mysql=/usr/... Yes, you should install PostgreSQL before installing PHP. I recommend searching the list archives for cobalt-users. You can find them at the AIMS Group archive site, same site you referenced in your post. It might be a better idea to ask about the PHP install on cobalt-users (go to www.cobalt.com to subscribe, after searching the archives of course) since everyone on that list is running RaQ systems, while my guess is that only a fraction of the people on this list are. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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-general Digest 4 Nov 2001 04:57:36 -0000 Issue 974
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 73345 by: Justin Garrett Running 1 more script inside 73346 by: Daniel Harik 73348 by: Galkov Vladimir 73352 by: Daniel Harik site last updated 73347 by: oliver walkhoff 73365 by: Ryan Christensen 2 Forms On 1 Page 73349 by: Jeff Oien 73350 by: Kurt Lieber 73359 by: Jeff Oien Re: Mail and mime and attachments 73353 by: Jason G. 73354 by: Richard Heyes problem with function array_* that preserved the key 73355 by: Reuben D Budiardja form and java ? 73356 by: Teqila MAN bcc 73357 by: Nikola Karoviæ 73360 by: Steve Werby What to use when HTTP_REFERER is not set? 73358 by: Pierre-Yves Lemaire Incoming mail to PHP as Apache module 73361 by: Ross 73363 by: Kurt Lieber 73367 by: DL Neil Questions per installing on linux (Php 4) 73362 by: Joelmon2001.aol.com 73370 by: Yasuo Ohgaki 73372 by: Steve Werby Number_Format Question 73364 by: Jeff Oien test 73366 by: Chris Allen Re: Sendmail entry in PHP.ini 73368 by: Yasuo Ohgaki multiple http authentication under one directory 73369 by: Kal Amry Re: passing variables between pages without using url?? 73371 by: sunny AT wde Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- 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!! 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 PROTECTED] Subject: [PHP] problem with copy($file,path) to up load a file 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 list administrators, e-mail: [EMAIL PROTECTED] 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. The sample i use can be viewed at: http://195.127.171.50/php/testimages.php First picture is PNG, second is JPEG. On both i tried to write using the windows arial.ttf font. Source is available at: http://195.127.171.50/php/gd_image_inc.phps What the %%/ is going in here? Can anyone please help me? This makes me go crazy. Daniel 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 doesn't seem to be a .so library. So when I say in php.ini to load the extension, it give me an error. Ciao __ Abbonati a Yahoo! ADSL con Atlanet! Naviga su Internet ad alta velocità, e senza limiti di tempo! Avrai sempre il telefono libero e non dovrai pagare il traffico telefonico per collegarti a Internet. Per saperne di più vai alla pagina http://adsl.yahoo.it 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 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 work as one program but realy be different files? Galkov Vladimir [EMAIL PROTECTED] ICQ 84873967 Daniel Harik [EMAIL PROTECTED] ïèøåò â ñîîáùåíèè:[EMAIL PROTECTED] 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()
Re: [PHP] Number_Format Question
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 number b/w 0 and 1 then you could use substr() to get the part you want. You could also use something like ereg_replace(). Someone else may have a solution that's better. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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
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 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
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 the way it is working here, but what about using a common footer.inc which contains the last modified script, to show the last modified date of another inc file, body.inc, inside page.php? This would have to know the body.inc file name loaded into page.php I guess. That'd sure be easier than adding the script to several hundred seperate pages. -- Chip W. -- 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
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 administrators, e-mail: [EMAIL PROTECTED]
[PHP] filemtime() problems
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 2 days ago my database was damaged and i was created it from the beginning. After that filemtime() reports 01.01.1970 02:00:00 for any file into this database and works correct for any other file in the filesystem. May be it will be important to note that i have removed the database by simply deleting the database folder, because DROP DATABASE command not worked with this database. I'm absolutely new to Linux and surely doing some things wrong... What is the reason / solution? -- 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] why cant I: array_keys($arr)[0] ?
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 instead of letting you index right on the array that results from the function? A -- 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]