Re: [PHP] Too Advanced? Re: Cookies Hidden Image

2003-09-03 Thread Ernest E Vogelsinger
the cookie to begin with), the cookie has the value that it was set with. [snip] That's it - cookies will only be sent to the same domain (hostname) they have been generated at. You cannot pass cookies between domains (hostnames). -- O Ernest E

Re: [PHP] set_time_limit problem

2003-09-03 Thread Ernest E Vogelsinger
receives and sends time out. # Timeout 300 -- 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] Array Push and Keys

2003-08-29 Thread Ernest E Vogelsinger
], //$morerows[country]=$morerows[amount]; $transactions[$row['dealercount']][$morerows['country']] = $morerows['amount']; } } Hope this helps, -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP

Re: [PHP] disable notice errors

2003-08-29 Thread Ernest E Vogelsinger
the receiving variable might be undefined if (array_key_exists('nonexisting_key', $array)) $test = $array['nonexisting_key']; // this is a simple, elegant, and even self-documenting solution $test = @$array['nonexisting_key']; -- O Ernest E. Vogelsinger (\)ICQ #13394035

Re: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Ernest E Vogelsinger
to be synced from MS Access to a CSV style export format, upload it to the server and process it. There are a couple of examples how to handle CSV style data on SourceForge, I believe. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

Re: [PHP] This is getting rediculus

2003-08-20 Thread Ernest E Vogelsinger
the acknowledging mechanism doesn't really work. -- 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] CHAT about PHP

2003-08-20 Thread Ernest E Vogelsinger
, too. And multiple!!! exclamation!!! marks!!! Yeah, that's someone I'd do business with. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php [snip] -- O Ernest E. Vogelsinger (\)ICQ

Re: [PHP] ?xml ? parsing problem

2003-06-28 Thread Ernest E Vogelsinger
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] Setting focus on a textfield

2003-06-27 Thread Ernest E Vogelsinger
handler: body onload=forms[myform].elements[pass].focus(); ...[page contents]... form name=myform method=post ... input type=password name=pass /form ...[more page contents]... /body -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

Re: [PHP] Converting Array

2003-06-26 Thread Ernest E Vogelsinger
; } May I ask why you're reformatting the array - maybe you could avoid this step? -- 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] if else if statement failed...

2003-06-26 Thread Ernest E Vogelsinger
['expr']});)) { foreach ($check['check'] as $field = $msg) { if (empty($_REQUEST[$field])) { echo sprintf($check['pattern'], $msg); return false; } } } } return 'Pass'; } -- O Ernest E. Vogelsinger

Re: [PHP] Passing Array to object

2003-06-25 Thread Ernest E Vogelsinger
can investigate further. -- 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] identify not only browser, but even browser windows with session

2003-06-24 Thread Ernest E Vogelsinger
to run more than one session from a single browser instance. HTH, -- 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] open_basedir

2003-06-20 Thread Ernest E Vogelsinger
directories: open_basedir = /tmp:/www/yourvirtualhost This should give you access to both trees. -- 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] ACL howto

2003-06-16 Thread Ernest E Vogelsinger
: main_menu.php'); This is fairly crude but quite efficient. -- 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] interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
credentials to the server. What you can do however is to somehow include the page contents in your PHP output. In case the .htaccess-protected content is a simple html page you could e.g. readfile() it, or process it in a similar way. HTH, -- O Ernest E. Vogelsinger (\)ICQ

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
in anyone's history files. Well... why protect it anyway? -- 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: interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
: http://www.vogelsinger.at/protected.html This should do just what you need, some explanations are within the source code. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Redirects in PHP

2003-06-13 Thread Ernest E Vogelsinger
equivalent this also means you can transmit it as MIME header as well: header('Refresh: 5;URL=http://www.microsoft.com;'); echo 'Transferring you to Microsoft in 5 seconds...'; exit; HTH, -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

Re: [PHP] Php code to create php code

2003-06-11 Thread Ernest E Vogelsinger
('H:i:s'), 'br /'; EOC; eval($code); The complexity is up to you ;-) -- 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: Warning Spammer

2003-06-11 Thread Ernest E Vogelsinger
-Mailer: PHPSpam/ . phpversion() . \r\n, [EMAIL PROTECTED]); The last parameter is a sendmail parameter which may be omitted (doesn't work in safe mode anyway, see http://www.php.net/manual/en/function.mail.php). -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread Ernest E Vogelsinger
want to impress your girlfriend? *ducking away* -- 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] Questions, questions, questions...

