Re: [PHP] set_time_limit problem

2003-09-03 Thread Ernest E Vogelsinger
meout: The number of seconds before 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] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Ernest E Vogelsinger
h created 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). --

Re: [PHP] disable "notice" errors

2003-08-29 Thread Ernest E Vogelsinger
// this avoids array access if the key is not set, // OTOH 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 $t

Re: [PHP] Array Push and Keys

2003-08-29 Thread Ernest E Vogelsinger
ile($morerows=mysql_fetch_array($another_query)) { // array_push($transactions[$row[dealercode], //$morerows[country]=>$morerows[amount]; $transactions[$row['dealercount']][$morerows['country']] = $morerows['amount'

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

2003-08-25 Thread Ernest E Vogelsinger
[snip] You could do that without too much effort. Export the data 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

Re: [PHP] CHAT about PHP

2003-08-20 Thread Ernest E Vogelsinger
meone 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 #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] This is getting rediculus

2003-08-20 Thread Ernest E Vogelsinger
ve 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] parsing problem

2003-06-28 Thread Ernest E Vogelsinger
at I don't have control of the PHP configuration on the >server, does anyone have any idea of how I could handle this parsing >problem, still being able to define the file as XHTML? Within your PHP code: echo 'O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.

Re: [PHP] Setting focus on a textfield

2003-06-27 Thread Ernest E Vogelsinger
aScript "OnLoad" handler: ...[page contents]... ...[more page contents]... -- >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
), ), array('expr'=> '!empty(\$_REQUEST[\'Jfirstname\'])' . ' && in_array(\$_REQUEST[\'Jtowhompaid\'],' . ' array(\'Renting\', \'Lease\', \'Buying House W/Mortgage\'))', 'pattern' => 'Enter Cobuyer\'s [%s]', 'check' => array('Jtowhompaid' => 'To Whom Paid', 'Jpaymentaddress' => 'Home Payment Address', 'Jpaymentcity'=> 'Home Payment City', 'Jpaymentstate' => 'Home Payment State', 'Jpaymentzipcode' => 'Home Payment Zip Code', ), ), array('expr'=> '!empty(\$_REQUEST[\'Jfirstname\'])', 'pattern' => 'Enter Cobuyer\'s [%s]', 'check' => array('Jincome' => 'Income', 'Jtypeofincome' => 'Type of Income', 'Jbankname' => 'Bank Name', ), ), ); function run_test(&$map) { foreach ($map as $check) { if (eval("return ({$check['expr']});")) { foreach ($check['check'] as $field => $msg) { if (empty($_REQUEST[$field])) { echo sprintf($check['pattern'], $msg); return false; } } } } return 'Pass'; } -- >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] Converting Array

2003-06-26 Thread Ernest E Vogelsinger
e(',',$data); array_unshift($atmp, $key); $array_output[] = $atmp; } 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] Passing Array to object

2003-06-25 Thread Ernest E Vogelsinger
inks" is null, you will see nothing between ** START DUMP ** and ** END DUMP **. Once you have this info you 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
ilable allows 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
llowed 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://ww

Re: [PHP] ACL howto

2003-06-16 Thread Ernest E Vogelsinger
& AUTH_APP_C) header('Location: main_menu.php'); // on top of AppD if (!($admin->GetAccountRights() & AUTH_APP_D) header('Location: 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] Re: interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
ple on my server: 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

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
red 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] interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
hat the _client_ needs to transmit the auth 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, -

Re: [PHP] Redirects in PHP

2003-06-13 Thread Ernest E Vogelsinger
ettings. Being a HTTP 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 #13

Re: [PHP] Re: Warning Spammer

2003-06-11 Thread Ernest E Vogelsinger
"From: [EMAIL PROTECTED]" . "Reply-To: [EMAIL PROTECTED]" . "X-Mailer: PHPSpam/" . phpversion() . "\r\n", "[EMAIL PROTECTED]"); The last parameter is a sendmail parameter which may be omitted (doesn't work in safe mode an

Re: [PHP] Php code to create php code

2003-06-11 Thread Ernest E Vogelsinger
time is ', date('H:i:s'), ''; 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] Questions, questions, questions...

2003-06-10 Thread Ernest E Vogelsinger
($this), "::Set: class variable doesn't exist: $varname]"; } } $sc = new CSampleClass(); echo "m_a = ", $sc->Get('m_a'), ", m_b = ", $sc->Get('m_b'), ", other = ", $sc->Get('other'), "\n&qu

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread Ernest E Vogelsinger
don't you 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] Evaluating defines

