php-general Digest 29 Jun 2002 13:33:03 -0000 Issue 1434

Topics (messages 104450 through 104483):

Re: Constants
        104450 by: John Holmes

Re: Writing a GIF/JPG Image
        104451 by: Anzak Wolf
        104453 by: Brandon
        104454 by: Rasmus Lerdorf
        104455 by: Brandon
        104458 by: Evan Nemerson

Re: Keeping "Secrets" in PHP Files
        104452 by: Jonathan Rosenberg
        104459 by: Garth Dahlstrom
        104461 by: Peter J. Schoenster

Re: [mail] quetion
        104456 by: Evan Nemerson
        104480 by: Evan

Re: encryption code in php
        104457 by: Evan Nemerson

Yet another session problem, with a twist.
        104460 by: Cysec

Re: Drop connection, keep running?
        104462 by: Joshua Alexander

Re: preg_replace pains
        104463 by: Analysis & Solutions

Re: PHP with online cedit card processing
        104464 by: Analysis & Solutions
        104468 by: Purushotham Komaravolu

Re: Help adding variables from MySQL query
        104465 by: Analysis & Solutions

SESSION's from common computers
        104466 by: César Aracena
        104467 by: John Holmes
        104469 by: César Aracena
        104470 by: John Holmes
        104471 by: César Aracena
        104472 by: John Holmes
        104473 by: César Aracena

Help please *** PHP4 not installed correctly
        104474 by: Paul Godard
        104477 by: Nookie

Re: pop-up windows
        104475 by: Mark Gallagher

Re: Why isn't this working?
        104476 by: JJ Harrison

[GURU]  PHP w/ Informix DB ISQL 7.20 and Dynamic server 7.30
        104478 by: Emile Bosch

session.use_trans_sid
        104479 by: Dan Tappin
        104481 by: Jason Wong

saving temporary image to database
        104482 by: andy

Re: PHP Oracle 8 Functions Efficiency Problem
        104483 by: Thies C. Arntzen

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 ---
> Maybe it's already discussed here, but PHP is generating errors of
> undefined
> constants. These constants are defined in my scripts. Als the
superglobal
> $_ENV is empty.

Use quotes when using associative arrays.

$_ENV['something'] rather than $_ENV[something]

The warnings have always been there, PHP 4.2 just defaults to a higher
error reporting level, so now you notice them. The problem comes from
PHP looking for a constant called "something" and when it's not found,
it issues a warning. Then it assumes you meant to use a string and tries
it that way.

You can adjust the error reporting in PHP.ini or with the
error_reporting() function.

---John Holmes...

--- End Message ---
--- Begin Message ---
You need to had a content header

header('Content-Type: image/gif');

>------------start---------------
><?php
>  $theFile = "";
>
>  $fcontents = file ('Logo.gif');
>  while (list ($line_num, $line) = each ($fcontents)) {
>   $theFile .= $line."\n";
>  }
>
>  echo $theFile;
>?>
>-------------end-----------------
>
>and I have an html file that does <img src="image.php"> but it just prints
>out a red box with an X, as if image is broken.  I know the image is 
>getting
>read in because I can echo it and its a bunch of garble, just like the jpg
>is if I open it up in notepad.
>
>Any idead?
>
>Thanks,
>Brandon
>
>"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
> > You wouldn't.  You would write a script like fetch_image.php in which 
>you
> > would do the mysql_query() and simply echo out the image data.  Then in
> > your main HTML file you would use:
> >
> >   <img src="fetch_image.php">
> >
> > You can pass information to this script either via GET-method args.  eg.
> >
> >   <img src="fetch_image.php?id=123">
> >
> > Or cooler would be to do an Apache ForceType to the PHP mime type on a
> > file named "images" in your doc_root and put the fetch image code into
> > thise images file. Then use:
> >
> >   <img src="/images/123.jpg">
> >
> > And in your "images" script you would pick the image name out of
> > $PATH_INFO and do the appropriate mysql query.
> >
> > -Rasmus
> >
> > On Fri, 28 Jun 2002, Brandon wrote:
> >
> > > I would like to store a jpg/gif image in a MySQL database (as a BLOB
>type I
> > > guess ;p), how would I output that into an <img src=""> in php?
> > >
> > > Thanks in advance,
> > > brandon
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

--- End Message ---
--- Begin Message ---
Forgive me, perhaps I'm missing something, this is what I have:
<?php
 header('Content-Type: image/gif');

 $theFile = "";

 $fcontents = file ('Logo.gif');
 while (list ($line_num, $line) = each ($fcontents)) {
  $theFile .= $line."\n";
 }

 echo $theFile;
?>

It still gives me the red box when I call it from an <img src="image.php">

"Anzak Wolf" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> You need to had a content header
>
> header('Content-Type: image/gif');
>
> >------------start---------------
> ><?php
> >  $theFile = "";
> >
> >  $fcontents = file ('Logo.gif');
> >  while (list ($line_num, $line) = each ($fcontents)) {
> >   $theFile .= $line."\n";
> >  }
> >
> >  echo $theFile;
> >?>
> >-------------end-----------------
> >
> >and I have an html file that does <img src="image.php"> but it just
prints
> >out a red box with an X, as if image is broken.  I know the image is
> >getting
> >read in because I can echo it and its a bunch of garble, just like the
jpg
> >is if I open it up in notepad.
> >
> >Any idead?
> >
> >Thanks,
> >Brandon
> >
> >"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]...
> > > You wouldn't.  You would write a script like fetch_image.php in which
> >you
> > > would do the mysql_query() and simply echo out the image data.  Then
in
> > > your main HTML file you would use:
> > >
> > >   <img src="fetch_image.php">
> > >
> > > You can pass information to this script either via GET-method args.
eg.
> > >
> > >   <img src="fetch_image.php?id=123">
> > >
> > > Or cooler would be to do an Apache ForceType to the PHP mime type on a
> > > file named "images" in your doc_root and put the fetch image code into
> > > thise images file. Then use:
> > >
> > >   <img src="/images/123.jpg">
> > >
> > > And in your "images" script you would pick the image name out of
> > > $PATH_INFO and do the appropriate mysql query.
> > >
> > > -Rasmus
> > >
> > > On Fri, 28 Jun 2002, Brandon wrote:
> > >
> > > > I would like to store a jpg/gif image in a MySQL database (as a BLOB
> >type I
> > > > guess ;p), how would I output that into an <img src=""> in php?
> > > >
> > > > Thanks in advance,
> > > > brandon
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>


--- End Message ---
--- Begin Message ---
Why are you putting carriage returns into a gif data stream?

Try this:

<?php
 header('Content-type: image/gif');
 readfile('Logo.gif');
?>

-Rasmus

On Fri, 28 Jun 2002, Brandon wrote:

> Forgive me, perhaps I'm missing something, this is what I have:
> <?php
>  header('Content-Type: image/gif');
>
>  $theFile = "";
>
>  $fcontents = file ('Logo.gif');
>  while (list ($line_num, $line) = each ($fcontents)) {
>   $theFile .= $line."\n";
>  }
>
>  echo $theFile;
> ?>
>
> It still gives me the red box when I call it from an <img src="image.php">
>
> "Anzak Wolf" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > You need to had a content header
> >
> > header('Content-Type: image/gif');
> >
> > >------------start---------------
> > ><?php
> > >  $theFile = "";
> > >
> > >  $fcontents = file ('Logo.gif');
> > >  while (list ($line_num, $line) = each ($fcontents)) {
> > >   $theFile .= $line."\n";
> > >  }
> > >
> > >  echo $theFile;
> > >?>
> > >-------------end-----------------
> > >
> > >and I have an html file that does <img src="image.php"> but it just
> prints
> > >out a red box with an X, as if image is broken.  I know the image is
> > >getting
> > >read in because I can echo it and its a bunch of garble, just like the
> jpg
> > >is if I open it up in notepad.
> > >
> > >Any idead?
> > >
> > >Thanks,
> > >Brandon
> > >
> > >"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
> > >news:[EMAIL PROTECTED]...
> > > > You wouldn't.  You would write a script like fetch_image.php in which
> > >you
> > > > would do the mysql_query() and simply echo out the image data.  Then
> in
> > > > your main HTML file you would use:
> > > >
> > > >   <img src="fetch_image.php">
> > > >
> > > > You can pass information to this script either via GET-method args.
> eg.
> > > >
> > > >   <img src="fetch_image.php?id=123">
> > > >
> > > > Or cooler would be to do an Apache ForceType to the PHP mime type on a
> > > > file named "images" in your doc_root and put the fetch image code into
> > > > thise images file. Then use:
> > > >
> > > >   <img src="/images/123.jpg">
> > > >
> > > > And in your "images" script you would pick the image name out of
> > > > $PATH_INFO and do the appropriate mysql query.
> > > >
> > > > -Rasmus
> > > >
> > > > On Fri, 28 Jun 2002, Brandon wrote:
> > > >
> > > > > I would like to store a jpg/gif image in a MySQL database (as a BLOB
> > >type I
> > > > > guess ;p), how would I output that into an <img src=""> in php?
> > > > >
> > > > > Thanks in advance,
> > > > > brandon
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > >
> > > >
> > >
> > >
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > _________________________________________________________________
> > Join the world's largest e-mail service with MSN Hotmail.
> > http://www.hotmail.com
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Well, hehe I'm kinda just learning it all, here is what I really wanna do:
I have a table in a MySQL database that will contain the gif data in a
column.  I want to be able to read that in with a SELECT statement (which I
can do), problem is I need to actually put hte images in the database, so I
need to somehow read in the Logo.gif file, and store it in SQL with an
INSERT statement... thats what Im trying to do, can't figure it out 8(.


"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Why are you putting carriage returns into a gif data stream?
>
> Try this:
>
> <?php
>  header('Content-type: image/gif');
>  readfile('Logo.gif');
> ?>
>
> -Rasmus
>
> On Fri, 28 Jun 2002, Brandon wrote:
>
> > Forgive me, perhaps I'm missing something, this is what I have:
> > <?php
> >  header('Content-Type: image/gif');
> >
> >  $theFile = "";
> >
> >  $fcontents = file ('Logo.gif');
> >  while (list ($line_num, $line) = each ($fcontents)) {
> >   $theFile .= $line."\n";
> >  }
> >
> >  echo $theFile;
> > ?>
> >
> > It still gives me the red box when I call it from an <img
src="image.php">
> >
> > "Anzak Wolf" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> > > You need to had a content header
> > >
> > > header('Content-Type: image/gif');
> > >
> > > >------------start---------------
> > > ><?php
> > > >  $theFile = "";
> > > >
> > > >  $fcontents = file ('Logo.gif');
> > > >  while (list ($line_num, $line) = each ($fcontents)) {
> > > >   $theFile .= $line."\n";
> > > >  }
> > > >
> > > >  echo $theFile;
> > > >?>
> > > >-------------end-----------------
> > > >
> > > >and I have an html file that does <img src="image.php"> but it just
> > prints
> > > >out a red box with an X, as if image is broken.  I know the image is
> > > >getting
> > > >read in because I can echo it and its a bunch of garble, just like
the
> > jpg
> > > >is if I open it up in notepad.
> > > >
> > > >Any idead?
> > > >
> > > >Thanks,
> > > >Brandon
> > > >
> > > >"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
> > > >news:[EMAIL PROTECTED]...
> > > > > You wouldn't.  You would write a script like fetch_image.php in
which
> > > >you
> > > > > would do the mysql_query() and simply echo out the image data.
Then
> > in
> > > > > your main HTML file you would use:
> > > > >
> > > > >   <img src="fetch_image.php">
> > > > >
> > > > > You can pass information to this script either via GET-method
args.
> > eg.
> > > > >
> > > > >   <img src="fetch_image.php?id=123">
> > > > >
> > > > > Or cooler would be to do an Apache ForceType to the PHP mime type
on a
> > > > > file named "images" in your doc_root and put the fetch image code
into
> > > > > thise images file. Then use:
> > > > >
> > > > >   <img src="/images/123.jpg">
> > > > >
> > > > > And in your "images" script you would pick the image name out of
> > > > > $PATH_INFO and do the appropriate mysql query.
> > > > >
> > > > > -Rasmus
> > > > >
> > > > > On Fri, 28 Jun 2002, Brandon wrote:
> > > > >
> > > > > > I would like to store a jpg/gif image in a MySQL database (as a
BLOB
> > > >type I
> > > > > > guess ;p), how would I output that into an <img src=""> in php?
> > > > > >
> > > > > > Thanks in advance,
> > > > > > brandon
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > PHP General Mailing List (http://www.php.net/)
> > > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >--
> > > >PHP General Mailing List (http://www.php.net/)
> > > >To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> > > _________________________________________________________________
> > > Join the world's largest e-mail service with MSN Hotmail.
> > > http://www.hotmail.com
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>


--- End Message ---
--- Begin Message ---
Header("Content-type: image/jpeg");

???


On Friday 28 June 2002 18:23 pm, Brandon wrote:
> OK, i made this image.php file:
> ------------start---------------
> <?php
>  $theFile = "";
>
>  $fcontents = file ('Logo.gif');
>  while (list ($line_num, $line) = each ($fcontents)) {
>   $theFile .= $line."\n";
>  }
>
>  echo $theFile;
> ?>
> -------------end-----------------
>
> and I have an html file that does <img src="image.php"> but it just prints
> out a red box with an X, as if image is broken.  I know the image is
> getting read in because I can echo it and its a bunch of garble, just like
> the jpg is if I open it up in notepad.
>
> Any idead?
>
> Thanks,
> Brandon
>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
>
> > You wouldn't.  You would write a script like fetch_image.php in which you
> > would do the mysql_query() and simply echo out the image data.  Then in
> > your main HTML file you would use:
> >
> >   <img src="fetch_image.php">
> >
> > You can pass information to this script either via GET-method args.  eg.
> >
> >   <img src="fetch_image.php?id=123">
> >
> > Or cooler would be to do an Apache ForceType to the PHP mime type on a
> > file named "images" in your doc_root and put the fetch image code into
> > thise images file. Then use:
> >
> >   <img src="/images/123.jpg">
> >
> > And in your "images" script you would pick the image name out of
> > $PATH_INFO and do the appropriate mysql query.
> >
> > -Rasmus
> >
> > On Fri, 28 Jun 2002, Brandon wrote:
> > > I would like to store a jpg/gif image in a MySQL database (as a BLOB
>
> type I
>
> > > guess ;p), how would I output that into an <img src=""> in php?
> > >
> > > Thanks in advance,
> > > brandon
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php

-- 
I have never let my schooling interfere with my education.

Samuel Clemens

--- End Message ---
--- Begin Message ---
-----Original Message-----
> From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 28, 2002 6:15 PM
> To: 'Jonathan Rosenberg'; 1LT John W. Holmes; Brian
> McGarvie; php-list
> Subject: RE: [PHP] Keeping "Secrets" in PHP Files

> The hosting provider could probably implement a
> solution...  Alter the FTP configuration to
> automatically set the group permission to that
> of the web server when you transfer files.
> You wouldn't need to be in the group.
> You're the owner and can modify your own files.
> World Read access would be unnecessary.

> Thoughts?

I don't quite understand your idea.  What does FTP have to do
with this?  Did you mean the HTTP server?

--- End Message ---
--- Begin Message ---
here's an idea, perhaps something like this
can be used...

You set a decryptionkey value in your vhost 
(I don't know if you can do this with php_value
or perhaps an apache directive) 

<VirtualHost 123.123.123.123>
ServerName www.example.com
DocumentRoot /home/example/htdocs
php_value decryptionkey "123456789"
</VirtualHost>

encode your secret data using the decryptionkey 
before hand, and then decode it on the fly using
the environment variable present in only in your 
vhost.

I'm hoping that no one outside of your vhost can
see the value of that variable. (does anyone know 
if you can pull environment variables from other 
vhosts or if PHP can read httpd.conf?)

-Garth

Northern.CA ===--
http://www.northern.ca 
Canada's Search Engine


--- End Message ---
--- Begin Message ---
On 28 Jun 2002 at 17:54, Jonathan Rosenberg wrote:

> -----Original Message-----
> > From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
> > Subject: Re: [PHP] Keeping "Secrets" in PHP Files
> 
> > With shell access, you can't see each others
> > files.  This is where the permissions come into
> > play, because you are logged into the box as a
> > specific user, you can only access  your files.
> > If I change the permissions
> > on my files, you can't see them.
> 
> I've been thinking some more about the issue of keeping PHP
> source files secure in a shared hosting environment.  I've now
> convinced myself that there is simply no way to protect these
> files, even if safe_mode is turned on, as long as other users can have
> telnet (or ssh) access to the box.

snip

> I hope wrong.  Can anyone find the hole in my reasoning?

Yeah, you are assuming an environment that does not necessarily have to be. Why must 
one Apache server serve all users? Simply because that's the easiest 
way to do right out of the box?  You have 2 scenarios as I see it:

1. Your own box -- no troubles other than the obvious
2. Virtual Server - One Apache for all users ... seems insecure
3. Virtual Server - One Apache for EACH user ... seems quite secure and experience 
confirms.


> http://www.freevsd.org/

> freeVSD is an advanced web-hosting platform for ISPs, educational
> institutions and other large organisations. It allows multiple Virtual
> Servers to be created on a single hosting server, each with a truly
> separate and secure web-hosting environment. This reduces an ISP's
> hardware outlay and also lowers the cost of support due to delegated
> administration. 
> 
> Distributed under the GPL, freeVSD comes complete with a documented
> administration protocol and an open-source web-based administration
> system. 

That pretty much describes the server I've used at the company once known as iserver 
which was bought by Verio and Verio used much of their website but 
renamed it to viaverio.com (was iserver.com). It looks like they've done the same 
thing with Oracle. The above people have done it with Linux. I've only used 
iserver for 7 years now at 3 different companies but that freeVSD really looks good.

If someone is using Joe's 4.95 a month hosting solution ...well, what the heck do they 
expect. 

Peter





--- End Message ---
--- Begin Message ---
If you use CC, everyone will be able to see your mailing list... probably a 
bad idea. PS Nice name ;)



On Friday 28 June 2002 03:59 am, Evan wrote:
> What is best:
> 1) calling n-times the function mail() [with n = numer of emails] or
> 2) calling 1 time mail() and use CC
> ?
> Or it it is the same thing?
>
> Thanks,
> Evan

