RE: [PHP] Group by YEAR in date

2002-10-29 Thread Faisal Abdullah
Thanks guys. It worked. Regards, Faisal > -Original Message- > From: 1LT John W. Holmes [mailto:holmes072000@;charter.net] > Sent: Monday, October 28, 2002 10:17 PM > To: Faisal Abdullah; [EMAIL PROTECTED] > Subject: Re: [PHP] Group by YEAR in date > > > > I have a table (postgres), wit

Re: [PHP] Passing the variables ...

2002-10-29 Thread Krzysztof Dziekiewicz
> [snip] >> I tried using echo($_GET['$textbox']) instead of printf statement in >> hello.php.. > [/snip] > Try $_POST['textbox'] instead. (You were using "method=post".) ... or $HTTP_POST_VARS['textbox'] -- Krzysztof Dziekiewicz -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] File upload problem...

2002-10-29 Thread David Russell
Hi all, I have a form with a file upload section. The target script contains the following: if (is_uploaded_file($_FILES['newuserfile']['tmp_name'])) { AddAttachment($BPFNo, $newuserfile, $newuserfile_name, $newuserfile_size, $newuserfile_type); } AddAttachment() is an included fu

[PHP] public_html and httpd.conf

2002-10-29 Thread Mukta Telang
Hi, All the (php) files that I create under public_html directory are visible to all users...is there anything like "private_html" where I could test my code and it will not be visible to all except me?! I am using php in solaris... mukta -- PHP General Mailing List (http://www.php

Re: [PHP] Passing the variables ...

2002-10-29 Thread Chris Hewitt
Mukta Telang wrote: I tried using echo($_GET['$textbox']) instead of printf statement in As the name of your textbox is "textbox" not "$textbox", use $_GET['textbox'] instead. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making string upper/lowercase with regex?

2002-10-29 Thread Erwin
Leif K-Brooks wrote: > I need a way to make a string be replaced with its uppercase version > using ereg_replace. Any ideas? > Chris Shiflett wrote: > >> Why must you use ereg_replace? >> >> Does your question mean that you, for whatever reason, cannot use >> strtoupper() instead? >> >> Leif K-

[PHP] help/sesssssions !

2002-10-29 Thread Shaun
Hi , I`m making a website where users login. After the login is successfull, the session starts, and keeps the username and password in a PHPSESSID cookie. Question: When the user leaves the sercure.php(page after login) page (to go to another page like another website or to a home page link) ,

[PHP] $_FILES['userfile']['error'] is always 0 ! Why ???

2002-10-29 Thread Jorge . Manuel . Silva
Hi, I'm doing HTTP file upload but I'm having a problem where "$_FILES ['userfile']['error']" is always 0. Even if I press the stop button or close the broser window where the upload is occuring it's always 0. This results in truncated files. Why ? What could be happening ? Is there any other wa

[PHP] problem loading extension

2002-10-29 Thread Simon Taylor
Hi All, I have just been trying to add some more extensions to my site, I have copied the dll's for the extensions I wish to add to my extensions dir and uncommented them in my php.ini. This worked fine for all of them which include ctype, gd etc. , except for the xslt extension which will just not

Re: [PHP] fread & EOF

2002-10-29 Thread Marek Kilimajer
Would not be closing the conection in the perl script enough? Martin Adler wrote: Hi, this php-script should read from a server (that i've written in perl) until it receives the EOF signal. My server sends the EOF-signal by print $client "\n\004"; # \004 = EOF to my script but fread would

Re: [PHP] File upload problem...

2002-10-29 Thread Marek Kilimajer
Try print_r($_FILES) and see if you really get what you should. And also check if you have your form set as David Russell wrote: Hi all, I have a form with a file upload section. The target script contains the following: if (is_uploaded_file($_FILES['newuserfile']['tmp_name'])) { Ad

Re: [PHP] public_html and httpd.conf

2002-10-29 Thread Marek Kilimajer
You can use .htaccess file to restrict access to a directory (if you are allowed to do it). And about as much safe and much simpler is to make a secret directory that noone knows about. Mukta Telang wrote: Hi, All the (php) files that I create under public_html directory are visible to all user

Re: [PHP] problem loading extension

2002-10-29 Thread Marek Kilimajer
don't know much about windows, but isn't the problem in the "./" part? Can you remove it? Simon Taylor wrote: Hi All, I have just been trying to add some more extensions to my site, I have copied the dll's for the extensions I wish to add to my extensions dir and uncommented them in my php.ini.

[PHP] expire

2002-10-29 Thread Shaun
hi, i asked this before , but how do i end a session when a person changes from my secure site to another site. eg.MY page is secure.php(you have to login to get here) what is the user types in www.php.net at url, then the session will still go on , by i want it to end ! Thanx ,shaun -- PHP

[PHP] find html links..

2002-10-29 Thread Baroiller Pierre-Emmanuel
Hi... I'm looking for a preg_match regular expression to find all href tags into a text field... can someone help me?? I've tried a lot of regexp but... nothing work correctly... I can't get all matching href ( such as or < a href="xx"> , ... ) any idea? cheers.. P.E -- PHP General Mailing

[PHP] Another question

2002-10-29 Thread Trasca Ion-Catalin
If I have a page with frames, how can I get the title of the frameset to be the title of the main frame? I want this title to change every time the visitor change the page. Any help? -- Trasca Ion-Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] standardization across apps?

2002-10-29 Thread Alister
On Tue, 29 Oct 2002 00:14:06 -0500 taylor <[EMAIL PROTECTED]> wrote: > i might be crazy, but why don't the many CMS, forum, link directory, > etc packages integrate with a unified user manager? > is this possible? is there perhaps an xml standard for contact > datatypes that could be used? The

[PHP] Re: Another question

2002-10-29 Thread Erwin
Trasca Ion-Catalin wrote: > If I have a page with frames, how can I get the title of the frameset > to be the title of the main frame? I want this title to change every > time the visitor change the page. > Any help? That doesn't have anything to do with PHP, but... you can use JavaScript, someth

Re: [PHP] expire

2002-10-29 Thread Marek Kilimajer
You may session_destroy() on other pages you have control of, but there is no way of finding out that the user has left your page and then came back (maybe you can play with onunload body tag, but it will be a pain for you to implement and also for the user). Alse check *session_set_cookie_para

Re: [PHP] Plus sign changing to space in html form

2002-10-29 Thread Stan
I dont know how to see the http request. tcpdump on FreeBSD requires read access to /dev/bpf0 which i dont have. Different browsers works the same. >"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:3DBDE88B.7010009@;shiflett.org... > This is true, but the + itself should also be encoded

RE: [PHP] Array Question

2002-10-29 Thread Ford, Mike [LSS]
> -Original Message- > From: PHP List [mailto:php_list@;ibcnetwork.net] > Sent: 28 October 2002 22:48 > To: php > Subject: [PHP] Array Question > > > Hi, > Lets say I have a simple array like this: > $myarray = array("a"=>"b","d"=>"c"); > > echo $myarray[0] will return 'b'; > > How can

[PHP] back and forward through a result query

2002-10-29 Thread Petre Agenbag
Hi I need to do the following, and have a slight idea of how to do it, but I'm not sure... I want to do a "select id from table where something = "whatever" ", then I will display all the "hits" from that query as links to a "display" page, sending along the id's of the row. On that next page, I

Re: [PHP] back and forward through a result query

2002-10-29 Thread Petre Agenbag
PS, also, I would need to know and handle the beginning and end of that array, ie, if there isn't a next or previous, I wouldn't want to display a next or forward button, or maybe disable it... Thanks On Tue, 2002-10-29 at 14:06, Petre Agenbag wrote: > Hi > I need to do the following, and have a

[PHP] ImageCreateTrueColor background always gets black and JPEG vs. PNG color difference

2002-10-29 Thread Wouter de Jong
Hi, Could anyone tell why my background colors with ImageCreateTrueColor() are becoming black ? I use the following script: If I use ImageCreate(), the color becomes yellow as expected. This is with GD 2.0.4 (conf-opts: http://s003.widexs.nl/phpinfo.php) Any help appreciated :) Another ques

Re: [PHP] ImageCreateTrueColor background always gets black and JPEG vs. PNG color difference

2002-10-29 Thread jla21
>From the gd manual at boutell.com: Truecolor images are always filled with black at creation time. There is no concept of a "background" color index. I suppose you'll have to use a function like imagefill to get your yellow background. -Josh On Tue, 29 Oct 2002, Wouter de Jong wrote: > Hi,

Re: [PHP] problem loading extension

2002-10-29 Thread Frank W.
there should be something like: extension_dir = "C:\PHP\extensions" in your php.ini Simon Taylor wrote: > Hi All, > I have just been trying to add some more extensions to my site, I have > copied the dll's for the extensions I wish to add to my extensions dir and > uncommented them in my php

Re: [PHP] ImageCreateTrueColor background always gets black and JPEG vs. PNG color difference

2002-10-29 Thread Wouter de Jong
On Tue, Oct 29, 2002 at 07:51:21AM -0500, [EMAIL PROTECTED] wrote: > >From the gd manual at boutell.com: Hmm, that was one place I didn't look at :( *stupid* > Truecolor images are always filled with black at creation time. There is > no concept of a "background" color index. > > I suppose you'

Re: [PHP] Plus sign changing to space in html form

2002-10-29 Thread Stan
When i enter 1%2B1%3D2 to the input form and submit, the result is 1+1=2 It looks like the http request received by php is not "application/x-www-form-urlencoded" but php thinks that it is. I dont know what to think about that. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:3DBDE88B.7

Re: [PHP] Array Question

2002-10-29 Thread Brent Baisley
Perhaps you want to look at array_keys(). On Monday, October 28, 2002, at 05:48 PM, PHP List wrote: How can I get the name of the index? -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 --

[PHP] Problems getting error values in FILES superglobal.

2002-10-29 Thread Jorge . Manuel . Silva
I'm resending this because I don't see the message in the "archive". Sorry if you're getting the message for the second time. Jorge. - Forwarded by Jorge Manuel Silva/doi/ep/bportugal on 29-10-2002 13:23 -

[PHP] Multiple paths in safe_mode_exec_dir ?

2002-10-29 Thread Andreas Nordvall
Hi, Is there any good reason why one is not able to use a colon separated path, in safe_mode_exec_dir, in a similar fashion to the include_path and safe_mode_include_dir directives? Can the problem be solved in any other way than duplicated executables or ugly symlinks? -- Best regards Andrea

Re: [PHP] back and forward through a result query

2002-10-29 Thread Rick Emery
This is a common requirement; check the archives and/or php.net, phpbuilder, etc. What you will do is use mysql's LIMIT parameter on your select; go to mysql.com to read about it. Lets assume you wish to display 20 lines per page; assume you use a pointer, $ptr, to determine where you are in a sea

Re: [PHP] back and forward through a result query

2002-10-29 Thread Petre Agenbag
Rick, thanks, I will check the lists, but I'm not sure that will resolve my problem, I don't want to limit the display in the initial result set, I want to have a page that lists ALL the hits above each other, and it's only once you click through to the next page that I want to start "walking" th

[PHP] Yet another question

2002-10-29 Thread Trasca Ion-Catalin
It's posible to call a variable from another file? -- Trasca Ion-Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Flash and PHP?

2002-10-29 Thread Neil
Does anyone use this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Framed Redirect

2002-10-29 Thread Martin Wright
I'm new to PHP :( Can someone either give me a hint on how to achieve a framed redirect or point me somewhere where someone does? I have looked around at the obvious (?, well to me!) sites and drawn a blank. I've found how to do it in Vbscript - but that's neither what I need or am headed :) --

Re: [PHP] Flash and PHP?

2002-10-29 Thread John Wards
On Tuesday 29 Oct 2002 2:06 pm, Neil wrote: > Does anyone use this? Yes next question.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] counting clicks on a flash ad

2002-10-29 Thread Ben-Nes Yonatan
Hi all! in the current site that im building there are flash banners for advertisment. now the owner of the site want to know how many times a banner got clicked and viewed. here i got a problem... the flash banners direct to another sites (changing all the time) and i cant figure out a way to t

Re: [PHP] Framed Redirect

2002-10-29 Thread Adam Voigt
What do you mean framed redirect? If you mean make frame go to a different url, just use javascript. If you mean make a link target a frame, just use target= in the a href. On Tue, 2002-10-29 at 09:11, Martin Wright wrote: > I'm new to PHP :( > > Can someone either give me a hint on how to achiev

Re: [PHP] public_html and httpd.conf

2002-10-29 Thread John Nichel
.htaccess http://httpd.apache.org Mukta Telang wrote: Hi, All the (php) files that I create under public_html directory are visible to all users...is there anything like "private_html" where I could test my code and it will not be visible to all except me?! I am using php in solaris... mukta

Fw: [PHP] Yet another question

2002-10-29 Thread Rick Emery
Store it in a session variable or a cookie. - Original Message - From: "Trasca Ion-Catalin" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, October 29, 2002 8:05 AM Subject: [PHP] Yet another question It's posible to call a variable from another file? -- Trasca Ion-Catalin -- PHP General

[PHP] Re: counting clicks on a flash ad

2002-10-29 Thread Joel Boonstra
On Tue, 29 Oct 2002, Ben-Nes Yonatan wrote: > does anyone know a way to count those clicks? > or just got a link to a site which explain alittle? You might try using software like phpAdsNew: http://www.phpadsnew.com/ It has a fantastic admin interface for you and for the advertiser, it suppor

[PHP] php form mail - checkbox problem

2002-10-29 Thread Tine
Greetings, Forgive my newbism here, but I am having a hard time recieving check(box)ed items from a form sent to e-mail using PHP. The code is as follows: //Routine for checkboxes $MailBody .="Type medlemskap : "; $items = 2; //initiate possible # of items for ($i = 1; $i <= $items; $i+

Fw: [PHP] php form mail - checkbox problem

2002-10-29 Thread Rick Emery
What is $medlemskap[]??? You MUST refer to item_1[]. Also, I believe you REALLY meant that all values be accessed through an array; therefore the "name=" parameter in your HTML must all be the SAME name: hovedmedlemskap [200 kr.] 2 eller flere i samme husholdning [100 kr.] - Original Me

[PHP] strtotime no longer accepting many dates?

2002-10-29 Thread David
I recently upgraded my system, and all of a sudden strtotime won't handle a date/time prior to the unix start microtime.. For example echo strtotime("1965-01-01"); returns a -1 (e.i. invalid date/time format). According to the PHP4 docs: Note: The valid range of a timestamp is typically from Fri,

Re: [PHP] php form mail - checkbox problem

2002-10-29 Thread Tine
"Rick Emery" <[EMAIL PROTECTED]> wrote in message news:03f901c27f5a$2bab0e50$0500a8c0@;honeybee... > What is $medlemskap[]??? ? I just modified it from the default code: //Routine for checkboxes $MailBody .="Question 8 : "; $items = 3; //initiate possible # of items for ($i = 1; $i

Re: [PHP] public_html and httpd.conf

2002-10-29 Thread Maxim Maletsky
password-protect it :) it is not PHP question -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 Mukta Telang <[EMAIL PROTECTED]>

Re: [PHP] ImageCreateTrueColor background always gets black and JPEGvs. PNG color difference

2002-10-29 Thread Rasmus Lerdorf
You have to fill in the background yourself with an ImageRectangle call. For truecolor images the first colour allocated is no longer the default background colour. -Rasmus On Tue, 29 Oct 2002, Wouter de Jong wrote: > Hi, > > Could anyone tell why my background colors with > ImageCreateTrueColor

Re: [PHP] Passing the variables ...

2002-10-29 Thread Maxim Maletsky
Ever since PHP 4.2.0 (in PHP v4.1.0 it was not default yet) you need to access the value in variable $textbox via $_POST variable: printf("hello %s!",$_POST['textbox']); -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish

[PHP] Re: Flash and PHP?

2002-10-29 Thread Joseph Szobody
http://www.macromedia.com/desdev/mx/flash/articles/flashmx_php.html http://www.phpbuilder.com/columns/hill20011214.php3 "Neil" <[EMAIL PROTECTED]> wrote in message news:20021029140955.29707.qmail@;pb1.pair.com... > Does anyone use this? > > -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Flash and PHP?

2002-10-29 Thread Maxim Maletsky
In thousands. -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 "Neil" <[EMAIL PROTECTED]> wrote... : > Does anyone use this? > >

[PHP] Select values in an array???

2002-10-29 Thread Craig
I am trying to pass the values of a select box which can have more than one value to a page. In the address bar of the page i have sent to, I have select=item1&select=item2select=item3&select=item4select=item5&select=item6 on the page i have echo $select but only the last item (item6) is being d

Fw: [PHP] php form mail - checkbox problem

2002-10-29 Thread Rick Emery
Please don't answer with "Tried that" without showing us your new HTML and code Show us the new code. - Original Message - From: "Tine" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, October 29, 2002 9:12 AM Subject: Re: [PHP] php form mail - checkbox problem "Rick Emery" <[EMAIL PROTECTED]

Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
Change the name of your select field to "select[]" Craig wrote: I am trying to pass the values of a select box which can have more than one value to a page. In the address bar of the page i have sent to, I have select=item1&select=item2select=item3&select=item4select=item5&select=item6 on the

Fw: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
Where are the selected values coming from? Please provide more details and code...we cannot read your mind... - Original Message - From: "Craig" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, October 29, 2002 9:19 AM Subject: [PHP] Select values in an array??? I am trying to pass the values

Re: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
You don't even need the word "multiple" - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Craig" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 29, 2002 9:27 AM Subject: Re: [PHP] Select values in an array??? Change the name of your select field to "se

Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
You do if you want to select multiple values from a select element. Otherwise, you can only select one. Rick Emery wrote: You don't even need the word "multiple" - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Craig" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tue

Re: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
I've used it without "multiple" many times - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Rick Emery" <[EMAIL PROTECTED]> Cc: "Craig" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, October 29, 2002 9:33 AM Subject: Re: [PHP] Select values in an array??? You do

Re: [PHP] Select values in an array???

2002-10-29 Thread Craig
I have changed the select to slect[] but the next page displays array how do i display each individual select item in a list ie you have selected item2 item4 item5 . . . . "Rick Emery" <[EMAIL PROTECTED]> wrote in message news:05e401c27f60$52399a90$0500a8c0@;honeybee... > I've used it without

Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
http://www.php.net/manual/en/ref.array.php Craig wrote: I have changed the select to slect[] but the next page displays array how do i display each individual select item in a list ie you have selected item2 item4 item5 . . . . "Rick Emery" <[EMAIL PROTECTED]> wrote in message news:05e401c2

Fw: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
foreach(array_expression as $value) statement foreach(array_expression as $key => $value) statement - Original Message - From: "Craig" <[EMAIL PROTECTED]> To: <> Sent: Tuesday, October 29, 2002 9:36 AM Subject: Re: [PHP] Select values in an array??? I have changed the select to slect[] b

Re: [PHP] Select values in an array???

2002-10-29 Thread @ Edwin
Hello, "Rick Emery" <[EMAIL PROTECTED]> wrote: [snip] > I've used it without "multiple" many times [/snip] Of course. But, John was correct--you can only choose one. UNLESS you use "multiple", you won't be able to select multiple values ;) What seems to be the problem here... html? :) - E --

[PHP] Re: Flash and PHP?

2002-10-29 Thread Neil
Thanks for the links, what I'm looking for is a simple form that communicates with a .php file on IIS 5 and then emails back to a e-mail address. Any help? (I have created the form with variables just need help with the .php) Thanks again "Joseph Szobody" <[EMAIL PROTECTED]> wrote in message ne

Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
Then you were not able to select multiple values. If you don't include the "multiple", it will only allow you to select one value. Rick Emery wrote: I've used it without "multiple" many times - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Rick Emery" <[EMAIL PROTECTED

RE: [PHP] Re: Flash and PHP?

2002-10-29 Thread Jay Blanchard
[snip] Thanks for the links, what I'm looking for is a simple form that communicates with a .php file on IIS 5 and then emails back to a e-mail address. Any help? (I have created the form with variables just need help with the .php) [/snip] Let me understand, you want a Flash form that submits va

Fw: [PHP] preg_replace (underscore)

2002-10-29 Thread Shawn McKenzie
Thanks, but I'm trying to replace ALL non alpha-numeric characters, which I'm doing with the preg_replace, however it leaves the _. Seems silly to use preg_replace and then use str_replace. Thanks! Shawn "John Meyer" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > i've just us

Re: [PHP] Re: Flash and PHP?

2002-10-29 Thread Neil
The entire site is flash. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:001801c27f63$3a40a480$8102a8c0@;000347D72515... > [snip] > Thanks for the links, what I'm looking for is a simple form that > communicates with a .php file on IIS 5 and then emails back to a e-mail > address. Any

RE: [PHP] Re: Flash and PHP?

2002-10-29 Thread Jay Blanchard
[snip] The entire site is flash. [/snip] So, are you asking for someone here to write the PHP for you? Or are you asking for the list to find you a set of pre-made scripts that work in every situation? I see that you have been pointed to multiple tutorials for working with Flash and PHP. I also se

Re: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
I HAVE selected multiple items without including MULTIPLE. - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Rick Emery" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 29, 2002 9:54 AM Subject: Re: [PHP] Select values in an array??? Then you were not a

Re: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
I HAVE selected multiple items without including MULTIPLE. The following link displays a form in which there are multiple SELECTS with the same name. Upon processing the form on submit, I do retrieve all selected values, not just the last. To check for yourself, open the link and view source. Y

RE: [PHP] Select values in an array???

2002-10-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Rick Emery [mailto:remery@;emeryloftus.com] > Sent: 29 October 2002 16:15 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Select values in an array??? > > > I HAVE selected multiple items without including MULTIPLE. > > The following link displays a form in whic

Re: [PHP] Select values in an array???

2002-10-29 Thread @ Edwin
Hello, "Rick Emery" <[EMAIL PROTECTED]> wrote: > I HAVE selected multiple items without including MULTIPLE. > > The following link displays a form in which there are multiple SELECTS with the same name. > Upon processing the form on submit, I do retrieve all selected values, not just the last. > T

RE: [PHP] Smarty functions help

2002-10-29 Thread Daniel Masson
Thanks a lot man !! It worked perfecly !! > Im using smarty template engine .. Id like to know if theres a way to > place php functions, specifically nl2br(), into smarty templates .. > Not in php script that calls smarty class. Take a look at the modules/ folder in Smarty. You can crea

[PHP] Re: Just curious about Mod_SSL and Apache.

2002-10-29 Thread Scott Fletcher
Found a perfect solution to this problem. Check it out at this website, http://bsdvault.net/sections.php?op=viewarticle&artid=85. Enjoy!! "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:20021023135230.58238.qmail@;pb1.pair.com... > I know the topic is off the point but at least, I us

Re: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
Edwin, you are CORRECT. I had a brain-fart. I stand before you all, humbled Round of beer for everyone in the house cheers rick- Original Message - From: "@ Edwin" <[EMAIL PROTECTED]> To: "Rick Emery" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 29, 2002 10:25 AM

Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
Look, I'm not trying to start a flame war or anything, but you CANNOT select MULTIPLE items from a select element without using "multiple" in the tag. I looked at your link, and it doesn't have any select elements, much less multiple select elements. Prehaps you're confusing checkbox elements

Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
*raises glass* Happens to the best of us. You should have seen my confusion on a linux mailing list last night when I was trying to figure out bind9. :) Rick Emery wrote: Edwin, you are CORRECT. I had a brain-fart. I stand before you all, humbled Round of beer for everyone in the house che

[PHP] Getting Apache (SSL) to start without typing in passphrase

2002-10-29 Thread Scott Fletcher
Hey Fellas From the previous posting in the past when I posted a comment about ways to make Apache start up automatically without manually typing in the passphrase for SSL. Something that is a must have for the server reboot. Be of good cheers! I found the reference on the Apache/Mod_SSL

[PHP] searching an array

2002-10-29 Thread Davíð Örn Jóhannsson
I have a array called $arr[], it holds integer values, I don’t know how many indexes it holds and I need to be able to find out what the hash ($arr[index]) holds the largest value, is this possable, and if so how? Regards, David

Re: [PHP] Select values in an array???

2002-10-29 Thread @ Edwin
fish 'n chips on me :) Good job there--volunteers are great! - E "Rick Emery" <[EMAIL PROTECTED]> wrote: > Edwin, you are CORRECT. I had a brain-fart. > > I stand before you all, humbled > > Round of beer for everyone in the house > > cheers > > rick- Original Message - > From: "@ Edwi

Re: [PHP] searching an array

2002-10-29 Thread John Nichel
You could sort the values (ascending or descending), and select the first or last value (depending on how you sorted it). Davíð Örn Jóhannsson wrote: I have a array called $arr[], it holds integer values, I don’t know how many indexes it holds and I need to be able to find out what the hash ($ar

Re: [PHP] searching an array

2002-10-29 Thread @ Edwin
Hello, Looking for this? http://www.php.net/manual/en/function.max.php - E "Davíð Örn Jóhannsson" <[EMAIL PROTECTED]> wrote: > I have a array called $arr[], it holds integer values, I don't know how > many indexes it holds and I need to be able to find out what the hash > ($arr[index]) > ho

[PHP] unique id

2002-10-29 Thread Edward Peloke
How do I generate a uniqueid in php? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need php help $$

2002-10-29 Thread rhodespc
Sorry, do not want to intrude. I am a developer like the rest of you. I underestimated and underbid a project and need some serious help. I am a hardcore java developer (5+ years),and tried to get some java help but not finding success. While the core of my application is java, I am in need of

[PHP] PHP XML mailing list

2002-10-29 Thread Chris Boget
Are any of you subscribed to the above list? If so, do you ever see any traffic on it? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regex Help

2002-10-29 Thread Gerard Samuel
Im trying to explode a string into an array of words using -> $title = preg_split('/[^\w\']/', $title, -1, PREG_SPLIT_NO_EMPTY ); It seems to work well with words like "this" and "don't" but it doens't work with words with accents to it like "Guantánamo" Could my regex be expanded to handle non-

Re: [PHP] php form mail - checkbox problem

2002-10-29 Thread Tine
> Please don't answer with "Tried that" without showing us your new HTML and code > Show us the new code. Sorry - found my mistake. I had forgotten to include a hidden input field :oO -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array Question

2002-10-29 Thread PHP List
No, array_keys does not do what I want, in order to user array_keys, it assumes I know the value of the key, but I don't, I want to get the value of the key but all I know is the index. > Perhaps you want to look at array_keys(). > > On Monday, October 28, 2002, at 05:48 PM, PHP List wrote: > > >

[PHP] .inc files doubles up

2002-10-29 Thread Tine
This is really my first major PHP encounter, and I have attempted to modify a php form mail script to include a foot.inc and head.inc file, which works fine if all required fields in the form is filled out. But if there are more than 2 required fields missing I end up with what you see here: http:

[PHP] Re: .inc files doubles up

2002-10-29 Thread Tine
"Tine" <[EMAIL PROTECTED]> wrote in message news:20021029171957.30722.qmail@;pb1.pair.com... > This is really my first major PHP encounter, and I have attempted to modify > a php form mail script to include a foot.inc and head.inc file, which works > fine if all required fields in the form is fill

Re: [PHP] unique id

2002-10-29 Thread 1LT John W. Holmes
> How do I generate a uniqueid in php? www.php.net/uniqid ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread Martin Hudec
Hello Tine, it looks okay to me butlooks like you have met two conditions at time ($sted == "") and ($telefon == "0")why dont u make something like this? if (empty($sted) || empty($telefon)) { include header if (empty($sted)){ echo STED NOT FILLED... } if (empty($telefon)

[PHP] POST-ing or GET-ing an array

2002-10-29 Thread Petre Agenbag
Hi I KNOW I'm gonna get flamed, but I can't find this anywhere in my books or in the manual, yet I know I've read it somewhere. I created an array in a loop as such: $sql = "select stuff from my_table"; $result = mysql_query($sql); $count = 0; while ($myrow = mysql_fetch_assoc($result)) {

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread Tine
"Martin Hudec" <[EMAIL PROTECTED]> wrote in message news:18910327021.20021029184135@;corwin.sk... > Hello Tine, > > it looks okay to me butlooks like you have met two conditions at > time ($sted == "") and ($telefon == "0")why dont u make something > like this? > > if (empty($sted) || empt

Re: [PHP] POST-ing or GET-ing an array

2002-10-29 Thread Sascha Cunz
Hi, first of all, i would prefer to do this task in a session-variable (less traffic, less security holes). But, if you're sure you need to pass the array via an URL, try: which will result in test.php called with $_GET['ary'] containing: [0] = '1' [1] = '2' If the array contains strings (a

Re: [PHP] POST-ing or GET-ing an array

2002-10-29 Thread Petre Agenbag
Oops, I forgot to add the $count++ at the end of the while loop, but that was just an ommission of this post, in my real code, the array is created fine ( tested it with a print_r($my_array) ). On Tue, 2002-10-29 at 19:40, Petre Agenbag wrote: > Hi > I KNOW I'm gonna get flamed, but I can't find

[PHP] Checking for a string.

2002-10-29 Thread ed
I'm currently writting a redirect script for my site which will transfer someone to either a external link or a directory on my server. In order to do this I need to use a directive that either contains the directory path or a URL. How do I check the contents of a string to see if it contains "htt

Re: [PHP] Problems getting error values in FILES superglobal.

2002-10-29 Thread Jorge . Manuel . Silva
I think I found a way of solving the problem. When the transfer is interrupted $_FILES is filled and no error is reported. However $_POST will be empty. So, if $_FILES['userfile']['error'] is set to 0 (meaning no error) but $_POST is empty, it means that the file upload was interrupted. Jorge.

Re: [PHP] Checking for a string.

2002-10-29 Thread John Nichel
preg_match() [EMAIL PROTECTED] wrote: I'm currently writting a redirect script for my site which will transfer someone to either a external link or a directory on my server. In order to do this I need to use a directive that either contains the directory path or a URL. How do I check the contents

[PHP] remove/uninstall php3 on linux

2002-10-29 Thread MIke Pogue
Hi Guys, Do you have any ideas how could I remove/uninstall an old php3 version on linux? Should I delete the files manually? Many Thanks, Mike

  1   2   >