2003-06-10 Thread Ernest E Vogelsinger
= , $sc-Get('other'), \n; $sc-Set('m_a', 'new data for m_a'); $sc-Set('m_b', 'new data for m_b'); $sc-Set('other', 'new data for other'); echo m_a = , $sc-Get('m_a'), , m_b = , $sc-Get('m_b'), , other = , $sc-Get('other'), \n; -- O Ernest E. Vogelsinger (\)ICQ #13394035

Re: [PHP] Evaluating defines

2003-06-05 Thread Ernest E Vogelsinger
, the $replace_by array will contain the correct value. -- 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_replace help

2003-06-04 Thread Ernest E Vogelsinger
] This should work: $result = null; while (preg_match('!(.*).*?a.*?href\s*=\s*(.*?).*?(.*)!i', $html, $aresult)) { $result .= $aresult[1]; if ($aresult[2]) $result .= ' link name [' . $aresult[2] . ']'; $html = $aresult[3]; } $result .= $html; -- O Ernest E. Vogelsinger (\)ICQ

Re: [PHP] preg_replace help

2003-06-04 Thread Ernest E Vogelsinger
]; } $result .= $html; -- 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_replace help

2003-06-04 Thread Ernest E Vogelsinger
] - postmatch (all after the closing /a). Within the loop I use this array to modify the HTML code to read (pre-match)#linked-text# [#url#]... which is what you want, after all. On Tue, 2003-06-03 at 11:59, Ernest E Vogelsinger wrote: At 18:43 03.06.2003, Jackson Miller said

Re: [PHP] update question

2003-06-03 Thread Ernest E Vogelsinger
. [snip] Try something like if (!empty($_REQUEST['fieldname'])) dbupdate('fieldname'); http://www.php.net/manual/en/function.empty.php -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP

Re: [PHP] update question [T20030602013J]

2003-06-03 Thread Ernest E Vogelsinger
a message to you, nor am I interested in any way in your services. Please refrain from hooking into mailing lists and bombarding the listmembers with absolutely unneccessary, unsolicited and impolite spams camouflaged as auto-reply. Thank you for consideration. -- O Ernest E. Vogelsinger

Re: [PHP] simple password protect script

2003-06-03 Thread Ernest E Vogelsinger
looking for. -- 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] Broken links report

2003-06-03 Thread Ernest E Vogelsinger
, 'r'); but this will always work unless the host portion of the URL cannot be resolved. You need to employ a method where you receive the MIME headers additional to the page body. Have a look at cURL (http://www.php.net/manual/en/ref.curl.php) how to do this. HTH, -- O Ernest E. Vogelsinger

Re: [PHP] OOP question

2003-06-01 Thread Ernest E Vogelsinger
= $tee-call_method('say', 'Called say() (only extended)', 4711); echo 'hr'; echo 'Hello results: '; print_r($res_hello); echo 'Say results: '; print_r($res_say); ? -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List

Re: [PHP] OOP question

2003-06-01 Thread Ernest E Vogelsinger
they have // the same class (or at least derived from). if (is_object($hObj)) return (!count($this-arObj) || is_a($hObj, get_class($this-arObj[0]))); return false; } -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at

Re: [PHP] static vars question

2003-05-31 Thread Ernest E Vogelsinger
allow functions to continue after they call others... Maybe you mixed this up with gotos, these never return. Thanks to Andi Gutman and Zeev Suraski that there's no goto in PHP *smile* -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

Re: [PHP] What's wrong with this code??

2003-05-31 Thread Ernest E Vogelsinger
in June. -- 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] Function result is an array

2003-05-31 Thread Ernest E Vogelsinger
); else $x = sprintf(%f secs: %s\n, $time, $string); } // return either the time, or the profiling string return $x; } -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

Re: [PHP] Getting the parsing time of a script

2003-05-31 Thread Ernest E Vogelsinger
(); for ($i = 0; $i 1; ++$i) $n = getdate(time()); $end = microtime(); list($s0, $s1) = explode(' ', $start); list($e0, $e1) = explode(' ', $end); echo sprintf('hrThis page took %.2f seconds to generate', ($e0+$e1)-($s0+$s1)); -- O Ernest E. Vogelsinger (\)ICQ #13394035

Re: [PHP] Re: Long screen display cut short.

2003-05-31 Thread Ernest E Vogelsinger
connection (in == out). -- 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 OOP x Procedural Performance

2003-05-30 Thread Ernest E Vogelsinger
('$ostore[$i] = null', 'Deleted $i object values using store[idx] = null'); $ostore = $ostore2; runtest('unset($ostore[$i])', 'Deleted $i object values using unset(store[idx])'); -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing

Re: [PHP] e-mailing with attachements

2003-05-30 Thread Ernest E Vogelsinger
compliant message, including all headers, yourself. For more information on MIME you should consult RFC822. Do yourself a favour and check out the relevant PEAR classes (Mail/Mime and Mail). http://pear.php.net/packages.php?catpid=14catname=Mail. Performs just great ;-) -- O Ernest E

Re: [PHP] Array conversion

2003-05-30 Thread Ernest E Vogelsinger
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] is register globals off ready for prime time

2003-04-04 Thread Ernest E Vogelsinger
this guy is trying to deceive his own weak code, or he doesn't have a clue of how PHP works. I'd reconsider hiring such a developer. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Ernest E Vogelsinger
. -- 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] Includes confusion

2003-04-04 Thread Ernest E Vogelsinger
- you would need to use either the $GLOBAL superglobal array, or to declare them being global within the function that uses them. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Ernest E Vogelsinger
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] Usort

2003-04-03 Thread Ernest E Vogelsinger
all possibilities for A being less or equal to B // so there's only one more choice left - A is greater :) return 1; -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] directory size?

2003-04-03 Thread Ernest E Vogelsinger
could du -s . (prints kilobytes) du -s -b (prints bytes) list($dusage, $dir) = explode(' ', `du -s -b .`); echo sprintf('The current directory has %d kB (%d bytes)', $dusage / 1024, $dusage); -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at

Re: [PHP] REPLY NEEDED

2003-04-03 Thread Ernest E Vogelsinger
stuff, e.g. a chatroom for your partners. All prices excl. VAT, of course. Additional National Fees may apply. Just drop me a note... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Ernest E Vogelsinger
compiled. Have a look at phpinvo() and check the build date to see if it's using the very last buld. -- 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] Problem with PHP and MySQl after install

2003-04-03 Thread Ernest E Vogelsinger
directory when configuring php. The next issue may be if you have multipls PHP versions (from RPM, or from your own builds) on your system - check which version Apache is using. Check your httpd.conf what installation it uses. -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http

Re: [PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-03 Thread Ernest E Vogelsinger
difference. Check the permissions on the files too, they should be -rw-rw---, or -rw--, at least (best...) -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Help needed

2003-04-01 Thread Ernest E Vogelsinger
errors (syntax errors, that is) Hint: You should make a habit of using a more clear indentation (if your code is actually as it is in the mail). A single column indentation is not enough to make block levels clear at the first sight. You better use 4 or 8 columns indentation width. -- O Ernest E

Re: [PHP] Help needed

2003-04-01 Thread Ernest E Vogelsinger
)) { unset($do); $message_new = $phone is not a valid phone number. Please try again.; include(login_form.inc); exit(); directly here after the exit(); line. -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http

RE: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Ernest E Vogelsinger
keep it that way, even if it takes us sometimes to javascript or some other OT. :) [snip] Ask anything? Really? Well then - how can I get rich quick, do I need to use JavaScript or can it be done with PHP? (sorry couldn't resist...) -- O Ernest E

RE: [PHP] Passing data between the web to an Intranet

2003-03-27 Thread Ernest E Vogelsinger
an issue since it can't be reached from the outside. If the Intranet box _could_ be reached from the outside I'd recommend to run the receiving form on an SSL interface, the external box using a client certificate to authenticate itself. AFAIK this can be done with cURL. HTH, -- O Ernest E

Re: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-27 Thread Ernest E Vogelsinger
then: echo {GLOBALS['$key']} = $valuebr\n; -- 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] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-27 Thread Ernest E Vogelsinger
;-) -- 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] version

2003-03-27 Thread Ernest E Vogelsinger
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] Passing data between the web to an Intranet

2003-03-27 Thread Ernest E Vogelsinger
, or xml, whatever). On the intranet box have a cronjob running that polls once per minute. -- 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] Secure coockie is not available as variable

2003-03-25 Thread Ernest E Vogelsinger
be transmitted over a secure HTTPS connection. When set to 1, the cookie will only be set if a secure connection exists. The default is 0. Sorry if I'm OT here but you didn't mention https in your posting. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at

Re: [PHP] array into another site

2003-03-25 Thread Ernest E Vogelsinger
then. However don't forget that passing application data via URL could pose a security risk to your application, depending on what the data actually represents, and how it is worked on. Consider also that URLs have some size limit (don't have the number at hand). -- O Ernest E. Vogelsinger

Re: [PHP] timout in mail script

