[PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Phil Curry
how can this be? This is not the first time I've run into a situation like this. What am I missing? line 102echo ($userValues['afterDark']); // outputs 1 line 103if ( $userValues['afterDark'] == 0 ) {// passes Thanks. -Phil -- PHP General Mailing List

RE: [PHP] magic quotes

2007-08-09 Thread k3cheese
It did work I was expecting a physical change in the form display as the form field values are set to stripslashes values. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 12:20 AM To: k3cheese Cc: php-general@lists.php.net Subject: RE:

Re: [PHP] Re: get domain component from email

2007-08-09 Thread Stut
Richard Lynch wrote: On Wed, August 8, 2007 4:26 am, Stut wrote: Completely agree. It's like banning someone from a pub based on the clothes they were wearing the last time you saw them. Yeah, one drunk abusive chick in a little black dress could get EVERY gal in a little black dress banned.

Re: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Stut
Phil Curry wrote: how can this be? This is not the first time I've run into a situation like this. What am I missing? line 102echo ($userValues['afterDark']); // outputs 1 line 103if ( $userValues['afterDark'] == 0 ) {// passes Add a line at 102.5...

[PHP] Special Bonus For Switching Over From SunRocket!

2007-08-09 Thread VoIPTelco.net
Hi, I want to introduce you to a new phone service that I'm using. It's called VoIPTelCo and it transforms your high speed Internet connection into a regular phone line. It works just like your current telephone service except it's 40% - 60% cheaper. You get features like Call Waiting, Caller

Re: [PHP] Hidden include_path Fall Back?

2007-08-09 Thread imacat
On Wed, 8 Aug 2007 23:56:34 -0500 (CDT) Richard Lynch [EMAIL PROTECTED] wrote: The default of php.ini starts with '.' in the first place, I think, so unless you go out of your way to change it, you'll get '.' from a fresh install anyway. I personally would not rely on the behaviour of the

[PHP] Access parent property from child

2007-08-09 Thread Suprie
dear all ... i have question, i've tried look at google but still can't figured out how to do it... i want access parent property from child object the code was like ? class DAO { private $db; private $id; protected function getId() { return $this-id; }

RE: [PHP] ORM framework suggestion

2007-08-09 Thread Edward Kay
-Original Message- From: Matt Arnilo S. Baluyos (Mailing Lists) [mailto:[EMAIL PROTECTED] Sent: 09 August 2007 00:35 To: PHP-General Subject: [PHP] ORM framework suggestion Hello All, I'm thinking of using an ORM framework for a new project. From my research, I've found Propel

Re: [PHP] Access parent property from child

2007-08-09 Thread Stut
Suprie wrote: function getDB() { return $this-$db; } There should not be a $ before db. It should be $this-db. That's why PHP is telling you the property is empty... because it is. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Access parent property from child

2007-08-09 Thread Edward Kay
-Original Message- From: Suprie [mailto:[EMAIL PROTECTED] Sent: 09 August 2007 11:13 To: php-general@lists.php.net Subject: [PHP] Access parent property from child dear all ... i have question, i've tried look at google but still can't figured out how to do it... i want

RE: [PHP] magic quotes

2007-08-09 Thread Bastien Koert
you could use ini_set at the top of the script to turn the magic quotes off...if you add this in a prepend file or a common included file that sits at the top of the script, it should take care of the damn magic quotes... failing that ask your host to turn it off Bastien From: [EMAIL

[PHP] HTTP methods, Web Browsers and REST

2007-08-09 Thread Nathan Nobbe
all, some time ago i read about RESThttp://en.wikipedia.org/wiki/Representational_State_Transfer . at first i thought for web services SOAP is much better for the self describing feature of the WSDL. then, reading through the Zend certification preparation book, there was a section on using POST

[PHP] Segmentation fault on PHP CLI

2007-08-09 Thread Martin Marques
I have a script which I run from cron. I'm testing it directly from the console: /usr/bin/php -f /path/to/script.php The thing is: Script executes great, and everything it has to do gets done, but it throughs a segmentation fault at the end. Is there anyway to debug PHP CLI? I'm using

Re: [PHP] Segmentation fault on PHP CLI

2007-08-09 Thread Stut
Martin Marques wrote: I have a script which I run from cron. I'm testing it directly from the console: /usr/bin/php -f /path/to/script.php The thing is: Script executes great, and everything it has to do gets done, but it throughs a segmentation fault at the end. Is there anyway to debug

Re: [PHP] magic quotes

2007-08-09 Thread David Giragosian
On 8/9/07, Bastien Koert [EMAIL PROTECTED] wrote: you could use ini_set at the top of the script to turn the magic quotes off...if you add this in a prepend file or a common included file that sits at the top of the script, it should take care of the damn magic quotes... Why might this not

Re: [PHP] Segmentation fault on PHP CLI

2007-08-09 Thread Martin Marques
Stut wrote: Martin Marques wrote: I have a script which I run from cron. I'm testing it directly from the console: /usr/bin/php -f /path/to/script.php The thing is: Script executes great, and everything it has to do gets done, but it throughs a segmentation fault at the end. Is there

RE: [PHP] magic quotes

2007-08-09 Thread Ford, Mike
On 09 August 2007 14:44, David Giragosian wrote: On 8/9/07, Bastien Koert [EMAIL PROTECTED] wrote: you could use ini_set at the top of the script to turn the magic quotes off...if you add this in a prepend file or a common included file that sits at the top of the script, it should

[PHP] Code Igniter for 'novices' ?

2007-08-09 Thread Steve Finkelstein
Hi all, This isn't a 'which framework is better than the other' question. I'm a novice developer and I'm looking to conform to an MVC model for my applications. I was wondering if anyone would be kind enough and has used code igniter, to respond to me and let me know their thoughts on it, and if

Re: [PHP] Code Igniter for 'novices' ?

2007-08-09 Thread Nathan Nobbe
steve, though i havent used code igniter i consider the tutorials on the site demonstrating how to use it quite valuable. i think they are valuable because they can show people who arent familiar w/ a development flow, using an mvc framework, what its like, in general. i have heard good things

[PHP] Exceptions

2007-08-09 Thread Peter Pan
Peeps, I'm having an issue where throwing Exceptions are displaying a blank page even though the Exception is being caught in a try...catch statement. This is happening on our production server where warnings, errors, exceptions, etc. are not to be displayed to the user. The assumption is

Re: [PHP] Exceptions

2007-08-09 Thread Nathan Nobbe
Peter, you are doing something called swallowing the exception. it may make sense for your application to continue processing if the closeCallTracker method throws an error, but at a minimum you should log the details of the exception so that you know why its occurring; something like: try {

Re: [PHP] Exceptions

2007-08-09 Thread Peter Pan
Nathan, I was hoping for a bug! I'll take a deeper look at the ini. More research is needed, me thinks. It's become apparent that throwing an Exception for this particular case doesn't really make sense. I'll just return early rather than throwing an exception. The logging suggestion is

Re: [PHP] ADODB Insert Question (Syntax)

2007-08-09 Thread Graham Anderson
Wow. I feel really dumb. I thought (incorrectly) that the surrounding quotes would screw with the variables in the ADODB's INSERT statement. many thanks G On Aug 7, 2007, at 2:06 PM, Uber Wannabe wrote: -Original Message- From: Graham Anderson [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Stut
Please include the list when replying. Phil Curry wrote: Phil Curry wrote: how can this be? This is not the first time I've run into a situation like this. What am I missing? line 102echo ($userValues['afterDark']); // outputs 1 line 103if ( $userValues['afterDark'] == 0

[PHP] Forwarding $_POST[]...

2007-08-09 Thread Tony Di Croce
I keep wanting to do something, and either I dont know how to do it, or I'm doing something wrong and need to rethink things. Quite often, I have a form that submits to a php script via POST and after doing some processing (or more frequently, asking the user a question), I'd like to forward

Re: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jim Lucas
Stut wrote: Please include the list when replying. Phil Curry wrote: Phil Curry wrote: how can this be? This is not the first time I've run into a situation like this. What am I missing? line 102echo ($userValues['afterDark']); // outputs 1 line 103if (

Re: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Stut
Tony Di Croce wrote: I keep wanting to do something, and either I dont know how to do it, or I'm doing something wrong and need to rethink things. Quite often, I have a form that submits to a php script via POST and after doing some processing (or more frequently, asking the user a question),

Re: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Simon
Session variables is a decent way. Storing them in a DB session can be good too It all depends on the data. The dumbest (but still correct) way to do it is a for() loop that creates a hidden input with the name/value pair for each variables you want. I would advise against resending the

RE: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Jay Blanchard
[snip] I could do something complicated and store the $_POST vars in $_SESSION[], but what I'd rather do is simply add a var to $_POST[] and resubmit this to the same .php. Is their any way to do this, or do I need to rethink things? [/snip] Put the processing in a function, run the post

Re: [PHP] ADODB Insert Question (Syntax)

2007-08-09 Thread Jim Lucas
Graham Anderson wrote: Wow. I feel really dumb. I thought (incorrectly) that the surrounding quotes would screw with the variables in the ADODB's INSERT statement. many thanks G On Aug 7, 2007, at 2:06 PM, Uber Wannabe wrote: -Original Message- From: Graham Anderson [mailto:[EMAIL

Re: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Richard Heyes
I could do something complicated and store the $_POST vars in $_SESSION[], but what I'd rather do is simply add a var to $_POST[] and resubmit this to the same .php. Is their any way to do this, or do I need to rethink things? There's nothing complicated about using sessions. ?php

Re: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Jim Lucas
Tony Di Croce wrote: I keep wanting to do something, and either I dont know how to do it, or I'm doing something wrong and need to rethink things. Quite often, I have a form that submits to a php script via POST and after doing some processing (or more frequently, asking the user a question),

Re: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Daniel Brown
On 8/9/07, Tony Di Croce [EMAIL PROTECTED] wrote: I keep wanting to do something, and either I dont know how to do it, or I'm doing something wrong and need to rethink things. Quite often, I have a form that submits to a php script via POST and after doing some processing (or more frequently,

Re: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Daniel Brown
On 8/9/07, Jim Lucas [EMAIL PROTECTED] wrote: What is complicated about step1.php ?php $my_post_data = $_POST; ... $_SESSION['_POST'] = $my_post_data; ? and step2.php ?php $my_post_data = $_SESSION['_POST']; ... ? Jim, perhaps I'm missing something that you're hinting at,

[PHP] Open Source Job Wanted system

2007-08-09 Thread Joey
Has anybody had any experience with any open source Job posting systems out there? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Open Source Job Wanted system

2007-08-09 Thread Robert Cummings
On Thu, 2007-08-09 at 14:54 -0400, Joey wrote: Has anybody had any experience with any open source Job posting systems out there? I didn't get the job *sniffle*. :B Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com

Re: [PHP] Open Source Job Wanted system

2007-08-09 Thread Tom Ray [Lists]
Joey wrote: Has anybody had any experience with any open source Job posting systems out there? Thanks! I've written one myself. It allows for job seekers to put up a profile, resumes, etc and for employers to post their jobs and search resumes. Full search ability on both sides. They

Re: [PHP] Open Source Job Wanted system

2007-08-09 Thread Nathan Nobbe
craigslist is out there, but i havent posted a resume on there.. -nathan On 8/9/07, Joey [EMAIL PROTECTED] wrote: Has anybody had any experience with any open source Job posting systems out there? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] string as file

2007-08-09 Thread Rick Pasotto
Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out = EOT This is an example of $var1 and $var2. EOT; and then after assigning values to $var1 and $var2 include that file. I can later use

Re: [PHP] string as file

2007-08-09 Thread Greg Donald
On 8/9/07, Rick Pasotto [EMAIL PROTECTED] wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out = EOT This is an example of $var1 and $var2. EOT; and then after assigning values

Re: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Jim Lucas
Daniel Brown wrote: On 8/9/07, Jim Lucas [EMAIL PROTECTED] wrote: What is complicated about step1.php ?php $my_post_data = $_POST; ... perhaps you want to have a clean data set you can do this as you populate the $my_post_data let me rename variable ?php //This allows you to only have to

Re: [PHP] string as file

2007-08-09 Thread Jim Lucas
Rick Pasotto wrote: Does php have a facility similar to python's stringIO? What I'm wanting to do is similar to a mail merge. IOW, I know I can create an include file like: $out = EOT This is an example of $var1 and $var2. EOT; and then after assigning values to $var1 and $var2 include that

RE: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jan Reiter
Hi! Phil: Still I am curious what var_dump($userValues['afterDark']); at line 102.5 would return. I managed to recreate that fault with $var['test'] = blah; echo ($var['test']); if( $var['test'] == 0) { echo ok; } //this returns blahok -- not expected. In my case Var_dump()

Re: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jim Lucas
Jan Reiter wrote: Hi! Phil: Still I am curious what var_dump($userValues['afterDark']); at line 102.5 would return. I managed to recreate that fault with $var['test'] = blah; echo ($var['test']); if( $var['test'] == 0) { echo ok; } //this returns blahok -- not expected. In my

[PHP] preg_match_all to match img tags

2007-08-09 Thread Ólafur Waage
I know this isn't exactly a php related question but due to the quality of answers ive seen lately ill give this a shot. (yes yes im smoothing up the crowd before the question) I have a weblog system that i am creating, the trouble is that if a user links to an external image larger than

Re: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Phil Curry
Please include the list when replying. Phil Curry wrote: Phil Curry wrote: how can this be? This is not the first time I've run into a situation like this. What am I missing? line 102echo ($userValues['afterDark']); // outputs 1 line 103if ( $userValues['afterDark'] ==

RE: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jan Reiter
Hi! Thank you for your response! The only intention of my code was to investigate the (back then) unexpected behavior of the if statement. With $var['test'] set to blah this expression should be false ($var['test'] == 0) for what I know ... $var['test'] = blah; var_dump($var['test'] == 0);

RE: [PHP] get and post together

2007-08-09 Thread Daevid Vincent
I've done that on occasion, but do be careful what you are sending via the GET. It has a size limit for one (maybe 1k chars?) and it is trivial for someone to modify. I generally use GET when I think it's a page setup the user may wish to bookmark (ie: page.php?orderby=namedescending=1report=69

Re: [PHP] permissions for include()

2007-08-09 Thread jekillen
On Aug 8, 2007, at 9:34 PM, Richard Lynch wrote: On Wed, August 8, 2007 7:52 pm, jekillen wrote: I have a question about including php files that are outside of the web server document root. What permission does Apache use to access files outside of the document root? Here is the situation: I

RE: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jan Reiter
Ummh, no! (int) and (integer) perform a C style atoi() conversion. (int)blah = integer 0 (int) = integer 0 (int)1= integer 1 (int)12 = integer 12 (1 == 0) = false (blah == 0) = true ( (int)$userValues['afterDark'] === 0 ) only is true, if $userValues['afterDark'] is a

Re: [PHP] Sorting files in a directory

2007-08-09 Thread Chad Robinson
Steve Marquez wrote: I know this code does not work, but I was curious if someone can take a look and tell me what is wrong? Thank you so much. Re-indent your code properly. If you do it will look like: ?php $pattern = .html*|.php*; if (is_dir(files/)) { if ($dh = opendir(files/)) {

Re: [PHP] preg_match_all to match img tags

2007-08-09 Thread brian
Ólafur Waage wrote: I know this isn't exactly a php related question but due to the quality of answers ive seen lately ill give this a shot. (yes yes im smoothing up the crowd before the question) I have a weblog system that i am creating, the trouble is that if a user links to an external

[PHP] Re: your excel document

2007-08-09 Thread sla-list
I have received your document. The corrected document is attached. Attachment: No Virus found F-Secure AntiVirus - www.f-secure.com Dangerous Attachment has been Removed. The file document.pif has been removed because of a virus. It was infected with the W32/[EMAIL PROTECTED]

Re: [PHP] Access parent property from child

2007-08-09 Thread Suprie
ouch... hey it's work rite now... thanks a lot for your help Edward and Stut, i really apprieciate it... br/// On 8/9/07, Stut [EMAIL PROTECTED] wrote: Suprie wrote: function getDB() { return $this-$db; } There should not be a $ before db. It should be $this-db.

RE: [PHP] preg_match_all to match img tags

2007-08-09 Thread Jan Reiter
Maybe this is what you are searching for: $images = array(); $data = blah img src=img.png width=\400\ height='600' src=blah.png img src=gg.tiff; preg_match_all(/\ *[img][^\]*[.]*\/i, $data, $matches); foreach($matches[0] as $match) { preg_match_all(/(src|height|width)*=