Re: [PHP] basename()

2001-08-21 Thread Renze Munnik
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 --

Re: [PHP] Date Functions

2001-08-20 Thread Renze Munnik
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: -- »»

Re: [PHP] Unix vs PC test for server

2001-08-16 Thread Renze Munnik
, 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

Re: [PHP] Fussy logic...

2001-08-16 Thread Renze Munnik
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 -

Re: [PHP] Fussy logic...

2001-08-16 Thread Renze Munnik
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: +

Re: [PHP] session security issue

2001-08-16 Thread Renze Munnik
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

Re: [PHP] could i get a clue?

2001-08-16 Thread Renze Munnik
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

Re: [PHP] could i get a clue?

2001-08-15 Thread Renze Munnik
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 --

Re: [PHP] could i get a clue?

2001-08-15 Thread Renze Munnik
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

Re: [PHP] error

2001-08-15 Thread Renze Munnik
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

Re: [PHP] Onclick and PhP

2001-08-15 Thread Renze Munnik
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 -- ««

Re: [PHP] Onclick and PhP

2001-08-15 Thread Renze Munnik
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

Re: [PHP] session security issue

2001-08-15 Thread Renze Munnik
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

Re: [PHP] could i get a clue?

2001-08-14 Thread Renze Munnik
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] -

Re: [PHP] session security issue

2001-08-14 Thread Renze Munnik
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

Re: [PHP] Re: prob with session start

2001-08-14 Thread Renze Munnik
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

Re: [PHP] session_questions() part IV

2001-08-14 Thread Renze Munnik
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 --

Re: [PHP] session_start() part III

2001-08-13 Thread Renze Munnik
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

Re: [PHP] session_start() part II

2001-08-13 Thread Renze Munnik
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

Re: [PHP] How to get the query string?

2001-08-13 Thread Renze Munnik
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

[PHP] Re: prob with session start

2001-08-13 Thread Renze Munnik
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

Re: [PHP] plz check the warning message

2001-08-13 Thread Renze Munnik
>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

Re: [PHP] Having my script login to a secure area of another site.....

2001-08-13 Thread Renze Munnik
); > 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: -- »

Re: [PHP] Meta Tags and Regular Expressions

2001-08-13 Thread Renze Munnik
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

Re: [PHP] RE: help, weird include problem with functions

2001-08-10 Thread Renze Munnik
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

Re: [PHP] plz check the warning message

2001-08-10 Thread Renze Munnik
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

Re: [PHP] plz check the warning message

2001-08-10 Thread Renze Munnik
.. > > 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&

Re: [PHP] plz check the warning message

2001-08-10 Thread Renze Munnik
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

Re: [PHP] plz check the warning message

2001-08-10 Thread Renze Munnik
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

Re: [PHP] problem with session start

2001-08-10 Thread Renze Munnik
://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

Re: [PHP] Printing

2001-08-09 Thread Renze Munnik
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

Re: [PHP] RE: help, weird include problem with functions

2001-08-09 Thread Renze Munnik
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 --

Re: [PHP] correct date (cont.)

2001-08-09 Thread Renze Munnik
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

Re: [PHP] correct date

2001-08-09 Thread Renze Munnik
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

Re: [PHP] RE: help, weird include problem with functions

2001-08-09 Thread Renze Munnik
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: -- »»»

Re: [PHP] checking for null form fields fails

2001-08-09 Thread Renze Munnik
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

Re: [PHP] Bug?

2001-08-08 Thread Renze Munnik
: $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

Re: [PHP] Bug?

2001-08-08 Thread 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

Re: [PHP] Passing HTTP_POST from one script to another

2001-08-08 Thread Renze Munnik
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

Re: [PHP] user's ip

2001-08-08 Thread Renze Munnik
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 -- -

