Concerning Auth
How to set username and password in the mysql table 'auth'.
Nothing has resulted from direct entry into the table.
Vlad Alivanov
[snip][snip]
Secondly I find it easier (to read) to code my SQL statements thus:
$countResult = db_query(SELECT count(*) AS msgCount FROM messages WHERE
uid='$userID' AND fid='$fid' AND post_date='$lastmonth');
[snip]
/quote ---
I
Just a heads up on this change in array concatenation behaviour that
could cause a few probs for some people...
?
$arr1 = array(0 = 'Zero');
$arr2 = array(1 = 'One',2 = 'Two');
$arr2 = $arr1 + $arr2;
echo phpversion().'br /';
print_r($arr2);
?
this code produces on our provider's server...
On 07 October 2004 17:29, Nick Wilson wrote:
Hi,
If you scroll up the list you'll see another thread of mine, this is
related. The reason for a new thread is that i've made a lot
of progress
but the old was getting really confusing..
Here's the scoop:
I have an array like this:
Matt M. schrieb:
I was on that page.
There's nothing which comes close to your assumption.
sorry, wrong link you dont need PDFlib+PDI. Is that the license that you have?
here is an assumption. I assumed you would read the pdflib manual, did you see?
Note All functions described in this
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend= 100
session.gc_maxlifetime = 120
But even after 20 minutes the session file is still there.
And the
Does anyone know what function.filetime has been replaced by in PHP5?
Cheers
Nunners
Can't you sort the array?
On 8 Oct 2004, at 10:41, rich gray wrote:
Just a heads up on this change in array concatenation behaviour that
could cause a few probs for some people...
?
$arr1 = array(0 = 'Zero');
$arr2 = array(1 = 'One',2 = 'Two');
$arr2 = $arr1 + $arr2;
echo phpversion().'br /';
Nunners wrote:
Does anyone know what function.filetime has been replaced by in PHP5?
no such function ever existed. Choose one of the following:
filemtime
filectime
fileatime
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are you using the default PHP sessions? or are you using a custom
session handler?
Hendrik Schmieder wrote:
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend
M. Sokolewicz schrieb:
are you using the default PHP sessions? or are you using a custom
session handler?
Hendrik Schmieder wrote:
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability =
Hendrik Schmieder wrote:
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend= 100
Should be session.gc_divisor. And you need to start at least one other
Hello,
I'm looking for a tool which checks php syntax the way CheckStyle does for
Java for example.
(http://checkstyle.sourceforge.net/)
I'd like such a tool to warn me when a PHPDoc comment doesn't document every
parameters for a method, when there is no PHPDoc comment for a class or
method,
Hi, I'm having a problem with fopen and http files. I keep getting the
error:
Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html )
[function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404
Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15
But I don't understand why I am getting that error about failed to open
strem: HTTP request failed, when I can bring up the links fine in a
browser on the server running the php script. So can anyone help me out?
Thanks
do you have allow_url_fopen enabled?
On Fri, 8 Oct 2004, Matt M. wrote:
But I don't understand why I am getting that error about failed to open
strem: HTTP request failed, when I can bring up the links fine in a
browser on the server running the php script. So can anyone help me out?
Thanks
do you have allow_url_fopen
Marek Kilimajer schrieb:
Hendrik Schmieder wrote:
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend= 100
Should be session.gc_divisor
OK , changed in
On Fri, 2004-10-08 at 14:37 +0200, Stphane THIBAUDEAU wrote:
Hello,
I'm looking for a tool which checks php syntax the way CheckStyle does for
Java for example.
(http://checkstyle.sourceforge.net/)
I'd like such a tool to warn me when a PHPDoc comment doesn't document every
parameters
Hendrik Schmieder wrote:
Marek Kilimajer schrieb:
Hendrik Schmieder wrote:
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend= 100
Should be
I swear I googled for an hour first.
A user enters in a textarea field of FORM1.php:
Bob is high
Submitted to FROM2.php we get:
Bob is \high\
In a hidden field in FROM2.php we store the value: type=hidden, value=?
echo stripslashes($_POST['textarea']); ? Value now Bob is high
Then from
Adam Williams schrieb:
Hi, I'm having a problem with fopen and http files. I keep getting the
error:
Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html )
[function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404
Not Found in
On Fri, 2004-10-08 at 06:22 -0700, Sam Smith wrote:
I swear I googled for an hour first.
A user enters in a textarea field of FORM1.php:
Bob is high
Submitted to FROM2.php we get:
Bob is \high\
In a hidden field in FROM2.php we store the value: type=hidden, value=?
echo
On Fri, 8 Oct 2004, Hendrik Schmieder wrote:
What say phpinfo about Registered PHP Streams ?
Hendrik
Hi, I think I just figured out my problem...I had to use rtrim($line)
because I think there was a \n or an invisible character at the end of the
line that was being passed to the
[snip]
If you are right, then this is a severe design bug.
Depends on your point of view. It is a sideeffect of loading current
session (and thus accessing it) before the session gc is called.
So the question is, should the session module give up on current session
just because it should
May be the path is not the correct ,just check with the Web Directory you configured
to be and if its htdocs then I would say that its better to remove the htdocs from the
path in fopen statement.
-Original Message-
From: Adam Williams [mailto:[EMAIL PROTECTED]
Sent: Friday, October 08,
Graham Cossey wrote:
[snip]
If you are right, then this is a severe design bug.
Depends on your point of view. It is a sideeffect of loading current
session (and thus accessing it) before the session gc is called.
So the question is, should the session module give up on current session
just
Marek Kilimajer schrieb:
Hendrik Schmieder wrote:
Marek Kilimajer schrieb:
Hendrik Schmieder wrote:
Hello,
we have a severe problem with seesions.
We use Apache 1.3.31 with PHP 4.3.9 as Apache module in Windows 2000
In our php.ini we have
session.gc_probability = 100
session.gc_dividend= 100
Sam Smith wrote:
I swear I googled for an hour first.
A user enters in a textarea field of FORM1.php:
Bob is high
Submitted to FROM2.php we get:
Bob is \high\
In a hidden field in FROM2.php we store the value: type=hidden, value=?
echo stripslashes($_POST['textarea']); ? Value now Bob is high
So
Graham Cossey schrieb:
[snip]
If you are right, then this is a severe design bug.
Depends on your point of view. It is a sideeffect of loading current
session (and thus accessing it) before the session gc is called.
So the question is, should the session module give up on current session
Hendrik Schmieder wrote:
Anyway , if the apache service is stopped (I am not speaking about a
crash) all session files must be deleted.
Why? Why should users loose their sessions just because I need to
restart web server?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Bob Redding schrieb:
Running on Mandrake 10.0, Apache 2 and Oracle Client
Bob Redding
Look where you have libclntsh.a or libclntsh.so.
Hendrik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Marek Kilimajer schrieb:
Hendrik Schmieder wrote:
Anyway , if the apache service is stopped (I am not speaking about a
crash) all session files must be deleted.
Why? Why should users loose their sessions just because I need to
restart web server?
OK,
good point.
So I redrew the request for
Patrick Blousson schrieb:
Hi,
What about your hard disk partitions? Sessions only works on NTFS
partitions. FAT don 't have a last accessed flag on file.
Patrick.
- Original Message - From: Hendrik Schmieder
[EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Friday,
Hello all.
I have a login page where users have to authenticate themselves to
access some site areas.
Apache is configured to use https.
the user when is typing the URL in the browser, i know that it will not
put the https protocol.
how can i check in the page if the user is accessing the the
Hendrik Schmieder wrote:
Marek Kilimajer schrieb:
Hendrik Schmieder wrote:
Anyway , if the apache service is stopped (I am not speaking about a
crash) all session files must be deleted.
Why? Why should users loose their sessions just because I need to
restart web server?
OK,
good point.
So I
Hendrik Schmieder wrote:
Graham Cossey schrieb:
[snip]
If you are right, then this is a severe design bug.
Depends on your point of view. It is a sideeffect of loading current
session (and thus accessing it) before the session gc is called.
So the question is, should the session module
how can i check in the page if the user is accessing the the site via SSL ??
or i have to put a redirect in the page anyway, whether the user is
alredy accessing the page via SSL?
if it has to be https, why not just use mod_rewrite to make sure it is.
With php you could check
On Fri, 08 Oct 2004 15:48:52 +0100, Bruno Santos
[EMAIL PROTECTED] wrote:
how can i check in the page if the user is accessing the the site via SSL ??
or i have to put a redirect in the page anyway, whether the user is
alredy accessing the page via SSL?
parse_url()
--
Greg Donald
Zend
Bruno Santos wrote:
Hello all.
I have a login page where users have to authenticate themselves to
access some site areas.
Apache is configured to use https.
the user when is typing the URL in the browser, i know that it will not
put the https protocol.
how can i check in the page if the user
how can i check in the page if the user is accessing the the site via
SSL ??
if(!$_server['https'])
{
//redirect to secure page.
}
There are probably better ways, maybe through apache, but I think that
will work.
-Justin
-Original Message-
From: Bruno Santos [mailto:[EMAIL
M. Sokolewicz wrote:
Hendrik Schmieder wrote:
Ok, I think you're all missing a few points here...
First of all,
every time a session is started/accessed/written to/whatever, PHP makes
a check, it calculates , using gc_probability/gc_divisor, if it should
run the gc (Garbage Collector) on this
Hi,
Check the port number: 80 for http and 443 for https (standard
defaults). You can check it with $_SERVER['SERVER_PORT']
i.e.:
if ($_SERVER['SERVER_PORT'] != 443) {
header('Location: https://some.location.here');
}
Also, there is not important if the login form is displayed in SSL
mode
A user enters in a textarea field of FORM1.php:
Bob is high
Submitted to FROM2.php we get:
Bob is \high\
Tha't's normal beacuse you have magic_quotes_gpc_on
In a hidden field in FROM2.php we store the value: type=hidden, value=?
echo stripslashes($_POST['textarea']); ? Value now Bob
I've got a cookie that's either non-existent or a serialized array. I'm
trying all sorts of different code combinations to retrieve it into an
array variable, but everything I try throws up some combination of
notices and/or warnings. Here is my latest greatest:
$cookie =
$cookie = $_COOKIE['bookmarks'];
if(unserialize($cookie) == true) {
$bookmarks = unserialize($cookie);
} else {
$bookmarks = array();
}
if (isset($_COOKIE['bookmarks'])) {
$cookie = $_COOKIE['bookmarks'];
if(unserialize($cookie) == true) {
$bookmarks =
Good morning gurus,
Is it possible to have a form where I post variables to a processing
script which would then redirect to another form have variables posted
from the processing script? I am researching the HTTP header things as I
write this, but have not found a viable answer that is PHP only.
Much warmth,
Murray
http://www.planetthoughtful.org
Building a thoughtful planet,
One quirky comment at a time.
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Saturday, 9 October 2004 1:50 AM
To: [EMAIL PROTECTED]
Subject: [PHP] header redirect with POST?
Hi All,
I have been running 4.3.4 on a Cobalt RaQ 4 for some months and have been
using the WDDX functions with great effect. I have recently moved all our
sites to a new server (Linux RedHat ES 3 running PHP 4.3.6) and found that
the WDDX functions do not work! No errors just nothing happens. I
Hi Jay,
Nice to see you ask a question for a change ;-)
Jay Blanchard wrote:
Good morning gurus,
Is it possible to have a form where I post variables to a processing
script which would then redirect to another form have variables posted
from the processing script? I am researching the HTTP header
Is it possible to have a form where I post variables to a processing
script which would then redirect to another form have variables posted
from the processing script? I am researching the HTTP header things as I
write this, but have not found a viable answer that is PHP only.
I dont know if
Brian Dunning wrote:
I've got a cookie that's either non-existent or a serialized array. I'm
trying all sorts of different code combinations to retrieve it into an
array variable, but everything I try throws up some combination of
notices and/or warnings. Here is my latest greatest:
$cookie =
Jay Blanchard wrote:
Good morning gurus,
Is it possible to have a form where I post variables to a processing
script which would then redirect to another form have variables posted
from the processing script? I am researching the HTTP header things as I
write this, but have not found a viable
John Nichel wrote:
Jay Blanchard wrote:
Good morning gurus,
Is it possible to have a form where I post variables to a processing
script which would then redirect to another form have variables posted
from the processing script? I am researching the HTTP header things as I
write this, but have not
Can't you sort the array?
Yes of course but that wasn't the point of my post I was trying to
show that the same code produces differing results on 2 different
versions of PHP ...
rich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nice idea, but you want to be future-proof, don't you?
Once alt.binaries.vr.animals.lobster starts filling up with 5 hour
Virtual Reality ROMs you're looking at needing a lot more than that. I'd
go with about 6 YB if I were you, and that's only because there aren't
any SI prefixes higher than
[snip]
that works, had to do it a couple of times myself.
btw jay, if your machine has perl installed and the LWP module is also
installed (usually will be) you might find the POST binary on your
server. If it's there you can forget about sockets and make use of this
program to send the data to
[snip]
Nice idea, but you want to be future-proof, don't you?
Once alt.binaries.vr.animals.lobster starts filling up with 5 hour
Virtual Reality ROMs you're looking at needing a lot more than that. I'd
go with about 6 YB if I were you, and that's only because there aren't
any SI prefixes
Ok, so I came across nullmailer, which seems to do exactly what I want -
forward mail to an existing smtp server. But it isn't working. I'm using the
mail() php function, and the mails aren't arriving. The same code works fine
on a windows machine pointing to the same smtp server. Does anybody
Given the following string:
$textString = Share A Dream Come True Parade 3:00 SpectroMagic Parade 9:00, 11:00
Wishes? nighttime spectacular 10:00
I need to break the string up into pieces where as
$string[1] = Share A Dream Come True Parade 3:00
$string[2] = SpectroMagic Parade 9:00, 11:00
Nice idea, but you want to be future-proof, don't you?
Once alt.binaries.vr.animals.lobster starts filling up with 5 hour
Virtual Reality ROMs you're looking at needing a lot more than that. I'd
go with about 6 YB if I were you, and that's only because there aren't
any SI prefixes higher
Does nullmailer have a sendmail wrapper? mail() in unix/linux looks for
the sendmail binary.
mail() on windows uses the settings in php.ini.
--
--Matthew Sims
--http://killermookie.org
Ok, so I came across nullmailer, which seems to do exactly what I want -
forward mail to an existing
Hello,
On 10/08/2004 01:35 PM, Josh Howe wrote:
Ok, so I came across nullmailer, which seems to do exactly what I want -
forward mail to an existing smtp server. But it isn't working. I'm using the
mail() php function, and the mails aren't arriving. The same code works fine
on a windows machine
On Fri, 8 Oct 2004 11:38:23 -0500, Brent Clements
[EMAIL PROTECTED] wrote:
Given the following string:
$textString = Share A Dream Come True Parade 3:00 SpectroMagic Parade 9:00, 11:00
Wishes? nighttime spectacular 10:00
I need to break the string up into pieces where as
$string[1] =
Yes, the magic quotes will get you, but they are meant to protect you.
Either
1. Go into php.ini and disable them
2. Create an include file that you include in each script, in it, use ini_set() to
disable magic quotes at run time http://us2.php.net/manual/en/function.ini-set.php
-Original
I'm seeing a very strange problem with move_uploaded_file(...). I'm
uploading jpegs and the transfer appears to go a little too quickly,
and when I look at the directory listing, the files are about twice the
size that they should be. When we view the file in the browser, the
images are either
hello all,
I have an array like this:
array (
1 = array(123, 345, 454),
2 = array(8854, 393, 4947, 77, 3343),
3 = array(393, 33)
);
I need to create an array sequence from that that would look like this:
array (
'1:123',
'2:8854',
* and then Ford, Mike declared
php
543 = 2
432 = 2 // like here, more 2's than 1's see?
566 = 2
568 = 2
999 = 3
878 = 3
444 = 3
That's not terribly good, as you are using the unknowns (ip addresses) as keys to
the knowns (machine IDs). It would be better keying off the
* and then Ford, Mike declared
543 = 2
432 = 2 // like here, more 2's than 1's see?
566 = 2
568 = 2
999 = 3
878 = 3
444 = 3
That's not terribly good, as you are using the unknowns (ip addresses) as keys to
the knowns (machine IDs). It would be better keying off the machine
prolly already mentioned, but what about explode using the commas
$strings = explode(',', $textString);
Greg Donald [EMAIL PROTECTED] wrote:
On Fri, 8 Oct 2004 11:38:23 -0500, Brent Clements
[EMAIL PROTECTED] wrote:
Given the following string:
$textString = Share A Dream Come True
In article [EMAIL PROTECTED], Greg Donald wrote:
On Fri, 8 Oct 2004 11:38:23 -0500, Brent Clements
[EMAIL PROTECTED] wrote:
Given the following string:
$textString = Share A Dream Come True Parade 3:00 SpectroMagic Parade 9:00, 11:00
Wishes? nighttime spectacular 10:00
I need to break
In article [EMAIL PROTECTED], Daniel Lahey wrote:
I'm seeing a very strange problem with move_uploaded_file(...). I'm
uploading jpegs and the transfer appears to go a little too quickly,
and when I look at the directory listing, the files are about twice the
size that they should be. When we
In article [EMAIL PROTECTED], Nick Wilson wrote:
array (
1 = array(123, 345, 454),
2 = array(8854, 393, 4947, 77, 3343),
3 = array(393, 33)
);
I need to create an array sequence from that that would look like this:
array (
'1:123',
I'm not sure I completely understand what is trying to be accomplished, but it sounds
like some javascript could be used to do this. Basically, you'd have form a submit to
form b, then form b generate a form with a few hiddens, then force a submit with
javascript to form c.
-Dan Joseph
-
hi all,
how do i setup a apache+php server to read aspx files
as php files?
i need it to parse aspx files.
thank you
___
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
* and then Nick Wilson declared
* and then Ford, Mike declared
php
sorry about the dupes everyone, i changed router today and resent a
whole bunch of stuff b4 i realized it wasnt goint out...
--
Nick W
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Fri, 8 Oct 2004 08:33:11 -0500 (CDT), Adam Williams
[EMAIL PROTECTED] wrote:
So now it works except on the
very last line it processes, it prints does not exist, so there is still
some sort of a hidden character but its not affecting fetching the URLs
from the web server. so i'm still
On Fri, 2004-10-08 at 15:00 -0300, celso andrade wrote:
hi all,
how do i setup a apache+php server to read aspx files
as php files?
i need it to parse aspx files.
thank you
Do you mean run aspx files?
Or just read them? If so, you should just be able to read the contents
of
Your question is a bit confusing.
Do you want to convert asp to php on the fly? and then parse the php
natively? Not easily done.
Or do you just want to name your files .aspx yet have php code in the files.
Easily done.
Or do you want to run aspx files natively?(if so check out the mod_mono
There is a difference between the session file existing, and the user
still having a valid session.
If the timeout has occurred, and the file has not been deleted, when the
user accesses it, the session will not show up in $_SESS[]. Which for
all intents an purposes, means the session has been
celso andrade wrote:
hi all,
how do i setup a apache+php server to read aspx files
as php files?
i need it to parse aspx files.
Find this line in httpd.conf:
AddType application/x-httpd-php .php
Add aspx extension and restart apache
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
* and then Tim Van Wassenhove declared
I do have some code to show you but im afraid ive been going at it all
the wrong way so im not sure it's of any use.
Do you have a clue what your code is doing? Or did you just come up with
it? What is the use of writing code that you don't
--- Jay Blanchard [EMAIL PROTECTED] wrote:
Is it possible to have a form where I post variables to a processing
script which would then redirect to another form have variables posted
from the processing script? I am researching the HTTP header things as I
write this, but have not found a
i'd recommand u to use trees if u got complicated data arrays.
use tree datascturcutres... u could sort n do watever then
or jus queues or stacks depending on what u wanna do
Try PEAR Tree class it might help
Hope that was usefull.
On Fri, 8 Oct 2004 20:13:10 +0200, Nick Wilson [EMAIL
Do u mean using .aspx as ur file extensions? and then setup Apache to
read them as php file?
If that's the case then ur talking about types and extension handlers.
Try or research about:
Add Type in apache docs.
and handlers.
On Fri, 08 Oct 2004 11:23:02 -0700, Robby Russell [EMAIL PROTECTED]
I don't want to setup and maintain a new mail server (sendmail) when we
already have an smtp server set up and maintained by our sys admin. Am I
crazy here?
Can anybody recommend a good sendmail wrapper I can use that will work with
PHP and any other apps that use sendmail? Thanks
Anyone know why class static vars are inherited? (See code below)
class A
{
public static $CONFIG = null;
}
A::$CONFIG = A;
class B extends A
{
public static $CONFIG = null;
}
B::$CONFIG = B;
print (A: . A::$CONFIG . br);
print (B: . B::$CONFIG . br);
--
PHP General Mailing List
* and then M Saleh EG declared
i'd recommand u to use trees if u got complicated data arrays.
use tree datascturcutres... u could sort n do watever then
or jus queues or stacks depending on what u wanna do
Try PEAR Tree class it might help
Hope that was usefull.
*very*
Hi,
I have seen this functionality in a PERL
program/script and would like to do the same
thing...but in php.
The way the script worked was, you give it a url:
http://somesite.com/pics-and-movies.html
pics-and-movies.html (the above example page) would
contain something like:
html
body
a
Josh Howe wrote:
I don't want to setup and maintain a new mail server (sendmail) when we
already have an smtp server set up and maintained by our sys admin. Am I
crazy here?
Can anybody recommend a good sendmail wrapper I can use that will work with
PHP and any other apps that use sendmail?
If I POST a string greater than 1000 character through a form, the
resulting string gets mangled. What I get back is the first 1000
characters of the string, then the name of the form variable, an equal
sign (=) and then the entire string again. If I change the form to a
GET, this problem
Jonny Roller wrote:
If I POST a string greater than 1000 character through a form, the
resulting string gets mangled. What I get back is the first 1000
characters of the string, then the name of the form variable, an equal
sign (=) and then the entire string again. If I change the form to a
On Fri, 08 Oct 2004 06:22:22 -0700, Sam Smith [EMAIL PROTECTED] wrote:
Then from FROM2.php we Submit BACK to FROM1.php and enter it back into the
textarea field with:
type=textarea, value=? echo $_POST['hidden']); ?
I'd like to add that you can also use the following syntax for textarea
On 8 Oct 2004 17:27:10 -, Tim Van Wassenhove [EMAIL PROTECTED] wrote:
In article [EMAIL PROTECTED], Greg Donald wrote:
On Fri, 8 Oct 2004 11:38:23 -0500, Brent Clements
[EMAIL PROTECTED] wrote:
Given the following string:
$textString = Share A Dream Come True Parade 3:00 SpectroMagic
Andrew Kreps wrote:
I'd like to add that you can also use the following syntax for textarea fields:
input type=textarea?= $_POST['hidden'] ?/textarea
which may also get you past the quoting problem.
You mean you can use:
textarea name=hidden?=htmlentities($_POST['hidden'])?/textarea
unless you
Hi again,
I have always been wondering how this is done properly:
Here is an example:
[snip]
class A {
function name( $a, $b, $c) {
$tmp = array();
$tmp[a] = $a;
.
array_push( $GLOBALS['XMLStack'], $tmp );
}
function parse() {
.. some definitions .
I'm trying to sanitize my user input. My sanitize function does not work if
I send a variable that's an array. I'm using recursion to go through the
array. The example below shows that $_POST['city'] works but $_POST['user']
doesn't work. The array comes back blank.
Anyone see what's wrong
Very simple :)
when recursion happens, you return the sanitized value, but never store
it ;)
[EMAIL PROTECTED] wrote:
I'm trying to sanitize my user input. My sanitize function does not work if
I send a variable that's an array. I'm using recursion to go through the
array. The example below
Hi M
I don't understand. I don't think I'm storing it anywhere. I have it
looping through all the POST variables. If it's not an array then the
sanitize function returns a sanitized value. If it's an array then the
sanitize function calls itself again and again until it finds a single
Hello,
I'm in the process of hooking up my own personal web server for use by
certain clients to view the progress on work I'm doing for them. However,
I'm on a shared network that is behind a firewall and some computers on the
network need to stay secure as possible. I've heard that if you gain
The recursion doesn't do anything with the returned value from the function.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 118 matches
Mail list logo