-- 
Truth, like gold, is to be obtained not by its growth, but by washing away 
from it all that is not gold.

Leo Nikolaevich Tolstoy

--- End Message ---
--- Begin Message ---
Thanks for your support !

Bye,
Evan

"Evan" <[EMAIL PROTECTED]> ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What is best:
> 1) calling n-times the function mail() [with n = numer of emails] or
> 2) calling 1 time mail() and use CC
> ?
> Or it it is the same thing?
>
> Thanks,
> Evan
>
>


--- End Message ---
--- Begin Message ---
Ummm something like print_r($_SERVER); could be useful



On Friday 28 June 2002 14:11 pm, Scott Fletcher wrote:
> Never mind!  It took me all day to find out what the problem is.  It turned
> out that PHP use $SSL_PROTOCOL, $SSL_CIPHER_USEKEYSIZE, etc.  It is
> displayed automatically when the register_global is turned on.  With some
> research, found out that it is part of Mod_SSL where PHP use it from.  Yet,
> I still struggle and I tried specifying the environment variables like file
> put_env(), etc.  So, far they never work. Until I got to the documentation
> at http://www.php.net/release_4_1_0.php and I got the clue from it saying
> that "REMOTE_ADDR" is part of "$_SERVER".  I never knew that.  So, I began
> to understand that any environment variables like "REMOTE_ADDR" or
> "SSL_PROTOCOL", etc is part of "$_SERVER".  I'm going to need better
> documentation on what variables are include in things like "$_GET",
> "$_COOKIE", "$_ENV", "$_SERVER", etc.  So, I can use whatever the variables
> I never heard of and put it to good use on the website.  Anyone know?
>
> Thanks, FletchSOD
>
> "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
>
> > I noticed some of hte encryption codes in php such as $SSL_PROTOCOL, etc.
> > Is it from openssl software or from mcrypt or what?  Thanks, FletchSOD

-- 
The truth cannot be asserted without denouncing the falsehood.

Leslie Stephen

--- End Message ---
--- Begin Message ---
I have already scripted a site using PHP 4 and was at the point of uploading
it to my client's chosen server (decided to go third party) when I discover,
their server is running PHP3, launch is in five days, and I have 40+ pages
using PHP4's session handling (session_start() etc.).  This would be a total
pain to change throughout the site, so I was wondering if anyone knew of a
script of functions that emulate PHP4's session handling.  I would love to
be able to just update the server, and would have if it were one I was
administrating, however I can't.  Any help would be vastly appreciated.


--- End Message ---
--- Begin Message ---
This sounds like the right track to me... the script has to finish 
for the page to stop loading, yes? So exec("your_other_script &"); 
and be done with it, yes?

>I have never heard of someone wanting to do this, but you might want 
>to look into methods of executing shell commands in the background, 
>which seems like it should be possible. Basically, you're wanting to

--- End Message ---
--- Begin Message ---
On Sat, Jun 29, 2002 at 01:59:18AM +0100, Richard Davey wrote:
> 
> Sorry Dan, I did say "All I want to do is remove the whole section,
> including the [details] part."

Oops!  Indeed you did.  My mind went straight to the code you tried and 
saw conflicting attempts.  Pardon me, please.


> Your code worked a treat though for this
> purpose though, so thank you very much for that.

My pleasure.  Seeing the other examples probably provided some ideas of 
what could be done too.

Enjoy,

--Dan

-- 
               PHP classes that make web design easier
        SQL Solution  |   Layout Solution   |  Form Solution
    sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409
--- End Message ---
--- Begin Message ---
Howdy Boys and Girls:

On Fri, Jun 28, 2002 at 03:26:01PM -0400, Mark McCulligh wrote:
>
> I like Versign but the cost is very high.  

I use Verisign through Wells Fargo.  Signing up through WF gets a 
reduced rate.  $45/mo, $0.16/trans (incl auth fee).  Discount rate 
fluctuates depending on the average charge during the month.

There was a better deal when I was doing the research, but they changed
it when I signed up.  Kind of lame.  But, it works.

--Dan

-- 
               PHP classes that make web design easier
        SQL Solution  |   Layout Solution   |  Form Solution
    sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409
--- End Message ---
--- Begin Message ---
have  look at www.yaga.com


----- Original Message ----- 
From: "Analysis & Solutions" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, June 28, 2002 10:12 PM
Subject: Re: [PHP] PHP with online cedit card processing


> Howdy Boys and Girls:
> 
> On Fri, Jun 28, 2002 at 03:26:01PM -0400, Mark McCulligh wrote:
> >
> > I like Versign but the cost is very high.  
> 
> I use Verisign through Wells Fargo.  Signing up through WF gets a 
> reduced rate.  $45/mo, $0.16/trans (incl auth fee).  Discount rate 
> fluctuates depending on the average charge during the month.
> 
> There was a better deal when I was doing the research, but they changed
> it when I signed up.  Kind of lame.  But, it works.
> 
> --Dan
> 
> -- 
>                PHP classes that make web design easier
>         SQL Solution  |   Layout Solution   |  Form Solution
>     sqlsolution.info  | layoutsolution.info |  formsolution.info
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>  4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
Dear Mr News:

