Re: [nyphp-talk] set allow_url_fopen outside of php.ini?

2011-07-08 Thread Michael Southwell
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

Re: [nyphp-talk] Searching an Entire MySQL Database

2010-11-04 Thread Michael Southwell
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

[nyphp-talk] get name of top node with DOMDocument

2010-06-03 Thread Michael Southwell
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

Re: [nyphp-talk] does Dreamhost suck?

2009-09-19 Thread Michael Southwell
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:

Re: [nyphp-talk] losing session with IE8 only

2009-09-09 Thread Michael Southwell
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

[nyphp-talk] losing session with IE8 only

2009-09-09 Thread Michael Southwell
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

Re: [nyphp-talk] naming identifiers

2009-08-31 Thread Michael Southwell
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

Re: [nyphp-talk] Need help understanding NULL

2009-08-29 Thread Michael Southwell
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

Re: [nyphp-talk] Need help understanding NULL

2009-08-29 Thread Michael Southwell
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 ;-). -- =

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Michael Southwell
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

Re: [nyphp-talk] how to resize images and maintain iptc data

2009-08-25 Thread Michael Southwell
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

[nyphp-talk] how to resize images and maintain iptc data

2009-08-25 Thread Michael Southwell
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

Re: [nyphp-talk] JSON and MVC

2009-07-17 Thread Michael Southwell
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:

Re: [nyphp-talk] delete one element from array

2009-06-03 Thread Michael Southwell
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

[nyphp-talk] delete one element from array

2009-06-03 Thread Michael Southwell
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

Re: [nyphp-talk] how to grab original uri from error page

2009-02-23 Thread Michael Southwell
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

[nyphp-talk] how to grab original uri from error page

2009-02-23 Thread Michael Southwell
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

Re: [nyphp-talk] lost sessions on redirect

2009-02-09 Thread Michael Southwell
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

Re: [nyphp-talk] large file uploads - clarification

2009-02-02 Thread Michael Southwell
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

[nyphp-talk] large file uploads - clarification

2009-02-02 Thread Michael Southwell
. 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

[nyphp-talk] large file uploads with cgi php

2009-02-02 Thread Michael Southwell
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

Re: [nyphp-talk] State Of The PHP Economy 2009

2009-01-13 Thread Michael Southwell
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

[nyphp-talk] OT Quicktime to Flash convertor

2008-12-02 Thread Michael Southwell
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

[nyphp-talk] OT: huge file transfer

2008-11-26 Thread Michael Southwell
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

Re: [nyphp-talk] Disappearing $_SESSION variables after using header ()

2008-11-24 Thread Michael Southwell
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

[nyphp-talk] passing array/object data

2008-11-24 Thread Michael Southwell
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 ___

[nyphp-talk] OT - need pointer to JavaScript discussion list

2008-11-19 Thread Michael Southwell
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

Re: [nyphp-talk] Converting the pesky MS Word quotes and other characters

2008-10-29 Thread Michael Southwell
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

Re: [nyphp-talk] Need some understanding about a hacker attack...

2008-10-11 Thread Michael Southwell
[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

Re: [nyphp-talk] front end list address

2008-10-07 Thread Michael Southwell
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

Re: [nyphp-talk] Re: Weird Switch Behavior

2008-09-09 Thread Michael Southwell
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] --

Re: [nyphp-talk] string function

2008-07-03 Thread Michael Southwell
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

Re: [nyphp-talk] string function

2008-07-03 Thread Michael Southwell
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

Re: [nyphp-talk] string function

