Re: [PHP] Would appreciate thoughts on session management

2002-11-10 Thread Ernest E Vogelsinger
ns, they get written to a file somewhere. Just make sure that this "somewhere" is a) read/writable by apache b) not read/writable by anyone else and you are (relatively) secure. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Global variables question

2002-11-10 Thread Ernest E Vogelsinger
ystem, and retrieving an object reference from the cache needs approx. 0.001 msec. Just to tell you, not even the cache object is global - there is a public wrapper function around it to return a reference to the global cache object. Currently we have approx. 85,000 lines of code, and absol

Re: [PHP] Questions on PHP Variables

2002-11-10 Thread Ernest E Vogelsinger
nce in curly brackets: $sql = "SELECT * FROM users WHERE username='{$_SERVER['PHP_AUTH_USER']}' and password='{$_SERVER['PHP_AUTH_PW']}'"; Note that I used single quotes within the array - it's for the paranoid like me only

Re: [PHP] attachement

2002-11-10 Thread Ernest E Vogelsinger
t the body is already in a 7bit mail-ready representation. This is the default value -- that is, "Content-Transfer-Encoding: 7BIT" is assumed if the Content-Transfer-Encoding header field is not present. [snip] Therefore, for plaintext headings you

Re: [PHP] attachement

2002-11-10 Thread Ernest E Vogelsinger
iANPj4gDWVu [...] RHA0NjcxUFJGbzgtMTZsNDM= --GU4wuTSk68F The message should also end with a boundary, but most mail client's omit this... For more information consult RFC2045 ff about MIME ftp://ftp.rfc-editor.org/in-notes/rfc2045.txt Hope this helps, -- >O

Re: [PHP] converting decimal to fraction and vice versa

2002-11-10 Thread Ernest E Vogelsinger
ch us 1/2 = 0.5 . [snip] Needs a lot of work before and after to check if things are right, but I believe you get the idea... -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailin

Re: [PHP] set_error_handler() Keeps Triggering Errors

2002-11-10 Thread Ernest E Vogelsinger
a dynamic variable named target: gets me Notice: Undefined variable: target in /www/test/test.php on line 4 Do a grep for "target" on your source files. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Function Problem

2002-11-10 Thread Ernest E Vogelsinger
meter on mysql_connect specifies if PHP should use an existing link, or create a new one. You should decide whether you want to go with mysql_select_db() or mysql_connect(). -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Ernest E Vogelsinger
re not redirected ', 'to the correct page, click here to', 'continue (sorry folks)', ''; exit; } // else no error - continue ?> -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Ernest E Vogelsinger
At 23:57 09.11.2002, Ernest E Vogelsinger said: [snip] >if ($we_found_an_error) { >$url = 'http://' . $_SERVER['SERVER_NAME'] . > '/my_error_handler.php?any_parameters_you_need'; >echo

Re: [PHP] Handling Errors Gracefully

2002-11-09 Thread Ernest E Vogelsinger
e javascript: ', 'document.location.href="', $url, '">', '', '', 'A nasty error has occurred. If you are not redirected ', 'to the correct page, click here to', 'continue (sorry folks)'

Re: [PHP] header function

2002-11-09 Thread Ernest E Vogelsinger
ative_url points to the same script... what browser make&model are you using? IE simply loops, without any error. A small glitch: in case dirname($_SERVER['PHP_SELF']) is empty (root directory), your header would look as: http://www.yourdomain.com//relative.php Note the

Re: [PHP] RegExp for Forum-List-Code

2002-11-09 Thread Ernest E Vogelsinger
t;; return $result; } $ubb = '[list] [*] item 1 äöü line 1 item 1 line 2 [*] item 2 [*] item 3 [/list]'; echo ubb2ul($ubb); ?> -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: preg_split problem

2002-11-09 Thread Ernest E Vogelsinger
of elements _ahead_, just the number of elements you want to receive - the "rest" will be in the last element. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_split problem

