php-windows Digest 7 Sep 2002 09:29:39 -0000 Issue 1326
Topics (messages 15688 through 15695):
Re: JpGraph Bug report
15688 by: Opere, James
problem with querystring
15689 by: hans
15690 by: Sandeep Murphy
15691 by: Matt Kynaston
POST
15692 by: peter
15693 by: Matt Kynaston
15694 by: Matt Kynaston
Calling PHP script with Exec
15695 by: Nicole Amashta
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 ---
I've solved the problem.
The other question is: Is there away in which one can generate a given
number of lines or bars dynamically because I tried the code attached but
could not pick the other lines as in line 3 unless I write everything as in
line 1.I'm trying to generate graphs using data from the database and the
number of lines or bars should be identified by the number of fields one
wants by simply entering a number that should be used by the variable $i .
GroupBarPlot(array($b1plot[0],$b1plot[1],$b1plot[2],$b1plot[3],$b1plot[4]));
//$b1plot[$i]=($b1plot[$i],$b1plot[$i+1]);
$gbplot=new GroupBarPlot(array($b1plot[$i]));
J.Opere
-----Original Message-----
From: Johan Persson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 4:44 PM
To: [EMAIL PROTECTED]
Subject: Re: JpGraph Bug report
Thanks for your mail.
However, without the actual data I can't reproduce your problem.
I suspect that you migt have one or more NULL values in the input
data.
Regards
Johan
> JpGraph Error: JpGraph Fatal Error:
> You have unfortunately stumbled upon a bug in JpGraph.
> It seems like the scale range is 0 [for y scale]
> Please report Bug #01 to [EMAIL PROTECTED] and include the script that
gave
> this error.
> This problem could potentially be caused by trying to use "illegal" values
> in the input data arrays (like trying to send in strings or only NULL
> values) which causes the autoscaling to fail.
>
>
>
> Please Respond
>
>
>
> J.Opere
>
>
>
>
>
--- End Message ---
--- Begin Message ---
hi there,
i'm having this very strange problem using a querystring... to illustrate me
problem i have this file:
<form method="post">
a: <input type="checkbox" value="X" <? if ($a == "X") echo "checked"
?>><br>
b: <input type="checkbox" value="X" <? if ($b == "X") echo "checked"
?>><br>
</form>
called test.php... when i open the url tesp.php?a=X the checkbox doesn't get
checked, and as far as i know some PHP it should be... i'm having this
problem with every querystring i use... i'm working with release 4.1.1 on a
Windows XP Prof machine...
anyone has got an idea?
chears,
hans
--- End Message ---
--- Begin Message ---
hi,
i chked on my local m/c and it works fine... though i hv win 2k prof on my PC... Can u
test the code on another PC??
-----Original Message-----
From: hans [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 6 de Setembro de 2002 8:09
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] problem with querystring
hi there,
i'm having this very strange problem using a querystring... to illustrate me
problem i have this file:
<form method="post">
a: <input type="checkbox" value="X" <? if ($a == "X") echo "checked"
?>><br>
b: <input type="checkbox" value="X" <? if ($b == "X") echo "checked"
?>><br>
</form>
called test.php... when i open the url tesp.php?a=X the checkbox doesn't get
checked, and as far as i know some PHP it should be... i'm having this
problem with every querystring i use... i'm working with release 4.1.1 on a
Windows XP Prof machine...
anyone has got an idea?
chears,
hans
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Check your php.ini and make sure that register_globals is turned on.
Either that or use:
if ($_REQUEST['a'] == "X")
which will give you the variable if its posted, in the query string or a
cookie.
Second is better in terms of portable code.
Matt
> -----Original Message-----
> From: Sandeep Murphy [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2002 11:10
> To: hans; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] problem with querystring
>
>
> hi,
>
> i chked on my local m/c and it works fine... though i hv win
> 2k prof on my PC... Can u test the code on another PC??
>
> -----Original Message-----
> From: hans [mailto:[EMAIL PROTECTED]]
> Sent: sexta-feira, 6 de Setembro de 2002 8:09
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] problem with querystring
>
>
> hi there,
>
> i'm having this very strange problem using a querystring...
> to illustrate me
> problem i have this file:
>
> <form method="post">
> a: <input type="checkbox" value="X" <? if ($a == "X") echo "checked"
> ?>><br>
> b: <input type="checkbox" value="X" <? if ($b == "X") echo "checked"
> ?>><br>
> </form>
>
> called test.php... when i open the url tesp.php?a=X the
> checkbox doesn't get
> checked, and as far as i know some PHP it should be... i'm having this
> problem with every querystring i use... i'm working with
> release 4.1.1 on a
> Windows XP Prof machine...
>
> anyone has got an idea?
>
> chears,
> hans
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi,
anybody who can help?
I Try to post data from form test1.html and read in new_entry.php form (environment:
Windows XP Prof. , Apache, PHP 4.0.5)
test1.html
<head>
<form method="post" action="new_entry.php">
<INPUT NAME="email" TYPE="Text" size=32></INPUT>
<INPUT type=submit value=enter>
</FORM>
</body>
</html>
new_entry.php This one should display the posted variables
<html>
<body>
<?php
foreach($HTTP_GET_VARS as $key => $value) {
print "$key = $value<br>";
}
?>
</body></html>
--- End Message ---
--- Begin Message ---
Try using $HTTP_POST_VARS (since form method="post").
Matt
> -----Original Message-----
> From: peter [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2002 12:26
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] POST
>
>
> Hi,
>
> anybody who can help?
>
> I Try to post data from form test1.html and read in
> new_entry.php form (environment: Windows XP Prof. , Apache, PHP 4.0.5)
>
> test1.html
>
> <head>
> <form method="post" action="new_entry.php">
> <INPUT NAME="email" TYPE="Text" size=32></INPUT>
> <INPUT type=submit value=enter>
> </FORM>
> </body>
> </html>
>
> new_entry.php This one should display the posted variables
>
> <html>
> <body>
> <?php
> foreach($HTTP_GET_VARS as $key => $value) {
> print "$key = $value<br>";
> }
> ?>
> </body></html>
>
--- End Message ---
--- Begin Message ---
That's _exactly_ what's appearing in your browser? Then the file is not
getting parsed by PHP (your browser ignores everything between the "<" and
the first ">"; if you view source you should see the whole script).
Check your web server's setup to make sure it passes files with extension
'.php' to php.exe (or php.dll if you're using ISAPI). Check
http://www.php.net/manual/en/installation.php.
> -----Original Message-----
> From: peter [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2002 13:03
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] POST
>
>
> Doesnt't work (tried POST and GET).
>
> Result is always
>
> $value) { print "$key = $value
> "; } ?>
>
> Any idea how i can get the mailing list
>
> 375: Re: [PHP-WINDOWS] PHP don't capture http variables
> 10 Jun 2000 Matthew Kendall
>
> probably this would help.
>
> Any other idea,
>
> Peter
>
> ----- Original Message -----
> From: "Matt Kynaston" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, September 06, 2002 1:39 PM
> Subject: RE: [PHP-WIN] POST
>
>
> > Try using $HTTP_POST_VARS (since form method="post").
> >
> >
> > Matt
> >
> > > -----Original Message-----
> > > From: peter [mailto:[EMAIL PROTECTED]]
> > > Sent: 06 September 2002 12:26
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] POST
> > >
> > >
> > > Hi,
> > >
> > > anybody who can help?
> > >
> > > I Try to post data from form test1.html and read in
> > > new_entry.php form (environment: Windows XP Prof. ,
> Apache, PHP 4.0.5)
> > >
> > > test1.html
> > >
> > > <head>
> > > <form method="post" action="new_entry.php">
> > > <INPUT NAME="email" TYPE="Text" size=32></INPUT>
> > > <INPUT type=submit value=enter>
> > > </FORM>
> > > </body>
> > > </html>
> > >
> > > new_entry.php This one should display the posted variables
> > >
> > > <html>
> > > <body>
> > > <?php
> > > foreach($HTTP_GET_VARS as $key => $value) {
> > > print "$key = $value<br>";
> > > }
> > > ?>
> > > </body></html>
> > >
> >
>
>
>
--- End Message ---
--- Begin Message ---
Hello PHPWinGroup!
I am writing a php script that will need to call via exec() a 2nd php script
to run in the background. (OS: linux)
I am thinking it would look something like this:
exec("php script2.php $param > /dev/null &");
I haven't actually attempted this yet. Was just hoping for a confirmation
that I am on the right track. And what is the payload of doing something
like this, if say, oh, 500+ people are doing this at the same time? No
access to crons, so can't do that. This is my hack or workaround for not
having scheduling ability. So I just call a 2nd script to run in background
to handle the script that will take longer. Don't want people waiting for a
script to finish.
Some server specs:
OS: linux (on a hosted server i have no access to at all)
Crontab: nope
Thanks!!
--
Nicole
www.aeontrek.com
- - - -
--- End Message ---