2003-06-05 Thread Ernest E Vogelsinger
y[] = ' . $out[2][$i] . ';'); After this eval, 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
oop 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: >> [snip]--

Re: [PHP] preg_replace help

2003-06-04 Thread Ernest E Vogelsinger
.= $aresult[1]; if ($aresult[2] && $aresult[3]) $result .= $aresult[3] . ' [' . $aresult[2] . ']'; $html = $aresult[4]; } $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
like to share, please do. [snip] 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] .

RE: [PHP] Broken links report

2003-06-03 Thread Ernest E Vogelsinger
php.net/manual/en/ref.curl.php) how to do this. 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] simple password protect script

2003-06-03 Thread Ernest E Vogelsinger
s is what you're 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] "update" question [T20030602013J]

2003-06-03 Thread Ernest E Vogelsinger
nsolicited and impolite spams camouflaged as "auto-reply". Thank you for consideration. -- >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] "update" question

2003-06-03 Thread Ernest E Vogelsinger
t when the user leaves the field blank, not to >change that field in MySQL. [snip] Try something like if (!empty($_REQUEST['fieldname'])) dbupdate('fieldname'); http://www.php.net/manual/en/function.empty.php -- >O

Re: [PHP] OOP question

2003-06-01 Thread Ernest E Vogelsinger
all successive objects make sure 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

Re: [PHP] OOP question

2003-06-01 Thread Ernest E Vogelsinger
ew CExtendedTest(2)); $tee->attach(new CBaseTest(3)); $tee->attach(new CExtendedTest(3)); $tee->attach(new CBaseTest(4)); $tee->attach(new CExtendedTest(4)); echo ''; $res_hello = $tee->call_method('hello', 'Called hello() (both base and extended)&#x

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

2003-05-31 Thread Ernest E Vogelsinger
t. All pages went fine when using a synchronous 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] Getting the parsing time of a script

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

Re: [PHP] Function result is an array

2003-05-31 Thread Ernest E Vogelsinger
)) { $cmd = "return sprintf(\$string, '" . join("','", $params) . "');"; $string = eval($cmd); } if ($passes) $x = sprintf("%f secs (%f mse

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

2003-05-31 Thread Ernest E Vogelsinger
$wd = "9"; } (08 => decimal 0, 09 => decimal 1). In this case your last statement will trigger for _any_ day 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] static vars question

2003-05-31 Thread Ernest E Vogelsinger
guage inventors 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.vog

Re: [PHP] Array conversion

2003-05-30 Thread Ernest E Vogelsinger
ects in favour of sequentially numbered arrays? Just wondering... -- >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] e-mailing with attachements

2003-05-30 Thread Ernest E Vogelsinger
IME 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=14&catname=Mail. Performs just great ;-) -- >O

Re: [PHP] PHP OOP x Procedural Performance

2003-05-30 Thread Ernest E Vogelsinger
e[idx])'); echo "-\n"; runtest('$ostore[] = new TEST()', 'Created $i object entries'); runtest('$ostore[$i]->a["rid"] = $i', 'Write-Accessed $i object values using direct access'); runtest('$ostore[$i]-&

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Ernest E Vogelsinger
session data go to if you're redirecting to plain 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] Includes confusion

2003-04-04 Thread Ernest E Vogelsinger
created within the included file are within the function's scope. If included outside, they're on a global scope - 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

Re: [PHP] Quick Sessions ?

2003-04-04 Thread Ernest E Vogelsinger
the same physical directory. -- >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] is register globals off ready for prime time

2003-04-04 Thread Ernest E Vogelsinger
code as to MHO.# Either 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

Re: [PHP] REPLY NEEDED

2003-04-03 Thread Ernest E Vogelsinger
gn to interactive 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 (htt

Re: [PHP] directory size?

2003-04-03 Thread Ernest E Vogelsinger
case you're on Linux, and may run externals, you 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

Re: [PHP] Usort

2003-04-03 Thread Ernest E Vogelsinger
// a ends before B elseif ($A['ENDDATE'] == $B['ENDDATE']) { // ends at the same day if ($A['ENDTIME'] < $B['ENDTIME']) return -1; // a ends before B elseif ($A['ENDTIME'] == $B['ENDTIME']) {

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

2003-04-03 Thread Ernest E Vogelsinger
gt;apache; it doesn't seem to be making any 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://w

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

2003-04-03 Thread Ernest E Vogelsinger
/mysql), you need to specify the correct 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. Vogelsinge

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