2002-11-09 Thread Ernest E Vogelsinger
ing array should have: $text = "And what did I tell you?"; list($one,$two,$three,$rest) = preg_split("/\s+/", $text, 4); print($rest); will correctly output "I tell you?" -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www

Re: [PHP] W3C and PHP

2002-11-09 Thread Ernest E Vogelsinger
right, and I was simply WRONG - apologies for any misinformation. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] re: W3C and PHP

2002-11-09 Thread Ernest E Vogelsinger
gt; d ) -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] W3C and PHP

2002-11-09 Thread Ernest E Vogelsinger
At 07:12 09.11.2002, conbud said: [snip] >Hi, >In some of my URLs I have to pass variables through the URL like >nav.php?page=about§ion=linux - when i do this and then scan my site for >W3C validation I get this >Line 40, column 28: >

Re: [PHP] Do I need the closing ?> tag

2002-11-08 Thread Ernest E Vogelsinger
nd therefore any tag should be closed. Most ascii editors can be configured to discard trailing whitespaces; and PHP will even ignore a newline character following immediately a closing tag: --[html]- Outside Outside --[html]- will correctly produce this: OutsideInsideOut

RE: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Ernest E Vogelsinger
--[snip] Make your command like this c:/abc/hello.exe 2>&1 to see if some error is given... might be a problem with environment space? -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing

Re: [PHP] big include

2002-11-08 Thread Ernest E Vogelsinger
This depends on the code - if you have a lot of comment, then it's usually faster ;-) Honestly - you need to profile this to get a real answer. If you have a "library" with a bunch of functions it would be better to include only a subset of functions when you need them. -- &g

Re: [PHP] php.ini

2002-11-08 Thread Ernest E Vogelsinger
[snip] you need to restart apache since your php is a loaded module: /usr/sbin/apachectl restart --or-- /sbin/service/httpd restart -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (htt

Re: [PHP] Other Notice problem...

2002-11-08 Thread Ernest E Vogelsinger
command displays the value buy >this way is deprecated. >How can i run the script without problems having register_globals=off? $v) { if ($parms) $parms .= '&'; $parms .= "$p=".urlencode($v); } ?> ... This will do what you want (untested, but should work) -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
r have the abilty to pass A reference like "foo(&$a)" and have the opportunity to choose at runtime if I want to use a reference here or not, but it's how they say... -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Other Notice problem...

2002-11-08 Thread Ernest E Vogelsinger
i set to off, i can't pass GET variables to other >page. how can you pass GET variables to other page without setting >register_globals=on? What do you mean by "pass it on to other page"? I'm afraid I don't get you. What are you trying to accomplish? -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Other Notice problem...

2002-11-08 Thread Ernest E Vogelsinger
switch ($_POST['status']) { case 'ADD': break; default: echo 'Unsupported status!'; } } else echo 'No status sent!'; -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
). You just cannot pass constants: function Product(&$language) { ... } // ok, but gives a notice Product(); // will fail Product('ger'); If you keep your code like it is be warned that it may break with a future version of PHP. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] File locking problem

2002-11-08 Thread Ernest E Vogelsinger
r you're accessing... This might delay the actual flushing for what reason ever. I don't believe PHP buffers files differently if they are accessed using an fopen url wrapper. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
ficially deprecated". Functions or methods accepting a reference are required to be "prototyped" that way - this helps you not to "forget" to pass by reference. You really should modify your functions using reference parameters when declaring them, if you're usi

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
ery welcome :) -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Other Notice problem...

2002-11-08 Thread Ernest E Vogelsinger
;t as well if (array_key_exists(3)) echo $test_array[3]; Get the idea? IMHO it's complete overkill with PHP to predefine variables since they're auto-initialized with NULL when used first. These notices are only for the development cycle, to aid us in spotting a pro

Re: [PHP] ob_gzhandler

2002-11-08 Thread Ernest E Vogelsinger
ob_gzhandler($buffer, $mode); } But I believe the problem must be somewhere in the outer logic - the callback you showed doesn't do any discrimination if it has a cache file or not. Check here, I'd suggest... -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] ob_gzhandler