On Fri, Jun 28, 2002 at 12:41:56PM -0700, news.php.net wrote:
> I'd like to add all values for $purchase_price that are returned, 
> how do I do this?
>
> $result = mysql_query("SELECT purchase_price FROM assets where
> order_number='$order_number' ORDER BY $desc");

$total = 0;

> while(list($purchase_price) = mysql_fetch_row($result)) {
   $total = $total + $purchase_price;
}

That works if you want to process each row as you go along AND get a 
total.  You could also go straight for the total in the query if you 
don't need line by line processing:

SELECT sum(purchase_price) as totl FROM assets GROUP BY order_number
where order_number='$order_number';

--Dan

-- 
               PHP classes that make web design easier
        SQL Solution  |   Layout Solution   |  Form Solution
    sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY     v: 718-854-0335     f: 718-854-0409
--- End Message ---
--- Begin Message ---
Hi all.
 
I have a question about sessions… which is the best way to close a
session if one it’s opened for a certain user and then this user changes
to another computer? I guess that I could manage with session_start_time
and session_end_time fields in the DB, and tell the script to see if the
opened session hasn’t been closed… then close it and open a new one.
 
Does this make any sense? Is there a better way to do this? I want to
know this because many users actually use cyber-coffees computers to
access web sites and I’ve seen them leaving their chair with the windows
still opened and changing to another pc.
 
Thanks in advance,
 
 <mailto:[EMAIL PROTECTED]> Cesar Aracena
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621
 
--- End Message ---
--- Begin Message ---
You really can't do anything besides saying that after X minutes, well,
you were idle, so restart your session. Once you send them the page, you
don't know if they are reading it or have left the table. All you can do
is decide on the next request whether too much time has passed.

As for the new computer, they'll have to start a new session there
automatically, because they won't have the same cookie matching the
session ID from the first computer.

---John Holmes...

> -----Original Message-----
> From: César Aracena [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 29, 2002 1:24 AM
> To: PHP General List
> Subject: [PHP] SESSION's from common computers
> 
> Hi all.
> 
> I have a question about sessions… which is the best way to close a
> session if one it’s opened for a certain user and then this user
changes
> to another computer? I guess that I could manage with
session_start_time
> and session_end_time fields in the DB, and tell the script to see if
the
> opened session hasn’t been closed… then close it and open a new one.
> 
> Does this make any sense? Is there a better way to do this? I want to
> know this because many users actually use cyber-coffees computers to
> access web sites and I’ve seen them leaving their chair with the
windows
> still opened and changing to another pc.
> 
> Thanks in advance,
> 
>  <mailto:[EMAIL PROTECTED]> Cesar Aracena
> CE / MCSE+I
> Neuquen, Argentina
> +54.299.6356688
> +54.299.4466621
> 

--- End Message ---
--- Begin Message ---
Got it but... What happens if someone else grabs the computer that my
user was sitting at 2 minutes before, leaving the window opened and
after he grabs the new machine open a new session... isn't PHP capable
of determining that the same user is trying to open a 2nd session no
matter what the cookie tells it? I mean by his username.

C.

> -----Original Message-----
> From: John Holmes [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 29, 2002 2:36 AM
> To: 'César Aracena'; 'PHP General List'
> Subject: RE: [PHP] SESSION's from common computers
> 
> You really can't do anything besides saying that after X minutes,
well,
> you were idle, so restart your session. Once you send them the page,
you
> don't know if they are reading it or have left the table. All you can
do
> is decide on the next request whether too much time has passed.
> 
> As for the new computer, they'll have to start a new session there
> automatically, because they won't have the same cookie matching the
> session ID from the first computer.
> 
> ---John Holmes...
> 
> > -----Original Message-----
> > From: César Aracena [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, June 29, 2002 1:24 AM
> > To: PHP General List
> > Subject: [PHP] SESSION's from common computers
> >
> > Hi all.
> >
> > I have a question about sessions… which is the best way to close a
> > session if one it’s opened for a certain user and then this user
> changes
> > to another computer? I guess that I could manage with
> session_start_time
> > and session_end_time fields in the DB, and tell the script to see if
> the
> > opened session hasn’t been closed… then close it and open a new one.
> >
> > Does this make any sense? Is there a better way to do this? I want
to
> > know this because many users actually use cyber-coffees computers to
> > access web sites and I’ve seen them leaving their chair with the
> windows
> > still opened and changing to another pc.
> >
> > Thanks in advance,
> >
> >  <mailto:[EMAIL PROTECTED]> Cesar Aracena
> > CE / MCSE+I
> > Neuquen, Argentina
> > +54.299.6356688
> > +54.299.4466621
> >
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
You don't have any way of telling if the user switched. You just receive
a request for a web page and the browser sends any cookies it has. 

If the user even decides to log in as themselves, you can see if a
cookie/session was sent and delete that cookie/session before you let
the other person log in.

---John Holmes...

> -----Original Message-----
> From: César Aracena [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 29, 2002 2:11 AM
> To: 'PHP General List'
> Subject: RE: [PHP] SESSION's from common computers
> 
> Got it but... What happens if someone else grabs the computer that my
> user was sitting at 2 minutes before, leaving the window opened and
> after he grabs the new machine open a new session... isn't PHP capable
> of determining that the same user is trying to open a 2nd session no
> matter what the cookie tells it? I mean by his username.
> 
> C.
> 
> > -----Original Message-----
> > From: John Holmes [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, June 29, 2002 2:36 AM
> > To: 'César Aracena'; 'PHP General List'
> > Subject: RE: [PHP] SESSION's from common computers
> >
> > You really can't do anything besides saying that after X minutes,
> well,
> > you were idle, so restart your session. Once you send them the page,
> you
> > don't know if they are reading it or have left the table. All you
can
> do
> > is decide on the next request whether too much time has passed.
> >
> > As for the new computer, they'll have to start a new session there
> > automatically, because they won't have the same cookie matching the
> > session ID from the first computer.
> >
> > ---John Holmes...
> >
> > > -----Original Message-----
> > > From: César Aracena [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, June 29, 2002 1:24 AM
> > > To: PHP General List
> > > Subject: [PHP] SESSION's from common computers
> > >
> > > Hi all.
> > >
> > > I have a question about sessions… which is the best way to close a
> > > session if one it’s opened for a certain user and then this user
> > changes
> > > to another computer? I guess that I could manage with
> > session_start_time
> > > and session_end_time fields in the DB, and tell the script to see
if
> > the
> > > opened session hasn’t been closed… then close it and open a new
one.
> > >
> > > Does this make any sense? Is there a better way to do this? I want
> to
> > > know this because many users actually use cyber-coffees computers
to
> > > access web sites and I’ve seen them leaving their chair with the
> > windows
> > > still opened and changing to another pc.
> > >
> > > Thanks in advance,
> > >
> > >  <mailto:[EMAIL PROTECTED]> Cesar Aracena
> > > CE / MCSE+I
> > > Neuquen, Argentina
> > > +54.299.6356688
> > > +54.299.4466621
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
> If the user even decides to log in as themselves, you can see if a
> cookie/session was sent and delete that cookie/session before you let
> the other person log in.

[César L. Aracena] 

Ok... I see... And what should I do to see if that session was sent? How
should I look that up in the function list of www.php.net?

Thanks, C.

> 
> ---John Holmes...
> 
> > -----Original Message-----
> > From: César Aracena [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, June 29, 2002 2:11 AM
> > To: 'PHP General List'
> > Subject: RE: [PHP] SESSION's from common computers
> >
> > Got it but... What happens if someone else grabs the computer that
my
> > user was sitting at 2 minutes before, leaving the window opened and
> > after he grabs the new machine open a new session... isn't PHP
capable
> > of determining that the same user is trying to open a 2nd session no
> > matter what the cookie tells it? I mean by his username.
> >
> > C.
> >
> > > -----Original Message-----
> > > From: John Holmes [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, June 29, 2002 2:36 AM
> > > To: 'César Aracena'; 'PHP General List'
> > > Subject: RE: [PHP] SESSION's from common computers
> > >
> > > You really can't do anything besides saying that after X minutes,
> > well,
> > > you were idle, so restart your session. Once you send them the
page,
> > you
> > > don't know if they are reading it or have left the table. All you
> can
> > do
> > > is decide on the next request whether too much time has passed.
> > >
> > > As for the new computer, they'll have to start a new session there
> > > automatically, because they won't have the same cookie matching
the
> > > session ID from the first computer.
> > >
> > > ---John Holmes...
> > >
> > > > -----Original Message-----
> > > > From: César Aracena [mailto:[EMAIL PROTECTED]]
> > > > Sent: Saturday, June 29, 2002 1:24 AM
> > > > To: PHP General List
> > > > Subject: [PHP] SESSION's from common computers
> > > >
> > > > Hi all.
> > > >
> > > > I have a question about sessions… which is the best way to close
a
> > > > session if one it’s opened for a certain user and then this user
> > > changes
> > > > to another computer? I guess that I could manage with
> > > session_start_time
> > > > and session_end_time fields in the DB, and tell the script to
see
> if
> > > the
> > > > opened session hasn’t been closed… then close it and open a new
> one.
> > > >
> > > > Does this make any sense? Is there a better way to do this? I
want
> > to
> > > > know this because many users actually use cyber-coffees
computers
> to
> > > > access web sites and I’ve seen them leaving their chair with the
> > > windows
> > > > still opened and changing to another pc.
> > > >
> > > > Thanks in advance,
> > > >
> > > >  <mailto:[EMAIL PROTECTED]> Cesar Aracena
> > > > CE / MCSE+I
> > > > Neuquen, Argentina
> > > > +54.299.6356688
> > > > +54.299.4466621
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Depends how you have it set up now. Usually, once a session is valid,
you set a variable within it to check for.

<?
Session_start();
If(isset($_SESSION['logged_in']))
...
?>

If they are requesting login.php, but they already have a session, then
destroy that one with session_destroy(). It's really a mute point,
though, because if they are already going to log in, they'll get a new
session, anyhow, just like anyone else logging in. 

---John Holmes...

> -----Original Message-----
> From: César Aracena [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 29, 2002 2:28 AM
> To: 'PHP General List'
> Subject: RE: [PHP] SESSION's from common computers
> 
> > If the user even decides to log in as themselves, you can see if a
> > cookie/session was sent and delete that cookie/session before you
let
> > the other person log in.
> 
> [César L. Aracena]
> 
> Ok... I see... And what should I do to see if that session was sent?
How
> should I look that up in the function list of www.php.net?
> 
> Thanks, C.
> 
> >
> > ---John Holmes...
> >
> > > -----Original Message-----
> > > From: César Aracena [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, June 29, 2002 2:11 AM
> > > To: 'PHP General List'
> > > Subject: RE: [PHP] SESSION's from common computers
> > >
> > > Got it but... What happens if someone else grabs the computer that
> my
> > > user was sitting at 2 minutes before, leaving the window opened
and
> > > after he grabs the new machine open a new session... isn't PHP
> capable
> > > of determining that the same user is trying to open a 2nd session
no
> > > matter what the cookie tells it? I mean by his username.
> > >
> > > C.
> > >
> > > > -----Original Message-----
> > > > From: John Holmes [mailto:[EMAIL PROTECTED]]
> > > > Sent: Saturday, June 29, 2002 2:36 AM
> > > > To: 'César Aracena'; 'PHP General List'
> > > > Subject: RE: [PHP] SESSION's from common computers
> > > >
> > > > You really can't do anything besides saying that after X
minutes,
> > > well,
> > > > you were idle, so restart your session. Once you send them the
> page,
> > > you
> > > > don't know if they are reading it or have left the table. All
you
> > can
> > > do
> > > > is decide on the next request whether too much time has passed.
> > > >
> > > > As for the new computer, they'll have to start a new session
there
> > > > automatically, because they won't have the same cookie matching
> the
> > > > session ID from the first computer.
> > > >
> > > > ---John Holmes...
> > > >
> > > > > -----Original Message-----
> > > > > From: César Aracena [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Saturday, June 29, 2002 1:24 AM
> > > > > To: PHP General List
> > > > > Subject: [PHP] SESSION's from common computers
> > > > >
> > > > > Hi all.
> > > > >
> > > > > I have a question about sessions… which is the best way to
close
> a
> > > > > session if one it’s opened for a certain user and then this
user
> > > > changes
> > > > > to another computer? I guess that I could manage with
> > > > session_start_time
> > > > > and session_end_time fields in the DB, and tell the script to
> see
> > if
> > > > the
> > > > > opened session hasn’t been closed… then close it and open a
new
> > one.
> > > > >
> > > > > Does this make any sense? Is there a better way to do this? I
> want
> > > to
> > > > > know this because many users actually use cyber-coffees
> computers
> > to
> > > > > access web sites and I’ve seen them leaving their chair with
the
> > > > windows
> > > > > still opened and changing to another pc.
> > > > >
> > > > > Thanks in advance,
> > > > >
> > > > >  <mailto:[EMAIL PROTECTED]> Cesar Aracena
> > > > > CE / MCSE+I
> > > > > Neuquen, Argentina
> > > > > +54.299.6356688
> > > > > +54.299.4466621
> > > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Mission accomplished... Thank you very much... as always.

C.

> -----Original Message-----
> From: John Holmes [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 29, 2002 3:34 AM
> To: 'César Aracena'; 'PHP General List'
> Subject: RE: [PHP] SESSION's from common computers
> 
> Depends how you have it set up now. Usually, once a session is valid,
> you set a variable within it to check for.
> 
> <?
> Session_start();
> If(isset($_SESSION['logged_in']))
> ...
> ?>
> 
> If they are requesting login.php, but they already have a session,
then
> destroy that one with session_destroy(). It's really a mute point,
> though, because if they are already going to log in, they'll get a new
> session, anyhow, just like anyone else logging in.
> 
> ---John Holmes...
> 
> > -----Original Message-----
> > From: César Aracena [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, June 29, 2002 2:28 AM
> > To: 'PHP General List'
> > Subject: RE: [PHP] SESSION's from common computers
> >
> > > If the user even decides to log in as themselves, you can see if a
> > > cookie/session was sent and delete that cookie/session before you
> let
> > > the other person log in.
> >
> > [César L. Aracena]
> >
> > Ok... I see... And what should I do to see if that session was sent?
> How
> > should I look that up in the function list of www.php.net?
> >
> > Thanks, C.
> >
> > >
> > > ---John Holmes...
> > >
> > > > -----Original Message-----
> > > > From: César Aracena [mailto:[EMAIL PROTECTED]]
> > > > Sent: Saturday, June 29, 2002 2:11 AM
> > > > To: 'PHP General List'
> > > > Subject: RE: [PHP] SESSION's from common computers
> > > >
> > > > Got it but... What happens if someone else grabs the computer
that
> > my
> > > > user was sitting at 2 minutes before, leaving the window opened
> and
> > > > after he grabs the new machine open a new session... isn't PHP
> > capable
> > > > of determining that the same user is trying to open a 2nd
session
> no
> > > > matter what the cookie tells it? I mean by his username.
> > > >
> > > > C.
> > > >
> > > > > -----Original Message-----
> > > > > From: John Holmes [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Saturday, June 29, 2002 2:36 AM
> > > > > To: 'César Aracena'; 'PHP General List'
> > > > > Subject: RE: [PHP] SESSION's from common computers
> > > > >
> > > > > You really can't do anything besides saying that after X
> minutes,
> > > > well,
> > > > > you were idle, so restart your session. Once you send them the
> > page,
> > > > you
> > > > > don't know if they are reading it or have left the table. All
> you
> > > can
> > > > do
> > > > > is decide on the next request whether too much time has
passed.
> > > > >
> > > > > As for the new computer, they'll have to start a new session
> there
> > > > > automatically, because they won't have the same cookie
matching
> > the
> > > > > session ID from the first computer.
> > > > >
> > > > > ---John Holmes...
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: César Aracena [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Saturday, June 29, 2002 1:24 AM
> > > > > > To: PHP General List
> > > > > > Subject: [PHP] SESSION's from common computers
> > > > > >
> > > > > > Hi all.
> > > > > >
> > > > > > I have a question about sessions… which is the best way to
> close
> > a
> > > > > > session if one it’s opened for a certain user and then this
> user
> > > > > changes
> > > > > > to another computer? I guess that I could manage with
> > > > > session_start_time
> > > > > > and session_end_time fields in the DB, and tell the script
to
> > see
> > > if
> > > > > the
> > > > > > opened session hasn’t been closed… then close it and open a
> new
> > > one.
> > > > > >
> > > > > > Does this make any sense? Is there a better way to do this?
I
> > want
> > > > to
> > > > > > know this because many users actually use cyber-coffees
> > computers
> > > to
> > > > > > access web sites and I’ve seen them leaving their chair with
> the
> > > > > windows
> > > > > > still opened and changing to another pc.
> > > > > >
> > > > > > Thanks in advance,
> > > > > >
> > > > > >  <mailto:[EMAIL PROTECTED]> Cesar Aracena
> > > > > > CE / MCSE+I
> > > > > > Neuquen, Argentina
> > > > > > +54.299.6356688
> > > > > > +54.299.4466621
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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

I had to move 2 sites from a unix server to a microsoft server and 
the new ISP was suppose to install PHP4.

In a simple php script,

http://www.tukulu.co.za (in the contact section after send the form)

I get the error message

Notice: Undefined variable: Name in 
D:\Web\tukulu\www\Alpha\MailRequest.php on line 35
Notice: Undefined variable: FirstName in 
D:\Web\tukulu\www\Alpha\MailRequest.php on line 36
...


which let me guess that PHP is not installed, or at least not 
correctly.  The script was working fine on the unix server.

How can I check what is wrong and ask the ISP to correct the problem?

Please copy your reply to [EMAIL PROTECTED]  Thanks.
-- 

Kind regards, Paul.

Gondwana
[EMAIL PROTECTED]
http://www.gondwanastudio.com
--- End Message ---
--- Begin Message ---
Hi,

First, php on your server show all errors, notices etc. Second, I think you
have register_globals = off in php.ini so you must use $_POST['variable']
instead of $variable.

Greetings,
Nookie

----- Original Message -----
From: "Paul Godard" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Saturday, June 29, 2002 9:53 AM
Subject: [PHP] Help please *** PHP4 not installed correctly


> Hi
>
> I had to move 2 sites from a unix server to a microsoft server and
> the new ISP was suppose to install PHP4.
>
> In a simple php script,
>
> http://www.tukulu.co.za (in the contact section after send the form)
>
> I get the error message
>
> Notice: Undefined variable: Name in
> D:\Web\tukulu\www\Alpha\MailRequest.php on line 35
> Notice: Undefined variable: FirstName in
> D:\Web\tukulu\www\Alpha\MailRequest.php on line 36
> ...
>
>
> which let me guess that PHP is not installed, or at least not
> correctly.  The script was working fine on the unix server.
>
> How can I check what is wrong and ask the ISP to correct the problem?
>
> Please copy your reply to [EMAIL PROTECTED]  Thanks.
> --
>
> Kind regards, Paul.
>
> Gondwana
> [EMAIL PROTECTED]
> http://www.gondwanastudio.com


--- End Message ---
--- Begin Message ---
Luis Miguel N. Tavora wrote:

> How can we open pop-up windows with php?
> 
> Are there specific functions, or one should
> use js instead?

PHP is a server-side language.  It couldn't care less what happens 
client-side.

A client-side language like JavaScript is required to, well, do stuff on 
the client side.


<snip />

HTH, HAND :p


-- 
Mark Gallagher
http://cyberfuddle.com/infinitebabble/

--- End Message ---
--- Begin Message ---
I forgot to do start a mySQL connection. Sorry :}


--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com

"Jj Harrison" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Here is my code:
>
> $query = "UPDATE poll_options SET votes + 1";
> mysql_query($query);
>
> All where conditions have were removed to try and fix the problem
>
>


--- End Message ---
--- Begin Message ---
Hi group,

I have to automate (read: Put there internal informix db online) an company
and they are using this configuration:

ISQL 7.20
Embedded sql for C. 9.14
4GL 7.30
4GL runtime 7.20
Dynamic server 7.30
Java API    1.05

Now i was wondering wheter it is possible to make an PHP connection to this
DB so that i can query it and use it in PHP.  Does someone knows how to do
this? Or is it maybe possible to make an ODBC connection or anything like
that/

Warm regards
Emile Bosch


--- End Message ---
--- Begin Message ---
I am setting up a login section of my site using sessions.  I have the login
working with and without cookies enabled.  I do not want to restrict my
users be requiring cookies.

The problem is that I can't seem to get PHP to auto append the session id to
the relative URLs on the page.

I have the following PHP settings:

php_value session.use_cookies 0
php_value session.use_trans_sid 1

I also had these setings in my php.ini file.

Am I missing something simple here?

Thanks,

Dan

--- End Message ---
--- Begin Message ---
On Saturday 29 June 2002 18:02, Dan Tappin wrote:
> I am setting up a login section of my site using sessions.  I have the
> login working with and without cookies enabled.  I do not want to restrict
> my users be requiring cookies.
>
> The problem is that I can't seem to get PHP to auto append the session id
> to the relative URLs on the page.
>
> I have the following PHP settings:
>
> php_value session.use_cookies 0
> php_value session.use_trans_sid 1
>
> I also had these setings in my php.ini file.

Was your php compiled with '--enable-trans-sid' ?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
All the troubles you have will pass away very quickly.
*/

--- End Message ---
--- Begin Message ---
Hi there,

I would like to save a jpg into a blob field of mysql. The function
underneath works fine if I read the image from the temporary destination
where php did put it after uploading.

My problem is, that I would like to do some funky stuff to the image like
changing colors or adding watermarks. So I have several functions ahead
before I used to store them successfully to the file system. Now I would
like to store it to a blob field, but this does not work. Like I said it
works to store the temp file, but not the other one. I guess it has to do
with something regarding the imagejpeg function.

Here is what I tryed:
  #########################################
   # save image to db into blob

   // this does not work (outputImg is a the colorcorrected file)
     $data = addslashes($outputImg);

    // this one would work
   # $data = addslashes(fread(fopen($picture_location, "r"),
filesize($picture_location)));

  $stmt ="
   INSERT INTO test.picture_test
    (file_name, file_type, picture)
    VALUES
    ('$name', '$picture_location_type', '$data')
  ";
  execute_stmt($stmt, $link);
  #########################################

Maybe some of you guy has a good idea on that.

Thanx for any help,

Andy


--- End Message ---
--- Begin Message ---
On Thu, Jun 27, 2002 at 11:09:23AM -0600, notoriousvic_ca wrote:
> I have an HTML form which allows users to query data in an Oracle 8
> Database. Usualy a search may return over 100 records so I diplay 10
> records per page. I would like to make the search more efficient by
> using the  OCISetPrefetch to prefetch the first 10 records. This works
> great for the first page but for a page that displays records 90 to 100,
> I have to prefetch 100 records. I have two questions

> 1) Is there any way of  fetching or Prefetching only say rows 80 to 90
> of a result set?

    no - at some point the oci interface _will_ support
    scrollable cursors (>= 9i only i think). that would allow you
    to skip records.

> 2) Has anyone tried to save a cursor or connection into a session?

    will not work.

    tc
--- End Message ---

Reply via email to