2003-04-03 Thread Ernest E Vogelsinger
compile make sure Apache uses the module you have just 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

Re: [PHP] Help needed

2003-04-01 Thread Ernest E Vogelsinger
if (!ereg("^[0-9)(xX -]{7,20}$",$phone)) >{ >unset($do); >$message_new = "$phone is not a valid phone number. >Please try again."; >include("login_form.inc"); >exit(); directly here af

Re: [PHP] Help needed

2003-04-01 Thread Ernest E Vogelsinger
8 columns indentation width. -- >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: Internet Explorer toolbar

2003-03-28 Thread Ernest E Vogelsinger
t resist...) -- >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] Passing data between the web to an Intranet

2003-03-27 Thread Ernest E Vogelsinger
the intranet DB, formatted in a way easy to parse by an intranet script (e.g. ini style, 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 Gener

Re: [PHP] version

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] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-27 Thread Ernest E Vogelsinger
d button ;-) -- >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
should be in curly quotes then: echo "{GLOBALS['$key']} = $value\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] Passing data between the web to an Intranet

2003-03-27 Thread Ernest E Vogelsinger
ficate to authenticate itself. AFAIK this can be done with cURL. 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] formatting textarea input on output

2003-03-25 Thread Ernest E Vogelsinger
nal input? [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] is this correct? regular expressions

2003-03-25 Thread Ernest E Vogelsinger
eg("^[0-9]*$",$phone)) { You could also check if anything _not_ being a number 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] Finding out which file is retrieved over HTTP

2003-03-25 Thread Ernest E Vogelsinger
f ($fp) { fputs( $fp, "GET ".$file." HTTP/1.0\r\n" . "Host: $hostname\r\n" . "Accept: text/html\r\n" . "Accept: text/plain\r\n\r\n" ); $src = ''; while (!feof ($fp))

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

2003-03-25 Thread Ernest E Vogelsinger
xception of omitting the headers, but without looking). So in fact an fopen() to a non-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 you

Re: [PHP] timout in mail script

2003-03-25 Thread Ernest E Vogelsinger
1300+ mails 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.

Re: [PHP] timout in mail script

2003-03-25 Thread Ernest E Vogelsinger
mailing process starts again? [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 variab

Re: [PHP] array into another site

2003-03-25 Thread Ernest E Vogelsinger
7;,'windo... Should make for a valid URL 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 t

Re: [PHP] Secure coockie is not available as variable

2003-03-25 Thread Ernest E Vogelsinger
/manual/en/function.setcookie.php): "secure" indicates that the cookie should only 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

Re: [PHP] mail() Bcc:

2003-03-24 Thread Ernest E Vogelsinger
onnection You see the main recipient 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.

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

2003-03-24 Thread Ernest E Vogelsinger
snippet that I could use 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_r

Re: [PHP] Odd Parse Error

2003-03-24 Thread Ernest E Vogelsinger
t_ID) VALUES >('".$_GET[user_id]."', '".$fields[$i]."')"; > } >} [snip]------------ Shouldn't that be if ($values[$i] != 0){ //line 137 Note the curly vs. square brackets in $values -- >O Ernes

Re: [PHP] more issues with variales within strings

2003-03-23 Thread Ernest E Vogelsinger
T_ALLOWED_EXTENSION' => "Not Allowed File Extension, the following filetypes are allowed : ({$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] array insert help

2003-03-22 Thread Ernest E Vogelsinger
s $i: ".$_POST['address']['address'][$i]; echo "city $i: ".$_POST['address']['city'][$i]; } -- >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 insert help

2003-03-22 Thread Ernest E Vogelsinger
7;)); To insert the home address you'd create an SQL statement like this: for($i = 0; $i <= $number_of_addresses; ++$i) { $sql = "insert into address(adress, city) values (" . "{$_REQUEST['address']['address'][$i]}," . "{$_REQUEST

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 un

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
7;t grant "write" permission to the webserver 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] credit card validations..

2003-03-20 Thread Ernest E Vogelsinger
nously) transaction data 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 un

Re: [PHP] internally stored binary image

