php-windows Digest 31 Mar 2003 10:26:07 -0000 Issue 1661

Topics (messages 19192 through 19195):

Re: Re:Subject: upload question
        19192 by: Ben O'Neill

Downloading source code for extensions?
        19193 by: Richard Hollis

Re: Global & POST & uploading files
        19194 by: Frank Westerbeke

+ character in a command line argument
        19195 by: mmy

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Children, please.

If you type:
C:\apache\htdocs\filename.jpg

In the address bar of your browser it should display it, if it doesn't then
I'd just ignore it and move on...

My copies of IE6 and Mozilla display jpegs when told to.

--
Ben O'Neill

"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Neil Smith wrote in message:
>
> > Err this is fairly basic stuff. Have you tried dragging the file into an
> > open browser window instead ?
> .........................
>
> Yes Neil.
>
> I tried that and that works.  It shows the image of the .jpg file within
the
> browser on the upper left hand side.
>
> However in her textbook on PHP she lists the steps which I've posted in
the
> thread.
>
> The .jpg file opens within the paint program.
>
> The only thing that I can think of is that any .jpg file defaults to the
> paint program and overrides the browser.
> ............................
>
> > Sounds like you need to learn how to set up
> > windows file associations. I have a 'windows for dummies' book my 5yo
kids
> > use, I can lend you if its any help ?
> >
> > Cheers,
> > Neil.
> .......................................
>
> Ouch.
>
> Such biting words.
>
> No thanks.
>
> However, if your kids are finished with the textbook - maybe you've got a
> library in your town that you'll donate it to?
>
> Kindest regards,
> Tony Ritter
>
>



--- End Message ---
--- Begin Message ---
Can you download the source code for the windows PHP extensions - and if so
where?

Cheers
Richard



--- End Message ---
--- Begin Message ---
"Chris" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> On Tue, 25 Mar 2003 13:13:05 -0500, Afan Pasalic <[EMAIL PROTECTED]>
> wrote:
>
> > While was working on staging server (Global On) everythign was working
> > ok:
> > <form ENCTYPE=multipart/form-data  action="<?php echo $PHP_SELF; ?>"
> > name=qmform method=post>
> > Product name: <input name=prod_name value="<?php echo $_POST[prod_name];
> > ?>" type=text size=30>
> > Product Ser.#:<input name=img_name value="<?php echo $_POST[img_name];
> > ?>" type=text size=30>
> > Upload 1st image: <input name=var1 type=file size=30>
> > Upload 2nd image: <input name=var2 type=file size=30>
> > Upload 3rd image: <input name=var3 type=file size=30>
> > <INPUT type=hidden name=MAX_FILE_SIZE value="<?php echo
> > $my_max_file_size; ?>">
> > <input type=submit name=SubmitAdd value="Upload!"></td>
> > </form>
> >
> > But, pushing to other server (Global Off) - can't read variables $var1,
> > $var2, $var3, actually $POST[var1],  $POST[var3],  $POST[var3].
> > Even, listing by:
> >
> > while(list($key, $value) = each($HTTP_POST_VARS))
> > echo"$key: $value<br>";
> >
> > can see just prod_name, MAX_FILE_SIZE i SubmitAdd variables.
> >
> > Need $var1, $var2 and $var3 to validate uploaded files - have to be only
> > jpg format.
> >
> > Any idea?
> >
> > Afan
> >
> >
>
> http://bugs.php.net/bug.php?id=17958
>
> I think I have the same problem on a Win2k server running Apache.  When we
> switch it to IIS, it works.  If I try a print_r($_POST), it shows an empty
> array.  Only happens with "multipart/form-data" forms.
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

That makes three of us.

And not only on W2K also on Linux.

Even more frustrating is that scripts like phpMyAdmin do not seem to bother.

Frank



--- End Message ---
--- Begin Message ---
Hi!

I'm using PHP 4.3.1, IE 5.5, Win ME

I'm trying to use php through DOS command line.

Running the very basic script

$argv = $_SERVER['argv'];
var_dump($argv);

I noticed that the command line arguments are split at a + character, even
if between double quotes.

for instance

php test.php a+b

or

php test.php "a+b"

both return 3 arguments, "test.php", "a" and "b".

I don't know if it is a DOS or php problem (though if you name a file
a+b.txt, the DOS command type a+b.txt runs correctly, which seems to
exonerate DOS...).

My questions are more practical : does anybody knows how to pass a + in an
argument?? Are there other characters that are special in addition to " and
+ ??

Thanks in advance







--- End Message ---

Reply via email to