Re: [PHP] difficult select problem

2009-04-06 Thread Jim Lucas
PJ wrote: I've searched the web, the tutorials, etc. with no luck and have asked on MySql list with no luck and have even posted here with no replies. So, let's try again: I am trying to limit the search for books to only those that start with "A" (does not have to be case sensitive); but within

Re: [PHP] Modifying arrays in place that are stdClass arrays

2009-04-06 Thread Jim Lucas
Lists wrote: Hello, I have not had a lot of opportunity to deal with stdClass objects in php. This should be a simple one. I have been plagued with failure for far too many hours, so I bring it to the more experienced. I have $result = imap_fetch_overview(...) which returns a large stdClass ob

Re: [PHP] PHP bandwidth control

2009-04-06 Thread Chris
I guess there are multiple ways to engage this problem. It depends how "deep" you want to log the traffic. If you just want to count the traffic of each image, video etc you could just wrap up each image and video to go through php first with file_get_contents() (look in the php manual there are

Re: [PHP] difficult select problem

2009-04-06 Thread Chris
PJ wrote: I've searched the web, the tutorials, etc. with no luck and have asked on MySql list with no luck and have even posted here with no replies. So, let's try again: I am trying to limit the search for books to only those that start with "A" (does not have to be case sensitive); but within

Re: [PHP] PHP bandwidth control

2009-04-06 Thread Michael Kubler
DO NOT USE GO-DADDY. Sorry, just had to say that Go-Daddy will cause all sorts of issues when your domain expires, or if you check for a domain but don't purchase it straight away. When you come back a little bit later you'll have to pay hundreds of dollars for the domain (as they registered it

RE: [PHP] PHP require_once() opens some files but not others in same library

2009-04-06 Thread Henning Glatter-Gotz
Maybe ask on the zend list - http://framework.zend.com/community/resources since they will be familiar with it. Still sounds like a url is being used for a require/include but *shrug*. -- Postgresql & php tutorials http://www.designmagick.com/ I did ask on the Nabble Zend list but have not

RE: [PHP] PHP require_once() opens some files but not others in same library

2009-04-06 Thread Henning Glatter-Gotz
Chris, At no point am I using a URL. Under normal circumstances the code includes (require_once) things like "Zend/Loader/blablabla". Because this does not resolve in the local directory it is supposed to consult the PHP include_path to look this up. And it does this successfully up to a point. Th

Re: [PHP] PHP require_once() opens some files but not others in same library

2009-04-06 Thread Chris
Henning Glatter-Gotz wrote: Chris, At no point am I using a URL. Under normal circumstances the code includes (require_once) things like "Zend/Loader/blablabla". Because this does not resolve in the local directory it is supposed to consult the PHP include_path to look this up. And it does this

Re: [PHP] Out of the blue question..

2009-04-06 Thread Chris
bruce wrote: Hi Ladies/Gents of the list... I've got an issue/question and figured I'd fire it to the list. Over time, I've had a few projects that I've worked on, where I've required someone with skills way beyond mine for a given area. And rather than spend hours trying to figure it out, I've

Re: [PHP] PHP require_once() opens some files but not others in same library

2009-04-06 Thread Chris
Here are the warnings and the error that I get: Warning: Zend_Loader_PluginLoader::require_once() [function.Zend-Loader-PluginLoader-require-once]: couldn't resolve host name in /usr/local/php5/lib/php/library/Zend/Loader/PluginLoader.php on line 389 Why is this trying to load something via

Re: [PHP] Best Practices for Hiding Errors

2009-04-06 Thread Chris
Igor Escobar wrote: Becarefull, error supression is slow. If it's the only way to stop an error from showing up, what's the problem? php will still generate the warning/notice even if display_errors is disabled - which will be even slower. Plus I never said use it everywhere, I said use it

Re: [PHP] Best Practices for Hiding Errors

2009-04-06 Thread Igor Escobar
Becarefull, error supression is slow. Regards, Igor Escoar Systems Analyst & Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Mon, Apr 6, 2009 at 8:38 PM, Chris wrote: > > but they give the following warning: >

Re: [PHP] Best Practices for Hiding Errors

2009-04-06 Thread Chris
but they give the following warning: "This is a feature to support your development and should never be used on production systems (e.g. systems connected to the internet)." Am unclear what that means - is it okay to add: It's about "information disclosure". Errors/warnings/notices

Re: [PHP] PHP module ignores ldap.conf

2009-04-06 Thread Chris
Keith Lawson wrote: Hello, I'm trying to connect to and LDAP server using PHP over SSL. I compiled Openldap from source, installed it and then compiled PHP against that install. I have a tiny PHP script for testing that I have been calling from the command line (php scriptname). Before adding "T

Re: [PHP] Re: Best Practices for Hiding Errors

2009-04-06 Thread Lists
Good advice, what I usually do is a conditional to turn it all off except for a set of IP addresses that I work at. On Mon, Apr 6, 2009 at 3:52 PM, Shawn McKenzie wrote: > George Langley wrote: >>       Hi all! Have a question about hiding PHP errors from the end user. >>       I have the followi

[PHP] Re: Best Practices for Hiding Errors

2009-04-06 Thread Shawn McKenzie
George Langley wrote: > Hi all! Have a question about hiding PHP errors from the end user. > I have the following lines: > > $fp = fsockopen ($host, 80, $errno, $errstr, $timeout); > if (!$fp) { > // problem, put error handing code here > } else { >

[PHP] Best Practices for Hiding Errors

2009-04-06 Thread George Langley
Hi all! Have a question about hiding PHP errors from the end user. I have the following lines: $fp = fsockopen ($host, 80, $errno, $errstr, $timeout); if (!$fp) { // problem, put error handing code here } else { // success, do whateve

[PHP] Modifying arrays in place that are stdClass arrays

2009-04-06 Thread Lists
Hello, I have not had a lot of opportunity to deal with stdClass objects in php. This should be a simple one. I have been plagued with failure for far too many hours, so I bring it to the more experienced. I have $result = imap_fetch_overview(...) which returns a large stdClass object, depending

Re: [PHP] PHP bandwidth control

2009-04-06 Thread JD
Excellent, thanks both for the suggestions. I'd like to continue hosting it myself if for no other reason than I want to learn how to manage some of the hardware, software and operating systems that I otherwise don't get much exposure to. I'm treating this as a learning experience. I like the i

Re: [PHP] difficult select problem

2009-04-06 Thread Lex Braun
On Mon, Apr 6, 2009 at 2:05 PM, PJ wrote: > My code already has selected the books whose authors last names start > with A as well as the authors themselves. > Within the results some books have 2 authors. If you already have the book IDs where this happens, then for each bookID (probably a for

[PHP] Out of the blue question..

2009-04-06 Thread bruce
Hi Ladies/Gents of the list... I've got an issue/question and figured I'd fire it to the list. Over time, I've had a few projects that I've worked on, where I've required someone with skills way beyond mine for a given area. And rather than spend hours trying to figure it out, I've sometimes hire

Re: [PHP] Re: PHP class or functions to manipulate PDF metadata?

2009-04-06 Thread O. Lavell
tedd wrote: [..] > All the attempts I have done into opening up a PDF file and then trying > to make sense of it and put it back together with something changed have > been absolute failures. > > The algorithm used to make a PDF file reminds me of a replacement-type > compression technique -- it

[PHP] Re: PHP class or functions to manipulate PDF metadata?

2009-04-06 Thread O. Lavell
Peter Ford wrote: > O. Lavell wrote: [..] >> Any and all suggestions are welcome. Thank you in advance. >> > So many people ask about manipulating, editing and generally processing > PDF files. In my experience, PDF is a write-once format - any > manipulation should have been done in whatever s

[PHP] PHP module ignores ldap.conf

2009-04-06 Thread Keith Lawson
Hello, I'm trying to connect to and LDAP server using PHP over SSL. I compiled Openldap from source, installed it and then compiled PHP against that install. I have a tiny PHP script for testing that I have been calling from the command line (php scriptname). Before adding "TLS_REQCERT never"

Re: [PHP] difficult select problem

2009-04-06 Thread PJ
Hi Lex, Thanks for responding. Indeed, it is a very difficult problem - for me, at least; I think it is as difficult to formulate the problem in plain English as to figure out how to solve it. My code already has selected the books whose authors last names start with A as well as the authors thems

[PHP] PHP require_once() opens some files but not others in same library

2009-04-06 Thread hglattergotz
Hello, I have a very simple form created with the help of Zend Framework with only one text box that loads fine on my two development machines (Win and Linux) but generates 2 warnings and a fatal error on my production Linux machine. For this test I am using PHP 5.2.3 and I added the path to the

Re: [PHP] difficult select problem

2009-04-06 Thread Lex Braun
PJ, On Mon, Apr 6, 2009 at 12:32 PM, PJ wrote: > I am trying to limit the search for books to only those that start with > "A" (does not have to be case sensitive); but within that selection > there may be a second author whose name may start with any letter of the > alphabet. > First off, are y

Re: [PHP] send mail to group defined in .mailrc file

2009-04-06 Thread debussy007
I found it out ... I had to set a environment variable MAILRC, to the rc file, e.g.: exec('export MAILRC=/home/sav/.mailrc; mail ' . $toMail . ' -s "hello world"'); debussy007 wrote: > > Hi, > > When I execute the following command from PHP: > exec('"content" | mail exam...@gmail.com -s "h

Re: [PHP] difficult select problem

2009-04-06 Thread PJ
Hi Bastien, Thanks for the suggestion. But my code already does that. I think it is as difficult to formulate the problem in plain English as to figure out how to solve it: The problem is: Within the results some books have 2 authors: 1) is there a second author for any of the books in the resu

Re: [PHP] difficult select problem

2009-04-06 Thread Bastien Koert
On Mon, Apr 6, 2009 at 12:32 PM, PJ wrote: > I've searched the web, the tutorials, etc. with no luck and have asked > on MySql list with no luck and have even posted here with no replies. > So, let's try again: > > I am trying to limit the search for books to only those that start with > "A" (doe

[PHP] difficult select problem

2009-04-06 Thread PJ
I've searched the web, the tutorials, etc. with no luck and have asked on MySql list with no luck and have even posted here with no replies. So, let's try again: I am trying to limit the search for books to only those that start with "A" (does not have to be case sensitive); but within that select

[PHP] send mail to group defined in .mailrc file

2009-04-06 Thread debussy007
Hi, When I execute the following command from PHP: exec('"content" | mail exam...@gmail.com -s "hello there"'); it works fine; But not when using an alias group defined in the .mailrc file, e.g.: exec('"content" | mail myGroup -s "hello there"'); When I execute the command above in the linu

[PHP] Message could not be delivered

2009-04-06 Thread wahmed
±{RÞ/‡fIÁֿӈљ…qÔfÚM6äĒÝkN–‘° tî #'ÕM8^E\9›ø,¤!g–õ~n¢†æãÎÇB­Çvøµ‰9-îô”º‘ûD<Ö¿â*š6‹œñ÷ù§øÔtX:t«ÁWi͖°±› ±K“zj×Ùßubû¾ûҖ•~÷->Þ÷9á"÷>‹U¦ÚPtšš !3È.t­ -©i卉±£Y/lÕ¨Â`¸e)×Z :_›<”ìôGÂì -%iiT&X¾“Ï5¸*YúS|©—qòz ìLt^֊Խùó*c~öPþ’%c£äµHJ9ÏMžäízÞ´Îjw‘°:‚X {×°O_ŒERa¸¨~û V—C¯Rú¤&D³‡ï»qDèWxM ZYwº65’Ão

[PHP] Re: PHP class or functions to manipulate PDF metadata?

2009-04-06 Thread tedd
At 10:06 AM +0100 4/6/09, Peter Ford wrote: O. Lavell wrote: > Any and all suggestions are welcome. Thank you in advance. So many people ask about manipulating, editing and generally processing PDF files. In my experience, PDF is a write-once format - any manipulation should have been done

Re: [PHP] [php] while loop failure

2009-04-06 Thread Virgilio Quilario
> setting: > > max_execution_time = -1     ; Maximum execution time of each script, in > seconds > max_input_time = -1    ; Maximum amount of time each script may spend > parsing request data > ;max_input_nesting_level = 64 ; Maximum input variable nesting level > memory_limit = 2036M      ; Maximu

Re: [PHP] [php] while loop failure

2009-04-06 Thread Virgilio Quilario
> Does any one knows why while loop below ends after few loops when it meant > to keep in loop? > > File name: while_loop_script.php > > define('run', 0); > define('START', 10); > > while(START >run){ > > $ch = curl_init("mydomain/update_script.php?action=run"); > curl_exec($ch); > curl_close($ch);

php-general@lists.php.net

2009-04-06 Thread Michael A. Peters
Marc wrote: I'm looking through various documentation on MDB2 In some examples the assignment operator looks like it is mixed with a bitwise or logic operator - IE $mdb2 =& MDB2::factory($dsn); Other examples though just have $mdb2 = MDB2::factory($dsn); With the =& operator, PHP creates

Re: [PHP] PHP bandwidth control

2009-04-06 Thread Michael A. Peters
Yannick Mortier wrote: 2009/4/6 JD : Hello, I am relatively new to PHP and am trying to make a video/image sharing site for my family to upload and share family videos and pictures. My concern is that because I'm hosting this site at my house, I will quickly exceed my bandwidth limitations e

Re: [PHP] PHP bandwidth control

2009-04-06 Thread Yannick Mortier
2009/4/6 JD : > Hello, > > I am relatively new to PHP and am trying to make a video/image sharing site > for my family to upload and share family videos and pictures. My concern is > that because I'm hosting this site at my house, I will quickly exceed my > bandwidth limitations each month if al

Re: [PHP] kill php.exe window

2009-04-06 Thread Stuart
2009/4/6 Andrew Williams : > I mean How do I kill it automatically via script and not command line: > > File name: while_loop_script.php > > > $ch = curl_init("mydomain/update_script.php?action=run"); > curl_exec($ch); > curl_close($ch); > > {exit or kill  script} > > window schedule task: > run bo

php-general@lists.php.net

2009-04-06 Thread Marc
>I'm looking through various documentation on MDB2 > >In some examples the assignment operator looks like it is mixed with a >bitwise or logic operator - IE > >$mdb2 =& MDB2::factory($dsn); > >Other examples though just have > >$mdb2 = MDB2::factory($dsn); > >I'm trying to figure out exactly what

php-general@lists.php.net

2009-04-06 Thread Michael A. Peters
I'm looking through various documentation on MDB2 In some examples the assignment operator looks like it is mixed with a bitwise or logic operator - IE $mdb2 =& MDB2::factory($dsn); Other examples though just have $mdb2 = MDB2::factory($dsn); I'm trying to figure out exactly what =& does, w

Re: [PHP] kill php.exe window

2009-04-06 Thread Andrew Williams
I mean How do I kill it automatically via script and not command line: File name: while_loop_script.php $ch = curl_init("mydomain/update_script.php?action=run"); curl_exec($ch); curl_close($ch); {exit or kill script} window schedule task: run box: php.exe to scheldule task it every 5 minutes:

Re: [PHP] kill php.exe window

2009-04-06 Thread Marc
>I need to exit php.exe window after completing an assigned task. Does anyone >knows how to close, exit, kill or stop the window Run your PHP.exe by using appending "& exit" to your command. For instance: php.exe [YOUR COMMAND ARGS] & exit Greetings from Germany Marc -- Sync and share your fi

Re: [PHP] [php] while loop failure

2009-04-06 Thread Andrew Williams
setting: max_execution_time = -1 ; Maximum execution time of each script, in seconds max_input_time = -1; Maximum amount of time each script may spend parsing request data ;max_input_nesting_level = 64 ; Maximum input variable nesting level memory_limit = 2036M ; Maximum amount of mem

Re: [PHP] [php] while loop failure

2009-04-06 Thread Andrew Williams
The php.ini maximum time is set to -1 which is infinity On Mon, Apr 6, 2009 at 11:27 AM, Chetan Rane wrote: > I think its exceeding the max execution time set in PHP.ini > Either set yoru cron to run after every 60 seconds, or change the setting > in PHP.ini > > Chetan Dattaram Rane | Software En

RE: [PHP] [php] while loop failure

2009-04-06 Thread Chetan Rane
I think its exceeding the max execution time set in PHP.ini Either set yoru cron to run after every 60 seconds, or change the setting in PHP.ini Chetan Dattaram Rane | Software Engineer | Persistent Systems chetan_r...@persistent.co.in | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014 Innovatio

[PHP] kill php.exe window

2009-04-06 Thread Andrew Williams
I need to exit php.exe window after completing an assigned task. Does anyone knows how to close, exit, kill or stop the window -- willandy.co.uk

[PHP] [php] while loop failure

2009-04-06 Thread Andrew Williams
Does any one knows why while loop below ends after few loops when it meant to keep in loop? File name: while_loop_script.php define('run', 0); define('START', 10); while(START >run){ $ch = curl_init("mydomain/update_script.php?action=run"); curl_exec($ch); curl_close($ch); } using php.exe to

[PHP] Re: PHP class or functions to manipulate PDF metadata?

2009-04-06 Thread Peter Ford
O. Lavell wrote: > Hi group, > > I am looking for an easy way to manipulate (read, write) the metadata > (title, subject, keywords, author) in PDF files through PHP. > > Most PHP/PDF solutions I have found so far (through Google) are aimed at > constructing PDFs from text and graphics, with lot