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), with a date

[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

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-Brooks wrote:

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

[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

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

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 form enctype=multipart/form-data action= url method=POST David Russell wrote: Hi all, I have a form with a file upload section. The target script contains the following: if

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

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 a href='xxx'/a or a href=xx/a , ... ) any idea? cheers.. P.E -- PHP

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

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? There is

[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, something

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 I get the name of the

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

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: ?php Header(Content-type: image/png); $im = @ImageCreateTrueColor(120, 50) or die (Cannot Initialize new GD image stream!); $background_color =

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

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'll have

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

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

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

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 achieve

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

[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: input type=checkbox name=items[] value=hovedmedlemskap hovedmedlemskap [200 kr.] input

[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(BRhello %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/) To

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=item1select=item2select=item3select=item4select=item5select=item6 on the page i have echo $select but only the last item (item6) is being

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] wrote in

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

2002-10-29 Thread John Nichel
Change the name of your select field to select[] select name=whatever[] multiple 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

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 of a

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

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: Tuesday,

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 if you want to

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

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

[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

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] Cc:

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

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 used

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 help? (I

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

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 able to

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.

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 which there

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. To check

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 create

[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=viewarticleartid=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 use PHP

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

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

[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

[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: @ Edwin [EMAIL

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

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]) holds the

[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

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

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

[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 filled out.

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) || empty($telefon)) {

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: A HREF=test.php?ary[]=1ary[]=2 which will result in test.php called with $_GET['ary'] containing: [0] = '1' [1] = '2'

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

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

[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

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) || empty($telefon)) {

[PHP] system() function

2002-10-29 Thread Don Hicks
Hello, I'm running php on a Win2000 server. I also have an MS Access 97 database on the server. I want to tell the database to execute a macro on an as needed basis by running a php system() function, but I'm having difficulty making the action happen. I suspect it's my coding. I'm currently

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

2002-10-29 Thread Kevin Stone
Checkout serialize(); and unserialize(); http://www.php.net/manual/en/function.serialize.php http://www.php.net/manual/en/function.unserialize.php //On your first page.. $myarray = serialize($myarray); echo a href=\myarray=$myarray\Link/a; //Then on your other page.. $myarray =

Re: [PHP] Checking for a string.

2002-10-29 Thread ed
Seems to work but I'm getting a Warning Message: Delimiter must not be alphanumeric or backslash Here's the code: $path = http://somehost.somedomain.com;; preg_match (http, $path, $matches); if ($matches[0] = http) { $action = this action; } else { $action = that action; }

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

2002-10-29 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I think you should be able to serialize and urlencode the array and then pass that via get/post.post would be a lot better as get is limited to so many chars. Something like: $sql = select stuff from my_table; $result = mysql_query($sql);

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

2002-10-29 Thread John Nichel
Do a little debugging. The error is easy to spot.. Ok, wrote the following code, but get a parse error line 74 (last part of the code): if (empty($navn) || empty($addresse) || empty($postnummer) || empty($sted) || empty($epost)) { include(head.inc); } --- GET RID OF THIS! if

[PHP] Cleaning pasted Word text

2002-10-29 Thread a . h . s . boy
I'm working on a PHP-based CMS that allows users to post lengthy article texts by submitting through a form. The short version of my quandary is this: How can I create a conversion routine that reliably substitutes HTML-acceptable output for high-ASCII characters pasted into the form (from

[PHP] upload several files

2002-10-29 Thread Andres, Cyrille
Hello everybody, I created a form allowing user to upload some files on my server. It works very fine. But now I would like him -the user- to be able to choose several files and upload them at the same time by submitting the form. Actually I don't really know how to do that, if somebody would

Re: [PHP] Checking for a string.

2002-10-29 Thread John Nichel
http://www.php.net/manual/en/function.preg-match.php Wrong syntax, and more code than needed. Your code would always resolve true (if ($matches[0] = http)). Doing that sets the value of $matches[0] to http. Equality is ==. RTFM. If all you want to know is if the URL contains a http,

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

2002-10-29 Thread Sascha Cunz
Hey, I think you should be able to serialize and urlencode the array and then pass that via get/post.post would be a lot better as get is limited to so many chars. Something like: $sql = select stuff from my_table; $result = mysql_query($sql); while ($myrow = mysql_fetch_assoc($result))

[PHP] Secure Connection

2002-10-29 Thread Pushpinder Singh Garcha
Hi, I am making a secure page where users will be able to send credit card information. What kind of support does php offer? Thanks Pushpinder Singh Garcha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >