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
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:
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.
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...
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
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
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;
}
-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
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
-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
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
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
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
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
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
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
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
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
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
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
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 {
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
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:
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
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
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 (
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),
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
[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
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
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
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),
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,
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,
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
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
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
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:
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
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
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
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
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()
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
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
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'] ==
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);
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
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
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
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/)) {
Ó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
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]
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.
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)*=
55 matches
Mail list logo