2003-03-25 Thread Ernest E Vogelsinger
? [snip] From what you've said it looks as if your script is running in an endless loop. You may debug it by _not_ actually sending the mail, but echoing the mail() command to the browser, together with the vital variables you need. -- O Ernest E. Vogelsinger

Re: [PHP] timout in mail script

2003-03-25 Thread Ernest E Vogelsinger
when the script is supposed to send 1000 there's certainly something wrong ;-) Try to mark the first message so you can possibly see where it's about to start over again. Then hook in here with your debug efforts to see as to why it starts over. -- O Ernest E. Vogelsinger (\) ICQ #13394035

Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-25 Thread Ernest E Vogelsinger
-existing page will be seen as successful by fopen(). This is by design and afaik documented somewhere. To actually check on the HTTP status codes you need to run your own, either using cURL, or by doing your own stuff using fsockopen(). -- O Ernest E. Vogelsinger (\) ICQ #13394035

Re: [PHP] Finding out which file is retrieved over HTTP

2003-03-25 Thread Ernest E Vogelsinger
. Accept: text/html\r\n . Accept: text/plain\r\n\r\n ); $src = ''; while (!feof ($fp)) $src .= fgets($fp, 4096); fclose ($fp); } This will get you the whole page, including all headers. -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http

Re: [PHP] is this correct? regular expressions

2003-03-25 Thread Ernest E Vogelsinger
exists within $phone: if (ereg([^0-9],$phone)) { -- 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] formatting textarea input on output

2003-03-25 Thread Ernest E Vogelsinger
? [snip] nl2br() -- 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] Odd Parse Error

2003-03-24 Thread Ernest E Vogelsinger
] Shouldn't that be if ($values[$i] != 0){ //line 137 Note the curly vs. square brackets in $values -- 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

Re: [PHP] Quick snippet to convert text files to unix based line endings

2003-03-24 Thread Ernest E Vogelsinger
to convert a temp file to use all \n based line endings for consistency? [snip] $in = array(/\n\r/, /\r\n/, /\r/); $out = array(\n, \n, \n); $cleaned = preg_replace($in, $out, $dirty); -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http

Re: [PHP] mail() Bcc:

2003-03-24 Thread Ernest E Vogelsinger
is listed in the MIME header (To:), but the Bcc recipient ([EMAIL PROTECTED]) is not; it only shows up during the SMTP conversation (the envelope part). AFAIK it's a feature of the mail client; be it an email program or a mailer class. -- O Ernest E. Vogelsinger (\)ICQ #13394035

Re: [PHP] more issues with variales within strings

2003-03-23 Thread Ernest E Vogelsinger
: ({$this-type})\n, ); -- 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] Test the server.

2003-03-22 Thread Ernest E Vogelsinger
() and class_exists() o test against needed implementations. Some extensions may have functions returning the installed version as well. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] array insert help

2003-03-22 Thread Ernest E Vogelsinger
['address']['address'][$i]}, . {$_REQUEST['address']['city'][$i]}); // more code } Hope this helps, -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] array insert help

2003-03-22 Thread Ernest E Vogelsinger
?php for($i = 0; $i = 1; ++$i) { echo paddress $i: .$_POST['address']['address'][$i]; echo brcity $i: .$_POST['address']['city'][$i]; } -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] $siteGalleryUserPath when it is made by PHP dose not give 0777 access for $destination to be made.

2003-03-21 Thread Ernest E Vogelsinger
user, or the subdirectory below (...ies/philips) does not (yet) exist. -- 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] test for associative or numerically indexed array

2003-03-20 Thread Ernest E Vogelsinger
a single non-numeric key. If you found one the array is associative. If you found none it may be likely that the array is enumerated, but you can't be sure in a general way, except your application is designed in a way that uses always non-numeric keys for associative arrays. -- O Ernest E

Re: [PHP] test for associative or numerically indexed array

2003-03-20 Thread Ernest E Vogelsinger
something you can redesign so you're not relying on the fact if an array is enumerated or not. -- 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] Changing pages on another PC remotely?

2003-03-20 Thread Ernest E Vogelsinger
- that's where you can come in. I've answered a similar question a week ago that you might find in the archives - look for OT Inactivity Timeout. Should give you a starter. -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http

Re: [PHP] internally stored binary image

2003-03-20 Thread Ernest E Vogelsinger
Note that reading the file is only needed once as a tool to create the ascii version of the binary file. -- 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

RE: [PHP] credit card validations..