2002-11-08 Thread Ernest E Vogelsinger
gzhandler($buffer, $mode); } But I doubt this would change anything here... ob_gzhandler _should_ return some value. You have some output in the file do you? -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Ernest E Vogelsinger
ello.exe), or simply use forward slashes (as c:/abc/hello.exe). -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] How to echo the end marker '?>'

2002-11-08 Thread Ernest E Vogelsinger
But I can't figure out how to escape ?> so that the > interpreter doesn't take it as the end of the script ! Any idea ? [snip] Try echo ''; This should work (untested) -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] HTTP POST FILE UPLOAD HELP

2002-11-08 Thread Ernest E Vogelsinger
ure the ACL's are set correctly. Usually Apache runs as "system", so make sure you're giving the "system" user full rights (or at least r/w/d) to this directory. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] ob_gzhandler

2002-11-08 Thread Ernest E Vogelsinger
ier. I personally believe it's better to have compression be done at the web server (refer to http://httpd.apache.org/docs-2.0/mod/mod_deflate.html). It's more general then, after all... -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Graphics question

2002-11-08 Thread Ernest E Vogelsinger
browser from caching. No-cache MIME headers are: header('Pragma: no-cache'); header('Cache: none'); -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Weird behaviour with references to objects...

2002-11-08 Thread Ernest E Vogelsinger
one that's passed as an argument, and leave the "original" $child unmodified! Crosscheck all of your class code (and the code utilizing it) it you're always passing references. Ref's work like a charm until you mess up at a single location. Well, having made my way

Re: [PHP] WAP resources for PHP

2002-11-08 Thread Ernest E Vogelsinger
type header, by setting the header yourself: header('Content-type: text/vnd.wap.wml'); Have fun (and post the URL when finished .-) ) -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.

Re: [PHP] PHP fopen() bug + solution

2002-11-08 Thread Ernest E Vogelsinger
while(!file_exists("index.php") { usleep(100); clearstatcache(); } while(filesize("index.php" < 10) { usleep(100); clearstatcache(); } This will sleep for 0.1 seconds, not really notable. Note that I put the call to clearstatcache() _after_ the sleep... --

Re: [PHP] Listing a few words from one sentence ??

2002-11-08 Thread Ernest E Vogelsinger
nks, so you could: $arwords = split(' ',$sentence);// make an array $arwords = array_slice($arwords, 0, 4); // return the first 4 entries echo join(' ', $arwords); // and show them -- >O Ernest E. Vogelsinger (

Re: [PHP] Why this open_basedir warning?

2002-11-07 Thread Ernest E Vogelsinger
t;index.php"); >include($foo); > >...and IT worked every time. So the problem appears to be related to using >concatenation in my include statement (?). > >Odd. Many thanks for the response! ------------[snip] Now _THAT'S_ odd - hmm.

Re: [PHP] Most current non-beta version, and bcc

2002-11-07 Thread Ernest E Vogelsinger
ot;; $header .= "Reply-To: ".$sender_email."\r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-Type: text/html; charset=iso-8859-1\r\n"; $header .= "X-Priority: 1\r\n"; $header .= "X-Mailer: PHP / ".phpversion()."\r\n"

Re: [PHP] Why this open_basedir warning?

2002-11-07 Thread Ernest E Vogelsinger
oks as if you were allowed to open all files below /home/cwiltgens, but not outside your home directory. Could it be that the correct path for your statement _should_ be /home/cwiltgens/.pix? -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PH

Re: [PHP] PHP and JavaScript

2002-11-07 Thread Ernest E Vogelsinger
received AND rendered, at this time the server has already forgotten about the request... There cannot (CANNOT) be any interaction between client-side Javascript and any server-side application. These two are effectively independent! Hope this clears things up... -- >O Ernest E. Vogelsing

Re: [PHP] Outputting multiple images

2002-11-07 Thread Ernest E Vogelsinger
RL it should point to... well, it just looks like this. 2) code your template like this: This will result in something like -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] print_r output to a file

