php-windows Digest 12 Jun 2003 18:50:09 -0000 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 a button
20284 by: Svensson, B.A.T. (HKG)
20285 by: Svensson, B.A.T. (HKG)
20286 by: Neil Smith
Re: Can't get exec() to work
20288 by: Marcus Haase
20289 by: Mikey
problem with readfile
20290 by: Billư Branislav
20291 by: Mikey
Cannot access HTTP_POST_VARS without explicitly stating
20292 by: Jeremy
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 ---
anderz
whats gotten into u ?????
> I am really in a desperate need to be able to execute
> php, my entire project, carrier and life depends on it.
>
> I been running my head several time into php, but I
> still not seams to be able to execute it.
?
?
?
?
> I even had
> tried to burnt the latest version on a CD-ROM and did
> the reverse thing in order to see if it works - e.g.
> I been running CD-ROM's into my head all day long for
> a weeks time now.
>
> The cleaner has starts to complain about all the trash on
> the floor. Not to mention my boss who starts to make
> inquires about all the consumed CD-ROM at our department.
>
>
> What may be wrong?
>
>
>
> P.S. I suspect that this might be a bug with php. Am I right? D.S.
>
what on earth is goin on with ur php
i ve just configured 3 machines at my work place
i mite b able to hlp
write what u c on the screen
or any toher details .... errors ..... anythin to do with the problem
chao
__________________________________________________
Yahoo! Plus - For a better Internet experience
http://uk.promotions.yahoo.com/yplus/yoffer.html
--- End Message ---
--- Begin Message ---
What is the problem exactly ... What do you want to do ?
--
-------------------------------------------------
Cristian MARIN
InterAKT Online (www.interakt.ro)
+4021 411 2610
[EMAIL PROTECTED]
"B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
I am really in a desperate need to be able to execute
php, my entire project, carrier and life depends on it.
I been running my head several time into php, but I
still not seams to be able to execute it. I even had
tried to burnt the latest version on a CD-ROM and did
the reverse thing in order to see if it works - e.g.
I been running CD-ROM's into my head all day long for
a weeks time now.
The cleaner has starts to complain about all the trash on
the floor. Not to mention my boss who starts to make
inquires about all the consumed CD-ROM at our department.
What may be wrong?
P.S. I suspect that this might be a bug with php. Am I right? D.S.
--- End Message ---
--- Begin Message ---
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] Re: running my head into php
What is the problem exactly ... What do you want to do ?
--
-------------------------------------------------
Cristian MARIN
InterAKT Online (www.interakt.ro)
+4021 411 2610
[EMAIL PROTECTED]
"B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I am really in a desperate need to be able to execute
php, my entire project, carrier and life depends on it.
I been running my head several time into php, but I
still not seams to be able to execute it. I even had
tried to burnt the latest version on a CD-ROM and did
the reverse thing in order to see if it works - e.g.
I been running CD-ROM's into my head all day long for
a weeks time now.
The cleaner has starts to complain about all the trash on
the floor. Not to mention my boss who starts to make
inquires about all the consumed CD-ROM at our department.
What may be wrong?
P.S. I suspect that this might be a bug with php. Am I right? D.S.
--- End Message ---
--- Begin Message ---
"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 by running my head into it."
I really dont know what you want to do, but you seem desperate enough that
maybe ppl want to help you.
If it is a joke, i must say i dont understand it at all.
Radovan
> 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] Re: running my head into php
>
> What is the problem exactly ... What do you want to do ?
>
> --
> -------------------------------------------------
> Cristian MARIN
> InterAKT Online (www.interakt.ro)
> +4021 411 2610
> [EMAIL PROTECTED]
>
> "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> I am really in a desperate need to be able to execute
> php, my entire project, carrier and life depends on it.
>
> I been running my head several time into php, but I
> still not seams to be able to execute it. I even had
> tried to burnt the latest version on a CD-ROM and did
> the reverse thing in order to see if it works - e.g.
> I been running CD-ROM's into my head all day long for
> a weeks time now.
>
> The cleaner has starts to complain about all the trash on
> the floor. Not to mention my boss who starts to make
> inquires about all the consumed CD-ROM at our department.
>
>
> What may be wrong?
>
>
>
> P.S. I suspect that this might be a bug with php. Am I right? D.S.
--- End Message ---
--- Begin Message ---
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 create the button. This is explain with
the HTML constrution FORM how to do this.
Have a look at this link:
http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html
It will explain everything you need to know about FORM's.
in the FORM tag you must have the tag ACTION, wich will refer
to your php files that will (on the server side) handle the
task you need to performe.
-----Original Message-----
From: itai
To: [EMAIL PROTECTED]
Sent: 11-6-03 18:54
Subject: [PHP-WIN] how do i send a request by pressing a button
hi
i want to place a button on my home page which will create
a file on the server when pressed, how can i do it?
the button should call a php file or something but no new windows should
open and no refresh shuld be done on the site.
thanks
--
+Email: [EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
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 more
complicated than an iron stick tends to break apart by
time. That's why Einstein (I think it was) once, sort of
said: Keep it simple, but not to simple.
-----Original Message-----
From: Luis Ferro
To: [EMAIL PROTECTED]
Sent: 11-6-03 17:56
Subject: Re: [PHP-WIN] how do i send a request by pressing a button
You have a load of options but all depend on either frames, iframes or
url's or anything that has the ability to call a file from the server
like flash, java and the like... You need a technology that allows you
--- End Message ---
--- Begin Message ---
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 exiting. This makes the javascript believe the image was not found, so
it triggers an onerror() handler. It would have triggered an onload()
handler if you sent a real image.
There you got a pretty neat state machine, which I use on a couple of sites
to trigger late-delayed information transfer when an ActiveX object has
initialised.
Cheers - Neil Smith.
Subject: Re: [PHP-WIN] how do i send a request by pressing a button
You have a load of options but all depend on either frames, iframes or
url's or anything that has the ability to call a file from the server like
flash, java and the like... You need a technology that allows you to
transpose from the client-side - the browser - to the server side - the
php page.
With frames, you can point a form submit button to a page that opens the
php file that creates the file on the server and then presents the success
and or insuccess of it.
With iframes, you can use javascript to change the source document of the
iframe to the same php file. The same goes to replace the source of an
image (which can be changed to the same page, if the page in the end sends
correctly an image).
With java and flash you can do the same... In flash for instance, you can
either process it directly by making the button a flash file, or using
javascript to order flash to do get the php page (and thrus creating your
file)...
There are much more options ;)
Cheers,
Luis Ferro
--- End Message ---
--- Begin Message ---
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 execute from the exec() function calling from a
webpage but I can get it to work from command line.
I have granted permissions to cmd.exe, copied cmd.exe to my php directory as
well as made sure safe_mode was off.
When I call exec("calc.exe") from a webpage the page hangs indefinitly until
I kill the process.
Any help would be appreciated
--- End Message ---
--- Begin Message ---
>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 properties of Apache.
(See your Windows services)
CAUTION: This can lead to security problems if your setting up a publicly
available webserver!"
HTH,
Mikey
> -----Original Message-----
> From: Marcus Haase [mailto:[EMAIL PROTECTED]
> Sent: 12 June 2003 12:21
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: Can't get exec() to work
>
>
> 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 execute from the exec() function calling from a
> > webpage but I can get it to work from command line.
> >
> > I have granted permissions to cmd.exe, copied cmd.exe to my php
> directory as
> > well as made sure safe_mode was off.
> >
> > When I call exec("calc.exe") from a webpage the page hangs
> indefinitly until
> > I kill the process.
> >
> > Any help would be appreciated
> >
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
(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 create stream: Permission denied in c:\program files\apache
group\apache\htdocs\telefon\update.php on line 32
I dont know, where is problem.
If I want open this file from IE, all is OK.
I have full rights to sharing directory.
help me, please. thanks
--- End Message ---
--- Begin Message ---
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 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 create stream: Permission denied in c:\program files\apache
> group\apache\htdocs\telefon\update.php on line 32
>
> I dont know, where is problem.
> If I want open this file from IE, all is OK.
> I have full rights to sharing directory.
>
> help me, please. thanks
>
>
--- End Message ---
--- Begin Message ---
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. IE,
the tutorials use $name instad of $HTTP_POST_VARS["name"].
My problem is this, if I use $HTTP_POST_VARS["name"], it works just fine.
If I just try to use $name, it shows up empty. The rest of the code will
work fine. Any thoughts?
--- End Message ---