Hmm... I think the first part of foreach should be an array... So, more
like
foreach($GLOBALS as $photo)... Unless photo is an array containing photos...
However, how to make a variable become global, I'm not sure of...
"Mike" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> When r
[EMAIL PROTECTED] (Weifan Agusman) wrote in
news:[EMAIL PROTECTED]:
> I dont need to (and don't want to) put the 'school' field on the form.
This is actually an HTML question. Use:
- Steve Yates
- * <- Tribble.! <- Tribble With A Mohawk.
~ Taglines by Taglinator - www.s
Another newbie on PHP here. say I have this simple PHP code:
Simple Input
Your name:
So I'm sending 'name' to post.php but I also want to send another variable, say
'school' which has a fixed default value. But of course I dont need to (and don't want
to) put the 'school' field on the
Oh, and to answer your original question: yes, as far as I am aware
register_globals would have to be on for that code to work.
--
Adam Goossens
-
This mail sent through IMP: http://horde.org/imp/
--
PHP Windows Mailing List (http://www.php.
Mike,
The $GLOBALS array contains references to all variables defined in the global
scope. By using the keyword global, you define a variable in the global scope
(and then make it accessible through $GLOBALS).
The superglobals (eg _POST, _GET, etc) don't get this automatically, because
they ar
Thanks. I was under the impression that those with an opposite problem had
to enable the value. I had just come across this solution earlier today and
was going ot try it when I get the chance.
"Dvdmandt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> register_globals in php.ini sh
register_globals in php.ini should be set to On in order for that to work...
"Jeremy" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I am having an issue with my server. I'm relatively new to PHP, so I've
> been looking over a lot of tutorials and articles lately. One common
the
php-windows Digest 12 Jun 2003 18:50:09 - Issue 1773
Topics (messages 20281 through 20292):
Re: running my head into php
20281 by: toby z
20282 by: Cristian MARIN
20283 by: Svensson, B.A.T. (HKG)
20287 by: Radovan Radic
Re: how do i send a request by pressing
I am having an issue with my server. I'm relatively new to PHP, so I've
been looking over a lot of tutorials and articles lately. One common theme
(and the reason I'm using PHP) is forms. The code typically uses an echo to
pull the variabl from the HTTP_POST_VARS without explicitly stating it.
You need to make sure that the user your web-server is running as has the
correct permissions.
HTH,
Mikey
> -Original Message-
> From: BillĂ˝ Branislav [mailto:[EMAIL PROTECTED]
> Sent: 12 June 2003 12:37
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] problem with readfile
>
>
> (my english
(my english is not perfect, sorry)
hello all,
I have big problem, a need to read file on LAN. when I use:
readfile("tarif\\c\\winatu\\xdata\\200305.atu");
$php_errormsg;
then will be show this warning:
Warning: readfile(\\tarif\c\winatu\xdata\200305.atu) [function.readfile]:
failed to crea
>From the online version of the manual:
"For users of PHP4 & Apache on Windows2000/XP:
If you're trying to execute a command-line application from PHP that has to
show a (console) window on your desktop, make sure you enable the option to
'allow service to interact with desktop' in de service pro
I would suggest, that system() is only valid for command-line
applications, calc.exe is a GUI-Application, so it won't work.
Please, somebody correct me if I'm wrong, this is just what I experienced.
Bill Szerdy wrote:
I am running Windows 2000 sp3, IIS5.0, PHP v4.3.2
I can't get anything to ex
"B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I want to be able to execute php by running my head into it.
>
Please B.A.T Svensson,
Although i dont speak english good, would u be kind to try to explain me
this sentence above:
"> I want to be able to execute php b
Yup - I favour calling an img src from javascript (don't need to even have
a real, visible image) as a PHP script, and then passing back a image/gif
header with say some bogus contents. Javascript doesn't mind.
And you can even pass back status information by say, sending a 404 header
and exiti
It is also handy to have available a blue print of a
time machine while doing this, so one can jump into the
future to see if once design works properly or not before
actually implementing it.
My point is: don't walk over the river to get water.
A basic engineering rule says: everything that is m
To answer the question in the subject line: use the HTML construction FORM.
To answer the question in your mail body (below):
First do you want the user to be able to transmit this file
from the client side to the server, or do you just want to
create a new file on the server?
In order to creat
I want to be able to execute php by running my head into it.
Anders, balistic expert in earth since
Department of non-productive and time wasting activites
(www.howto.makethings.wrong.com)
-Original Message-
From: Cristian MARIN
To: [EMAIL PROTECTED]
Sent: 12-6-03 8:59
Subject: [PHP-WIN]
18 matches
Mail list logo