2002-11-07 Thread Ernest E Vogelsinger
example: ob_start(); print_r(your_array); $result = ob_get_contents(); ob_end_clean(); -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convince teh boss

2002-11-07 Thread Ernest E Vogelsinger
fiers, etc), and it doesn't suffer from MySQL's self-admitted limitations, mainly the lack of stored procedures and triggers. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Regular Expression

2002-11-07 Thread Ernest E Vogelsinger
ch of nonäwhitespaces at the end of line: ereg("([^\s]+)$", $dirline); this should return "fantasy" for both cases you sent. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Delete a file via FTP (without PHP FTP support)

2002-11-07 Thread Ernest E Vogelsinger
#x27;**user**'; $pass = '**pass**'; $ftphost = 'ftp_host'; $ftpfile = '/www/sample.html'; $fp = ftp_connect("$ftphost"); if ($fp) { $login = ftp_login ($fp, $user, $pass); ftp_delete ($fp, $ftpfile); ftp_quit($fp); } else

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Ernest E Vogelsinger
I will if I have to...) [snip] Would curl be an option? Do they have this? You could, however, always write a tempfile, then exec your ftp client for a transfer... -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP Gene

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Ernest E Vogelsinger
"ftp://$user:$pass@;$ftphost$ftpfile", 'w'); if ($fp) { fwrite($fp, $x, strlen($x)); fclose($fp); header("Location: http://$wwwhost$wwwfile";); } else die('Cannot create file via FTP'); ?> -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code Advice

2002-11-06 Thread Ernest E Vogelsinger
ich is $0, $1, $2, etc). If you did you'd get a decent parser error - but unfortunately your data hides behind these identifiers. If register_globals is off I have absolutely no idea why you still have them available. Please recheck your testing code - I'm sure you'll noti

Re: [PHP] Code Advice

2002-11-06 Thread Ernest E Vogelsinger
// works echo $$key; // works echo "Key 0: $0"// prints "$0", not the content (wrong) echo $0;// error "unexpected T_DNUMBER" -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

RE: [PHP] Code Advice

2002-11-06 Thread Ernest E Vogelsinger
-consuming. > >Uh... isn't this what $_REQUEST is for?? [snip] Yessir, exactly. However if you're going to fiddle around with $_GET (checking for allowed input) while allowing any $_POST'ed data, you might prefer this solution... -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

RE: [PHP] Code Advice

2002-11-06 Thread Ernest E Vogelsinger
t($_GET[$val])) { global $$val; $$val = $_GET[$val]; } } The key element is not necessary here. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Code Advice

2002-11-06 Thread Ernest E Vogelsinger
y after this, the POSTed variables correctly overriding their GET counterparts. The "=&" reference is there for optimization - faster and less memory-consuming. Wnat to have these global after all? foreach ($_GET as $name => $value) { global $$name; $$name =& $value; } Have fun, -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] undefined symbol: curl-global-init

2002-11-06 Thread Ernest E Vogelsinger
; /usr/kerberos/lib/libcom_err.so.3 (0x4065c000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000) libssl.so.0 => /usr/lib/libssl.so.0 (0x4065f000) libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x4068c000) -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] undefined symbol: curl-global-init

2002-11-06 Thread Ernest E Vogelsinger
in /etc/httpd/modules (the correct path for apache extensions on RedHat), and in /usr/lib/apache (from the default compile). -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] New to PHP, and stuck

2002-11-06 Thread Ernest E Vogelsinger
e this: $sql ="CREATE TABLE {$_POST[table_name]} (("; -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php and electronic pay system

2002-11-06 Thread Ernest E Vogelsinger
hout a little shop solution. Try to check the docs with your aquirer. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do I convert an array into a mask?

2002-11-06 Thread Ernest E Vogelsinger
if (in_array($i, $array)) $result .= '1'; else $result .= '0'; } return $result; } if you need this as a number, simply return "(int)$result", but beware that this breaks if there

