On Tuesday 10 Jul 2007 23:17:13 Marc Antony Vose wrote:
> Hi all:
>
> I'm a developer who has concentrated more on smaller-scale projects,
> but as it turns out one of my projects is beginning to stress the
> limits of a single server, and so I'm about to begin venturing into
> the unknown.
>
> The
Try this example. (It works for me.)
TRUE';
} else {
echo 'Not TRUE';
}
print_r($_SESSION);
?>
Chris
Michael Southwell wrote:
> $_SESSION['ineligibleFlag'] = TRUE;
> if ( $_SESSION['ineligibleFlag'] === TRUE ) echo 'not';
>
> 'not' is not echoed. Why not?
--
Chris Shiflett
http://shifle
On 07/11/2007 11:14 PM, Michael Southwell wrote:
> $_SESSION['ineligibleFlag'] = TRUE;
> if ( $_SESSION['ineligibleFlag'] === TRUE ) echo 'not';
>
> 'not' is not echoed. Why not?
Works for me. (5.0.5 and 5.2.1)
___
New York PHP Community Talk Mailing
At 10:50 PM 7/11/2007, you wrote:
This tiny script:
Well, that was a perfect example of bad question asking, which
solicited answers to things I wasn't trying to ask ;-( -- sorry,
guys, but thanks anyway. So let me try again:
$_SESSION['ineligibleFlag'] = TRUE;
if ( $_SESSION['ineligibleFla
Michael Southwell wrote:
> This tiny script:
> session_start();
> $ineligibleFlag = FALSE;
> if ( $ineligibleFlag === FALSE ) echo 'it is false';
> $_SESSION['ineligibleFlag'] = FALSE;
> print_r( $_SESSION );
>
> produces this output:
> it is false
> Array ( [ineligibleFlag] => )
When cast to a
Use var_dump( $_SESSION ); for the result you are searching for.
___
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
"false" is a keyword, same as "true" and "null".
This tiny script:
This assigns $ineligibleFlag the boolean value of 0 or "false"
if ( $ineligibleFlag === FALSE ) echo 'it is false';
This tests to see if $inelegibleFlag is boolean and false (triple equals
requires type and value to match
This tiny script:
';
$_SESSION['ineligibleFlag'] = FALSE;
print_r( $_SESSION );
produces this output:
it is false
Array ( [ineligibleFlag] => )
The docs tell me that sessions can handle everything that can be
serialized, and that serialize can handle everything but resources,
and that I should
ImageMagick is a great command line tool that can modify images but the
processing will happen on the server side after image has already been
uploaded. You can use exec() within your script to execute the ImageMagick
commands
http://www.imagemagick.org/script/index.php
>
> At 10:01 AM -0400 7/1
Javascript doesn't have access to the client-side files.. But Java and Flash
do. You could do this in Flash pretty easily.
Agreed as a general rule you would want to store the full size images server
side, but I can think of many exceptions to that rule, a common one is,
using it for an icon/avata
I did something like what you see on orbitz.
Check it out..
http://tconeill.com/examples/pixelcrunch/
On 7/10/07, Tim Lieberman <[EMAIL PROTECTED]> wrote:
Never really thought about it.
If your backend processes is asynchronous (or if you make it so) you
could have your "progress" script j
Thanks everybody it is all working now.
Paul
- Original Message -
From: Jon Baer
To: NYPHP Talk
Sent: Wednesday, July 11, 2007 3:54 PM
Subject: Re: [nyphp-talk] Creating a MySQL DataBase using/through php
script.Can anybody help??
You would also need to set special GRANT p
At 10:01 AM -0400 7/11/07, Dell Sala wrote:
On Jul 11, 2007, at 7:51 AM, tedd wrote:
On Wednesday 20 Jun 2007 21:42:13 Nelly Yusupova wrote:
Is there a script or any way I can resize the pictures before uploading?
Nelly:
Sure, you'll have to write something client-side, namely javascript
Hi Paul,
You've gotten some good answers on your actual question, so I won't
repeat them. But as an important side note, watch out what you copy
from the books. This line is terribly risky:
$rs1 = @mysql_query( $_REQUEST['db'] );
If, for example, I requested
http://example.com/create_db
You would also need to set special GRANT privileges for user "paul".
http://dev.mysql.com/doc/refman/5.1/en/create-database.html
http://dev.mysql.com/doc/refman/5.1/en/grant.html
Also of note ...
-snip-
If you manually create a directory under the data directory (for
example, with mkdir), the
On Jul 11, 2007, at 7:51 AM, tedd wrote:
On Wednesday 20 Jun 2007 21:42:13 Nelly Yusupova wrote:
Is there a script or any way I can resize the pictures before
uploading?
Nelly:
Sure, you'll have to write something client-side, namely javascript
to do it. But, there's all sorts of javas
Ah, you may need to modify the @mysql_query() command like so:
@mysql_query('CREATE DATABASE '.$_REQUEST['db']);
So that the final submitted query looks like (for $_REQUEST['db'] =
'myDatabase'):
CREATE DATABASE myDatabase
Whereas before you were issuing the query:
myDatabase
Which makes no
Can anybody see what I am doing wrong?
Using Mike McGrath's book "PHP 5 in easy steps" I have been trying to get
both his textbook example on page 144 "Creating a database" and the example
from the www.ineasysteps.com website to work. Not being able to get either
the textbook example or "creat
On Wednesday 20 Jun 2007 21:42:13 Nelly Yusupova wrote:
Hello Everyone,
I wrote a script that allows users to upload up to 10 photo files to the
server. The script automatically resizes the photos to the appropriate
size. The upload and resizing scripts are working perfectly. The problem
Anirudh Zala wrote:
Hence when user moved to last box or finally to upload button, 70% of images
would have transferred in background. This saves lot of uploading time and
user thinks that transfer of images went faster however in reality it is
same.
And what would one do if the user changes
20 matches
Mail list logo