use flash to open a tunnel to the server and run a script, therefor it
never has to leave the current page. ::)
Jim Lucas
- Original Message -
From: "Michael Sweeney" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Dave Shacket" <[EMAIL PROTECTED]>
Sent: Friday, May 31, 2002 10:36 AM
S
the bad thing about the BTW seciton is, is that it is not true inside of a
function, that is the reason I refered to it as $GLOBALS['HTTP_REFERER']
Jim lucas
- Original Message -
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "Jim lucas" <[EMAIL PROTECTED]>
Cc: "Kris Vose" <[EMAIL PROTECTED
Oops ... never mind. I answered my own question. I had made a
typo that was causing the problem.
External programs ARE run as setuid from PHP/Apache.
> -Original Message-
> From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 31, 2002 4:27 PM
> To: [EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
In the for loop initialisation try changing:
$i <= count($res)
to:
$i < count($res)
Reason: The usual thing that causes that sort of error is an
incorrect iteration condition that causes the loop to run forever and
so make an infinitely la
JavaScript could do a similar thing with onClick.
-Natalie
-Original Message-
From: Jim lucas [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 4:21 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: Dave Shacket
Subject: Re: [PHP] Run php function with user click
use flash to open a
That's what I mean by starring at this too much :) I tried writting to a
seperate file, but is there a way to take an array and split it every so
many records within another loop?
Let's say the first row contains the first 18 columns which I already
parsed, I then want to grab the next 5 15
On Friday 31 May 2002 13:18, Gerard Samuel wrote:
> Just a general question. Is it possible to embed php in pure
> javascript/dhtml code??
> I tried but it didn't work, not sure if it was me or its not possible.
> Thanks...
As long as you enclose the PHP code in script delimiters () and
make su
but that would take you off the current page wouldn't it? or would you
return false?
Jim Lucas
- Original Message -
From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]>
To: "'Jim lucas'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Cc: "Dave Shacket" <[EMAIL PROTECTED]>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ooops, incorrect scripts. Let's try again:
--script1.php--
// for loop as in Zachery's example
--script2.php--
// modified for loop
That's much better. ;-)
Peter Brett
- ---
peter:AT:peter-b:DOT:co:DOT
Is it possible that the PHP session features will accept as new any id
not generated by the webserver itself?
And where's the utility of that? Isn't it an enormous hole?
Gian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If Michael Sweeney is right that you can run PHP in a JS method that would
work. I just do all of my "instant gratification" stuff in JS. I guess it
depends on what is in the PHP function that he wants to run - it's possible
that he could do it in JS.
-Nat
-Original Message-
From: Jim
Ok, I have been working on this for awhile and cannot seem to get the fwrite
function to work. Here is the code:
\\ index.php
This works as I need it to, opens the file and then removes the first < so
that it won't be parsed as a php script.
\\ edit_passwords.php
I have read and writ
You may have been heading in the right direction originally with
array_slice... This is off the top of my head, I don't guaruntee it will
work...
$start = 34;
$interval = 15;
$max = 303;
// hop across orig. array 15 columns at a time
for($offset = $start;
$offset < $max && isset($array[$offs
you will have to do this with javascript on the client side with an
onClick() call in the submit button. but the bad thing is, you wont be
able to check this with the mysql db, unless you load the entire field set
into the current page.
my suggestion would be to send the form to one single page
On Saturday 01 June 2002 04:34, Jas wrote:
> Ok, I have been working on this for awhile and cannot seem to get the
> fwrite function to work. Here is the code:
> \\ index.php
> $file_name = 'blank.php';
> $open_file = fopen("$file_name","rw");
Looks like you're using fopen() incorrectly. Try:
> Looks like you're using fopen() incorrectly. Try:
> fopen("$file_name","r+");
How about just
fopen($file_name, "r+");
instead. No need for the surrounding "s.
--
JR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What are the benefits of trusting any id provided by the user, when
creating a new session? Why should we allow users to create their own
session id, and maybe pass them around? Or being driven to some session
faked/created by someone else?
Can we control that a new session id has been effectivel
I wouldn't use header() in this case, unless you plan to create an ungodly
looking URL to pass with it.. All you really need to do is point the form
to a PHP script that validates the information. Then at the end of that
script either include() the form hander if it's valid, or print an error
me
This all started in a little debate between me and a friend of mine who I
think is as much a PERL zealot as I am a PHP zealot (I was briefly pondering
the idea of a Win32 API extension for PHP), and the results were rather
surprising -- to me, at least..
It all started when I asked him what PERL
I made an "oops!" when I wrote:
>
> prime.pl:
> #!/usr/bin/perl
> # print "2\n";
> my $num;
> for ($num = 3; $num < 1; $num+=2)
> {
> my $prime = 1;
> for $check ( 2 .. int($num/2) )
> {
> if ($num % $check == 0)
> {
>
Not very surprising. Perl's looping code has always ben faster than
PHP's. Highly iterative loops is really not what PHP is geared for. You
are not going to write a Mandelbrot algorithm in PHP. You write it in C
and drop in a super-quick extension into PHP and call mandelbrot().
-Rasmus
On F
It's moved to the sapi directory in the most recent release instead of
the experimental directory.
Michael Davey wrote:
> It is called php4apache2.dll
>
> Mikey
>
> "Herman Pool" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>>Hi all,
>>
>>I have downlo
Does this mean that running a comparison benchmarks between PHP and any other
language would in many cases show PHP to be slower simply because it's
looping code is slow? Unless, timing is done on a speed of PHP being able to
spew out webpages via the webserver with a webserver benchmark tool s
Sure, you could put it that way. When benchmarking something you really
should benchmark stuff that you actually care about. Benchmark PHP
spewing out a web page after making a couple of SQL queries, for example.
That's typical usage, so that is what you should benchmark. Very few PHP
scripts a
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Sure, you could put it that way. When benchmarking something you really
> should benchmark stuff that you actually care about. Benchmark PHP
> spewing out a web page after making a couple of SQL
I agree that in most cases it makes more sence at seing the webpages per
second benchmark rather then a timing of some artibtrary benchmarks that for
example seeing how long it take to pick prime numbers. Since in the end it
matters how quickly you can get the data to the user, in case of perl
Hello,
I need to find out, at any point in a PHP script, which headers and what
content (HTML or other) have been sent already. I know I can use output
buffering, but in my case, this is not going to work.
By the way, I know that PHP's phpinfo() function lists headers received
and headers sent,
Hello,
On 05/31/2002 06:36 PM, Daniel Grace wrote:
> The results:
>
> [dewin@ulysses profiling]$ time ./prime.php > /dev/null
>
> real0m14.465s
> user0m8.610s
> sys 0m0.070s
>
> [dewin@ulysses profiling]$ time ./prime.pl > /dev/null
>
> real0m5.302s
> user0m3.180s
> sys
> I need to find out, at any point in a PHP script, which headers and what
> content (HTML or other) have been sent already. I know I can use output
> buffering, but in my case, this is not going to work.
You really have no way of knowing since it is the web server that decides
which http headers
And how do I KNOW which $HTTP_ variables are being set?
Also, does $HTTP_ACCEPT_LANGUAGE mean that "Accept-Language" command has
been sent by the browser?
In my Windows configuration, using CGI version for example, I don't see
also the headers sent by the server...
Noor
-Original Message---
Hi All,
I´m trying to register into a session an array which has returned from a
mysql_fetch_array function. But when I call $array it returns empty or something like
this.
Do you know how can I do this operation?
Regards!
Here go my scripts:
">
while ($array = mysql_fetch_array($result))
{
You can loop through $GLOBALS and check for vars that start with "HTTP_",
but yes, you typically know which things you are interested in.
And no, $HTTP_* are only the request headers. For the Apache module
version there is of course also getallheaders()
-Rasmus
On Sat, 1 Jun 2002, Noor Dawod w
Ok, I understand about the request headers.
While searching the archives, I've seen many requests from many people
asking similar questions. You even answered some. The thing is that
while there's a function to get request headers (getallheaders() or the
$HTTP_ vars), there's no function to list
Ok, I have added apache_response_headers() which returns the current set
of headers that Apache either knows about at this point (before the
headers are sent) or the set of sent headers once they have actually gone
out. This will be in 4.3
-Rasmus
On Sat, 1 Jun 2002, Noor Dawod wrote:
> Ok, I
I dont know too much about cache control, but some of the users who use
my script,
has problems with cookies. They are able to log in and the cookie is
set and they click a link and get booted out.
This past week, we noticed that when we commented out
header ("Expires: Mon, 26 Jul 1997 05:00:0
> the bad thing about the BTW seciton is, is that it is not true inside of a
> function, that is the reason I refered to it as $GLOBALS['HTTP_REFERER']
That's not bad, it's a feature of PHP :) All variables
(even predefined variables) follow standard PHP variable
scope rules (except supergloba
$array only contains one of the result rows, not all of them. At least
it's that way in your script. Try to register the variable before you
start assigning values to it and you'll have to add each row into an
array in order to save the entire result set.
---John Holmes...
> -Original Messag
Does the file already exist? It's not enough to change the directory
permissions, you also have to change it on the file if it exists, and
all of the folders above it, so that apache can get to the file. In
order for PHP to open or create this file, the user that apache runs as
must have permissio
Thanks Dan, but I don't think I'm explaining well.
Submitting that form will produce, from most browsers, a request that has in
one of it's headers:
content-type: x-www-form-urlencoded
... the variable $Foo will automatically be available within PHP for use in
any script that form is directed t
So is it even a web page that's returned? Or is it more like a text
file?
Will getallheaders() help you at all?
www.php.net/getallheaders
---John Holmes...
> -Original Message-
> From: Simon Troup [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 31, 2002 8:23 PM
> To: [EMAIL PROTECTED]
>
This "non form" is a posted response from a commercial server quoting the
results of various transactions as pretty much a basic text dump. Weird I
know, and it is their problem/fault, however, I'm still left having to work
with it until such a time as they fix it (4 weeks, who knows why!). Also,
I do not know whether this is a question for this list, but if not perhaps
someone can tell me where to raise it.
I am designing a web site which has a number of pages. One of these
provides the facility for the user to log onto a mysql database. Other web
pages allow the user to query and upda
On Saturday, June 1, 2002 at 2:42:40 AM, you wrote:
> Is there any way of caryying the login information from one web page to the
> next in global variables so that the username and password entered in the
> login screen is available to all other web pages in the site or do I have to
> ask the use
Please cc me on replies. Thanks.
Anybody happen to have any leads to a Folio (4.1)
reader/parser/converter to something PHP integrates with?
folio2xml
folio2CSV
folio2sql
.
.
.
A client's client needs to be able to upload Folio files and have
them converted/integrated to the web.
They sent
Mark-
Trying it now, I think I understand what you doing with the code below.
I'll let you know.
Thank you!
-Scott
-Original Message-
From: Mark Heintz PHP Mailing Lists [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 4:43 PM
To: Scott
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re
I am not certain how this helps me, since it appears the data is only
carried to pages called directly from where it is set. The page where the
user logs onto the database does not link to other pages. This is done from
the top frame of the form. The top frame of the inital page contains the
menu
You still have to connect to a database every time a script is run,
whether it's loaded in a frame or run by itself. If you start a session
and save the username and password in it, then you can use that login
and password on every other page that you call session_start() on.
---John Holmes...
On Saturday 01 June 2002 06:20, Daniel Grace wrote:
> > > language would in many cases show PHP to be slower simply because it's
> > > looping code is slow? [...]
>
> It is typical usage, yes, but the conversation that gave me the idea to do
> the quick speed comparison was the idea that PHP can b
I have this code:
$end_date = time();
$year = 2002;
$month = 4;
$monthi = $month + 1;
$time = SecondsInMonth($month, $year);
$time_i = SecondsInMonth($monthi, $year);
$query = "SELECT * FROM news WHERE date < $time_i AND date > $time
ORDER BY id";
$result = mysql_query($query);
$num_results
Thanks for the reply. Actually, I am using both mssql_free_query and
mssql_close along with mssql_pconnect. It still happens however. I can
post the code if you are unsure. Does it have a history of threading
issues as it only seems to happen when several requests are sent all at
once or a
101 - 150 of 150 matches
Mail list logo