Re: [PHP] undefined symbol: curl-global-init

2002-11-06 Thread Ernest E Vogelsinger
At 13:39 06.11.2002, Marek Kilimajer said: [snip] >Do you have libcurl intaled? > >Ernest E Vogelsinger wrote: > >>Hi list, >> >>maybe someone has a simple answer to this: >> >>I am running Apache 1.3.22 wi

RE: [PHP] How do I convert an array into a mask?

2002-11-06 Thread Ernest E Vogelsinger
; there that can work. I also [snip] It's quite easy using the left-shift operator "<<". Note that the function below only works for values 1-31 on 32bit systems. ', sprintf('0x%x', makebits($a)), "\n"; ?> -

RE: [PHP] Help me learn! with an explanation of these two functions.

2002-11-06 Thread Ernest E Vogelsinger
EXCELLENT online PHP manual at http://www.php.net/manual/en/. If you read about mysql_fetch_array you'll notice the additional optional parameter "result_type". Since you're going to pass the resulting data to extract it helps to specify MYSQL_ASSOC as result_t

RE: [PHP] Help me learn! with an explanation of these two functions.

2002-11-05 Thread Ernest E Vogelsinger
table name or alias where the orderid field should be taken from: select orders.orderid from orders, email where orders.orderid = email.orderid and email.checked='no' -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

[PHP] undefined symbol: curl-global-init

2002-11-05 Thread Ernest E Vogelsinger
-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- >O Ernest E. Vogelsinger/~\ The ASCII (\)ICQ #13394035\ / Ribbon Campaign ^

Re: [PHP] MySQL problem - stumped

2001-03-10 Thread Ernest E Vogelsinger
[snip] Try "AND" instead of "&&", this should work as intended... ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] session_start

2001-03-07 Thread Ernest E Vogelsinger
ar as I know, all syntax in manual talks about php4 syntax only. How am I going to do that? [snip] do nothing, PHP will assign the value for you. ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035

Re: [PHP] are sessions single threaded?

2001-03-06 Thread Ernest E Vogelsinger
multiple session keys, and you won't "hang" ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Problems with IIS4 (Win2k)

2001-03-03 Thread Ernest E Vogelsinger
--- Make sure the entry is correct for .php extensions: Executable: %phppath%\php.exe %s %s Both "%s" must exist, or PHP will do nothing at all. ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP

Re: [PHP] Converting String to Variable

2001-03-03 Thread Ernest E Vogelsinger
] RTFM ;-> $$str = "blah"; print $monday; ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: [PHP] passing variables

2001-03-03 Thread Ernest E Vogelsinger
f you start a session and register the data to be remembered with the session, it will be available when the browser comes back again (and presents the appropriate PHPSESSID value, of course). ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13

Re: [PHP] length limit of URL?

2001-03-03 Thread Ernest E Vogelsinger
lient or proxy implementations might not properly support these lengths. ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] HREFs that can't be

2001-03-02 Thread Ernest E Vogelsinger
try to explicitly start it - receiving an (old or outdated) PHPSESSID cookie from the browser? Maybe Php decides it's not necessary to rewrite the URLs ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing L

Re: [PHP] session_destroy() fails...

2001-03-01 Thread Ernest E Vogelsinger
and thus deleting the session data returns an error code. Try this - it should work: "; echo "input type=submit>"; session_start(); session_register($value); } ?> ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ#

Re: [PHP] Restrict Access per IP Addresses

2001-03-01 Thread Ernest E Vogelsinger
low him >and redirect in 403 Page. [snip] Anthony, given the function contains_ip from my earlier post, you would code: Access ForbiddenYou may not come here from outside our domain"; exit(); } process_domain_app(); ?> ...ebird >O Ernest

Re: [PHP] changing the .ini file

2001-03-01 Thread Ernest E Vogelsinger
isapi.dll) you need to down and restart the IIS Admin service (Web Publishing Service is not sufficient). Reason: the ISAPI reads the ini file once upon being loaded, and it remains loaded with IIS until shutdown. Hth, ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web

