e.php3
isn't the way to do it! You _could_ use
$file = $file.".php3";
though.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
--
ear = date("Y") + 3;
$newDate = date("Y-m-d",mktime(0,0,0,$month,$day,$year));
or
$newDate = date("Y-m-d",mktime(0,0,0,date("m")+11,date("d"),date("Y")+3));
-
And that's all you need!
--
* R&zE:
-- »»
,
You could check one of the following variables:
$HTTP_SERVER_VARS{"OSTYPE"}
$HTTP_SERVER_VARS{"SERVER_NAME"}
$HTTP_SERVER_VARS{"SERVER_ADDR"}
$HTTP_SERVER_VARS{"HTTP_HOST"}
or
$HTTP_SERVER_VARS{"DOCUMENT_ROOT"}
Check phpinfo(), it gi
way. Actually I think it's even (a lot)
better then the JS solution I mentioned.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-
TTP_REFERER isn't really something to rely
on. $HTTP_REFERER doesn't always have to be set. In that case you
can't go either Back nor Forward.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +
will come up where one
would need it. I think.
To be short... FAIK it's exactly what's called: a unique ID.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 2
keep using
that word? Wow... then you must have absolutely no clue of what
words like 'is' and 'the' mean. Yes, I know... this doesn't make
sense... Neither does your remark (...)
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PRO
onstruction. You redirect the user to a completely
different page.
>
> No offense intended,
None taken... and none intended...
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
t's transparent or something? Can't get any worse.
That's the SiteStat/Nedstat style. Awful!
Besides that... what if I want to do some _serious_ processing
instead of 'drawing' an image? Then, if I use your solution, I
always have to create (or redirect to) an image. Not t
ffering. This way, the error-message will not be sent
> to the browser but remain in the buffer. Just look into the buffer if
> there is an error and react. Also, you should erase the error-message
> from the buffer.
3) Write your own error-handler:
http://www.php.net/set_error_handl
ment. Sorry!
--
* R&zE:
-- »»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM HAARLEM
--
-- http://www.datalink.nl
-- ««
like that is:
onclick="window.location.href='blahblahblah.php';"
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsple
RVER_VARS{"UNIQUE_ID"}. I don't know (yet) was it is, but it
sounds usable, doesn't it?
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 551619
l. thanks mates
>
> -student of computer science
FAIK the only possibility is to redirect to the PHP script. Then
you'll get something like:
window.location.href="myscript.php";
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-
7;t this be a security problem?
Christian,
This can indeed be a security issue. Try using
$HTTP_SESSION_VARS{"uid"} instead. It's a saver solution. Then one
cannot just use ?uid=10 in order to fool you. At least, not in that
way.
--
* R&zE:
--
-- Renze M
ntication.php:
session_register('$emp_id');
should be:
session_register("emp_id");
and in logout.php:
session_unregister($emp_id);
should be
session_unregister("emp_id");
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMA
closes. That's why I
mentioned (not really asked) how you thought to detect the browser
closing.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
on_start() on each page you
want to use the session-info. And no, you don't need
session_destroy() when the user closes the browser. The session is
ended automatically then. And btw, how would you detect whether or
not someone has closed his browser?
Hope this was an answer to your questio
s values?
>
> thanks, gracias
Did you use session_start() in the file where you try to output data
from the session?
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 53221
uot;QUERY_STRING"}
Eg.: http://www.some-domain.com/index.php?one=xxx&two=yyy
$HTTP_SERVER_VARS{"QUERY_STRING"}: "one=xxx&two=yyy";
But you can also use:
$HTTP_GET_VARS{"one"} and $HTTP_GET_VARS{"two"}, etc:
$HTTP_GET_VARS{"one"}: "xxx&q
d headers and that session_start() should be as close
as possible to the start of your script.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsple
>file://header( 'WWW-Authenticate: Basic realm="Private"' );
>file://header( 'HTTP/1.0 401 Unauthorized' );
>exit;
> }
>
> ?>
Well... You can't sent any headers after some output has already
been sent. I didn't take a
);
> echo $theFile;
Using/emulating GET for security isn't realy a very smart thing to
do. Everyone can just use the URL as you show it. Using POST isn't
completely waterproof either, but at least you don't just give a way
your security information.
--
* R&zE:
-- »
m between these two comments.
>
> Any help, and/or example code would help a lot.
This is for an exact match of your example above:
preg_match ("/]+CONTENT=\"([^\"]+)\"/", $string, $matches)
If you don't know if it's in upper and/or lower case:
preg_mat
have no
troubles wse with the constructions.
It doesn't matter if I only type the path, or that I put the whole
path in one variable or that I use both a variable and a (part of)
the path. The result is exactly the same. (as it should btw).
--
* R&zE:
--
-- Renze
til now this is the best option I've come up with.
Hope it works for what you had in mind.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31
..
>
> Is there anyway to restrict the reposting?? Means after pressing logout button we
>shouldn't allow the user to go back or reposting the data again and getting session
>again.
I don't know (yet)... I'm gonna try to find out. I'll let you know.
--
* R&
ook, but I think you forgot (or didn't know to)
add session_start() to your code. So it will be:
Otherwise you don't have any session to destroy...
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 53
t I do know that -like
the warningmsg says- you try to send headers while on line 2 you've
already sent some output (echo, print, whatever).
You'll have to put the session_start() before your output.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [E
://www.php.net/manual/en/function.session-destroy.php
--
* R&zE:
-- »»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM HAARLEM
eady mentioned), or you should
use JavaScript (window.print()).
--
* R&zE:
-- »»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM
pendir ("$bar/common/"))) {
// Some error here, and don't try to use $handle after this!
}
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
lar expression,
it would be expressed thus:
'[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'
= =
So I'd say: $threeMonths.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 55161
don't think that works :-)
--
* R&zE:
-- »»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM HAARLEM
--
-- h
he output would at least be:
someval from page.php
from foo
Like I said... I don't have any problems with it. The output is:
someval from page.php
someval from foo
(and all this without any errors or warnings!)
Pretty much what you'd expected...
--
* R&zE:
-- »»»
ve any warnings and/or errors logged to your
logfiles? Or do you have the errorreportinglevel set to absolute
nothing? You ever check if anything goes wrong? How the h*ll can you
guarantee functionality of your site?
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EM
:
$a = 8.8512;
$b = 7.1237;
$c = 100;
$result_i = (int)(($a-$b)*$c);
$result_f = (float)(($a-$b)*$c);
See the diff between $result_i and $result_f? And if you realy need
an integer, $result_f isn't realy what you're looking for.
--
* R&zE:
--
-- Renze Munnik
an integer and not
converting it to an integer the result is perfectly okay.
Btw: (int)((8.85*100)-(8*100)), _does_ return a correct result.
--
* R&zE:
-- »»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Try using sessions. Put the values/variables from $HTTP_POST_VARS
into the session and then U can use 'm again on b.php.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31
array than just a normal variable.
>
> Just my .02c :)
>
> Regards
>
> Chris
You could not be more right!
Always use stuff like $HTTP_SERVER_VARS, $HTTP_POST_VARS, etc. It's
the savest/best way!
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-
for
Internet-applications. And eventhough you can disable caching and
history and stuff, those damn things _do_ remember things from the
past and they think it's realy convenient to use that. It's quicker
dude! Yeah, well: fuck it! I don't want it to be quicker... I want
it to be righ
On Wed, Aug 08, 2001 at 10:06:51AM +0200, Renze Munnik wrote:
> (...)
> checks the returnvalue of printf() and stuff (another thread in this
> list).
oops... it's the same thread...
I NEED COFEE!!!
--
* R&zE:
-- »»»»»»»»
-- Renze Munnik
-- DataLink
ks the returnvalue of printf() and stuff (another thread in this
list). So... well... Let's just say I have a 'checking-fetish' of
some kind :p
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F:
like RTFM?!?! But, hey; it's true alright. Do it all the time.
Well... pretty often anyway.
> i was only trying to pass on info about differences between function calls,
> statements and constructs, and hopefully helping someone out in the process.
Okay... "problem" solved.
On Tue, Aug 07, 2001 at 09:23:02AM -0600, mike cullerton wrote:
> on 8/7/01 2:43 AM, Renze Munnik at [EMAIL PROTECTED] wrote:
>
> > On Mon, Aug 06, 2001 at 12:31:38PM -0700, Mark Maggelet wrote:
> >> i can't tell if it's just a email formatting thing, but if t
se error: parse error, expecting `T_VARIABLE' or `'$''
> Could someone please tell me the more than likely simple sollution.
>
> Thanks
>
> Taz
if (!isset ($submit))
or
if (!isset ($submit) || empty ($submit))
You were SO close!
--
* R&zE:
-- »
ting makes a lot of difference in
your logfiles. Without quoting yet get al kinds of warnings.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23
the result of the thread... It's the code you need.
=[ Get remote IP ]=
if(getenv(HTTP_X_FORWARDED_FOR))
{
$ip=getenv(HTTP_X_FORWARDED_FOR);
}
else
{
$ip=getenv(REMOTE_ADDR);
}
$host = gethostbyaddr($ip);
===
--
* R&zE:
--
#x27;s about
the exact same question you just asked.
Try reading that!
It's called: user's ip
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Statio
ult_id,3))."] aasasasas");
or
printf ("balalala [%s] aasasasas", trim(odbc_result($result_id,3)));
Well... as I said, many possibilities...
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W:
you for specifying the question. And eh, you're right. I
just didn't know the question was about this problem.
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 551619
ay... Help me out here...
You want to know someones IP-address and using $REMOTE_ADDR you get
the IP-address of the user. What's the problem man?!?!?!
--
* R&zE:
-- »»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 532
Try using stripslashes() before htmlspecialchars().
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM HAARLEM
--
--
> mitja.
One simple function number_format:
http://www.php.net/manual/en/function.number-format.php
--
* R&zE:
-- »»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
--
input) there's still the
possibility that $input isn't defined at all. And then some horrible
error still arises in your logfile.
Note btw that you shouldn't change the order of isset() and empty()
in the above example.
--
* R&zE:
--
-- Renze Munnik
--
gt;
> Damiano
Most likely!
You can e.g. use phpinfo() (or phpinfo(INFO_MODULES) to see if it is
installed.
--
* R&zE:
-- »»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
the variable names. I
mean... how else do you use the values you're talking about?
$HTTP_POST_VARS{"var_1"}, $HTTP_POST_VARS{"var_2"}, etc.
var_1 and var_2 are the variable names...
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED
ike a general wondering...
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6 218 111 43
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
ho there?!?!?!
Just fopen($agentcode."CyberTrac.ctr", "w"); works (like someone
already mentioned before), so why would you use some _UGLY_
construction with echo???
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6
eal code
next time, so people can see what you're trying to do.
And then...
"inf" = "inf" doesn't work _at all_! It produces an error. If you
use "inf" == "inf" the result is exactly what you'd expect.
And then...
In your real code, which is
g example:
-
$a = "Hello";
$b = "Wold";
if ($b == $a)
print "Yes, b equals a\n";
else
print "No, b doesn't equal a\n";
if (($b = $a) == $a)
print "Yes... now b equals a\n";
else
print "Oops... b still doesn't equal a!
; To contact the list administrators, e-mail: [EMAIL PROTECTED]
Check the manual!
"Filesystem functions"
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6 218 111 43
***
--
PHP General Mailing List (http://www.ph
s, anyone have
>a function?
>
> TIA
>
> Wade
Try:
ereg_replace();
(http://www.php.net/manual/en/function.eregi-replace.php)
or
preg_replace();
(http://www.php.net/manual/en/function.preg-replace.php)
--
* R&zE:
***
** Renze Munnik
**
** E: [EMA
o do... but
it pretty much sounds like something for a foreign key. If you don't
like that option, you'll have to change your code (PHP or sp,
wherever you do it) that inserts the data. That function should then
also insert/update the data in the other table.
--
* R&zE:
CTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
You select from two tables that both have a column named 'compid'.
Your computer doesn't know which one of them it should use. So, you
should make that decision for 'm:
SELECT users.compid
or
SELECT
TED]
> "There is nothing more rewarding than reaching the goal you set for
> yourself"
In order to completely destroy the session:
session_destroy();
No arguments, just void.
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6 218
gt; Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set for yourself"
If you want to delete the complete session session_destroy.
http://www.php.net/manual/en/function.session-destroy.php
--
* R&zE:
***
**
hash io separate variables? And, eh, why do you
quote integer values? What I would suggest is something like this:
/* Just as you already had */
$folder[0] = "basic";
$folder[1] = "standard";
$folder[2] = "knowledge";
/* -- HASH -- */
$totalsub{"basic"
;ll have to remind you on a previous thread about quite the same
problem. The checkdnsrr can slow down the performance of your own
site. It _can_ make it terribly slow. Draw your own conclusion.
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M:
filename: $f_name[myFile]
size: $f_size[myFile]
mimetype: $f_type[myFile]
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6 218 111 43
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
ime to explain exactly how to do
this, but JS is the way for this.
If your in a hurry and noone else in this list _has_ got the time to
'finish' my msg, try posting a msg on a JavaScript newgroup.
E.g.:
secnews.netscape.com: netscape.devs-javascript
I'm sorry I
et off those stupid msgs. Try going to
their STMP server, you'll find out that your email-address is a
valid user on their system. How funny is that? NOT FUNNY!!!
I still haven't found anything to make 'm stop.
--
* R&zE:
***
** Renze Munnik
EMAIL PROTECTED]
Have you ever checked the $HTTP_USER_AGENT value from IE?
IE says:
"Mozilla/4.0 (compatible; MSIE 5.01; Windows 95)"
(for example)
So, you shouldn't be checking for Mozilla. IE says that to.
--
* R&zE:
***
** Renze Munnik
**
** E:
he JavaScript that calls window.confirm().
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6 218 111 43
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
bility for sites where people can create an account of
some sort. When it just concerns some visitor information, there is
no reliable way of checking the complete address. Just like e.g. the
first- and lastname of the visitor. You just _cannot_ check that!
--
* R&zE:
**
ake sure PHP isn't installed as module.
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6 218 111 43
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
uot;service" would be
scanning your mailserver and spamming it to death!!
So... you'll just have to accept the username...
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6 218 111 43
***
--
PHP General Mailing
ou'll get a result whether or
not the domain has an MX-record. Only thing left is whether or not
the user exists on the given mailserver. But for as far as I know
you can't automatically check that.
--
* R&zE:
***
** Renze Munnik
for session-handling?
Look at:
http://www.php.net/manual/en/ref.session.php
or (Spain):
http://www.php.net/manual/es/ref.session.php
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6 218 111 43
***
--
PHP General Mai
logic which is messed up. Face it -
> just disable gzipping for Netscape users. JUST DO IT! Anyone else
> who can't handle gzipped stuff will have the good sense to not
> announce that it can accept it in the headers.
>
>
>
> Renze Munnik wrote:
>
> > This error
ow. Something so extremely
simple, and I just _DID NOT THINK ABOUT IT_. Anyway... I disabled it
and it makes no difference.
Conclusion (for now...):
HTTP/1.0 is not the problem, NS is.
Another lovely bug from the NS-services.
So
This was a pretty useless try from me.
Thanks for attending me to the
hat's the case I should disable the compression for each and
every browser that uses HTTP/1.0 instead of only disabling it for
NS.
--
* R&zE:
***
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6 218 111 43
***
--
PHP Genera
ack again:
> $a = unserialize($s);
> var_dump($a);
>
> -
> -elias
Hi,
Never tried it either, but from previous postings I remember you
should just be able to use array's with no prob's.
(4 all I can remember i.e.)
* R&zE:
***
** Renz
Paul Godard wrote:
>
> Hi,
>
> I am finalizing a new web site that needs to be live this week-end
> and I still have a problem to receive HTML email send from a web page
> using implode in php. Help to fix the problem will be VERY much
> appreciated...
>
> Please reply directly to [EMAIL PROTE
PHP3 doesn't support sessions
RenzE
Theo Richel wrote:
>
> Can anyone please tell me why I get the following message: Fatal error: Call
> to unsupported or undefined function session_start() in
> /www/richel/authent/index.php3 on line 22
>
> Thank you,
>
> Theo Richel
--
PHP General M
Well, try this:
$REMOTE_USER
or
$PHP_AUTH_USER
or
$HTTP_SERVER_VARS["REMOTE_USER"]
or
$HTTP_SERVER_VARS["PHP_AUTH_USER"]
or
$HTTP_SERVER_VARS{"PHP_AUTH_USER"}
or
$HTTP_SERVER_VARS{"REMOTE_USER"}
...make your choice...
RenzE
Rahul Bhide wrote:
>
PHP Documentation:
"Note: Session handling was added in PHP 4.0."
RenzE
Sean Weissensee wrote:
>
> How can I create Session Varables, the docs I have read only provide funtions
> for PHP4.
>
> Sean Weissensee
>
> Ion Solutions.
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
I think nl2br() is what you're looking for.
RenzE
Matt Davis wrote:
>
> I have a form that edits the text on a web page by putting the data into a
> db and then outputting to the webpage when it is called. When I enter my
> text into my form I use the return key to start new lines, but when
To get back to your remark about those stats; I just did.
Less than 1% uses NS!
But still... I'd like to have a site that just works!!!
RenzE
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Yep... You're right (again...). Though I must say that the transfer
_is_ a 'problem'. Not only for NS users, but for most people,
because let's face it; most people still use a modem (39K, 56K...)
for Internet and not the 2Gb line that I have. I've got not problems
with transfer-speed at all, but
A well... what shall I say. I have to agree with you _A LOT_!!!
Netscape ruled, but doesn't anymore. It's a damn shame. They pretty
much stick to the standards (which I like very much) but the program
(browser) is f*cked up.
Anyway... My pages contain some tables about three within each
other. An
The referer isn't always defined though... not even if it would be a
valid one. Some browsers just don't want to cooperate...
RenzE
Jon Rosenberg wrote:
>
> You could just check the referrer, as pseudo-code below shows.
>
> if refferer is not valid{
> exit;
> }
> else{
> do my stuff;
Ehhh... do you want to have them all go to the same page after a
submit?
With real submit buttons:
If you don't, you can just change the 'action' of your form at the
moment that someone pushes one of the submit-buttons.
With 'fake' submit buttons:
Otherwise (if they all have to go to the same pa
If you _do_ want to use this method for comparing dates (which isn't
realy a usual way of doing it... there date-functions) you should
fill up with leading 0's, like:
$date1="2001-01-07"; $date2="2001-01-14";
The reason is _very_ simple... You performing a text-compare here.
And let's face it...
Thanks for bringing up this solution. However... I already thought
of this option myself. Problem, though, is that _ALL_ my pages
should be printable. Maybe a very small number of pages will not
have to be printable, but those are so small that the compression
isn't realy necesary. Besides that I
Okay
ob_start ("ob_gzhandler") is a very cool thing to use. At least when
you write _to much_ code like I do. And it works perfectly
most of the time, i.e.
I've got this problem:
My pages start with the gzhandler (see above) to decrease the amount
of data that should be transferred
There may not be any headers before you use the 'header' statement.
The header("Location:...") should be the first output you send. You
might want to consider moving the two 'anti-cache' headers after the
header("Location;...") statement.
RenzE.
On Mon, Mar 26, 2001 at 11:06:11PM +0800, E K L w
*
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
The JavaScript solution to this:
window.home();
Don't know how to do this in PHP. Don't this that's possible...
RenzE
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrat
Well, you can use the $HTTP_REFERER, but it's not all to reliable.
On Mon, Mar 26, 2001 at 04:13:17PM -0600, Jacky wrote:
> Hi all
> Is there anyway I can get the domain name where the viwer came from and write it out
>on my page?
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding th
1 - 100 of 102 matches
Mail list logo