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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[PHP] Object Aggregation - does anyone have experience with it?

2003-03-25 Thread Christopher E. Welton
I am using php 4.2.2 with Apache 2.0 on Red Hat 8.0 When I attempt to dynamically aggregate two objects using the aggregate() call, I get the following message: Fatal error: Call to undefined function: aggregate() the man page for aggregate() lists the following info: aggregate (PHP 4 >= 4.2.0)

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] 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] 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] 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] 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] 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] Session Theft

2003-03-28 Thread Larry E. Ullman
i just want to figure out a way by which i can stop session theft.i thought if i can get something from user end that is unique for that user.for e.g. his/her IP .but it will not work when they are behind firewall.they will be assigned same IP.is there a way for me to get the IP (e.g.202.202.20

Re: [PHP] uploading large files through php

2003-03-28 Thread Larry E. Ullman
The problem that I am facing is that I can get the script/browser/php to pass such large file. I have modified the upload_max_size variable in php.ini to be larger the 60Mb but this still does not help! Is there any hard limitation that I am unaware of? You'll probably need to adjust the follow

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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
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] RedHat

2003-04-05 Thread Larry E. Ullman
Where would I go on the redHat site to ask when they are going to upgrade to PHP 4.3 and MySQL 4.x (now in production). Our CS dept. won't install them for me until RedHat bundles it. I'm using RH 7.3. This question would probably be best directed towards: 1) The RedHat site 2) A RedHat newsgroup

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] e-mailing with attachements

2003-05-30 Thread Ernest E Vogelsinger
At 23:20 29.05.2003, Artoo Smith said: [snip] >How do you send attachments when sending e-mail uisng the mail() command? [snip] If you want to use the builtin mail() function you gotta construct the complete M

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] 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] 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] 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] 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] 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] 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] 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] "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] "update" question [T20030602013J]

2003-06-03 Thread Ernest E Vogelsinger
ur message and will respond to it as >quickly as possible. > >At BONZI Software we attempt to answer all of the questions we get on a >first-come, first-served basis, as quickly as possible. On occasion we >receive a large volume of e-mail that prevents us from answering your

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] 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] 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] 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
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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[PHP] stream_wrapper_register

2003-06-20 Thread Larry E. Masters
$options, &$opened_path) { // put sql here return true; } function stream_unlink($path, $mode, $options, &$opened_path) { // put sql here return true; } and so forth Thanks, Larry E. Masters aka PhpNut -- PHP General Mailing List (http://www.php.n

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] php.ini

2003-06-25 Thread Larry E. Ullman
Does the php.ini file always go in the same place no matter the OS? I did a locate in the shell, and nothing came up. I could find .ini files, or php. files, but no php.ini files. In all likelihood, you don't have a php.ini file on your computer, which is why searching for it using conventional

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] 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] 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] 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

[PHP] PHP Web Based File Management and Security

2003-06-27 Thread Dean E. Weimer
-- Thanks, Dean E. Weimer http://www.dwiemer.org/ [EMAIL PROTECTED] -- 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] PHP Web Based File Management and Security

2003-06-28 Thread Dean E. Weimer
r use ssh, but http is always available. > > So they don't have to use ftp or ssh to uploads files? > > Jim Lucas > - Original Message - > From: "Dean E. Weimer" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, June 27, 20

Re: [PHP] ftp_ssl_connect() Problem

2003-06-30 Thread Dean E. Weimer
hanks, Dean E. Weimer http://www.dwiemer.org/ [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Web Based File Management and Security

2003-06-30 Thread Dean E. Weimer
> on 29/06/03 4:12 AM, Dean E. Weimer ([EMAIL PROTECTED]) wrote: > >>> What is the point of the web based file manager? >> To eliminate Local Accounts, and so that they don't have to upload files >> via ftp or ssh. >> Plain ftp is very unsecure, and

Re: [PHP] Installation for OS X

2003-06-30 Thread Larry E . Ullman
Does anyone know of a good installation kit like FoxServ, phpTriad, etc for Mac OS X? I want a quick solution for adding MySQL, GD, phpLib support for my mac. Follow Marc's instructions at http://www.entropy.ch/software/macosx/php/ He provides a compiled version of PHP that includes MySQL suppor

Re: [PHP] ereg_replace

2003-07-01 Thread Dean E. Weimer
es see the thread "[PHP] multi line regular expression?" and see if that helps you any. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Thanks, Dean E. Weimer http://www.dwiemer.org/ [EMAIL

[PHP] Implement PHP within a string

2002-07-25 Thread Joshua E Minnie
Is it possible to run PHP that is embedded within a string? I have a file that is read into a string and returned to the browser, how can I run that PHP? i.e. some html codegetForm("guest"); ?>some more html code"; return ($str); } echo $obj->something(); -- Joshu

[PHP] Apache 2.0.40 and php as module