2003-03-20 Thread Ernest E Vogelsinger
via SSL. You might consider using cURL for this kind of stuff; most of them have working examples in Java, PHP, ASP, etc. -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] I.P. range authentication

2003-03-19 Thread Ernest E Vogelsinger
that what ip2long() does? Also, the man page on ip2long() has some good notes and code that may help the OP. http://www.php.net/manual/en/function.ip2long.php [snip] Thanks - didn't come around this function yet... -- O Ernest E. Vogelsinger

Re: [PHP] Which is quicker, if-else statements

2003-03-19 Thread Ernest E Vogelsinger
... well, haven't programmed in asm since - wait let me think - 85? Have still some asm manuals around, but I don't think the timing numbers are still relevant for todays caching cpu's... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP

Re: [PHP] Ereg sass

2003-03-18 Thread Ernest E Vogelsinger
you want to do. -- 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] Forced Download Using header()

2003-03-18 Thread Ernest E Vogelsinger
the file is delivered... -- 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: newbie:restricting users to change data in a textar ea

2003-03-18 Thread Ernest E Vogelsinger
. -- 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] Random array values from associative

2003-03-18 Thread Ernest E Vogelsinger
; -- 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] Random array values from associative

2003-03-18 Thread Ernest E Vogelsinger
At 12:48 18.03.2003, Awlad Hussain said: [snip] Thanks for your reply, I now have only the keys but I need both keys and the value. [snip] But you can get the value if you have the keys, no? -- O Ernest E

Re: [PHP] One set of php for multiple subdomains

2003-03-18 Thread Ernest E Vogelsinger
simply create symbolic links to the directory: ln -s /scripts /user1/scripts ln -s /scripts /user2/scripts ln -s /scripts /user3/scripts Now all 3 user directory will contain a symbolic link to the /scripts directory, within their domain tree. -- O Ernest E. Vogelsinger

Re: [PHP] what's the best way to handle this?

2003-03-18 Thread Ernest E Vogelsinger
an ErrorDocument handler to deliver the correct page. -- 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] Which is quicker, if-else statements

2003-03-18 Thread Ernest E Vogelsinger
processor power... -- 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] I.P. range authentication

2003-03-18 Thread Ernest E Vogelsinger
in the dotted notation to aid us miserable human beings. $abytes = explode('.', $ip); // explode the IP string $ip = 0; foreach ($abytes as $byte) $ip = ($ip 8) + $byte; This will give you the valid numeric equivalent of the IP address. -- O Ernest E. Vogelsinger (\)ICQ

Re: [PHP] posting values from email

2003-03-17 Thread Ernest E Vogelsinger
could send some code snippets what you're trying to do, or elaborate a bit more so we can help you. POST'ing web forms is said to work, I've heard. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Frames

2003-03-17 Thread Ernest E Vogelsinger
, something like that (untested): hFrame = parent.topframe; // topframe is the name of the frame if (hFrame) hFrame.location.href = 'otherurl'; -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] help from experienced devr's

2003-03-17 Thread Ernest E Vogelsinger
) this will create a directory tree containing the extracted distribution files in the correct layout. The directory name is usually similar to the archive name (depends on the archive contents of course, but in case of adodb it's adodb and a version number (I believe). -- O Ernest E

Re: [PHP] Re Sessionid

2003-03-16 Thread Ernest E Vogelsinger
it in {php_source_directory}/ext/session.c, _php_create_id(), and {php_source_directory}/ext/standard/lcg.c, php_combined_lcg()). -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: str_replace

2003-03-15 Thread Ernest E Vogelsinger
) include($header); ? // html ?php if ($footer) include($footer); ? -- 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] can't get any string replacements to clean this

2003-03-14 Thread Ernest E Vogelsinger
, $to, $str_uncleaned); This construction should convert the occurrence of one or more successive newline combinations with a single newline character, and remove control characters at large (untested). -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at

Re: [PHP] can't get any string replacements to clean this

2003-03-14 Thread Ernest E Vogelsinger
Correction - $to should of course read $repl :- -- 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] OT Inactivity Timeout

2003-03-14 Thread Ernest E Vogelsinger
will immediately transfer the user agent to the you're outta here page. -- 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] IF statement madness

2003-03-14 Thread Ernest E Vogelsinger
=($start*10); $i=($end*10); $i++){ if ( $i == ($target*10) ){ echo (BR$i - $target, By God, the are equal in value.); } else { echo (BR$i - $target, Eternal Damnation, they aren't equal!); } } ? -- O Ernest E. Vogelsinger (\)ICQ #13394035

  1   2   3   4   5   6   >