Ok lets see I have the following two functions one calls the other
Function a (&$myref) {
..something... then calls function b
b($myref);
}
function b (&$myref) {
something
}
a($myref);
is the reference by passing in function b legal???
Carl Furst
Chief Technical Officer
Vot
;
// ps... none of this code has been tested use at your own risk.
Carl Furst
Chief Technical Officer
Vote.com
50 Water St.
South Norwalk, CT. 06854
203-854-9912 x.231
-Original Message-
From: Phillip Blancher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 3:38 PM
To: PHP List
Yep that should work as does $var--
-Original Message-
From: Jeremy [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] incrementing string value
writing some client side javascript with some dynamic php, and I need to be
able to print a dy
You can do it by selecting the formatted date from the mysql server using
the DATE_FORMAT command which would be:
SELECT DATE_FORMAT('%M %D, %Y', date_field_name_or_mysqldate);
-Original Message-
From: Gronquist, Jim M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 11:53 AM
To
Isn't there an in_array function you can use?
If (in_array($action, array(a1,a2,a3,a4)) {
// do something
}
else {
// do something else
}
Carl.
-Original Message-
From: andu [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 10, 2003 7:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] find string
'5';
Does that force some kind of behavior that's needed?
Interesting.
Carl Furst
Chief Technical Officer
Vote.com
50 Water St.
South Norwalk, CT. 06854
203-854-9912 x.231
-Original Message-
From: PHPSpooky [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 11:16 AM
To: [
u have an editor like bbedit on the mac
or UltraEdit on the PC it will make your life SO much easier. Especially if
you are a database massager, oh man the hours I have saved!
C.
-Original Message-
From: Noah [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 12:34 PM
To: Carl F
ore flexible and a lot more powerful.
Carl.
-Original Message-
From: Noah [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 11:03 PM
To: CPT John W. Holmes; Carl Furst
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] strip_tags() Quandry
Hey John; Hey Carl.
I've heard this debate bef
over, like checking
for valid email addresses, or even phone numbers (which is a tricky little
@#$%^#). Is there a PHP function that checks emails? That would be neat.
Carl Furst
System Developer
Vote.com
50 Water St.
South Norwalk, CT. 06854
203-854-9912 x.231
-Original Message-
From: No
explains how having cookies
turned off limits your enjoyment of the site, but doesn't require cookie
activation nor does use third party cookies, thank G-d..
Carl Furst
-Original Message-
From: Monty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:08 AM
To: [EMAIL PROT
I want to do one of those redirect pages where a php script prints HTML
saying "sorry we're not here, we're redirecting you to the right location"
and then after about 2-3 seconds a new location header gets printed and you
are transported to the new location. I see this everywhere but don't know
ho
I can understand the abuse, but this page wouldn't need to be indexed on any
search engines really.. but I it's an important consideration.
Thanks!
Thanks to everyone!
Carl.
-Original Message-
From: Michael [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 12:35 PM
To: Zak Johnson;
There is a mysql function called substring_index() that returns a substring based on
an index character like space ' '. You have to specify the string, the index
character, and how many time it has to find it from the left or right (left being
positive and right being negative, I think) before t
I doubt this is the problem, but perhaps your webserver is messing with your
mime-types by printing a default header for some reason.
Carl Furst
Chief Technical Officer
Vote.com
50 Water St.
South Norwalk, CT. 06854
203-854-9912 x.231
-Original Message-
From: Brian V Bonini [mailto
If should use double equals for comparison.. if ($doWork == 1) { etc here}.
Of course doing multiple tests like this you are better off using switch
case...
Switch ($doWork) {
Case 0:
Exit;
Break;
Case 1:
DoOne($arguments);
IF $int is null and I have a test
If($int < 1) {
//do some foobar
}
will $int be evaluated as a zero? IF I cast (int) $int.. will that turn a
null $int into a zero??
Documentation aint too clear.
Thanks,
Carl.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
erpolate $variables". However I have discovered (at
least in php 4.2.3) that you cannot use subarrays in double quotes like "my
var in the subarray subarray: $array['subarray']['subarray']" That doesn't
seem to work.. it comes up blank.
Carl Furst
-Or
PHP may not be the thing to do this.. because it sounds like you want
the users to chroot to ${HOME} which php especially on a vhost does not do.
If you want users to access an nfs or ftp I would use either samba or
vsftp or some other scp/ftp software.
Jan G.B. wrote:
> 2009/7/6 Isaac Dover
>
The basic model for password authentication is to use one way crypt
routines. MySql has several, PHP also has them. The basic algorithm
would be like this:
1) read the password from the form.
2) read the password from you datastore that matches the user name or
session
3) encrypt the password on
wrote:
> Carl Furst wrote:
>
>>
>> > $salt = 'someglobalsaltstring'; # the salt should be the same salt used
>> when storing passwords to your database otherwise it won't work
>> $passwd = crypt($_GET['passwd'], $salt);
>
> I per
Jim Lucas wrote:
Ashley Sheridan wrote:
On Wed, 2009-09-23 at 07:36 -0700, Jim Lucas wrote:
Mert Oztekin wrote:
Output buffering will do it.
Also I am not sure but did you try retrieving content with fopen() ?
Something like
$file = 'invoicetable_bottom.php';
fopen("http://
mpossible
Geert Tapperwijn wrote:
Can't you just use the eval <http://nl2.php.net/eval> function, and
parse the code from the include file in it?
.. or is there something I'm missing here?
2009/9/25 Carl Furst <mailto:cfu...@intracommunities.org>>
Jim Lucas wro
That option was added in 5.3.0 So you have to upgrade for that to work.
tedd wrote:
Hi gang:
The manual says:
http://www.php.net/nl2br
That I could use the function like so (Example #2):
$new = nl2br($string, false);
But when I do, I get:
Warning: Wrong parameter count for nl2br()
It's also a security flaw... php should be chrooted to the webroot! Or
it should be chrooted to the users home directory. Especially on windows
systems where security is not so strict.
My 2 cents,
Carl.
Roberto wrote:
> Hi Joseph,
>
> I'm perfectly fine with the concepts of absolute/relative path
Two words: Java Applet.. That's the stuff that Facebook and other social
sites do stuff like this, Although I've only seen it for upload.
One thing perhaps you can do is have the applet command the browser to
save the page as a complete web page onto the flash drive.
it's cross platform and cross
roups and permissions or b) chroot your php process. a) is much much
simpler.. as long as the apache process can read the files you're
golden. However on Windows, this is, of course, impossible; or at least
very highly improbable.
C.
Ashley Sheridan wrote:
On Sat, 2009-12-12 at 09:42 -
I have a question about an odd phenomenon. It doesn't have much to do with
PHP except that I used strtr to solve it, and it maybe that the problem is
being caused by a setting in PHP, but I would like to get some more
background info as to why this is happening.
On a typical Windows system, mos
e the
representation, say, of a MS Word dash (hex: 0x96) is not the same number on
Linux. So if you try and scrub it on the Linux side it won't find it.
Thanks!
Carl
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 11, 2005 2:14 AM
To: Carl Furst
Cc: p
ot of where statements with your
join you may wish to consider a sub select instead.
A good thing to do would be to try each case and see which works faster in
your situation..
Carl Furst
Vote.com
P.O. Box 7
Georgetown, Ct 06829
203-544-8252
[EMAIL PROTECTED]
-Original Message-
From:
I think you need to have the result from a mysql_connect() in order for that
to work..
As in:
$myResource = mysql_connect(user, pass, host, etc);
You just have a statement handle there. Which is good for the fetch commands
like mysql_fetch_row(), but not the num rows command.
Carl Furst
I think there maybe a few ways to do this... One is
[EMAIL PROTECTED]@[EMAIL PROTECTED]
That basically says "find me the pattern where one non-at symbol is followed
by an at symbol followed by another non-at symbol"
So if you do
numMatch: 3
Array
(
[0] => Array
(
[0]
function which can provide time cost for
last
query?
Maybe...
http://us2.php.net/manual/en/function.mysql-info.php
http://us2.php.net/manual/en/function.mysql-sta
Carl Furst
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Chris,
You probably are aware that this comes from a C/C++ standard the '&' before
the variable means that you are passing by reference and not by value. If
you are passing by reference, you are passing the address of a variable
instead of the value of that variable.
By passing the value of 3 the
nd and
it comes out with 6 results, exactly the same (or least as exactly as data
to a php script would be). So if you're joining in mysql it's good to insert
your data as ints into integer columns and 'char' or 'strings' when
inserting into varchar, char or text columns (a
numbers going into an int field and vice versa
otherwise your joins are going to get screwed up and that's not something
they teach you in software 101...
Peace,
Carl Furst
Vote.com
P.O. Box 7
Georgetown, Ct 06829
203-544-8252
[EMAIL PROTECTED]
> -Original Message-
>
Ok I am so stumped.. I'm doing something stupid and I can't figure it out..
Here's the code:
As you can see there are a bunch of spaces in that email address. I'm trying
to use preg_replace to get rid of them. Strpos sees the spaces and the first
echo statement is executed. The second echo prin
ent
functions on different evaluations of the Boolean Expression at the
beginning; like in the first example?
Carl Furst
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t anything..
lol :)
Still, thanks for your help, I was playing around with it and wanted to see
what other cool stuff you could do.
Carl Furst
> -Original Message-
> From: Jochem Maas [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 15, 2006 3:55 PM
> To: Carl Furst
>
38 matches
Mail list logo