On 7/7/2011 10:14, Rob Marscher wrote:
.htaccess is a good suggestion. Otherwise, perhaps the curl extension is
installed and you can workaround to use that instead?
with some dancing around, that does it. Thanks!
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING
replacement line by line
drop the database
re-create it by importing the modified file
Feasible only if the db is not gigantic and you can afford to have it
down momentarily
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
I can get all the child node information from some XML with DOMDocument
if I know the name of the top node. But I'm stuck on getting the name of
that top node if I don't know it already. Probably simple, but
--
=====
Michael Southwell
Vice President, Education
NYPH
tomize your php.ini asking too much of a low-end
shared-hosting provider?
uhh, but in fact they did provide that for you (and me), no? They just
don't provide any support for it.
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING:
main under not trusted sites,
and might not be accepting cookies from it.
aha, I had the trusted set correctly, but not the cookies (I
habitually have IE as crippled as possible). Many thanks, Carlos.
--
Michael Southwell
Vice President, Education
NYPHP TRAINING http://nyphp.co
mple as it can
get. But the session variable is lost when the method runs. I can work
around this by passing session vars around as parameters, but
obviously that's a crappy solution.
Any ideas?
--
Michael Southwell
Vice President, Education
NYPHP TRAINING http://nyp
SELECT product_name, vendor_name
FROM product, vendor
WHERE vendor.id = product.vendor_id
but maybe that's just my ignorance
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP
to be
'SELECT * [FROM table] WHERE foo IS NULL' rather than '= NULL'
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP User Group Community Talk Mailing
sting it out, I couldn't offhand make a
list of what the behavior would be with, say, = vs == vs the new === in
PHP5.
Precisely this issue is discussed in the PHundamental article
http://www.nyphp.org/phundamentals/variableevaluation.php (which picks
up a contemporaneous thread ;-).
--
=
ight then. When the article is
displayed, you check to see whether the target exists; if it does, you
display the link; if it doesn't, you display the text without the link.
That could at least make things easier in the future (maybe).
--
=====
Michael Southwell
Vice Presid
Dan Cech wrote:
Michael Southwell wrote:
I have a photography client who uploads images with iptc metadata. I
need to pull out and store the iptc data (no problem), and resize the
images (no problem) without losing the iptc data (problem). I can use a
browser resize with the original image but
upon original upload if it's possible to do it without losing
that data. Any ideas?
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP User Group Community Talk Mailing
Christopher Hendry wrote:
The real question is - why is it that I live in the middle of the
Catskills and it's nearly impossible to find decent firewood?
uhh, find? What kind of chainsaw do you have?
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING:
Darryle Steplight wrote:
unset($array['7']) doesn't work?
I said it would be easy...
--
=========
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP User Group
us way to do it.
There has to be an easier way
--
=========
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/m
Daniel Convissor wrote:
Hey Michael:
On Mon, Feb 23, 2009 at 03:59:52PM -0500, Michael Southwell wrote:
I need to grab the original uri after having been redirected
to an error page (like example.com/blah now that I'm in 404.php).
It's in $_SERVER['REQUEST_URI'].
doh
I need to grab the original uri after having been redirected
to an error page (like example.com/blah now that I'm in 404.php).
I suppose this is somewhere in HttpRequest but I can't find it
(brains not working very well right now). Anybody?
--
=====
Michael Southwell
Vice
t the data that was input by
the user is gone. Needing some guidance as to how to fix this. Help
please?
Carry the session id along as a get variable in the redirect, something
like this:
header( 'Location: somewhere.php?PHPSESSID=' . session_id() );
--
=========
Michael
hanks, Dan!
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/show_participation.php
. Any ideas about what might be going on here? (This
also seems to break JavaScript, by the way.)
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP User Group Community
near-blind here)?
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyph
est in the
current round of PHP training that NYPHP is offering, more than has been
typical over the past couple of years. This suggests (to me at least)
that there is plenty of demand out there.
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Traini
Does anybody know of one, preferably free, capable of converting a 650M
file?
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP User Group Community Talk Mailing List
Does anyone have positive or negative experiences with any of the huge
file transfer websites out there?
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP User Group
d to carry along the session id as a GET
variable, like this:
header( 'Location:somepage.php?PHPSESSID=' . session_id() );
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
ere's a better way. What's my best way to abstract this
so I can use just one echo statement regardless of the parameter?
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
Can anyone point me to a JavaScript discussion list that is as good as
this one? I am stuck on a dropdown-toggle visibility issue that is
extremely flaky.
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
take care of most of them.
$this->Value = str_replace(array(chr(0x92),chr(0x93),
chr(0x94),chr(0x96),chr(0x97),chr(0x85)),
array('\'','"','"','-','-','...'),$this->Value);
I would add to this the following:
ch
[EMAIL PROTECTED] wrote:
Hello Brian,
Saturday, October 11, 2008, 10:03:37 PM, you wrote:
Thanks very much for the feedback. I have been thinking since I moved to
this server in May that something wasn't quite right.
and just who is this host?
--
=
Michael Sout
Kristina Anderson wrote:
Anyone remember the email address for that "front end dev/CSS" list
that's been mentioned?
http://lists.nyphp.org/mailman/listinfo
--
=========
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/T
it has no key specified. When PHP is given an array element with no key
specified, it uses the next available integer. In this case, that is 0.
So PHP is understanding this: 0 => 'zap' which is exactly what your
output shows:
[foo][1]
[bar][2]
[0][zap]
--
t." The reason
is that echo $p[$i++] first echoes $p[$i] and only then increments $i;
it does *not* echo element $i++ as I must have been thinking (out of
stupidity or inattention or whatever) when I wrote that.
--
=
Michael
John Campbell wrote:
> If you start from -1, then you would need to use ++$i rather than $i++
aha, the first *really good* illustration of the difference that I have
ever seen ;-)
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Train
John Campbell wrote:
$p = explode('|',$y);
for($i=0,$c = count($p);$i<$c;) {
echo $p[$i++],' ', $p[$i++], "\n";
}
I believe this will miss the first element of $p; you need instead:
for ( $i = -1, $c = count( $p ); $i < $c; ) {
--
==
inion on
this issue, I refrain from expressing it here, in the interest of
letting list members in general answer it either explicitly or
implicitly, by either giving or not giving possible answers.
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/
Hans Kaspersetz wrote:
Doesn't this entire discussion belong on the Front-End list? It would
be nice if the PHP list actually had PHP based discussion.
good point - the end of this thread
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyph
an instructional exercise, the point of which is
precisely to do it with AJAX (if I can ever figure out why this one
doesn't work).
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/In
re ) {
if ( xmlHttp.readyState == 4 || xmlHttp.readyState == "complete" ) {
// these both get the correct response
// but neither loads the innerHTML
document.getElementById( 'color1' ).innerHTML = xmlHttp.responseText
//document.getElementById( where ).innerHTM
x27;, uri, true )
xmlHttp.send( null )
}
function stateChanged( where ) {
if ( xmlHttp.readyState == 4 || xmlHttp.readyState == "complete" ) {
// these both get the correct response but neither loads the innerHTML
document.getElementById( 'color1' ).innerHTML = xmlHttp.resp
another copy of it in the same directory as php.ini and
php.exe. And you're sure that php is using the php.ini you're modifying,
right?
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Traini
ation in New York PHP
http://www.nyphp.org/show_participation.php
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/
raining/Indepth
--
=========
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon
st
the alphanumeric ones.
--
Michael Southwell
Vice President, Education
NYPHP TRAINING http://nyphp.com/training/indepth
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
ht
ample, after validating field content)? If so, you
need to carry the session id along with the redirection URI or you will
lose your session. That in and of itself will not cause duplication, but
it can cause empty data.
--
=
Michael Southwell
Vice President, Education
NYPHP TRA
ookie( 'loginID', '', time() - 31536000 );
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/lis
ON = array();
setcookie( session_id(), '', time() - 3600 );
session_destroy();
setcookie( 'loginID', '', time() - 3600 );
What am I doing wrong?
--
=
Michael Southwell
Vice President, Education
NYPHP TRAI
comparisons are true. #2 compares two different strings and so is
false. #4 compares 0 to the integer of unset and so is true. #5 and #6
compare strings to the string of unset and so are false.
--
=========
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/T
Michael Southwell wrote:
After a new install of xampp on Windows, I am having trouble getting
MySQL running properly,
re-install of xampp solved everything, duh! Sorry to bother you and
thanks to those who responded.
--
=
Michael Southwell
Vice President, Education
NYPHP
ces anywhere else (I may be overlooking some
somewhere). Can anybody help?
--
=====
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP Community Talk Mailing List
http://lists.nyphp.
#x27;actualresult'];
$testnote = $_POST['testnote'];
$_SESSION['actualdata'] = $actualdata;
$_SESSION['actualresult'] = $actualresult;
$_SESSION['testnote'] = $testnote;
if ($v != null)
{ echo(&qu
logic anymore.
Note that process1 etc must throw an exception internally in order for
the catch to work, as explained once again at
http://us2.php.net/manual/en/language.exceptions.php
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http:/
't
need the $t etc variables unless you are using them elsewhere. That
would make it this:
$_SESSION['data'] = $_POST['data'];
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
ction.
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
ram . '”' );
Where is the error that the query returned? It's not in $demo -> error.
Hopefully helpful and not confusing ;-)
Very much so; many thanks.
--
=
Michael Southwell
Vice President, Education
NYPHP TRAINING: http://nyphp.com/Training/Indepth
_
Flavio daCosta wrote:
On 11/05/2007 05:16 PM, Michael Southwell wrote:
/snip
The docs say the prepared statement must be a
single statement, and of course
this is not. But why don't I get an exception here?
Your /prepare/d statement is a single statement.
aha, so 'SELECT name
query -> bind_param( 's', $param ) ) throw new Exception (
"can't bind parameter: " . $demo -> mysqli_error );
if ( ! $query -> execute() ) throw new Exception ( "can't execute
query: " . $demo -> mysqli_error );
...
--
d = '$userid' AND
This is the reason that you are getting different results: you left
out the WHEN that you had above (unless this is not an accurate
representation of your code); whether WHEN is a legitimate keyword is
a different issue.
--
Michael Southwell
Vice Presiden
__
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
Michael Southwell, Vice President for Education
New York PHP
http://www
ot;140" />
'.$row['description'].''.$row['price'].'
';
if($col == 0)
echo '';
$col++;
$col = ($col == 4) ? 0 : $col;
}
}
echo '';
___
New York PHP Community Talk Mailing List
http://
ks
Paul
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
Michael
(in other
cases) however you can.
The point is that you can't just rely on mysql_real_escape_string for
protection.
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
_
can step through the records
with a calculated pointer to current/previous/next
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
___
New York PHP Community Talk Mailing List
http
joins) absolutely explicit about what is to be matched, and are thus
less likely to lead to confusion and problems. I rather like that
argument myself.
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Co
if ( $_SESSION['ineligibleFlag'] === TRUE ) echo 'not';
'not' is not echoed. Why not?
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
___
New York PHP Commu
urces,
and that I shouldn't define resource constants. But FALSE is not a
resource that I know of, and so none of that explains (that I can
see, anyway) why the session can't hold this value. I can easily work
around this, but I'd like to understand it as well.
Michael Southwell,
is is trivial:
number of matches required to get a winner = number of players - 1
explanation:
one match eliminates one player
every player but one must be eliminated to have a winner
therefore...
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-
n.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training
Courses
___
New York PHP Community Talk Ma
tinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
on=pay_internet&join=$joinFlag&PHPSESSID={$_SESSION['id']}"
);
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
___
New York PHP Community Talk Mailing L
went away. Thanks, guys, and everybody
else who responded.
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/ma
er browser have no problem.
Can anyone imagine or suggest what might be happening here?
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
___
New York PHP Community Talk Mailing
rning them correctly. They aren't very cooperative
on fixing this. I don't see anything with phpinfo() that might give a
clue as to what is happening. Can anyone suggest something?
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training -
somebody
definitively either confirm or deny this?
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP
60;
$_SESSION['timeout'] = $timeout;
}
and checked for that as well:
$now = time();
if ( $_POST['secret'] !== $_SESSION['secret'] || $now >
$_SESSION['timeout'] ) die( 'invalid form submission' );
But this hasn't helped much; I stil
e. In this case, then, what is optimized is
not execution speed/efficiency but rather coder speed/efficiency,
which is always (or at least almost always) more important.
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Co
title="We are pleased to offer you a
Spring Photography Session" />
';
if ( ! mail( $to, $subject, '', $headers ) ) {
exit( 'There has been an error sending your mail. Please
report this.' );
}
else {
$addre
Sorry, I got unsubscribed by accident and I'm checking that I'm back
to life.
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
___
New York PHP Community Talk Ma
smart guys are the best for
reliable answers.
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/lis
being displayed, I presume it wouldn't do any good
upon the eventual successful submission of the form. How can I solve that?
By the way, it all works perfectly when the form doesn't need to be reloaded.
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/
he html entity equivalent, in this case %20, before you try to pass
it. You can do this with str_replace().
Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses
___
Ne
81 matches
Mail list logo