access any directory on the server (as
long as it's readable for the webserver ofcourse).
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
characters...);
}
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
in the database.
It would be a good thing if you guys do something of:
1. Good rid of the bug(/feature) right a way or
2. Document it clearly. Eg. in the documentation of odbc_execute().
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31
for the webserver, users can very easily get the contents
of the file!
And... is it documented? NO Nowhere. Not the mailinglists, not
the documentation, not the bugreport, not even in the sources
itself. It's just there!
Some security huh?!
--
* RzE:
--
PHP General Mailing List (http://www.php.net
a BUG
Report it on http://bugs.php.net
thx
--
* RzE:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[_once] (header.php) or something like that. Or you could
use the auto_prepend and auto_append.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM
the upper case characters after all:
$string = preg_replace (/(.)/, \\1br, $string);
Again, see the example below:
---[ PHP Example ]---
?php
$string = Dan is great;
$string = preg_replace (/(.)/, \\1br, $string);
print ($string);
?
---[ End of PHP Example ]---
Good luck!
/Reply
--
* RzE
: [EMAIL PROTECTED]
/Original message
Reply
Maybe a bit late, but I wasn't at work during the weekend ;)
strtotime() works fine for this!
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M
message
Reply
JavaScript... not PHP... JavaScript=clientside... PHP=serverside
JS:
window.open();
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
, but you know what helps? Writing code that doesn't produce
any errors or warnings. Supressing warnings by just not showing them
doesn't really make your code very reliable does it?!
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
--
--
PHP General Mailing List
What do you mean force declaration? That's what you are doing with this
line:
$Test = 3;
Nop! This is just starting to use a variable. Something like:
integer $Test;
is declaring a variable. But FAFAIK it's not possible in PHP :(
--
* RzE:
--
-- Renze
better). It's terrific actually. I just wish sometimes that the
compiler wouldn't allow so many things. It might just be a bit more
strict. Or at least a seperate option for being more strict. Eg
something like E_EXPLICIT_DECLARE ;)
--
* RzE:
--
-- Renze Munnik
about the *very* few cases in which it is
unavoidable. Though, this isn't one of 'm.
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-page, and indeed it works like a charm;
getimagesize(URL). So now I don't understand what they were talking
about.
Anyway... So a @ is indeed in place _for_this_one_.
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31
. Everyone gets it his/her way and it bothers noone.
But anyway... I don't think they'll ever implement this, so (...)
NOTE:
PHP Rulz and this is just a small thing that doesn't change anything
to the superb power of PHP webbuilding! :)
/Reply
--
* RzE:
--
-- Renze Munnik
loop for instance.
Cheers
Nic
/Original message
Reply
It's in the manual:
void flush (void)
see: http://www.php.net/manual/en/function.flush.php
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23
.
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
--
--
PHP General
been struggling with this for awhile, since I really do not
want to explode, pun intended :)
Rick
/Original message
Reply
This you do the job exactly as you want:
http://www.php.net/manual/en/function.substr-count.php
int substr_count (string haystrack, string needle)
/Reply
--
* RzE
redirecting the user to a different page, you should
always put exit after the header() call.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM
Yes that's what I do but it freeze on netscape 6 ?
FAFAIK the client's browser can't influence the header() call in
your script. Are you sure there aren't any errors somewhere else. Eg
before the header() call or at the start of the page where you
redirect the user to?
--
* RzE
. A good way to tell if this might be the case is to view the
source of the page you get stuck at.
Yep! Or set the error-reporting-level to eg 2047 and check the
logfile(s).
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F
/Original message
Reply
Check the manual first in the future:
http://www.php.net/manual/en/function.htmlentities.php
Good luck!
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
--
--
PHP General Mailing List
allow
characters allowed by specifications. I didn't spend much time on
that point. What I did was just creating the RE to parse the URL's.
The allowed characters weren't really of my concern then.
Let me know...
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL
Original message
From: Lic. Rodolfo Gonzalez Gonzalez [EMAIL PROTECTED]
Date: Tue, Sep 18, 2001 at 08:15:50PM -0500
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem: ereg doesn't wo
On Tue, 18 Sep 2001, * RzE: wrote:
and get DD-MM-, but with well formed -MM-DD it doesn't
and you don't have any problems when
using frames, 'cause you just make this call from the frame you want
to be printed.
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein
of PHP Example Code ---
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
for the warning!? It's actually exactly like in the manual
pages:
bool session_register (mixed name [, mixed ...])
^
and
bool session_unregister (string name)
^^
:)
/Reply
--
* RzE:
--
-- Renze Munnik
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
--
--
PHP General Mailing List
a valid time(stamp) :)
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
else
}
Thanks.
/Original message
Reply
I think your problem isn't really the if-statement itself. You
should use == io =. So it would be:
if(isset($REMOTE_USER) $AUTH_TYPE=='securid') {
^^
^^
/Reply
--
* RzE
));
print (Days: $days_differ);
?
/PRE
--- End of PHP Example Code ---
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
someone help me? I am down to
my last options :(
/Original message
Reply
Dunno what you want to do exactly, but have you ever thought about
split()?
Something like: $myColumns = split (|, $contents);
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E
= * RzE: [EMAIL PROTECTED],
[EMAIL PROTECTED],
Mr Nobody [EMAIL PROTECTED];
$emlchars = [a-z0-9.-]+;
$RE = /($emlchars@$emlchars)/i;
if (preg_match_all ($RE, $from, $matches)) {
print (H1Matched!/H1\n\n);
print_r ($matches);
} else {
print (H1Didn't match!/H1);
}
?
/PRE
--- End
);
printf (Year : %4d\nMonth: %02d\nDay : %02d\n,
(integer)$matches[1],
(integer)$matches[2],
(integer)$matches[3]);
} else {
print (H1Didn't match!/H1);
}
?
/PRE
--- End of PHP Code Example ---
/Reply
--
* RzE
kinds of things on your computer
without being prompted for them.
Page breaks are not part of HTML. Simply because HTML was never
designed for that kind of puposes.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F
of the users can see/use is not realy every very
great solution. You build sites in order make as many people
visit/use/see them as possible. Not just that one part of the world
that uses the browser that you like.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E
.
But pages made for newer browsers hardly ever work fine on older
browsers.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
will not show up in many browsers
they way you intended it.
It's a damn shame, but true.
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
could U list the URL
http://www.radio.net/rfc1861.txt?number=1861
This URL doesn't exist. Please check it...
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
http://www.ietf.org/rfc/rfc1861.txt?number=1861
There. How is that.
A lot better :)
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
...
? RE ? Sorry, I am not a club insider:)
Not realy any kind of club... just lazy typing; RE stands for
Regular Expression.
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
modifier? You're making it to difficult for
yourself (and others). No need for the messy solution you created...
Just use RE's that are as simple as possible. It has the best
performance and it reads a lot easier.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E
($ime))
if ($ime == Nikola $vrednost == 100){
echo Zdravo $ime br;
echo Iznos na Vasem racunu je $vrednost dolara;
}
?
/body
/html
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6
or not $ime and $vrednost are defined/set at
all? (isset ($ime) or !empty ($ime))
if ($ime == Nikola $vrednost == 100){
echo Zdravo $ime br;
echo Iznos na Vasem racunu je $vrednost dolara;
}
?
/body
/html
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E
;
if (!session_is_registered) {
session_register (count);
}
}
$count[0]++;
--- End of PHP code ---
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
exactly, btw.
--- PHP example ---
?php
$txt = And now :D some :-) smiley =( kind of ;) thing.;
$match = array (:D, :-), =(, ;));
$replace = array (1, 2, 3, 4);
print str_replace($match, $replace, $txt);
?
--- End of PHP example ---
/Reply
--
* RzE:
--
-- Renze Munnik
then? You could
use the very simple pure regexps if you don't also want to
match/replace the www.some.thing. If you only want to replace the
URL's that start with the protocol, then you can use the pure
regexps. If not... to bad, you'll need /e.
--
* RzE:
--
-- Renze
,
' A href=\'.\$repl['\\1'].'\\3\'.\$repl['\\1'].'\\3/A',
$mem);
print ($mem);
?
/PRE
--- End of PHP code ---
I'll let you know when I find a better way... I think there must be
one...
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED
/A',
$mem);
print ($mem);
?
/PRE
--- End of PHP code ---
...and ...keep on trying...
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
to test the regexp's thoroughly. (sorry?!)
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
to destroy.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
code ---
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
--
--
PHP
--- End of PHP code ---
This still needs some optimization imo (...)
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http
/A,
A href=\http://$1\;http://$1/A);
$mem = preg_replace ($pattern, $replace, $mem);
print ($mem);
?
/PRE
--- End of PHP code ---
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
You should replace the slash by a dot:
http://www/geocities.com/SiliconValley/Lab/6888/prpats.htm
^
|
v
http://www.geocities.com/SiliconValley/Lab/6888/prpats.htm
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
--
--
PHP General Mailing List
/A'
: 'http://\\1\;http://\\1/A'), $mem);
print ($mem);
?
/PRE
--- End of PHP code ---
Let me know if this was what you were looking for...
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6
if this is what you need.
--- PHP code ---
preg_match_all (/a[^]*(.+)\/a/imU, $StringToSearch, $matches);
print_r ($matches);
--- End of PHP code ---
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-checking your code is correct. You
should make a diffent page with a link to the page where this code
is on and test it by clicking that link.
It should work then...
Hope this helped you out...
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED
:
TEXTAREA style=width: 400px; height: 200px;/TEXTAREA
And for Netscape... well... you'll have to live with only using
cols= and rows=.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6
call 'big
enterprises', don't stick to that standard. And yes... indeed...
they don't stick to it.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
. $bestsketch. $line.
$bestanimation. $line. $bestcomedyfilm. $line. $bestfilmchar. $line. $bestquiz.
$line. $worstsitcom. $line. $comments;
?
/Original message
Reply
Look at line 21, then.
You forgot the semicolon:
$line = \r\n;
^
/Reply
--
* RzE
(.*) by ([^\]*) remedies this. is a much better
solution. It's what you're looking for in the first place. I mean...
you're looking for some text that goes 'till the . Why would you
want to use '.*' then?
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED
to
ensure that the data you are using is safe.
/Quote from PHP manual
See: http://www.php.net/manual/en/language.variables.predefined.php
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6
frames, which I don't know if you want.
One thing I can tell you though... of a page that's being shown, you
cannot hide the URL. Never.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6
... And if this wasn't the problem... Tell me/us!
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
($p_answers)){
3 foreach($p_answers as $value) {
4 $sql = INSERT INTO RESULTS(SURVEY_ID, ANSWER_ID) VALUES( . $p_surveyid . ,
. $value . );;
5 mysql_query($sql);
6 }
7 }
8 } else {
etc.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E
.
how can i do it?
thanks in advance,
marcos
/Original message
Reply
When it's about _showing_ 10 characters, and not to change the
string itself:
$yourString = abcdefghijklmnopqrstuvwxyz;
printf (%.10s, $yourString);
/Reply
--
* RzE:
--
-- Renze Munnik
;
print inttoword(152).\n;
print inttoword(1000).\n;
print inttoword(101032).\n;
print inttoword(11).\n;
?
/PRE
--- End of PHP code ---
Let me know if this is what you're looking for and/or if you have
optimized it.
Good luck!
/Reply
--
* RzE:
--
-- Renze
Original message
From: * RzE: [EMAIL PROTECTED]
Date: Fri, Aug 31, 2001 at 02:03:06PM +0200
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] number to word converter
Oh... btw... It works uptil 99. So you can convert everything
between 1 and 99. Zero (0) cannot be converted (stupid
.
Thanks in advance.
Kenn
/Original message
Reply
JavaScript is your solution!
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
authorized aren't allowed to
see the page (which makes sense ;). I don't know ofcourse how you
take care of things, but for me it's no problem if unauthorized
people get URL's where they shouldn't look. I mean... the server
just denies access. Problem solved!
/Reply
--
* RzE
?
-Hass
/Original message
Reply
for ($i = 1; $i 4; $i++) {
$myVar = bob$i;
print ($$myVar);
}
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
Original message
From: * RzE: [EMAIL PROTECTED]
Date: Fri, Aug 31, 2001 at 04:36:36PM +0200
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] Variable Syntax Question
Btw... Why not just use an array?
input type=text name=bob[]
input type=text name=bob[]
input type=text name=bob[]
input type
the code that you've now replaced by form.
It might just be that the error is in that part.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
() next time... ;)
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
= Hello.IF($var2 = 1) { .Mr. Bean. } else { .New Comer. }.
To The Coffee House.;
Thank you,
Brandon Orther
/Original message
Reply
This is it:
$var = Hello.($var2 = 1 ? Mr. Bean : New Comer).To The Coffee House.;
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
Original message
From: * RzE: [EMAIL PROTECTED]
Date: Thu, Aug 30, 2001 at 06:05:57PM +0200
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] If statement within a variable?
This is it:
$var = Hello.($var2 = 1 ? Mr. Bean : New Comer).To The Coffee House.;
/Original message
Reply
Oops
that the original script will write the line to the
logfile although the user is already redirected to the next page.
Btw... 30 seconds is a rather long time. No user will ever want to
wait that long. Just my opinion...
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
---
$y = substr($row[0],0,4);
$m = substr($row[0],5,2);
$d = substr($row[0],8,2);
$dy = date (D, mktime(0,0,0,$m,$d,$y));
and just using the date field
$dy = date (D, $row[0]);
--- End of PHP code ---
/Reply
--
* RzE:
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink
a pretty long timeout already.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
strings from your db you'll have to parse 'm first and
then put them through mktime() (like you do in your example). Then
you have a real timestamp and you can put that through date().
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31
first have to submit the form before the PHP
starts. And then it's too late, 'cause at the moment you submit the
form, the files are already being uploaded.
You should really have a client-side solution for this (if there is
any).
/Reply
--
* RzE:
--
-- Renze Munnik
is the value... not the key.
Take a look at:
http://www.php.net/manual/en/control-structures.foreach.php
Quote from PHP manual
foreach(array_expression as $value)
foreach(array_expression as $key = $value)
/Quote from PHP manual
I think this solves your problem...
/Reply
--
* RzE
;
else
print $key2;
print ;
}
print \n;
}
print /pre;
?
--- End of PHP code ---
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
someUpdateFunc () {
var selValue = document.frm.mySel.options[document.frm.mySel.selectedIndex].value;
alert (You selected: +selValue);
}
/SCRIPT
/HTML
--- End of HTML example ---
This will show you what you need (I hope)...
/Reply
--
* RzE:
--
-- Renze Munnik
output to the user. So
what you put at the end of that page is:
SCRIPT type=text/javascript
window.opener.reload(true); /* reloads the main page */
window.close(); /* closes the popup */
/SCRIPT
Hope this is what you were looking for...
/Reply
--
* RzE
Reply
SCRIPT type=text/javascript
window.parent.name-of-mainframe.reload(true);
/SCRIPT
That should be what you're looking for...
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6
a form in a subframe you can just use the reload-thing as
I sent earlier and then use sessions. Then you don't need to send
params over the URL.
But like I say... that totaly depends on the construction as you use
it.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
Reply
Don't know which OS you're using, but the printer-functions only
work with Windows:
http://www.php.net/manual/en/ref.printer.php
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6
message
Reply
Hello! Did you ever take the time to look at the manual? Or some
previous posts?
http://www.php.net/manual/en/ref.printer.php
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M
JavaScript.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
it doesn't matter at all which browser you
use. PHP is processed server-side, so the browser just gets 'plain'
HTML. I guess something else is wrong than using a different
browser.
/Reply
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31
);
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
--
-- http://www.datalink.nl
--
--
PHP General Mailing List (http
of the files in each directory. Can someone
give me a hint?
cheers
- seb
This should give you all info you need:
http://www.php.net/manual/en/ref.dir.php
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23
for: msql_num_rows()
Try:
http://www.php.net/manual/en/function.msql-num-rows.php
--
* RzE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
98 matches
Mail list logo