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
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
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
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
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%
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
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
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'])
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
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
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
$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
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
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
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
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
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:
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
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
$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,
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
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
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
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
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
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 :)
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:
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
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
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
30 matches
Mail list logo