2002-08-19 Thread George E. Papadakis
Hi , I am trying to install Apache 2.0.40 with the latest php build as a module (windows xp) yet it just wont work. Though I tried all the tricks and possible scenarios no luck. Does anyone have anyidea why I am getthing this frustrating "Cannot load D:/Apache/php/sapi/php4apache2.dll into serve

[PHP] Output problem

2002-08-20 Thread George E. Papadakis
Hi, After unsuccessful try to install apache2.0.4 with php I went back to apache1.3 and the same php config I had before. Yet for some reason php is not working the way its supposed to. The header function wont do a thing and no syntax errors or warnings are shown . I guess it has to do something

[PHP] UCD-SNMP 4.2.5 and PHP-SNMP

2002-09-17 Thread Brian E. Seppanen
I have an application that uses php's snmp support to gather some information. I run several servers that are using this application and all of the servers are running redhat-7.2. In redhat 7.2 the OS initially ships with ucd-snmp-4.2.1-7.i386.rpm. This works fine with my applications.

[PHP] Searching a db

2002-09-23 Thread Joshua E Minnie
ld greatly appreciate any help or direction provided. -- Joshua E Minnie Advantage Computer Services, LLC Senior Project Manager [EMAIL PROTECTED] Phone: 269.276.9690 Fax: 269.342.8750 "Don't work for recognition, but always do work worthy of recognition." -- PHP General Mailing List

[PHP] PEAR or not PEAR

2002-09-24 Thread Joshua E Minnie
uerysim'); [/code snippet] And my querys would still remain relatively the same. I hope you can shed some light on this because I am not really sure which one to use. -- Joshua E Minnie Advantage Computer Services, LLC Senior Project Manager [EMAIL PROTECTED] Phone: 269.276.9690 Fax:

[PHP] Re: Resource for locating user-written functions?

2002-09-24 Thread Joshua E Minnie
You might check out http://wildelement.users.phpclasses.org/ -- Joshua E Minnie Advantage Computer Services, LLC Senior Project Manager [EMAIL PROTECTED] Phone: 269.276.9690 Fax: 269.342.8750 "Don't work for recognition, but always do work worthy of recognition." "Paul

Re: [PHP] where's waldo

2002-09-26 Thread Joshua E Minnie
find where "waldo" is at. Not sure how easy this would be but HTH. -- Joshua E Minnie Advantage Computer Services, LLC Senior Project Manager [EMAIL PROTECTED] Phone: 269.276.9690 Fax: 269.342.8750 "Don't work for recognition, but always do work worthy of recognition." &q

[PHP] GD on Linux

2002-10-04 Thread Joshua E Minnie
I was wondering if anyone could point me in the right direction as to why I can't get image manipulation with PHP to work. I am running 4.1.2 on Redhat with Apache. The configure script has "--with-gd" and in the php.ini file I added the line "extension=gd.so". I got it working on my W2K IIS5 S

[PHP] Re: GD on Linux

2002-10-04 Thread Joshua E Minnie
"Joshua E Minnie" <[EMAIL PROTECTED]> wrote: : I was wondering if anyone could point me in the right direction as to why I : can't get image manipulation with PHP to work. I am running 4.1.2 on Redhat : with Apache. The configure script has "--with-gd" and in

[PHP] Interesting results with date()

2002-10-11 Thread Joshua E Minnie
Hey all, I am having some interesting, but confusing results when I use date(). What is confusing me is that when I use date with only the first argument, I get some interesting results with the timezone. i.e. You would expect to see something like this: Fri, 11 Oct 2002 13:24:53 -0500 Eas

Re: [PHP] String manipulation

2002-10-24 Thread Joshua E Minnie
If you are trying to just validate the email you might also try to the email validation function that php.net uses. You can get it in the CSV area of the site. _ / Joshua Minnie\ ++---+ | Wild Web Technology

[PHP] Trouble maintaining a session

2002-11-05 Thread Joshua E Minnie
Hey all, I was wondering if anyone could explain to me why I can't seem to maintain a session using PHP 4.1.2 on my NT4 server. I am don't have any problems on my W2K/IIS5 or Linux machine. What I am doing is allowing my users to log on to the site at any time, and then being returned to t

[PHP] Re: function()

2002-11-05 Thread Joshua E Minnie
First of all, you can't echo that variable in the manner you are trying. Try this instead: [lib.inc] function test_func($param1) { return $param1; } [main.php] HTH _ / Joshua Minnie\ ++---+ | Wild Web Technology

[PHP] undefined symbol: curl-global-init

2002-11-05 Thread Ernest E Vogelsinger
Hi list, maybe someone has a simple answer to this: I am running Apache 1.3.22 with libphp4.so. Everything's fine, but when starting php from the command line I get: php: relocation error: php: undefined symbol: curl-global-init Any idea what I should try? Thanks, -- >O

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

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] 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] 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
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] 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

<    1   2   3   4   5   6   7   8   9   10   >