Re: [Re: [PHP] user's ip]

2001-08-08 Thread Renze Munnik
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

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Renze Munnik
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

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Renze Munnik
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:

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Renze Munnik
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.

Re: [PHP] checking for null form fields fails

2001-08-07 Thread Renze Munnik
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

Re: [PHP] if(!$submit)

2001-08-07 Thread Renze Munnik
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: -- »

Re: [PHP] IP Address

2001-08-07 Thread Renze Munnik
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

Re: [PHP] IP Address

2001-08-07 Thread Renze Munnik
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: --

Re: [PHP] IP Address

2001-08-07 Thread Renze Munnik
#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

Re: [PHP] function into string

2001-08-07 Thread Renze Munnik
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:

Re: [Re: [PHP] user's ip]

2001-08-07 Thread Renze Munnik
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

Re: [PHP] user's ip

2001-08-07 Thread Renze Munnik
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

Re: [PHP] PHP inside code problem

2001-08-07 Thread Renze Munnik
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 -- --

Re: [PHP] Currency help

2001-08-07 Thread Renze Munnik
> 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 -- --

Re: [PHP] checking for null form fields fails

2001-08-07 Thread Renze Munnik
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 --

Re: [PHP] Call to undefined function: imap_open()

2001-08-06 Thread 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 --

Re: [PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Renze Munnik
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

Re: [PHP] syntax

2001-04-12 Thread Renze Munnik
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]

Re: [PHP] syntax

2001-04-12 Thread Renze Munnik
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

Re: [PHP] string comparsion "inf"

2001-04-11 Thread Renze Munnik
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

Re: [PHP] assignment operator works for comparison??

2001-04-11 Thread Renze Munnik
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!

Re: [PHP] php -> html

2001-04-10 Thread Renze Munnik
; 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

Re: [PHP] apostrophe checks

2001-04-09 Thread Renze Munnik
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

Re: [PHP] Re: Error message

2001-04-06 Thread Renze Munnik
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:

Re: [PHP] Help w/Error Message

2001-04-06 Thread Renze Munnik
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

Re: [PHP] how do I delete session

2001-04-05 Thread Renze Munnik
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

Re: [PHP] how do I delete session

2001-04-05 Thread Renze Munnik
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: *** **

Re: [PHP] Is their a function for this?

2001-04-05 Thread Renze Munnik
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"

Re: [PHP] More Email ereg Validation

2001-04-05 Thread Renze Munnik
;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:

Re: [PHP] file upload question

2001-04-05 Thread Renze Munnik
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:

Re: [PHP] HOWTO: Dynamically Create A Form

2001-04-04 Thread Renze Munnik
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

Re: [PHP] stop these solfix.net messages

2001-04-04 Thread Renze Munnik
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

Re: [PHP] help with parse

2001-04-04 Thread 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:

Re: [PHP] a PHP fucntion like window.confirm("Click OK to continue. Click Cancel to stop.");

2001-04-04 Thread Renze Munnik
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

Re: [PHP] Validation Email in PHP programs

2001-04-04 Thread Renze Munnik
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: **

Re: [PHP] Shell Programming with PHP, but where is the PHP?

2001-04-03 Thread Renze Munnik
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

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Renze Munnik
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

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Renze Munnik
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

Re: [PHP] Global Variables

2001-04-03 Thread 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

Re: [PHP] GZip: NS or HTTP/1.0

2001-03-30 Thread Renze Munnik
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

Re: [PHP] GZip: NS or HTTP/1.0

2001-03-30 Thread Renze Munnik
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

[PHP] GZip: NS or HTTP/1.0

2001-03-30 Thread Renze Munnik
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

Re: [PHP] Array in Session-Vars?

2001-03-30 Thread Renze Munnik
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

Re: [PHP] Need urgent help... Send HTML with jpg/gif page with php

2001-03-29 Thread Renze Munnik
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

Re: [PHP] fatal error

2001-03-29 Thread Renze Munnik
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

Re: [PHP] sessions and REMOTE_USER

2001-03-29 Thread Renze Munnik
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: >

Re: [PHP] Session Varables with PHP3

2001-03-29 Thread Renze Munnik
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

Re: [PHP] Line breaks in PHP

2001-03-29 Thread Renze Munnik
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

Re: [PHP] GZip + NS + Print = Trouble

2001-03-28 Thread Renze Munnik
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

Re: [PHP] GZip + NS + Print = Trouble

2001-03-28 Thread Renze Munnik
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

Re: [PHP] GZip + NS + Print = Trouble

2001-03-28 Thread Renze Munnik
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

Re: [PHP] removing $HTTP_POST_VARS

2001-03-28 Thread Renze Munnik
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;

Re: [PHP] JavaScript and Submit

2001-03-28 Thread Renze Munnik
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

Re: [PHP] comparing dates works sometimes and fails another time!

2001-03-28 Thread Renze Munnik
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...

Re: [PHP] GZip + NS + Print = Trouble

2001-03-28 Thread Renze Munnik
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

[PHP] GZip + NS + Print = Trouble

2001-03-27 Thread Renze Munnik
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

Re: [PHP] Header Problem...

2001-03-26 Thread Renze Munnik
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

Re: [PHP] reading a URL...

2001-03-26 Thread Renze Munnik
* > > -- > 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] --

Re: [PHP] about:home

2001-03-26 Thread Renze Munnik
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

Re: [PHP] get the domain to display on my page

2001-03-26 Thread Renze Munnik
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   2   >