2003-03-20 Thread Ernest E Vogelsinger
file, or copy/paste its contents into your own code. // The next lines are just to test the stuff - adjust the Content-Type header to your needs: header('Content-Type: image/gif'); eval($asc); // this will render the binary content into $img_data echo $img_data; // send it

Re: [PHP] Changing pages on another PC remotely?

2003-03-20 Thread Ernest E Vogelsinger
refresh its content - 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

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

2003-03-20 Thread Ernest E Vogelsinger
mber. If you would just add the titles up ($this->all_productions[] = $row['title']), PHP would choose an index key for you - the most general thing it can do is to enumerate it. Basically what it does is array[count(array)] = new_element So much for the "theory" - wh

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

2003-03-20 Thread Ernest E Vogelsinger
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. 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-19 Thread Ernest E Vogelsinger
he code you present must be for a different processor that I don't know... 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

RE: [PHP] I.P. range authentication

2003-03-19 Thread Ernest E Vogelsinger
the valid numeric equivalent of the IP address. > >Isn't 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] T

Re: [PHP] I.P. range authentication

2003-03-18 Thread Ernest E Vogelsinger
d 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 #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
languages the differences will rocket skyhigh compared to compiled executables. Well, it's still to be measured in nanoseconds for a single instance, thanks to modern 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] what's the best way to handle this?

2003-03-18 Thread Ernest E Vogelsinger
Apache's mod_rewrite to rewrite the URL, or use 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] One set of php for multiple subdomains

2003-03-18 Thread Ernest E Vogelsinger
ic link to the /scripts directory, within their domain tree. -- >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
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
keys = array_rand (array_keys($input), 2); print $input[$rand_keys[0]]."\n"; print $input[$rand_keys[1]]."\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] Re: newbie:restricting users to change data in a textar ea

2003-03-18 Thread Ernest E Vogelsinger
hen, I believe. -- >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
ransfer rate. If you still encounter big holdups for other processes you might consider using usleep() every 10th chunk or so, but use your calculator to check how that would extend the overall transmission time. For example, for a 100MB file, going to usleep for 50 msec after each 9kb chunk would mean that your process will sleep for 1.82 hours (!!) until 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] Ereg sass

2003-03-18 Thread Ernest E Vogelsinger
cter" to "or a period" (in this context) so I believe that's what 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] help from experienced devr's

2003-03-17 Thread Ernest E Vogelsinger
uot; and a version number (I believe). -- >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] Frames

2003-03-17 Thread Ernest E Vogelsinger
ocation of another frame, 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.

Re: [PHP] posting values from email

2003-03-17 Thread Ernest E Vogelsinger
-- Maybe you 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.vogelsing

Re: [PHP] Re Sessionid

2003-03-16 Thread Ernest E Vogelsinger
code to accomplish this, you may find 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 Li

Re: [PHP] Re: str_replace

2003-03-15 Thread Ernest E Vogelsinger
;);', '', $header); > $footer = str_replace('include("$footer");', '', $footer); >} > >include("$header"); >?> > >// html > > ----[snip] Hmm - can't work be

Re: [PHP] Apache 2.0 and PHP

2003-03-14 Thread Ernest E Vogelsinger
sions, end extensions for these extensions, must be written in a thread-safe way. While the PHP core group as to my knowledge has already implemented PHP (4.3.0 that is) in a thread-safe way, most of PHP extension modules are not (yet?) thread safe. Might get you into a core dump I suppose... --

Re: [PHP] General Information About Porting a Monolithic Perl CGI Script to PHP

2003-03-14 Thread Ernest E Vogelsinger
ttempt to create a database-independent layer for PHP - it works with most major databases (including ODBC) and keeps you off the hassles of implementing database-specific code. (Disclaimer - this is not, and cannot be, valid for non-standard SQL extensions offered by any particular database

Re: [PHP] inserting parameters into URLs dynamically

2003-03-14 Thread Ernest E Vogelsinger
eblogize_links'); function weblogize_links($buffer) { // parse the output $buffer and modify all links } A special gotcha may come in here: take care to only rewrite links that point to your own site. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://w

Re: [PHP] checking $_POST variables

2003-03-14 Thread Ernest E Vogelsinger
POST array (e.g. unchecked checkboxes are _not_ sent by the browser). You should rather have a list of input variables that need to be filled and compare $_POST against this. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

  1   2   3   4   5   6   >