Re: [PHP] Restrict Access per IP Addresses

2001-02-28 Thread Ernest E Vogelsinger
[snip] is not contained in , mask Enter Address: Enter Network: Enter Subnetmask: [snip] ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP Gener

Re: [PHP] Need an array parser(CONT)

2001-02-28 Thread Ernest E Vogelsinger
t;, "blah2", "some_value2"))); print(showArray(null, $a); ?> this should recursively go into multi-dimensional arrays and construct an output similar to your requirements. ...ebird >O Ernest E. Vogelsinger

Re: [PHP] Pulling my hair out over Netscape...

2001-02-28 Thread Ernest E Vogelsinger
using a random value as SEARCH parameter, e.g. http://www.myhost.com/myapp.php?rv=0987412&...other parameters Your application must ensure that the random value is as random as possible. This makes the URL "unique" and will bypass any ill-behaved cache (it won't help if the use

RE: [PHP] good ide?

2001-02-27 Thread Ernest E Vogelsinger
[snip] Visit PHPEd home page at http://www.soysal.com/PHPEd ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

php-general@lists.php.net

2001-02-22 Thread Ernest E Vogelsinger
nction for any value. Example: "; echo $time; echo "gettime = $gettime"; ?> ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

Re: [PHP] Sessions and naming a file with SID

2001-02-22 Thread Ernest E Vogelsinger
.ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- 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] isset()

2001-02-22 Thread Ernest E Vogelsinger
At 19:07 22.02.2001, Joe Stump said: [snip] >I'll take an extra bazillionth of a second to know for sure >I have what I need [snip] Do you really know _how_ right you are? ...ebird >

Re: [PHP] isset()

2001-02-22 Thread Ernest E Vogelsinger
t; returns true unset($myvar); isset($myvar) => returns false empty($myvar) => returns true My advice: avoid comparing to false or true (and since these are constants, don't put them in quotes ;->). // bad way if (isset($myvar) == false) // better way if (!iss

Re: [PHP] IIS and PHP authorization

2001-01-29 Thread Ernest E Vogelsinger
ing a filter, and crashed being used as MIME plugin latest at the 6th page access. ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: [PHP] whois

2001-01-25 Thread Ernest E Vogelsinger
ed order: NS.BA195.130.35.5 SAVA.UTIC.NET.BA 195.130.35.3 NS.EU.NET192.16.202.11 NS.RIPE.NET 193.0.0.193 AUTH03.NS.UU.NET 198.6.1.83 MUNNARI.OZ.AU 128.250.1.21 ...ebird >O

Re: [PHP] Genuine Opportunity

2001-01-25 Thread Ernest E Vogelsinger
ive. Have you ever tried or consideredmaking money >using the >medium of the internet? Are you marketing or promoting a business >opportunity or product [trash] ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-

Re: [PHP] Date/Time from Unix timestamp

2001-01-24 Thread Ernest E Vogelsinger
all I can find are methods >to convert the current date/time to a Unix timestamp. > >Can anyone give me an example? iewhat date/time does 977676902 come >out to? [snip] Perl says it is "Sun Dec 24 17:55:02 2000" ...ebird

RE: [PHP] Search Engines and PHP

2001-01-23 Thread Ernest E Vogelsinger
d will be passed to the 404 handler. Within the 404 handler, parse the url, extract the session id and parameters, and execute the .php file. Just as an example, ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing

Re: [PHP] Netscape caching problem

2001-01-22 Thread Ernest E Vogelsinger
Pragma: no-cache"); [snip] You're missing a double quote at the gmdate phrase. Use header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT"); ...ebird >O Ernest E. Vogelsinger (\)http://www.

Re: [PHP] How to attach files with mail

2001-01-22 Thread Ernest E Vogelsinger
come >each time... [snip] Have you checked the rights the PHP-User has on the directory and file? ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubs

<    1   2   3   4   5   6