Re: [PHP] ICQ # validation

2003-03-04 Thread Hans Prins
Also, don't forget to escape the $ character in your expression, since it is reserved for variable declaration. Ales KrajníK [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Well ... - the {7,9} means that the previous char/group should repeat 7 to 9 times ... - ^ means the

[PHP] cookie secure argument?

2003-03-04 Thread Hans Prins
Can anyone tell me what the secure argument in the setcookie() function does? setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]) thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cookie secure argument?

2003-03-04 Thread Hans Prins
thank you :) Rasmus Lerdorf [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Means the cookie will only be sent over an HTTPS connection. On Wed, 5 Mar 2003, Hans Prins wrote: Can anyone tell me what the secure argument in the setcookie() function does? setcookie ( string

Re: [PHP] table width problems

2003-02-23 Thread Hans Prins
If your html table is too wide that is useually due to a pixel size or a percentage which is too large. You could try playing around with those values and calculate how much columns you have and maybe how much of a percentage size they should have relative to the screen width tables can be a

[PHP] Re: Image Resize

2003-02-23 Thread Hans Prins
You will need the GD library of image functions for this to work. You can find more information at the following page: http://www.php.net/manual/en/ref.image.php gl Randum Ian [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Hi guys, Is it possible to resize an uploaded file to 10%

Re: [PHP] Re: including in shtml

2003-02-22 Thread Hans Prins
shtml is a much used method, I HP want to make it available. HP Hans Prins [EMAIL PROTECTED] schreef in bericht HP news:[EMAIL PROTECTED] Hello, I have a problem with including a test.php into a test.shtml and HP passing a variable to the test.shtml which should be processed

[PHP] Re: Question about str_replace()

2003-02-22 Thread Hans Prins
Assuming that you do want to replace [p] with br, the code you posted worked for me. The following printed: leadingtextbrtrailingtext to the screen ?php $find = array(' ','WOD', '', chr(146), '[p]'); $replace = array(amp; ,Wamp;OD, 'amp;', ', 'br'); $text = leadingtext[p]trailingtext; $words

[PHP] including in shtml

2003-02-21 Thread Hans Prins
Hello, I have a problem with including a test.php into a test.shtml and passing a variable to the test.shtml which should be processed in the test.php the test.php document includes the following: --- ?php if ($HTTP_GET_VARS['theValue'])

[PHP] Re: selection in form-field

2003-02-21 Thread Hans Prins
I think javascript would be your best option Michiel. Michiel Van Heusden [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i have quite an easy question: is there a way in PHP to trace the selection in a certain form-field? i need this for building a simple

[PHP] Re: session expiration

2003-02-21 Thread Hans Prins
can you show us the PHP code that you use to manage your session? Lowell Allen [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm using sessions for authentication in a content management system and experiencing rare but occasional problems with the session

[PHP] Re: session expiration

2003-02-21 Thread Hans Prins
I am asking because if you are using: session_set_cookie_params(), the effect of this function only lasts for the duration of the script. Lowell Allen [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm using sessions for authentication in a content management

[PHP] Re: how to get the array

2003-02-21 Thread Hans Prins
$globalArray = $_POST['yourPostArray']; $arrayCount = count($globalArray); // this loops and prints all array values for the amount // of values found with the count function above for ($count = 0; $count $arrayCount; $count++) { print $globalArray[$count]; } goodluck :) Pei_world [EMAIL

Re: [PHP] Re: session expiration

2003-02-21 Thread Hans Prins
I think a database session would be of more use to you since you would have more control over the lifetime of the session etc Lowell Allen [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... From: Hans Prins [EMAIL PROTECTED] can you show us

[PHP] Re: Mysql DB connect failure

2003-02-21 Thread Hans Prins
did you try: print mysql_error(); Ml [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Currently I have some php code that displays a message if a connect to my database fails. Is there anyway I can get a more descriptive error message? So I can see exactly why

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Hans Prins
up a bit. Regards, Jason k Larson Hans Prins wrote: did you try: print mysql_error(); Ml [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: including in shtml

2003-02-21 Thread Hans Prins
anyone? Hans Prins [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Hello, I have a problem with including a test.php into a test.shtml and passing a variable to the test.shtml which should be processed in the test.php the test.php document includes the following

[PHP] ssi problem

2003-02-21 Thread Hans Prins
Could anyone please shed some light on the following issue? I have a problem with including a test.php into a test.shtml and passing a variable to the test.shtml which should be available and processed in the test.php the test.php document includes the following:

[PHP] Re: including in shtml

2003-02-21 Thread Hans Prins
Im trying to write a poll script that is easy to intergrate into other documents of a site and thought that since shtml is a much used method, I want to make it available. Hans Prins [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Hello, I have a problem with including a test.php

[PHP] server side including

2003-02-20 Thread Hans Prins
Im have a script.php which needs to be able to tell if it has been included in an .shtml file or not... e.g. if included is true: do this, else: do something else I could ofcourse do something like this: !--#include virtual=/packages/combo1/example_red/poll/poll.php?included=yes -- but it

[PHP] Re: server side including

2003-02-20 Thread Hans Prins
$HTTP_SERVER_VARS['REQUEST_URI'] did the trick Hans Prins [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Im have a script.php which needs to be able to tell if it has been included in an .shtml file or not... e.g. if included is true: do this,

[PHP] DB row selection

2003-02-19 Thread Hans Prins
Hello, I recently learnt that with the code as stated below, I can select one row: $query = SELECT * FROM polls ORDER BY pollID ASC LIMIT 0,1; However as far as I could figure out, I can only select the top row or tell it at what rownumber to start and end. What if I wanted to select the bottom

Re: [PHP] DB row selection

2003-02-19 Thread Hans Prins
That's weird.. that was the first thing I tried (DESC), but it gave me a syntax error at runtime.. however, when I tried it now, it worked.. I probably had another error that confused me. Thx a bunch :-) Ernest E Vogelsinger [EMAIL PROTECTED] schreef in bericht [EMAIL

Re: [PHP] DB row selection

2003-02-19 Thread Hans Prins
f rows u want back works too. Joel Hans Prins [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... That's weird.. that was the first thing I tried (DESC), but it gave me a syntax error at runtime.. however, when I tried it now, it worked

Re: [PHP] Javascript function

2003-02-19 Thread Hans Prins
There are a lot of other handlers that can call your function: onChange, onFocus, onBlur, onMouseOver, onKeyDown, etc.. gl :) Van Andel [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] m... Try this. void function MyExampleFunction(theelement) { theelement.focus() } body

[PHP] Re: Redirect without header or javascipt

2003-02-19 Thread Hans Prins
I'd say no.. but if this is about limitations of for example the header() function (where it needs to be called before anything should be output to the browser) then you could buffer your output with: ob_start() and ob_end_flush() Hans Daniel Guerrier [EMAIL PROTECTED] schreef in bericht

[PHP] Re: database selection

2003-02-17 Thread Hans Prins
One more question about this: If I wanted to select the last row, would I use this code? $query = SELECT * FROM polls ORDER BY pollID DESC LIMIT 0,1; Hans Prins [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... thank you, that did the trick :)

[PHP] database selection

2003-02-16 Thread Hans Prins
Hello, Im trying to select only one row in a mysql database (in this case a poll with the smallest pollID)... Each row has a field called pollID which is the primary key and is auto incremented when a new row is inserted. I could possible do the following but I think its a bit extensive:

[PHP] Re: database selection

2003-02-16 Thread Hans Prins
thank you, that did the trick :) Thomas Seifert [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sun, 16 Feb 2003 12:51:58 +0100 [EMAIL PROTECTED] (Hans Prins) wrote: Hello, Im trying to select only one row in a mysql database (in this cas

[PHP] form variables

2002-09-09 Thread Hans Prins
Hello, I have a form field of the type scrolling text box it lets users input a multiline string. I then pass this string as a variable to a php document that prints this string to the screen: print $mailingAddressbr; however. this outputs it all in one line. Does anyone have an idea as to

Re: [PHP] form variables

2002-09-09 Thread Hans Prins
thank you very much :-) Chris Shiflett [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am guessing you mean the input is a textarea. At any rate, I believe what you want is nl2br() Happy hacking. Chris Hans Prins wrote: Hello, I have a fo