Re: [PHP] re: More Error Reporting Problems

2012-01-02 Thread Marco Behnke
Am 30.12.2011 17:11, schrieb Floyd Resler: On Dec 30, 2011, at 11:05 AM, Matt Graham wrote: I'm still not sure why they aren't displaying. But as long as I have a place to find them I'm cool with that. Maybe anything in your web application overrides display_errors? -- Marco Behnke Dipl

Re: [PHP] passing variables to php script

2012-01-10 Thread Marco Behnke
action to simply callrecs.php and see if that works. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz smime.p7s

Re: [PHP] passing variables to php script

2012-01-10 Thread Marco Behnke
Am 10.01.12 21:28, schrieb Mike Mackintosh: On Jan 10, 2012, at 15:12, Marco Behnke ma...@behnke.biz wrote: Am 10.01.12 21:07, schrieb Donovan Brooke: David Savage wrote: OK...I admit I'm new at thisI have this html file: html head titleGenerate pdf file of LD, Toll Free

Re: [PHP] passing variables to php script

2012-01-10 Thread Marco Behnke
to figure out why his posting the form does not work. I say, it can't work as long as long as there is Q:\ ins his form action, no way it will do, because you leave your webserver context anyways. He must change it to a valid web url. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer

Re: [PHP] Autoloading

2012-02-01 Thread Marco Behnke
($path)) { require_once $path; } }; spl_autoload_register($callback); -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http

Re: [PHP] Typecasting question

2012-02-03 Thread Marco Behnke
, 'x509_extensions'= 'usr_cert', 'encrypt_key_cipher' = 'OPENSSL_CIPHER_3DES'); same here -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Marco Behnke
variable is tested in many places to see if things should be done. That is just as bad as lots of GOTO -- often when having to write something like that I will have a GOTO (in Good code uses Exceptions and try catch for that kind of scenarios. -- Marco Behnke Dipl. Informatiker (FH), SAE

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Marco Behnke
Am 06.02.12 21:55, schrieb Adam Richardson: On Mon, Feb 6, 2012 at 3:44 PM, Marco Behnke ma...@behnke.biz wrote: Am 06.02.12 17:23, schrieb Alain Williams: many places to see if things should be done. That is just as bad as lots of GOTO -- often when having to write something like that I

Re: [PHP] handle file_get_contents timeout including dns lookup time

2012-02-14 Thread Marco Behnke
if you use cURL and set the CURLOPT_CONNECTTIMEOUT option. - Matijn That won't help. When you reach the sleep with your request, the connection is already established. What you want is curl with CURLOPT_TIMEOUT max execution time -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer

Re: [PHP] Turning a string into a condition

2012-02-16 Thread Marco Behnke
the flexibility, I'd be happy to hear it. Marc Is math all you want to use? Parsing will be an easy doing and I am pretty sure there are a lot of examples around the web. E.g.: http://www.phpclasses.org/package/2695-PHP-Safely-evaluate-mathematical-expressions.html -- Marco Behnke Dipl. Informatiker

Re: [PHP] Wrong POSTFIELDS Posted

2012-02-17 Thread Marco Behnke
of information. var_dump($_POST); // at the beginning of the script // the code that assembles $string // the target url for your curl request from curl_init or CURLOPT // the other curloptions not mentioned here but used -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified

Re: [PHP] SimpleXML and the Single String (SOLVED)

2012-02-22 Thread Marco Behnke
; I like the first one. Plus you handle it to dynamically to the right type function __get($value) { if is float return float casted value if is boolean ... and so on } -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174

Re: [PHP] PHP Mailto() - Google now displaying HTML as Plain Text

2012-05-01 Thread Marco Behnke
with my script?? $message .= pbMessage:/bblockquote .$m./blockquote/p; As far as I can see your main html tags are missing? $message = 'htmlbody' . $message . '/body/html'; -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail

Re: [PHP] PHP Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Marco Behnke
what errors are appear into your browser and your logfiles. Post them and the codelines for these errors on the list. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine

Re: [PHP] Exception Handling

2012-06-01 Thread Marco Behnke
extend Exception? It was always my understanding that doing so would cause a fatal error. Ah, I guess that is the problem. Your application framework uses namespaces. I guess you should try catch (\Exception $e) instead of catch (Exception $e) :-) James -- Marco Behnke Dipl

Re: [PHP] PDO: extend or encapsulate?

2012-07-14 Thread Marco Behnke
another class AND use PDO - You can easily exchange PDO with another abstraction layer if you like, without changing the interface, just changing the implmentation -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma

Re: [PHP] php safe mode no more?

2012-08-04 Thread Marco Behnke
. It is faster and uses less memory. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz signature.asc Description

Re: [PHP] PHP session variables

2012-08-12 Thread Marco Behnke
://de2.php.net/manual/de/function.session-status.php to check a session status. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http

Re: [PHP] How do I do count the occurrence of each word?

2012-08-18 Thread Marco Behnke
to avoid incrementing not set array keys foreach ($words as $word) { if (array_key_exists($word, $freq)) { $freq[$word] = 1; } else { $freq[$word]++; } } For output, you may want to sort the array: ksort($freq); -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma

Re: RES: [PHP] fets() escaping some characters

2012-09-11 Thread Marco Behnke
knows why this is happening? This happened while I was getting a line using fgets and hence I tried storing that string into a variable and outputting but it still doesn't show the characters between the . Any help is highly appreciated. Thanks -- Best Regards, Sunil Meena -- Marco

Re: [PHP] Differences

2012-10-04 Thread Marco Behnke
Am 04.10.12 02:48, schrieb David McGlone: Hi everyone, I have been playing around with some code the list helped me with a while back and I'm not grasping the concept between return and echo and the PHP manual doesn't answer this, unless I'm missing something. There is an example at the

Re: [PHP] TURBOPY cloud framework + IDE beta available NOW

2012-10-27 Thread Marco Behnke
have developed a real templating engine or if you are going by eval()? From what I see, it looks a bit like that. But these are only my points. I browsed the pages, had no insight on the code. But I like your concept on the in place editing, that looks pretty cool and handy. -- Marco Behnke Dipl

Re: [PHP] Rest

2012-10-27 Thread Marco Behnke
your goal, so we can discuss on how we can improve it. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz

Re: [PHP] TURBOPY cloud framework + IDE beta available NOW

2012-10-31 Thread Marco Behnke
quoting that post? Posted by Rasmus http://toys.lerdorf.com/authors/1-Rasmus on Monday, February 27. 2006 Adam -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich

Re: [PHP] TURBOPY cloud framework + IDE beta available NOW

2012-10-31 Thread Marco Behnke
://stackoverflow.com/questions/1185605/when-to-use-static-vs-instantiated-classes -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http

Re: [PHP] Question

2012-11-03 Thread Marco Behnke
, or is my thinking wrong? maybe because of --disable-cgi Thank you for help and Greetings Silvio -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D

Re: [PHP] Storing passwords in session variables

2012-12-11 Thread Marco Behnke
in-between too. Normally you would pass credential as post variables or even better use http auth for that. (read about http code 401 How to send in HTTP: http://en.wikipedia.org/wiki/Basic_access_authentication Read in auth vars in PHP: http://php.net/manual/de/features.http-auth.php -- Marco

Re: [PHP] Session ?

2012-12-11 Thread Marco Behnke
? (session_save_path)? -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz signature.asc Description: OpenPGP digital

Re: [PHP] Session ?

2012-12-12 Thread Marco Behnke
Am 12.12.12 15:58, schrieb Jim Giner: On 12/12/2012 8:08 AM, ma...@behnke.biz wrote: Jim Giner jim.gi...@albanyhandball.com hat am 12. Dezember 2012 um 02:53 geschrieben: On 12/11/2012 7:27 PM, Marco Behnke wrote: Am 08.12.12 19:08, schrieb Jim Giner: All my debugging messages indicagte

Re: [PHP] Session ?

2012-12-13 Thread Marco Behnke
or warnings. my sub points to a folder within my domain's structure. My session's store point (?) is \tmp. You asked two different questions. point taken ;) I will try to do a setup like yours and check which code works for me. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer

Re: [PHP] Rewrite Help

2012-12-28 Thread Marco Behnke
On 28.12.2012 16:30, Floyd Resler wrote: I'm having a perplexing problem with a rewrite rule (it's off topic but it's Friday!). My initial path is piccDetails/index/0/linetypes/2012-01-01/2012-12-31/Successful and that works great. However, in my script I want to change the zero in the

Re: [PHP] Rewrite Help

2012-12-28 Thread Marco Behnke
On 28.12.2012 17:13, Floyd Resler wrote: On Dec 28, 2012, at 11:09 AM, Marco Behnke ma...@behnke.biz wrote: On 28.12.2012 16:30, Floyd Resler wrote: I'm having a perplexing problem with a rewrite rule (it's off topic but it's Friday!). My initial path is piccDetails/index/0/linetypes/2012

Re: [PHP] APC opcode cache behavior

2013-02-14 Thread Marco Behnke
you'll avoid restarting the webserver and it will clear all APC cache forcing APC to cache everything again. since apache and cli do not share the same apc, it will not work. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174

Re: [PHP] OOP to run sequential SQL queries?

2013-02-17 Thread Marco Behnke
going to carry on in PHP, and my experience says that we should write the solution in a procedural-style, instead of OOP. Is there any benefit to use OOP in these situations? Please share your thoughts. Thanks, -behzad -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma

Re: [PHP] Mystery foreach error

2013-03-12 Thread Marco Behnke
triggering this to happen? I have the following line in my php.ini: error_reporting = E_ALL E_STRICT E_NOTICE E_DEPRECATED Thank you, Angela -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz

Re: [PHP] Re: Generating CRUD code for normalized db

2013-03-13 Thread Marco Behnke
Boxes and stuff for relations? If I understood you correct, this is what you were looking for? -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218

Re: [PHP] mysql custom global defined variable

2013-03-13 Thread Marco Behnke
also has global define functionality (like the define in php) ? I also want to do kind of SELECT * FROM house WHERE type = HOUSE_SMALL_TYPE in mysql query. Maybe this is what you are looking for? http://forums.mysql.com/read.php?98,273432,273432 -- Marco Behnke Dipl. Informatiker (FH), SAE

Re: [PHP] Session variable not persisting

2013-03-18 Thread Marco Behnke
array. Any thoughts on this? Is this a known bug (haven't found it…) Thanks! Just a thought that came to my mind: Have you disabled browser caching? And about the push is undefined in the logs: How do you call the script for the first time? With or with push parameter? -- Marco Behnke Dipl

Re: [PHP] Lasting syntax error when there's none

2013-04-09 Thread Marco Behnke
- Software: Ubuntu packages only (updated) - HTTP request handling: nginx load balancer → PHP FPM daemon - Machine: VMware Fusion (managed by Vagrant) hosted on OS X 10.8.3 Thanks, -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336

Re: [PHP] self operator within a double quoted string

2013-04-17 Thread Marco Behnke
on the single quotes, or store the variable in a temporary var before using the print. Or use printf which is much more readable. - Matijn -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik

Re: [PHP] A little confused

2013-04-23 Thread Marco Behnke
['ExpiryDate'] = 2013-04-23; $int_timestamp = strtotime($_SESSION['ExpiryDate']); echo date('D, \t\h\e jS \o\f M Y', $int_timestamp ); Use SINGLE QUOTES! -- Chris. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-03 Thread Marco Behnke
? In any event, it seems like someone would have solved this by now before I go re-inventing the wheel. d. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-05-03 Thread Marco Behnke
Am 03.05.2013 21:34, schrieb Daevid Vincent: -Original Message- From: Marco Behnke [mailto:ma...@behnke.biz] Sent: Friday, May 03, 2013 12:01 PM To: Daevid Vincent; php php-general@lists.php.net Subject: Re: [PHP] Need a tool to minimize HTML before storing in memecache If you

Re: [PHP] Having a problem with clone.

2013-05-11 Thread Marco Behnke
-- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz signature.asc Description: OpenPGP digital signature

Re: [PHP] Fwd: Is it possible???

2013-06-24 Thread Marco Behnke
this! First of all, I don't know why you would use the print *function* when you can also use the echo language construct (better and faster). But read and learn http://de2.php.net/manual/en/function.print.php print is not actually a real function (it is a language construct) -- Marco Behnke Dipl