2008-07-03 Thread Michael Southwell
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; ) { -- ==

Re: [nyphp-talk] one special question

2008-05-28 Thread Michael Southwell
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/

Re: [nyphp-talk] need help with simple ajax demo project

2008-05-22 Thread Michael Southwell
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

Re: [nyphp-talk] need help with simple ajax demo project

2008-05-21 Thread Michael Southwell
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

[nyphp-talk] need ajax help REVISED

2008-05-21 Thread Michael Southwell
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

[nyphp-talk] need help with simple ajax demo project

2008-05-21 Thread Michael Southwell
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

Re: [nyphp-talk] mbstring.dll not found

2008-05-17 Thread Michael Southwell
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

Re: [nyphp-talk] Potential Setting Problem

2008-05-13 Thread Michael Southwell
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/

Re: [nyphp-talk] NYC web dev courses?

2008-04-30 Thread Michael Southwell
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

Re: [nyphp-talk] FTPing PHP scripts.

2008-02-06 Thread Michael Southwell
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

Re: [nyphp-talk] Sporadic problems with forms

2008-02-01 Thread Michael Southwell
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

Re: [nyphp-talk] deleting cookies

2008-01-29 Thread Michael Southwell
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

[nyphp-talk] deleting cookies

2008-01-28 Thread Michael Southwell
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

Re: [nyphp-talk] Why do "cool kids" choose PHP to build websites instead of Java

2008-01-02 Thread Michael Southwell
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

Re: [nyphp-talk] xampp and MySQL problems

2007-12-24 Thread Michael Southwell
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

[nyphp-talk] xampp and MySQL problems

2007-12-24 Thread Michael Southwell
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.

Re: [nyphp-talk] Passing info entered into HTML FORMS into SESSIONvariables.

2007-11-28 Thread Michael Southwell
#x27;actualresult']; $testnote = $_POST['testnote']; $_SESSION['actualdata'] = $actualdata; $_SESSION['actualresult'] = $actualresult; $_SESSION['testnote'] = $testnote; if ($v != null) { echo(&qu

Re: [nyphp-talk] If/else vs Try/catch

2007-11-28 Thread Michael Southwell
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:/

Re: [nyphp-talk] Passing info entered into HTML FORMS into SESSION variables.

2007-11-18 Thread Michael Southwell
'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 ___

[nyphp-talk] mysqli exception problem

2007-11-06 Thread Michael Southwell
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

Re: [nyphp-talk] mysqli exception problem

2007-11-05 Thread Michael Southwell
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 _

Re: [nyphp-talk] mysqli exception problem

2007-11-05 Thread Michael Southwell
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

[nyphp-talk] mysqli exception problem

2007-11-05 Thread Michael Southwell
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 ); ... --

Re: [nyphp-talk] MySQL Monitor V PHP & MySQL

2007-09-21 Thread Michael Southwell
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

Fwd: Re: [nyphp-talk] image display

2007-08-26 Thread Michael Southwell
__ 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

Re: [nyphp-talk] image display

2007-08-26 Thread Michael Southwell
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://

Re: [nyphp-talk] Using Pagination

2007-08-23 Thread Michael Southwell
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

Re: [nyphp-talk] Is there something wrong with this SQL query in PHP?

2007-08-15 Thread Michael Southwell
(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 _

Re: [nyphp-talk] queuing data

2007-08-14 Thread Michael Southwell
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

Re: [nyphp-talk] SQL question

2007-07-23 Thread Michael Southwell
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

Re: [nyphp-talk] TRUE/FALSE and $_SESSION variables

2007-07-11 Thread Michael Southwell
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

[nyphp-talk] TRUE/FALSE and $_SESSION variables

2007-07-11 Thread Michael Southwell
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,

Re: [nyphp-talk] Questions to ask at a job interview?

2007-07-08 Thread 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-

Re: [nyphp-talk] Difference between the CONSTANT and the GLOBAL VARIABLE ??

2007-06-23 Thread Michael Southwell
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

Re: [nyphp-talk] problem SOLVED: session variables disappear after redirection

2007-06-14 Thread Michael Southwell
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

Re: [nyphp-talk] problem SOLVED: session variables disappear after redirection

2007-06-14 Thread Michael Southwell
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

[nyphp-talk] problem SOLVED: session variables disappear after redirection

2007-06-14 Thread Michael Southwell
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

[nyphp-talk] problem: session variables disappear after redirection

2007-06-13 Thread Michael Southwell
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

[nyphp-talk] http basic auth suddenly not working

2007-06-06 Thread Michael Southwell
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 -

[nyphp-talk] .htaccess redirect with $_GET

2007-05-27 Thread Michael Southwell
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

Re: [nyphp-talk] Input whitelist validation warning

2007-05-17 Thread Michael Southwell
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

[nyphp-talk] form spoofing

2007-05-01 Thread Michael Southwell
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

Re: [nyphp-talk] single quote vs. double quote

2007-04-11 Thread Michael Southwell
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

[nyphp-talk] mail problems

2007-03-27 Thread Michael Southwell
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

[nyphp-talk] sorry, just testing - IGNORE

2007-03-27 Thread Michael Southwell
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

[nyphp-talk] OT: JavaScript and https

2006-11-15 Thread Michael Southwell
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

[nyphp-talk] $_FILES and form reloading

2006-11-11 Thread Michael Southwell
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/

Re: [nyphp-talk] PROBLEM: passing variables to FILE()

2006-10-24 Thread Michael Southwell
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