$row[1];
}
}
IMO, unless you have a *really* good reason for doing things this way,
putting values into an array is almost always better than using the "$$"
direct declaration.
i.e. why not use? $vars[ $row[0] ][ $row[2] ] = $row[1];
--
Scott Hurring [scott dot hurring dot lists at gma
d', strtotime('-1 day'));
Rabin
--
http://rab.in
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Scott Hurring [scott dot hurring dot lists at gmail dot com]
http://hurring.com/
x27;d be interested to know if anyone does get both php4 & php5 modules
installed together without file extention hints or port proxying.
--
Scott Hurring [scott dot hurring dot lists at gmail dot com]
http://hurring.com/
avaScript loops through all the like ID'ed checkboxes to check
or uncheck groups. It could be done the other way, but then JavaScript
code has to have more to it to increment from the value of the first ID.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
php 4 and others
>> in
>> php 5?
>>
>> Is this possible?
>> How would I go about doing it?
>>
>> Thanks
>>
>> Phillip
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Scott Hurring [scott dot hurring dot lists at gmail dot com]
http://hurring.com/
gt; To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Scott Hurring [scott dot hurring dot lists at gmail dot com]
http://hurring.com/
roj/en /php/php4-php5-configuration.xml
Gr,
Koen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Scott Hurring [scott dot hurring dot lists at gmail dot com]
http://hurring.com/
your first-level of
defense is simply "nobody else is on the box", then you can worry a little
bit less about your private key being stolen.
--
Scott Hurring [scott dot hurring dot lists at gmail dot com]
http://hurring.com/
e a server name for this reason. If you simply use an
absolute path, it'll point to whatever machine (local dev, live server,
etc...) it happens to be running on without you having to care.
i.e.
--
Scott Hurring [scott dot hurring dot lists at gmail dot com]
http://hurring.com/
I figured it was along those lines... i know that perl also caught
me a few times becuase perl differentiates between "==" and "eq"
for numerical or string comparisions.
I'll probaly end up using the "===", becuase i've got a severe
aversion to using fu
round it
http://www.php.net/manual/en/function.round.php
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Max Clark" <[EMAIL PROTECTED]> wrote in message
atdba1$2id$[EMAIL PROTECTED]">news:atdba1$2id$[EMAIL PROTECTED]...
> Hi-
>
> How
Erm... this seems a bit odd to me. I'm using PHPv4.2.2 on Win32
Is that becuase PHP is not properly comparing the numerical value with
the string value?
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
--
PHP General Mailing List (http://www.php.net
Add 0
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Beauford.2002" <[EMAIL PROTECTED]> wrote in message
001b01c2a1af$b9995e20$6401a8c0@p1">news:001b01c2a1af$b9995e20$6401a8c0@p1...
> Hi,
>
> Not sure if this is a PHP of a MySQL que
l
you find the line you want)
TIMTOWTDI :-)
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey guys, I've been searching the manual for a way to grab the number of
&
p.ini)
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Adam Voigt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Umm, try this:
$ftp = ftp_connect("ftp.direw.net") or die("Couldn't connect.
ce when i forgot, and ended up having a
more recent command line version than apache module
and couldn't figure out why cmdline scripts were acting
differently than when served up thru apache.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
<[EMAIL PROTECTED]> wrote
You're limited to one action per statement, not one record.
Using "UPDATE ... WHERE", you can update any number of rows
with a single SQL statement.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Hugh Danaher" <[EMAIL PROTECTED]> wrote i
With RedHat, AFAIR you have to compile PHP from source
*after* first configuring the GD libraries.
It's always been a massive PITA when i've had to compile PHP
on Redhat with Graphic ext's -- try debian instead ;-)
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*)
Here's an OOP function from an HTML class i wrote to simplify forms
myself -- It might come in handy for ya later :-)
// Single Select dropdown box
/*
@params
$name String Name of this form element
$items Array Array of items to place in this select box
$selected String Single item to s
ite... please check there
in the future for MySQL questions
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Georgie Casey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> rite,
>
> my primary key col
There's a problem with IIS and the rest of the world :-)
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
OK This is a followon from my Browser
or, more appropriately, use the database-specific escape function...
for mysql:
http://www.php.net/manual/en/function.mysql-escape-string.php
http://www.php.net/manual/en/function.mysql-real-escape-string.php
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"M
:-)
There's a million things you could do, that's the beauty
and curse of knowing how to program... too many projects
and ideas, not enough time.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Jay Blanchard" <[EMAIL PROTECTED]> wrote
to "hide" submitted data,
rather, build a stronger backend.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Erik!
>
> This is my 2nd
There's no way to for PHP to say "Yo, let's ride... submit that form"
Client-side manipulations must be done client-side, with
javascript or something similar.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Kris Vose" <[EMAIL PR
I think this is similar to what you're asking for, but it's
probably slower (you have to split(), traverse, then join())
foreach ($noiselist as $noise)
foreach ($inputlist as $input)
if ($noise == $input) // do something
--
Scott Hurring
Systems Programmer
EAC Corpora
e call close()";
$this->close();
}
function close(){
//close open sockets, etc.
}
} // End of class
function cRoute_Destructor($x) {
$x->cleanup();
}
// end of cRoute.inc
$test = new cRoute();
exit;
--
Scott Hurring
Systems Programmer
EAC Corpor
Well, IMO, the only languages that really need goto's are low-level
ones like assembly and C.
goto's are more trouble than they're worth when you get into
structured or OO programming.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Carlos U. Ci
This is completely off the top of my head (i've never done this
before) -- but try single-quoting it to prevent interpolation
register_shutdown_function('$this->cleanup()');
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"William_dw -- Sqlco
Try (this is untested)
if (length($string) > 30) {
print substr($string, 0, 30) ."...";
}
else {
print $string;
}
--OR-- (if you want to over-write $string)
$string = ((length($string) >= 30) ? substring($string, 0, 30) ."..." :
$string );
--
Scott Hurr
Did you verify that the variables actually contain data?
They're probably empty, which is why they dont seem to
be passing correctly.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Kris Vose" <[EMAIL PROTECTED]> wrote in message
[EMAIL PR
eregs)
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Robert [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 4:46 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] very simple e
I assume you're not checking the status returned by the
database function calls, becuase they'd probably give
you valueable information on *why* it's doing that. :)
try checking the return val, and (if using mysql) print
out mysql_error() if you get a bad return val.
---
Scott
NOT an Array --
very very important difference)
Here's my output of the code below:
SET == SET
Passing to getParentNodes:
currentBranch[one][two] = Array
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message
iables
$this->cleanup($form);
}
function cleanup($form)
{
// Only run once per instance
if ($this->cleanup_called)
return 1;
$this->cleanup_called = 1;
// ... do cleanup
}
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax
d* work, but you'll never
know why it's not working if you don't check return
statuses
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]]
> S
into bug hell.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Jas [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 3:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: A
this"]["that"] = 1;
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Chris Boget [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 3:43 PM
> To: Scott Hurring
> Cc:
Nope.
For future reference, perhaps create two identical tables,
one for actual live data and one for trash, and instead of
deleting anything, just move it all into the trash table.
then, you can purge the trash table every few days/months.
---
Scott Hurring
Systems Programmer
EAC Corporation
to answer every question,
especially when the questions aren't related to PHP,
or are really vauge or common or just plain silly :-)
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: 1LT J
Javascript, being silly, has silly string rules:
function pop1($id) {
window.open("info.php?prod_id="+ $id);
}
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Chris Knip
ert it. Buffer
overflows in "C", and flawed Double-byte char
support in "IIS", to name a few recent and
better-known exploits.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Ada
Try: $ary["this"] = array("that" => 1);
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Chris Boget [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 1:4
Grab the PHP ZIP, unzip it, add it to your PATH. done. :-)
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 05, 200
your work.
(But then again, if you get anyone that's smart and
committed, it's just a matter of time before he will
figure out *some* loophole to subvert your forms)
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
>
Yes, but you really must realize how utterly easy it is to
POST bogus variables to a form (Save the page as HTML, edit,
load in browser, submit -- bingo).If you're using the
assumption "these vars were POSTed, so they're safe", you're
begging for trouble.
n Database Normalization for some good
design pointers:
http://home.earthlink.net/~billkent/Doc/simple5.htm
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Hawk [mailto:[EMAIL PROTECTED]]
> Sent: Wednesd
As someone else suggested a few days ago: try using an IFRAME,
and refreshing it from javascript with the values you need.
The whole browser will not refresh, just the IFRAME, which
will give the illusion of jscript and php talking to each
other in realtime.
---
Scott Hurring
Systems Programmer
Try creating an .htaccess protected script, and do a
var_dump($GLOBALS) to see what vars are set, and if
any of them contain the name you logged in with.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Mess
Since you didnt include the code for InsideClass, i can only
assume that you're probably getting errors becuase "$bob"
is not initialized anywhere.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original M
;
But that's just my view... there are as many different
views on OO as there are programmers :)
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Henry Blackman [mailto:[EMAIL PROTECTED]]
> Sen
ing vars to all hell and back to
verify contents, i still quote. i'm paranoid. :)
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
> Se
lt;\/b>)/",$contents, $quote))
{
echo "$symbol was sold at: ";
echo $quote[1];
}
else
{
echo "No quote available.";
}
echo ""."This information retrieved from"."$theurl"."on ".(date("l jS F Y g:i a T"));
---
Sc
Ahhh! quote that ID number before using it in a query! :)
// for mysql
mysql_quote($_GET['ID']);
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: 1LT John W. Holmes [mailto:
using CGI version
of PHP, using PHP as a module is a bit more involved,
but still very simple)
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Mac Ne [mailto:[EMAIL PROTECTED]]
> Sent: Wednesd
Look at Sequences for Postgres.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: webmaster [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 28, 2002 7:12 AM
> To: [EMAIL PROTECTED]
>
mp;list=XXX&two=three");
print strip_key("list", "yadda?bo=ra&list=&two=three");
print strip_key("list", "yadda?list=XXX");
print strip_key("list", "yadda?list=XXX&two=three");
print strip_key("list",
I'm not sure if it's atomic, but (AFAIK) you can
do something like this with Mysql:
UPDATE table SET field=field+1 where .....
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From:
TIMTOWTDI
$string = "Jacko";
print preg_replace('/.$/', '', $string);
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Ed Gorski [mailto:[EMAIL PROTECTED]]
&
en :), so i
code for human efficiency and ease of maintenence, even
if the code is a little bit slower than heavily optimized
code.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
file_append($file, $text); ??
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Vail, Warren [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 22, 2002 3:46 PM
> To: 'Rasmus Ler
ssions and maintaining the filesystem that Miguel
mentioned.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Jason Soza [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 22, 2002 3:26 PM
>
Try it out for yourself. :-
class Test{
var $x = '';
function Test(){}
}
$x = new Test();
$y = new Test();
$x->x = "Way";
$y->x = "No";
print $y->x . $x->x;
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
e...
it wants to be your friend.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: r [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 22, 2002 2:51 AM
> To: [EMAIL PROTECTED]
> Subject:
s are valid and present
in the database. But like others have suggested, you
should *really* look for a better way to do this.
Putting text into a database and then blindly eval()'ing
it later on is just begging for trouble.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
... so open up the text file and read it.
What problem are you having? Are permissions set
correctly? Are you making sure to escape "\" on Win?
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Messag
thing they're doing, you can use
> str_replace(): http://www.php.net/manual/en/function.str-replace.php
>
> Enjoy,
>
> --Dan
Perhaps they did it to thwart "smart" spambots that can
translate "%40" to "@".
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
te("U") > ($cookie_load+75)) {
print "fetch from DB";
SetCookie("cookie_load", date("U"));
}
else {
print "Loaded ($cookie_load), now ". date("U") ." -- NOT
fetching\n";
}
if (!$cookie_load)
> -Original Message-
> From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] PHP & Excel
>
> I would think that you wouldn't need formulas. Isn't that the
> idea of using
> PHP to create the Excel document? Have PHP compute the values of the
> "formulas" and print out
Are you on a Win32 platform?
If so, use COM...
$cell = $sheet->Cells($row,$col);
$cell->activate;
$cell->formula = "your formula";
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
>
Or why not just use include_once() or require_once() ??
That's their purpose.
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Paul Roberts [mailto:[EMAIL PROTECTED]]
> Subject: Re:
Probably don't have the GD extension enaabled.
On a win machine, it's easy, look in your php.ini
and set the extensions_dir to where your extensions
are then un-comment php_gd.dll
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 20
Try $answers["answer".$n]
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message-
> From: Jule [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 4:41 PM
> To: [EMAIL PROTECTED]
>
1 in
/usr/local/bin/php on line 3391
Warning: Unexpected character in input: '' (ASCII=4) state=1 in
/usr/local/bin/php on line 3392
Warning: Unexpected character in input: '' (ASCII=27) state=1 in
/usr/local/bin/php on line 3393
Parse error: parse error, unexpected T_STRING in /usr
74 matches
Mail list logo