RE: [PHP] db connection error

2001-01-23 Thread Maxim Maletsky

It says that the username or password are incorrect.

Just Double Check them!

Cheers,
Maxim Maletsky

-Original Message-
From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 6:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP] db connection error


Hi all,
I got the error below when I tried to establish db coonection. 

Warning: MySQL Connection Failed: Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES) in
/home/sites/site1/web/FreeSale/submitagree.php3 on line 2


The sniplet is :

$connection = mysql_connect("216.122.146.146", "freesale", "secret");

what is the problem here?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] db connection error

2001-01-23 Thread [EMAIL PROTECTED]

Hi all,
I got the error below when I tried to establish db coonection. 

Warning: MySQL Connection Failed: Access denied for user: '[EMAIL PROTECTED]' 
(Using password: YES) in /home/sites/site1/web/FreeSale/submitagree.php3 on line 2


The sniplet is :

$connection = mysql_connect("216.122.146.146", "freesale", "secret");

what is the problem here?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"



[PHP] |O:T| Can anyone translate for me this Perl code into PHP?

2001-01-23 Thread Maxim Maletsky

Hello guys,
I *know* it is totally OT, but, I need your help...
 
Below is a piece of PERL code that I am trying to "translate" into PHP. It
is quite simple code needed to send emails within a newsletter.
I kind of tried to rewrite it in PHP but since I know *nothing* about Perl I
found myself asking what does that means and what this...
 
Could anyone who knows Perl that well write me a sketch of the equal script
in PHP?
 
It is simple, I can see it, but I do not understand what is that RegEx for,
what is $pid ( fork() ) and where does it actually send emails... 
 
Thanks in advance,
Maxim Maletsky
 
 
 
 
 

 
#!/usr/bin/perl

read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
 ($name, $value) = split(/=/, $pair);
 $value =~ tr/+/ /;
 $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
 if ($INPUT{$name}) { $INPUT{$name} = $INPUT{$name}.",".$value; }
 else { $INPUT{$name} = $value; }
}
 
$pid = fork();
print "Content-type: text/html \n\n fork failed: $!" unless defined $pid;
 
if ($pid) {
 
... bla bla bla
 
}
 else {
 
 close (STDOUT);
 open(LIST,"$INPUT{'address_file'}");
 @addresses=;
 close(LIST);
 
 foreach $line(@addresses) {
  chomp($line);
 
  open(MAIL, "|$INPUT{'mail_prog'} -t") || &error("Could not send out
emails");
  print MAIL "To: $line \n";
  print MAIL "From: $INPUT{'listname'} <$INPUT{'from'}>\n";
  print MAIL "Subject: $INPUT{'subject'}\n";
  if ($INPUT{'html'}) {
  print MAIL "MIME-Version: 1.0\n"; 
  print MAIL "Content-Type: text/html;\n"; 
  print MAIL "Content-Transfer-Encoding: 7bit\n\n"; 
  }
  print MAIL "$INPUT{'body'}";
  print MAIL "\n\n";
  if ($INPUT{'unsubchk'}) {
   print MAIL
"===\n";
   print MAIL "You have received this email because you subscribed to the
$INPUT{'listname'} Mailing Service. To unsubscribe simply visit the link
below.\n";
   print MAIL "$INPUT{'url'}/unsub.phtml?list=$INPUT{'list'}&email=$line\n";
  }
  print MAIL "\n\n";
  close (MAIL);
 }
} 
 

 
 

Maxim Maletsky - [EMAIL PROTECTED]  
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com  
http://www.japaninc.net  
http://www.lincmedia.co.jp  


 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP] session.save_path

2001-01-23 Thread Jimmy Bäckström

Yo!
I'm sending this call for help once again, since I didn't get an answer to my problem 
last time.

I'm working a little with sessions, but I get a message like this:


 Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
(2) in h:\program\apache\htdocs/boa/sessionTest.php on line 5
 
 Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
(2) in Unknown on line 0
 
 Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0


I have a tmp directory under my apache directory (i'm running win2k btw) Is it suppose 
to go anywhere else? Please help me!



Re: [PHP] problem with \n

2001-01-23 Thread Philip Olson


How are you using it (code snip) and what is it not doing for you?

Philip


On Wed, 24 Jan 2001, Roman wrote:

> I have PHP 4.0.4 version but i have problem with this escape command : \n :
> don't
> work. what's the problem another escape command work with no problems...
> 
> 
> Thanx,  roman
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] problem with \n

2001-01-23 Thread Roman

I have PHP 4.0.4 version but i have problem with this escape command : \n :
don't
work. what's the problem another escape command work with no problems...


Thanx,  roman


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] storing query result in arrays: waste of memory?

2001-01-23 Thread Tyson Lloyd Thwaites

Hi all,

I am writing an object-oriented program in PHP, and some of the child
objects require similar data to their parents, but from different columns of
the same table.

Is it better to retrieve the whole table up-front and store it in a session
array, or to run the queries seperately each time the data is needed and
specify the column targets?

My first thought was to store it all in an array, but the problem is that
some of the data is CLOB data, and this is for a site that will have may
thousands of concurrent users, so I don't want to use up all the server's
memory by putting unnecessary things in arrays.

Another thought is that you could run the queries up-front and make the
query global, but only fetch rows as needed.

Any thoughts on this? The bottom line is that I am not sure whether it is
worse to run numerous smaller queries, or to run one large query and
possibly use more memory.

Thanks for any insights!

Regards,

Tyson Lloyd Thwaites
IT&e Limited
e-Commerce Division
Adelaide
(08) 8346 3888


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] as stupid as I normally am..... ( Nope!)

2001-01-23 Thread [EMAIL PROTECTED]

How do I look in to mysql log files? Anyway, the IP 216.122.146.147 is the
IP of db server where the page tries connect to (and my developing machine
is on ISDN line and the ip is 192.168.0.100 in which I think it does not
quite relevant to bring it up here) . But The actual IP of the server that
host the php files is 216.122.146.146 .
But when I looked at other username and password that has set up on other
PHP project, at the host field of both "user" table and "db" table, it use
216.122.146.147 and the application is working fine with the same sniplet
for db connection.
cheers
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Samantha Savvakis <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 12:56 AM
Subject: RE: [PHP] as stupid as I normally am. ( Nope!)


> When you insert into the user table, the "Host" column is where you are
> connecting "FROM" not where you want to connect to.
>
> This could be something you have wrong. You want to connect to
> "216.122.146.147" ?? And you have inserted into the user table that you
are
> coming from 216.122.146.147. So, if I can make assumptions, the host where
> you are connecting from and where you want to connect to are on the same
> machine? You can just use "localhost" for that if that is the case.
>
> Have you looked in the mysql log files to see what errors it is giving or
a
> reason why this user can't connect?
>
> Other than that, you have taken the right steps to create a new db user,
and
> if you have done the reload, everything should work.
>
> > -Original Message-
> > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 25 January 2001 05:45
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] as stupid as I normally am. ( Nope!)
> >
> >
> > Nope, it still not working after i refresh the page. I went to database
> > mysql again and check table "user" and see username "freesale" there
with
> > the host IP and it is empty at the password field in the table.
> > I also went to check table "db" and look at the fields Host, user
> > and I also
> > see correct Host IP together with username "freesale".
> > And the code to set up db connection at the page is below:
> > **
> > $connection = mysql_connect("216.122.146.147", "freesale", "") or die
> > ("Could not connect");
> >  mysql_select_db("FreeSale", $connection);
> > ***
> > Please enlighten me what I have done wrong because I nearly went crazy
now
> > :-)
> > Jack
> > [EMAIL PROTECTED]
> > "There is nothing more rewarding than reaching the goal you set for
> > yourself"
> > - Original Message -
> > From: Samantha Savvakis <[EMAIL PROTECTED]>
> > To: Jacky@lilst <[EMAIL PROTECTED]>
> > Sent: Wednesday, January 24, 2001 12:29 AM
> > Subject: RE: [PHP] as stupid as I normally am.
> >
> >
> > > hi,
> > >
> > > ok, you did the reload, and now when you try your connect, does it
work?
> > >
> > > The reload command does not return anything.
> > >
> > > Sam
> > >
> > >
> > > > -Original Message-
> > > > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, 25 January 2001 05:23
> > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > > Subject: Re: [PHP] as stupid as I normally am.
> > > >
> > > >
> > > > I did use "./mysqladmin reload" and I got this back on the
> > > > interface ( using
> > > > telnet)
> > > > **
> > > > mysql> ./mysqladmin reload
> > > > ->
> > > > *
> > > > and it does not do anything, is that mean the db serevr has
> > already been
> > > > reloaded?
> > > > cheers
> > > > Jack
> > > > [EMAIL PROTECTED]
> > > > "There is nothing more rewarding than reaching the goal you set for
> > > > yourself"
> > > > - Original Message -
> > > > From: Samantha Savvakis <[EMAIL PROTECTED]>
> > > > To: Jacky@lilst <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, January 23, 2001 11:34 PM
> > > > Subject: RE: [PHP] as stupid as I normally am.
> > > >
> > > >
> > > > > you are forgetting to do a reload.
> > > > >
> > > > > ./mysqladmin reload
> > > > >
> > > > > > -Original Message-
> > > > > > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Thursday, 25 January 2001 04:36
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: [PHP] as stupid as I normally am.
> > > > > >
> > > > > >
> > > > > > Hi people,
> > > > > > Off the topic here again but hope it won't be too much to ask.
As
> > > > > > inexperience person on setup new Db on Mysql for new php
project,
> > > > > > I need to add new database on Mysql for new project, as stupid
as
> > > > > > I normally am, I don't really know what exactly to do about the
> > > > > > set up of user and password on that new db after it is added. So
>

RE: [PHP] as stupid as I normally am..... ( Nope!)

2001-01-23 Thread Samantha Savvakis

When you insert into the user table, the "Host" column is where you are
connecting "FROM" not where you want to connect to.

This could be something you have wrong. You want to connect to
"216.122.146.147" ?? And you have inserted into the user table that you are
coming from 216.122.146.147. So, if I can make assumptions, the host where
you are connecting from and where you want to connect to are on the same
machine? You can just use "localhost" for that if that is the case.

Have you looked in the mysql log files to see what errors it is giving or a
reason why this user can't connect?

Other than that, you have taken the right steps to create a new db user, and
if you have done the reload, everything should work.

> -Original Message-
> From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 25 January 2001 05:45
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] as stupid as I normally am. ( Nope!)
>
>
> Nope, it still not working after i refresh the page. I went to database
> mysql again and check table "user" and see username "freesale" there with
> the host IP and it is empty at the password field in the table.
> I also went to check table "db" and look at the fields Host, user
> and I also
> see correct Host IP together with username "freesale".
> And the code to set up db connection at the page is below:
> **
> $connection = mysql_connect("216.122.146.147", "freesale", "") or die
> ("Could not connect");
>  mysql_select_db("FreeSale", $connection);
> ***
> Please enlighten me what I have done wrong because I nearly went crazy now
> :-)
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set for
> yourself"
> - Original Message -
> From: Samantha Savvakis <[EMAIL PROTECTED]>
> To: Jacky@lilst <[EMAIL PROTECTED]>
> Sent: Wednesday, January 24, 2001 12:29 AM
> Subject: RE: [PHP] as stupid as I normally am.
>
>
> > hi,
> >
> > ok, you did the reload, and now when you try your connect, does it work?
> >
> > The reload command does not return anything.
> >
> > Sam
> >
> >
> > > -Original Message-
> > > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, 25 January 2001 05:23
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: Re: [PHP] as stupid as I normally am.
> > >
> > >
> > > I did use "./mysqladmin reload" and I got this back on the
> > > interface ( using
> > > telnet)
> > > **
> > > mysql> ./mysqladmin reload
> > > ->
> > > *
> > > and it does not do anything, is that mean the db serevr has
> already been
> > > reloaded?
> > > cheers
> > > Jack
> > > [EMAIL PROTECTED]
> > > "There is nothing more rewarding than reaching the goal you set for
> > > yourself"
> > > - Original Message -
> > > From: Samantha Savvakis <[EMAIL PROTECTED]>
> > > To: Jacky@lilst <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> > > Sent: Tuesday, January 23, 2001 11:34 PM
> > > Subject: RE: [PHP] as stupid as I normally am.
> > >
> > >
> > > > you are forgetting to do a reload.
> > > >
> > > > ./mysqladmin reload
> > > >
> > > > > -Original Message-
> > > > > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, 25 January 2001 04:36
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [PHP] as stupid as I normally am.
> > > > >
> > > > >
> > > > > Hi people,
> > > > > Off the topic here again but hope it won't be too much to ask. As
> > > > > inexperience person on setup new Db on Mysql for new php project,
> > > > > I need to add new database on Mysql for new project, as stupid as
> > > > > I normally am, I don't really know what exactly to do about the
> > > > > set up of user and password on that new db after it is added. So
> > > > > the db connection could not connect at the code.
> > > > > What I did was that after I added new db, log in to Mysql admin
> > > > > via telnet, say "use Mysql" database and add new user at "user"
> > > > > table (without password,leave it blank), with this query:
> > > > >
> > > > >  > insert into user values ('216.122.146.147','freesale',
> > > > > '','y','y','y','y','y','y','y','y','y','y','y','y','y','y');
> > > > >
> > > > > and freesale is of course username and I left password field as
> > > > > blank and given all previliges as yes.
> > > > >
> > > > > Then add that username into Db table together with the database
> > > > > name using this query :
> > > > >
> > > > > >insert into db values
> > > > > ('216.122.146.147','FreeSale','freesale','y','y','y','y','y','y','
> > > > > y','y','y','y');
> > > > >
> > > > > while FreeSale is database name and freesale is username.
> > > > >
> > > > >
> > > > > Database connection still could not establish, Anything
> else I miss
> > > here?
> > > > > cheers
> > > > > Jack
> > > > > [EMAIL PROTECTED]
> > > > > "There is nothing more rewarding than reaching th

php-general Digest 24 Jan 2001 06:38:51 -0000 Issue 473

2001-01-23 Thread php-general-digest-help


php-general Digest 24 Jan 2001 06:38:51 - Issue 473

Topics (messages 36242 through 36341):

Some Code for Uploading Images...
36242 by: Diego Fulgueira
36244 by: Website4S.aol.com

Re: "Authenticating" across sites/servers
36243 by: Michael Kimsal
36337 by: Kristofer Widholm

Re: PHP_SELF - silly question
36245 by: Krznaric Michael
36251 by: Larry Hotchkiss

Re: [PHP-DEV] vchkpw & qmail
36246 by: Teodor Cimpoesu

Re: Search Engines and PHP
36247 by: Kristofer Widholm
36279 by: Joe Stump

Re: WAP and PHP
36248 by: Florian Clever

Re: What "PHP" Stands For
36249 by: Boaz Yahav

Re: Newsletter Software needed urgently...
36250 by: Boaz Yahav

Export to Spreadsheet Format
36252 by: Benjamin Munoz
36297 by: Richard Lynch

Re: Shared Memory with Yast-installed mod_php4 from SuSE.
36253 by: Rouvas Stathis

field types
36254 by: Jason Jacobs
36255 by: Boget, Chris
36257 by: Boget, Chris
36261 by: Joao Prado Maia

Re: Session problems
36256 by: Johannes Janson
36302 by: Jimmy Bäckström

Multiple Page Form
36258 by: Jeremy Bowen
36260 by: Benjamin Munoz

Session tracking question
36259 by: Wade D
36262 by: Alexander Wagner
36263 by: Todd Cary

Re: Sending a mail in HTML format
36264 by: Jade Ohlhauser
36267 by: Alex Black

To much PHP (Newbie)
36265 by: Mike Mike
36268 by: Chris Lee

Re: non-php related question.
36266 by: Steve Edberg

zend ide & debugger
36269 by: Alex Black
36270 by: Ben Gollmer
36272 by: Alex Black
36278 by: Alex Akilov
36288 by: WBB

IMAP HELP
36271 by: Jochen Kächelin

Help w/ quotes/html and data from MySQL
36273 by: Shane McBride
36283 by: Steve Edberg
36285 by: Shane McBride

How does PHP accept multiple selection
36274 by: david klein
36275 by: Shawn Blaylock
36277 by: david klein
36280 by: jeremy brand

Sockets
36276 by: Boget, Chris

file or fopen to fetch a web page???
36281 by: Lic. Rodolfo Gonzalez Gonzalez
36298 by: Richard Lynch

apache + mssql
36282 by: Thor M. Steindorsson

Zend Store products questions
36284 by: Andrew Sitnikov

Re: Google like page functions
36286 by: Shane McBride
36287 by: Ashley M. Kirchner
36308 by: Shane McBride
36312 by: jeremy brand

CREATE DOWNLOAD LINK
36289 by: Jochen Kächelin
36299 by: Richard Lynch

Re: Non-existant folders??
36290 by: Brian White

Re: XML Processing Instruction ( was " 


Hi! I know how to upload images. But I will be very grateful if anyone
around has some code to do that and is willing to share it with me. I have
all kind of algorithms in PHP I could share too, just tell me what you need.
By the way, do you know of a site with PHP samples?
Thanks a lot!.





In a message dated 23/01/2001 19:01:16 GMT Standard Time, [EMAIL PROTECTED] 
writes:

<< By the way, do you know of a site with PHP samples? >>

www.hotscripts.com
www.devshed.com
www.phpbuilder.com
www.zend.com
www.php.net
www.thickbook.com
www.weberdev.com

That should keep you going, as for the other part of your query sorry I can`t 
help with that as I haven`t been down that road yet.

Ade






"Boget, Chris" wrote:

>
> One other thing that I forgot to include in my previous message as
> a concern of mine and it relates to the above.  If we did it that way,
>
> someone who was listening to a port on the client's server, or who
> came by later to use the same machine the client was using previously
> to do this could get this somehow encrypted information and log in
> as the previous user since we wouldn't require authentication because
> said authentication would have already been done on the trusted
> website.  So essentially a 3rd party could concievably obtain this
> information that was posted with the URL (which is why I didn't
> want to pass this information via GET) to access our site and wreak
> havoc.  I definitely want to minimize this possibility.

True, this is a possibility.

Do a post, not a get.  Might eliminate a small possibilty.

A lot of this coordination (or other gyrations you could come up with)
require some cooperation from this 'outside' server.  How 'outside' is
it?  If you need to change a key or algorithm, how much can they
accomodate?  Rhetorical questions mostly - you'll have to take all this
into account.

Not sure I see the whole benefit of a scheme like this.  I mean, I sort
of do, but it's a lot of hassle, and introduces extra security issues at
the expense of an extremely small amount of user inconvenience (which
they need to put up with at every other site on the web anyway - you're
not at a significant usability disadvantage).





>Ok.
>So the client authenticates on the external ser

Re: [PHP] as stupid as I normally am..... ( Nope!)

2001-01-23 Thread [EMAIL PROTECTED]

Nope, it still not working after i refresh the page. I went to database
mysql again and check table "user" and see username "freesale" there with
the host IP and it is empty at the password field in the table.
I also went to check table "db" and look at the fields Host, user and I also
see correct Host IP together with username "freesale".
And the code to set up db connection at the page is below:
**
$connection = mysql_connect("216.122.146.147", "freesale", "") or die
("Could not connect");
 mysql_select_db("FreeSale", $connection);
***
Please enlighten me what I have done wrong because I nearly went crazy now
:-)
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Samantha Savvakis <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 12:29 AM
Subject: RE: [PHP] as stupid as I normally am.


> hi,
>
> ok, you did the reload, and now when you try your connect, does it work?
>
> The reload command does not return anything.
>
> Sam
>
>
> > -Original Message-
> > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 25 January 2001 05:23
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: [PHP] as stupid as I normally am.
> >
> >
> > I did use "./mysqladmin reload" and I got this back on the
> > interface ( using
> > telnet)
> > **
> > mysql> ./mysqladmin reload
> > ->
> > *
> > and it does not do anything, is that mean the db serevr has already been
> > reloaded?
> > cheers
> > Jack
> > [EMAIL PROTECTED]
> > "There is nothing more rewarding than reaching the goal you set for
> > yourself"
> > - Original Message -
> > From: Samantha Savvakis <[EMAIL PROTECTED]>
> > To: Jacky@lilst <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 23, 2001 11:34 PM
> > Subject: RE: [PHP] as stupid as I normally am.
> >
> >
> > > you are forgetting to do a reload.
> > >
> > > ./mysqladmin reload
> > >
> > > > -Original Message-
> > > > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, 25 January 2001 04:36
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] as stupid as I normally am.
> > > >
> > > >
> > > > Hi people,
> > > > Off the topic here again but hope it won't be too much to ask. As
> > > > inexperience person on setup new Db on Mysql for new php project,
> > > > I need to add new database on Mysql for new project, as stupid as
> > > > I normally am, I don't really know what exactly to do about the
> > > > set up of user and password on that new db after it is added. So
> > > > the db connection could not connect at the code.
> > > > What I did was that after I added new db, log in to Mysql admin
> > > > via telnet, say "use Mysql" database and add new user at "user"
> > > > table (without password,leave it blank), with this query:
> > > >
> > > >  > insert into user values ('216.122.146.147','freesale',
> > > > '','y','y','y','y','y','y','y','y','y','y','y','y','y','y');
> > > >
> > > > and freesale is of course username and I left password field as
> > > > blank and given all previliges as yes.
> > > >
> > > > Then add that username into Db table together with the database
> > > > name using this query :
> > > >
> > > > >insert into db values
> > > > ('216.122.146.147','FreeSale','freesale','y','y','y','y','y','y','
> > > > y','y','y','y');
> > > >
> > > > while FreeSale is database name and freesale is username.
> > > >
> > > >
> > > > Database connection still could not establish, Anything else I miss
> > here?
> > > > cheers
> > > > Jack
> > > > [EMAIL PROTECTED]
> > > > "There is nothing more rewarding than reaching the goal you set
> > > > for yourself"
> > > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Repition Reduction ?

2001-01-23 Thread Mukul Sabharwal

Hi,

I'm making a small quiz script, and wanted to know how
I could minimize repition of questions to a single
user.

And also how to randomize all the questions ?

thanks.

=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] RC4 Encryption / Decryption Class

2001-01-23 Thread Mukul Sabharwal

Hi,

I've made a small class that adds RC4 encryption
functionality to those versions of PHP which don't
have mycrypt either installed or the specific version
for RC4 is not installed.

It's a class that simply requires you to pass some
parameters, like key, and the plaintext, and an
optional decrypting value.

http://devhome.net/php/
http://phpclasses.upperdesign.com/browse.html/package/146

Thanks.

=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] as stupid as I normally am.....

2001-01-23 Thread [EMAIL PROTECTED]

I did use "./mysqladmin reload" and I got this back on the interface ( using
telnet)
**
mysql> ./mysqladmin reload
->
*
and it does not do anything, is that mean the db serevr has already been
reloaded?
cheers
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Samantha Savvakis <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 11:34 PM
Subject: RE: [PHP] as stupid as I normally am.


> you are forgetting to do a reload.
>
> ./mysqladmin reload
>
> > -Original Message-
> > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 25 January 2001 04:36
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] as stupid as I normally am.
> >
> >
> > Hi people,
> > Off the topic here again but hope it won't be too much to ask. As
> > inexperience person on setup new Db on Mysql for new php project,
> > I need to add new database on Mysql for new project, as stupid as
> > I normally am, I don't really know what exactly to do about the
> > set up of user and password on that new db after it is added. So
> > the db connection could not connect at the code.
> > What I did was that after I added new db, log in to Mysql admin
> > via telnet, say "use Mysql" database and add new user at "user"
> > table (without password,leave it blank), with this query:
> >
> >  > insert into user values ('216.122.146.147','freesale',
> > '','y','y','y','y','y','y','y','y','y','y','y','y','y','y');
> >
> > and freesale is of course username and I left password field as
> > blank and given all previliges as yes.
> >
> > Then add that username into Db table together with the database
> > name using this query :
> >
> > >insert into db values
> > ('216.122.146.147','FreeSale','freesale','y','y','y','y','y','y','
> > y','y','y','y');
> >
> > while FreeSale is database name and freesale is username.
> >
> >
> > Database connection still could not establish, Anything else I miss
here?
> > cheers
> > Jack
> > [EMAIL PROTECTED]
> > "There is nothing more rewarding than reaching the goal you set
> > for yourself"
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] RE: "Authenticating" across sites/servers

2001-01-23 Thread Kristofer Widholm

>Ok.
>So the client authenticates on the external server.  The client then
>clicks on a link to go to the restricted section on our webserver in
>such a way that they will be pre-authenticated on our server.  When
>the user clicks that link, a script on their end is executed to open a
>socket to our end so the user's data can be passed to us.  I assume
>that once all of that has transpired and the external server has
>recieved the go ahead from us, the external server then redirects
>the user to our server?  And would the external server have to pass
>something with the URL so we can associate that particular client
>with the data that was just passed?  If not, how do we make that
>association?

Chris,
I don't know how helpful I will end up being to your project. I offer 
you my help only as someone who is in the process of exploring 
something similar myself -- so what I'm dealing with here is a public 
brainstorm, and certainly nothing near a finished solution.

I wish I were at the pseudo code stage, as I would love to be that 
far along, and be able to help you out.

However, I'll try to clarify the mechanics of my thinking, in case 
anyone on this list cares to point out any obvious flaws in logic 
(and therefore can help us both out).

The basic idea is to get the servers to agree on allowing a user to 
access them both, for a limited time, and ONLY if they both agree on 
allowing the user in. If we can get the servers to shake hands on 
letting user X be authenticated, then, when user X requests a 
resource, the servers can check their recent agreements lists for 
whether user X should be allowed that resource. By having the servers 
talk directly to each other (and not via the user's browser) on this 
"pre-verification" stage, it would seem to me that no third party 
would have access to the mechanism of the transaction, and, since the 
communications are encrypted with PGP with keys that physically 
reside on those two servers, even if this hidden communications 
stream were snooped, it would be awfully difficult to replicate the 
mechanism of the authorization.

On top of this basic architecture, we then lay a few added 
complications: time-sensitivity (that the authorization expires 
strictly after a very brief time unless used immediately), and 
continued verification that all communication between parties is 
actually coming from the same IP addresses from which they originated.

Here's my poorly written schematic:


Server AServer B
User logs in and is authenticated,
preferably over SSL, and using
some kind of time stamp and IP
address verification.

Server A gives a key to the user

Server A also encrypts the key,
using Server B's public PGP key
(just 'cause it's called public
doesn't mean it has to actually
be public).

Server A opens a socket to server
B and sends this key to server B
(not sure if this can be done
over SSL. thinking that perhaps it
can be done with an SSH session?).

Also, all of these server side
sockets should be made to verify
the IP address of the server opening
the socket. There should also be a
relatively strict timeout on all
these transactions, such that an OK
or auth key will expire if not used
or validated within five minutes.

Server 
B receives key,

decrypts it with it's

private key, and returns an
"OK" 
response to Server A.
This 
OK would be encrypted
with 
server A's public key,
and 
would be mathematically

related to, or contain the
user's 
request for authen-

tication, so that when
server 
A receives the OK,
it 
knows to which user it pertains.

Server 
B makes a note (in
a 
database or whatever)
of the 
OK. This note would
also 
con

Re: [PHP] 1. php ISP host wanted, 2. Release of EasySQL

2001-01-23 Thread Josh G

best kind of networks, those RAID networks. Much better than
STRIPE printers

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Richard Creech - DreamRiver.com" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 4:33 PM
Subject: [PHP] 1. php ISP host wanted, 2. Release of EasySQL


> Hello All,
> php ISP HOST WANTED
> I seek expressions of interest from North American based PHP internet
service providers (ISP's). We seek a php focused ISP where security,
reliability and performance are paramount. RAID networking is essential. Our
client needs mission critical host services on a priority basis. If you use
or know of such host services, and are completely happy with them, kindly
let us know too OFFLINE at:
>
> [EMAIL PROTECTED]
>
> Thank you.
>
> EASYSQL RELEASED
> Also, this is the first announcement of a new php MINI application called
easySQL. easySQL is freely downloadable and lets you query a database using
just your browser. Essentially it allows for a quick and dirty connect,
select and query to a database without the need for installing larger
programs. It is just one file, is driven by php and javascript, has
rudimentary configurable password protection, has a reusable query option
and has been tested for several months in hundreds of installs.
>
> More info: http://www.dreamriver.com/software/phpEasySQL/index.php
> Download: http://www.dreamriver.com/software/
>
> Kind Regards,
>
> Richard Creech
> [EMAIL PROTECTED]
> 250.744.3350 Pacific Time Canada
> Download phpYellow Pages for dynamic Website Content
> http://dreamriver.com/software/index.php3
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] 1. php ISP host wanted, 2. Release of EasySQL

2001-01-23 Thread Richard Creech - DreamRiver.com

Hello All,
php ISP HOST WANTED
I seek expressions of interest from North American based PHP internet service 
providers (ISP's). We seek a php focused ISP where security, reliability and 
performance are paramount. RAID networking is essential. Our client needs mission 
critical host services on a priority basis. If you use or know of such host services, 
and are completely happy with them, kindly let us know too OFFLINE at:

[EMAIL PROTECTED]

Thank you.

EASYSQL RELEASED
Also, this is the first announcement of a new php MINI application called easySQL. 
easySQL is freely downloadable and lets you query a database using just your browser. 
Essentially it allows for a quick and dirty connect, select and query to a database 
without the need for installing larger programs. It is just one file, is driven by php 
and javascript, has rudimentary configurable password protection, has a reusable query 
option and has been tested for several months in hundreds of installs. 

More info: http://www.dreamriver.com/software/phpEasySQL/index.php
Download: http://www.dreamriver.com/software/

Kind Regards,

Richard Creech
[EMAIL PROTECTED]
250.744.3350 Pacific Time Canada
Download phpYellow Pages for dynamic Website Content
http://dreamriver.com/software/index.php3


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] as stupid as I normally am.....

2001-01-23 Thread Samantha Savvakis

you are forgetting to do a reload.

./mysqladmin reload

> -Original Message-
> From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 25 January 2001 04:36
> To: [EMAIL PROTECTED]
> Subject: [PHP] as stupid as I normally am.
> 
> 
> Hi people,
> Off the topic here again but hope it won't be too much to ask. As 
> inexperience person on setup new Db on Mysql for new php project, 
> I need to add new database on Mysql for new project, as stupid as 
> I normally am, I don't really know what exactly to do about the 
> set up of user and password on that new db after it is added. So 
> the db connection could not connect at the code. 
> What I did was that after I added new db, log in to Mysql admin 
> via telnet, say "use Mysql" database and add new user at "user" 
> table (without password,leave it blank), with this query:
> 
>  > insert into user values ('216.122.146.147','freesale', 
> '','y','y','y','y','y','y','y','y','y','y','y','y','y','y');
> 
> and freesale is of course username and I left password field as 
> blank and given all previliges as yes. 
> 
> Then add that username into Db table together with the database 
> name using this query :
> 
> >insert into db values 
> ('216.122.146.147','FreeSale','freesale','y','y','y','y','y','y','
> y','y','y','y');
> 
> while FreeSale is database name and freesale is username.
> 
> 
> Database connection still could not establish, Anything else I miss here?
> cheers  
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set 
> for yourself"
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] as stupid as I normally am.....

2001-01-23 Thread [EMAIL PROTECTED]

Hi people,
Off the topic here again but hope it won't be too much to ask. As inexperience person 
on setup new Db on Mysql for new php project, I need to add new database on Mysql for 
new project, as stupid as I normally am, I don't really know what exactly to do about 
the set up of user and password on that new db after it is added. So the db connection 
could not connect at the code. 
What I did was that after I added new db, log in to Mysql admin via telnet, say "use 
Mysql" database and add new user at "user" table (without password,leave it blank), 
with this query:

 > insert into user values ('216.122.146.147','freesale', 
 >'','y','y','y','y','y','y','y','y','y','y','y','y','y','y');

and freesale is of course username and I left password field as blank and given all 
previliges as yes. 

Then add that username into Db table together with the database name using this query :

>insert into db values 
>('216.122.146.147','FreeSale','freesale','y','y','y','y','y','y','y','y','y','y');

while FreeSale is database name and freesale is username.


Database connection still could not establish, Anything else I miss here?
cheers  
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"



[PHP] Bad file descriptors

2001-01-23 Thread Kif

Hi

I recently wrote a script that copies about 200 data files from a remote
server, and stores them locally.

It does this under cron every night

Everything has been fine for a couple of weeks, but now when running the
script I get an error message that reads

Warning: file(http://remote.server.com/file.html) - Bad file descriptor in
/home/convert.php on line ...

And the files that the script is copying and referring to are all zero
length.

This doesn't happen all the time. some nights I may get no error messages
and other times I get lots of them.
Last night it was nearly all of them.

The problem seems to be getting increasingly worse as time passes.

I have checked the data files (about half are html and half are images) and
they seem fine.

I'm a bit new to php and I really have no idea what the error message means.
Can someone help and explain what might be going on please

Thanks

Kif
[EMAIL PROTECTED]








-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] newbie: xslt help!

2001-01-23 Thread Erick Papadakis

hi, 

i dug around and found that there is something called
XSLT and that there are things like coccon etc in java
from apache group, and php's own parser (sablotron?)
that i can use to transform xml into javascript and
html. 

my problem is that i need to create a xslt parser that
i can use both in java and jsp based implementations
as well as php based ones. so most likely i should use
something that is supported on both platforms. 

my questions: 

1. which parser should i use to achieve this? i would
really appreciate any ideas.

2. are there any examples of doing this? i mean
converting an xml file into html and javascript at
runtime? so that i have just one php script that reads
the xml files and draws my pages on my website. 

3. does anyone know why php.net chose sablotron for
their xslt functions? i am interested in just the
reasons that i can bounce off as well. 

thanks in advance/erick



__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] where to find volunteers / RPG lovers

2001-01-23 Thread Ed Lazor

Is there a good web site to find people interested in volunteering on PHP 
projects?  I have a fantasy / sci-fi / rpg based web site and wanted to 
find someone interested in helping with the PHP development.  If you're 
interested, feel free to visit the site and contact me.  If you know of 
where I can go to post something like this, I'd appreciate if you'd send me 
a note to let me know.

Thanks! =)

Ed Lazor
AtFantasy Alliance
http://www.AtFantasy.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Odd output from system()

2001-01-23 Thread Andrew Hill

Hey, you stole my name!  ::grin::

Man is this going to get confusing.

Best regards,
Andrew
--
Andrew Hill
Director Technology Evangelism
OpenLink Software
http://www.openlinksw.com
XML & E-Business Infrastructure Technology


On 1/23/01 11:35 PM, "Andrew Hill" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I'm running a PHP script that uses system() to call an expect script.
> 
> This expect script uses ssh2 to log into another server, and run some
> commands. At the shell prompt (bash) the expect script runs exactly as
> I'd hope.
> 
> However, when I use system() in PHP to run the script, the output on the
> web browser includes lines like this:
> 
> ]0;root@apache: /root[root@apache /root]#
> 
> I'd hope to see something like this instead of the above:
> 
> [root@apache /root]#
> 
> 
> My guess is that there is something that the shell and/or expect is
> hiding from me, that system() is displaying instead. Is there some way
> of telling system() that it should look exactly like it does in a shell,
> or to tell the shell or expect not to generate this hidden info?
> 
> Any advice would be appreciated!
> 
> TIA,


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Odd output from system()

2001-01-23 Thread Andrew Hill

Hi,

I'm running a PHP script that uses system() to call an expect script.

This expect script uses ssh2 to log into another server, and run some
commands. At the shell prompt (bash) the expect script runs exactly as
I'd hope.

However, when I use system() in PHP to run the script, the output on the
web browser includes lines like this:

]0;root@apache: /root[root@apache /root]# 

I'd hope to see something like this instead of the above:

[root@apache /root]# 


My guess is that there is something that the shell and/or expect is
hiding from me, that system() is displaying instead. Is there some way
of telling system() that it should look exactly like it does in a shell,
or to tell the shell or expect not to generate this hidden info?

Any advice would be appreciated!

TIA,
-- 
Andrew Hill

"Right now, I'd happily snort gunk from the sink if it would take
my brain somewhere away from here" - JB

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] News gateway question

2001-01-23 Thread Stephan Ahonen

> Is there any easy way to post to the group instead?

I'm reading and posting from the very handy news://news.php.net server they
have set up. It's just the coolest! =)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Hyperlink using thumnail

2001-01-23 Thread Andrew Hill

Dave,

Here is a bare-bones example.
You will notice that you don't need to hard code the thumbnail on the first
page either as long as are consistent in file naming with a set prefix
differentiating thumbnails from their larger pix.

page_one.php:

click to enlarge";
echo "";
?>

page_two.php:

";
?>


Best regards,
Andrew
--
Andrew Hill
Director Technology Evangelism
OpenLink Software
http://www.openlinksw.com
XML & E-Business Infrastructure Technology



On 1/23/01 9:23 PM, "Dave Stewart" <[EMAIL PROTECTED]> wrote:

> Hi again,
> 
> How do I link this image file so that when users click on it they get
> the bigger version (which is named 01.jpg).
> 
>  
> $photo = file_exists("th_01.jpg") ? " SRC=\"th_01.jpg\">" : "No Photo Yet\n";
> 
> echo "$photo";
> 
> ?>
> 
> Here is the html version of what I am trying to do, as you can see the
> '' is a variable.
> 
>  alt="CLICK TO ENLARGE">
> 
> Thanks again,
> 
> Dave
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] what is wrong about this sniplet?

2001-01-23 Thread [EMAIL PROTECTED]

The variable $HotelID is the hotelId of the record that I just inserted into
database and I want to retrive the Id of that record to insert into another
table.
what is the correct syntax of using mysql_insert_id in this case?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Samantha Savvakis <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>
Cc: PHP General <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 10:20 PM
Subject: RE: [PHP] what is wrong about this sniplet?


> HI Jack,
>
> What is the variable $HotelID ?
>
> mysql_insert_id - has an optional parameter: link_identifier (the database
> handle)
>
> So in this case, is $HotelID your database handle? If not, then just call
> mysql_insert_id() without any parameters.
>
> Otherwise, it is always best to pass around the database handle so that
you
> know which connection you are using.
>
> Sam
>
>
> > -Original Message-
> > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 25 January 2001 03:17
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] what is wrong about this sniplet?
> >
> >
> > I have the sniplet to run teh query at the page to insert data as
> > shown below. After it is run, there was en error said something like
> > "Mysql warning, 0 ( zero) is not Mysql index"  and the error
> > point to the line using mysql_insert_id($HotelID);
> > My limited experience cannot tell me what should I be doing in
> > order to get what I need. Any thought?
> > **
> > file://insert Hotel detail
> > $insertHotel = "INSERT INTO Hoteldetail
> > (HotelName,HotelLocation, HotelCountry,HotelPostcode,
> > HotelTelephone,Hotelfax,HotelURL,
> > HotelContactFirstName,HotelContactLastName, HotelRoomProvided,
> > HotelEmail) VALUES ('$HotelName', '$HotelLocation',
> > '$HotelCountry', '$HotelPostcode', '$Hoteltelephone',
> > '$Hotelfax', '$HotelURL', '$HotelContactFirstName',
> > '$HotelContactLastName', '$HotelRoomProvided', '$HotelEmail')";
> > $resultHotel = mysql_query($insertHotel);
> > // retrive latest HotelID
> >   $latestHotelID = mysql_insert_id($HotelID);
> > **
> > cheers
> > Jack
> > [EMAIL PROTECTED]
> > "There is nothing more rewarding than reaching the goal you set
> > for yourself"
> >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] what is wrong about this sniplet?

2001-01-23 Thread Samantha Savvakis

HI Jack,

What is the variable $HotelID ?

mysql_insert_id - has an optional parameter: link_identifier (the database
handle)

So in this case, is $HotelID your database handle? If not, then just call
mysql_insert_id() without any parameters.

Otherwise, it is always best to pass around the database handle so that you
know which connection you are using.

Sam


> -Original Message-
> From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 25 January 2001 03:17
> To: [EMAIL PROTECTED]
> Subject: [PHP] what is wrong about this sniplet?
>
>
> I have the sniplet to run teh query at the page to insert data as
> shown below. After it is run, there was en error said something like
> "Mysql warning, 0 ( zero) is not Mysql index"  and the error
> point to the line using mysql_insert_id($HotelID);
> My limited experience cannot tell me what should I be doing in
> order to get what I need. Any thought?
> **
> //insert Hotel detail
> $insertHotel = "INSERT INTO Hoteldetail
> (HotelName,HotelLocation, HotelCountry,HotelPostcode,
> HotelTelephone,Hotelfax,HotelURL,
> HotelContactFirstName,HotelContactLastName, HotelRoomProvided,
> HotelEmail) VALUES ('$HotelName', '$HotelLocation',
> '$HotelCountry', '$HotelPostcode', '$Hoteltelephone',
> '$Hotelfax', '$HotelURL', '$HotelContactFirstName',
> '$HotelContactLastName', '$HotelRoomProvided', '$HotelEmail')";
> $resultHotel = mysql_query($insertHotel);
> // retrive latest HotelID
>   $latestHotelID = mysql_insert_id($HotelID);
> **
> cheers
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set
> for yourself"
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] what is wrong about this sniplet?

2001-01-23 Thread [EMAIL PROTECTED]

I have the sniplet to run teh query at the page to insert data as shown below. After 
it is run, there was en error said something like 
"Mysql warning, 0 ( zero) is not Mysql index"  and the error point to the line using 
mysql_insert_id($HotelID);
My limited experience cannot tell me what should I be doing in order to get what I 
need. Any thought?
**
//insert Hotel detail
$insertHotel = "INSERT INTO Hoteldetail  (HotelName,HotelLocation, 
HotelCountry,HotelPostcode, HotelTelephone,Hotelfax,HotelURL, 
HotelContactFirstName,HotelContactLastName, HotelRoomProvided, HotelEmail) VALUES 
('$HotelName', '$HotelLocation', '$HotelCountry', '$HotelPostcode', '$Hoteltelephone', 
'$Hotelfax', '$HotelURL', '$HotelContactFirstName', '$HotelContactLastName', 
'$HotelRoomProvided', '$HotelEmail')";
$resultHotel = mysql_query($insertHotel);
// retrive latest HotelID
  $latestHotelID = mysql_insert_id($HotelID);
**
cheers
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"



[PHP] News gateway question

2001-01-23 Thread Daniel Grace

I use the news.netimages.com gateway to access this mailing list since I
don't feel like getting my mailbox flooded with mail (and wasn't really
happy with the way the digest worked). However, I've noticed that the
newsgroup only works for reading -- e.g. I can't post messages to it and
have to send them to the mailing list.

Is there any easy way to post to the group instead?

--
 - Daniel Grace 

  "Space may be the final frontier but its made in a Hollywood basement."
- Red Hot Chili Peppers - Californication





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] where does database go at host

2001-01-23 Thread Noel Akins

I'm going to created a database with the use of a php/html page on my 
commercial host (forsite.net). I have yet to master the unix directory 
system so I don't want to play around looking for it. Does a database have 
to "live" in the MySQL directory, or can it be in my html web directory? 
How does it usually get set up? If it can be stored in my web directory, 
how do I get it there?
Thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Aspell Function

2001-01-23 Thread Matt Stone

Arghh!! Is aspell even supported on windows 2k?

-Original Message-
From: Matt Stone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 January 2001 1:06 PM
To: Josh G; PHP User Group
Subject: RE: [PHP] Aspell Function


I had to download a the aspell library :)

-Original Message-
From: Josh G [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 January 2001 1:03 PM
To: PHP User Group
Subject: Re: [PHP] Aspell Function


And the answer was?

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Matt Stone" <[EMAIL PROTECTED]>
To: "Matt Stone" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 2:02 PM
Subject: RE: [PHP] Aspell Function


> Ahh... found the answer :) So much for the PHP doc, it didnt say anything
> about what i needed, I had to use the Zend one :|
>
> -Original Message-
> From: Matt Stone [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 24 January 2001 12:54 PM
> To: PHP List
> Subject: [PHP] Aspell Function
>
>
> Hi,
> I am trying to run this code from the manual but with no success:
>  $spellinglink = aspell_new ("english");
> if (aspell_check ($spellinglink, "testt")) {
> echo "This is a valid spelling";
> } else {
> echo "Sorry, wrong spelling";
> }
> ?>
>
> It returns this error:
> Fatal error: Call to undefined function: aspell_new() in
> /home/www/htdocs/sunsetstudios/photoscope/test.php on line 2
>
> Is there a module have to enable to use Aspell? Or is there something I
have
> to change in php.ini? Please help.
>
> --Nanda
>
> ___
>
> This email may contain confidential and/or privileged information for the
> sole use of the intended recipient. Any review or distribution by others
is
> strictly prohibited. If you have received this email in error, please
> contact the sender and delete all copies. Opinions, conclusions or other
> information expressed or contained in this email are not given or endorsed
> by the sender unless otherwise affirmed independently by the sender.
>
> _
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Aspell Function

2001-01-23 Thread Matt Stone

I had to download a the aspell library :)

-Original Message-
From: Josh G [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 January 2001 1:03 PM
To: PHP User Group
Subject: Re: [PHP] Aspell Function


And the answer was?

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Matt Stone" <[EMAIL PROTECTED]>
To: "Matt Stone" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 2:02 PM
Subject: RE: [PHP] Aspell Function


> Ahh... found the answer :) So much for the PHP doc, it didnt say anything
> about what i needed, I had to use the Zend one :|
>
> -Original Message-
> From: Matt Stone [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 24 January 2001 12:54 PM
> To: PHP List
> Subject: [PHP] Aspell Function
>
>
> Hi,
> I am trying to run this code from the manual but with no success:
>  $spellinglink = aspell_new ("english");
> if (aspell_check ($spellinglink, "testt")) {
> echo "This is a valid spelling";
> } else {
> echo "Sorry, wrong spelling";
> }
> ?>
>
> It returns this error:
> Fatal error: Call to undefined function: aspell_new() in
> /home/www/htdocs/sunsetstudios/photoscope/test.php on line 2
>
> Is there a module have to enable to use Aspell? Or is there something I
have
> to change in php.ini? Please help.
>
> --Nanda
>
> ___
>
> This email may contain confidential and/or privileged information for the
> sole use of the intended recipient. Any review or distribution by others
is
> strictly prohibited. If you have received this email in error, please
> contact the sender and delete all copies. Opinions, conclusions or other
> information expressed or contained in this email are not given or endorsed
> by the sender unless otherwise affirmed independently by the sender.
>
> _
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: HTTP_USER_AGENT and preg_match

2001-01-23 Thread John Hinsley

Teodor Cimpoesu wrote:

> I've got a nice browsecap.ini file from php4win.de.
> You can then simply use get_browser() [ listed under Miscellaneous functions]

Hi Teodor

I can't find it! I went to the site and downloaded the complete
php_for_windows install thinking that I could unzip the lot in Linux and
it'd be there but it's not. Then again, knowing Windows, it could just
be a binary.

But I've found the get_browser function in the manual. I guess the idea
is that the browsercap.ini file goes inside php.ini?

The main (and for me, utterly unresolvable) issue is whether under
Windows, Netscape reveals the same text handling behaviour as under
Linux, that is, pre 6* versions display the same text smaller than 6*
versions. (Of course, the issue is further compounded by Star Office
displaying 6*/I.E behaviour and by the issue of what Macs, Ataris and
who knows how many *nixes might do!)

-- 
**
Marx: "Why do Anarchists only drink herbal tea?"
Proudhon: "Because all proper tea is theft."
**

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Article required on PHP security.

2001-01-23 Thread David Banes

Hi,

I am the editor of the Symantec AntiVirus Research Center(re) Newsletter and
I am looking for someone to write an article on PHP security/viruses/worms.
For those that don't know Symantec publish the Norton range of software.

The newsletter has a circulation of about 200,000 and is published in 10
languages, this is an ideal opportunity for a PHP expert to get in front of
a lot of corporate IT people in many countries.

Anyone interested please email me at: dbanes'put the usual symbol here'.'the
companies name'.com

Best Regards
David Banes
Editor, Symantec AntiVirus Newsletter.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Aspell Function

2001-01-23 Thread Josh G

And the answer was?

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Matt Stone" <[EMAIL PROTECTED]>
To: "Matt Stone" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 2:02 PM
Subject: RE: [PHP] Aspell Function


> Ahh... found the answer :) So much for the PHP doc, it didnt say anything
> about what i needed, I had to use the Zend one :|
>
> -Original Message-
> From: Matt Stone [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 24 January 2001 12:54 PM
> To: PHP List
> Subject: [PHP] Aspell Function
>
>
> Hi,
> I am trying to run this code from the manual but with no success:
>  $spellinglink = aspell_new ("english");
> if (aspell_check ($spellinglink, "testt")) {
> echo "This is a valid spelling";
> } else {
> echo "Sorry, wrong spelling";
> }
> ?>
>
> It returns this error:
> Fatal error: Call to undefined function: aspell_new() in
> /home/www/htdocs/sunsetstudios/photoscope/test.php on line 2
>
> Is there a module have to enable to use Aspell? Or is there something I
have
> to change in php.ini? Please help.
>
> --Nanda
>
> ___
>
> This email may contain confidential and/or privileged information for the
> sole use of the intended recipient. Any review or distribution by others
is
> strictly prohibited. If you have received this email in error, please
> contact the sender and delete all copies. Opinions, conclusions or other
> information expressed or contained in this email are not given or endorsed
> by the sender unless otherwise affirmed independently by the sender.
>
> _
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Aspell Function

2001-01-23 Thread Matt Stone

Ahh... found the answer :) So much for the PHP doc, it didnt say anything
about what i needed, I had to use the Zend one :|

-Original Message-
From: Matt Stone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 January 2001 12:54 PM
To: PHP List
Subject: [PHP] Aspell Function


Hi,
I am trying to run this code from the manual but with no success:


It returns this error:
Fatal error: Call to undefined function: aspell_new() in
/home/www/htdocs/sunsetstudios/photoscope/test.php on line 2

Is there a module have to enable to use Aspell? Or is there something I have
to change in php.ini? Please help.

--Nanda

___

This email may contain confidential and/or privileged information for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you have received this email in error, please
contact the sender and delete all copies. Opinions, conclusions or other
information expressed or contained in this email are not given or endorsed
by the sender unless otherwise affirmed independently by the sender.

_


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php.ini

2001-01-23 Thread Philip Olson


Or :



Six lines down we see :


Configuration File (php.ini) Path


Which shows the path to php.ini


Philip


On Tue, 23 Jan 2001, Alex Black wrote:

> locate php.ini
> 
> in windoze, the windows key+f, type in php.ini
> 
> _a
> 
> 
> --
> Alex Black, Head Monkey
> [EMAIL PROTECTED]
> 
> The Turing Studio, Inc.
> http://www.turingstudio.com
> 
> vox+510.666.0074
> fax+510.666.0093
> 
> Saul Zaentz Film Center
> 2600 Tenth St Suite 433
> Berkeley, CA 94710-2522
> 
> 
> 
> 
> > From: [EMAIL PROTECTED] ("Michael A. Peters")
> > Newsgroups: php.general
> > Date: 23 Jan 2001 18:07:42 -0800
> > Subject: Re: [PHP] php.ini
> > 
> > try find / -print |grep "php\.ini" after your make install.
> > will take awhile, but that should find it :D
> > 
> > On Tuesday, January 23, 2001, at 04:44 PM, Rasmus Resen Amossen wrote:
> > 
> >> Everybody talks about this nice configuration file, but where is it?!
> >> I have compiled php4 with apache, but even a »find . -name "php.ini«
> >> gives anything. 
> >> Do I really need to recompile php to change its configuration?
> >> 
> >> --  
> >> Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen
> >> Jagtvej 120, -244| http://www.math.ku.dk/muh
> >> 2200 Kbh. N  | http://w1.1444.telia.com/~u14441
> >> 
> >> --  
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >> 
> >> 
> > 
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > Michael A. Peters
> > Abriasoft Senior Developer
> > 
> > (510)  623-9726x357
> > Fax: (510) 249-9125
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Aspell Function

2001-01-23 Thread Matt Stone

Hi,
I am trying to run this code from the manual but with no success:


It returns this error:
Fatal error: Call to undefined function: aspell_new() in
/home/www/htdocs/sunsetstudios/photoscope/test.php on line 2

Is there a module have to enable to use Aspell? Or is there something I have
to change in php.ini? Please help.

--Nanda

___

This email may contain confidential and/or privileged information for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you have received this email in error, please
contact the sender and delete all copies. Opinions, conclusions or other
information expressed or contained in this email are not given or endorsed
by the sender unless otherwise affirmed independently by the sender.

_


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help: Google like page functions

2001-01-23 Thread jeremy brand

Basically, in your SQL, just use "LIMIT" 

Select * from foo where something = 'something_else' limit 0, 10;
Select * from foo where something = 'something_else' limit 10, 10;
Select * from foo where something = 'something_else' limit 20, 10;
Select * from foo where something = 'something_else' limit 30, 10;
Select * from foo where something = 'something_else' limit 40, 10;

etc...

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"LINUX is obsolete"  -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   http://www.JEEP-FOR-SALE.com/ -- I need a buyer
  Get your own Free, Private email at http://www.smackdown.com/

On Tue, 23 Jan 2001, Shane McBride wrote:

> Date: Tue, 23 Jan 2001 20:59:03 -0500
> From: Shane McBride <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Help: Google like page functions
> 
> I found a great little snippet by accident that does the "Previous 123 Next"
> links. If anyone is interested, here's the link to it:
> 
> http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=21
> 
> 
> - Original Message -
> From: "Shane McBride" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 23, 2001 6:35 PM
> Subject: [PHP] Help: Google like page functions
> 
> 
> I thought this had been addressed earlier, but I could not find the thread.
> 
> If I have a MySQL DB that has 50 records in it and I want to display 5 per
> page. How do I do this. Also, 50 was just a nice round number, the number
> will change constantly.
> 
> All the search engines are doing this type of thing. I just can't seem to
> figure out what I should search for.
> 
> - Shane
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Hyperlink using thumnail

2001-01-23 Thread Dave Stewart

Hi again,

How do I link this image file so that when users click on it they get
the bigger version (which is named 01.jpg).

" : "No Photo Yet\n";

echo "$photo";

?>

Here is the html version of what I am trying to do, as you can see the
'' is a variable.



Thanks again,

Dave



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php.ini

2001-01-23 Thread Alex Black

locate php.ini

in windoze, the windows key+f, type in php.ini

_a


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("Michael A. Peters")
> Newsgroups: php.general
> Date: 23 Jan 2001 18:07:42 -0800
> Subject: Re: [PHP] php.ini
> 
> try find / -print |grep "php\.ini" after your make install.
> will take awhile, but that should find it :D
> 
> On Tuesday, January 23, 2001, at 04:44 PM, Rasmus Resen Amossen wrote:
> 
>> Everybody talks about this nice configuration file, but where is it?!
>> I have compiled php4 with apache, but even a »find . -name "php.ini«
>> gives anything. 
>> Do I really need to recompile php to change its configuration?
>> 
>> --  
>> Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen
>> Jagtvej 120, -244| http://www.math.ku.dk/muh
>> 2200 Kbh. N  | http://w1.1444.telia.com/~u14441
>> 
>> --  
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Michael A. Peters
> Abriasoft Senior Developer
> 
> (510)  623-9726x357
> Fax: (510) 249-9125
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php.ini

2001-01-23 Thread Michael A. Peters

try find / -print |grep "php\.ini" after your make install.
will take awhile, but that should find it :D

On Tuesday, January 23, 2001, at 04:44 PM, Rasmus Resen Amossen wrote:

> Everybody talks about this nice configuration file, but where is it?! 
> I have compiled php4 with apache, but even a »find . -name "php.ini« 
> gives anything. 
> Do I really need to recompile php to change its configuration? 
>  
> --  
> Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen 
> Jagtvej 120, -244| http://www.math.ku.dk/muh 
> 2200 Kbh. N  | http://w1.1444.telia.com/~u14441 
>  
> --  
> PHP General Mailing List (http://www.php.net/) 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> To contact the list administrators, e-mail: [EMAIL PROTECTED] 
>  
>  

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
Abriasoft Senior Developer

(510)  623-9726x357
Fax: (510) 249-9125
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help: Google like page functions

2001-01-23 Thread Shane McBride

I found a great little snippet by accident that does the "Previous 123 Next"
links. If anyone is interested, here's the link to it:

http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=21


- Original Message -
From: "Shane McBride" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 6:35 PM
Subject: [PHP] Help: Google like page functions


I thought this had been addressed earlier, but I could not find the thread.

If I have a MySQL DB that has 50 records in it and I want to display 5 per
page. How do I do this. Also, 50 was just a nice round number, the number
will change constantly.

All the search engines are doing this type of thing. I just can't seem to
figure out what I should search for.

- Shane



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] HELP- COBALT

2001-01-23 Thread Trunkz Santai

Hi if anyone has any knowledge of a RAQ 2 please read on...



I have no idea how to install PHP to work with the current settings... I
cant find apacheeven though it is supposed to be built in right?. Well would
someoen please if they know how tell me how to install PHP on a CObalt RAQ 2



Thanks any assistance would be greatly appreciated.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] php.ini

2001-01-23 Thread Jani Taskinen

On Wed, 24 Jan 2001, Rasmus Resen Amossen wrote:

>Everybody talks about this nice configuration file, but where is it?!
>I have compiled php4 with apache, but even a »find . -name "php.ini«
>gives anything.
>Do I really need to recompile php to change its configuration?

No. Please read the INSTALL file.

--Jani



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] FaceMysql again

2001-01-23 Thread Mike P

It seems to only allow me to add data  if I have more than 1 field.Is this a
bug?Phpmyadmin doesnt have this problem.
Mike P
[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] I dont know what to do here?

2001-01-23 Thread Chris Hayes



Sefton didn't know what to do:
> > I have a form in an htm file that is sending info to a cgi script
> > (formmail.pl) but the confirmation page I am using is php3. I want to 
pass
> > the value of a text box in the form to the php3 page.

> > So I need the faq_confirm.php3 page to appear, plus have it send the
> > variable $message that is one of the fields on the form.
> > I thought you just added it like ?message
> > But i already have a ?

Joe suggested:
> To pass more than one argument type:
> http://foo.com/script.php?var1=hello&var2=foo&var3=bar

But that won't help in this case. 
See, there are two different URL's. First, form.html calls the formmail cgi 
with the url in the FORM ACTION. Then the user is redirected by formmail 
with the URL in the redirect form element.
Additions to the link to the formmail script are of course not seen by the 
following php3 page, because that's another link. 

Form.html has a textbox with the message and a hidden textbox with redirect 
URL.

 [form.html]   
|
|   http://~/formmail.pl"?
V
[formmail.pl]   
|
|   redirect 
V
[faq_confirm.php3] show message here 

Formmail.pl does not need any addition to the link; it gets the form 
elements by magic (POST method defined in FORM tag), like php scripts would 
too, only with a different name. 

To pass the textbox message through as you ask, the message needs to be in 
the redirect URL. This addition of the message  i can imagine can be done in 
the first page with javascript (suggestion D) , in the formmail.pl (B) or in 
formmail.php (C).  

However, I suggest to change your concept as in suggestion  A.
None is tested or claims to be complete. Just giving a direction and hints.


*
A. Make your own PHP script

 [form.html]
|
|   form action="confirm.php3"  
V
[faq_confirm.php3] with sendmail and print a HTML with $message


I strongly suggest to abandone formmail.pl, make a php script instead that 
specifically sends a mail with the data from the form (use php function 
sendmail() ) and then shows the response page with the content of that 
specific text box. That's really the easiest way

If you called the message box 'message' the text will be in variable 
$message . 


A is best because: - all is done in one script, 
- you will learn how to do this
- no use of long url and no dangers of too 
long text in 
 that box of yours. (this socalled GET method 
(with the ?
 and variables in the URL) is limited
 in some older browsers and maybe even servers 
to
 sometimes only 256 characters)
- this is the only proposal where you can do 
some validation in php before sending the mail.
Disadvantage to formmail: formmail doesn't care if you rename your own form 
element names. Your own php script will probably not catch all form 
elements, unless if you check for all element names in PHP_POST_VARS - see 
PHP manual function.each.html and language.variables.external.html.


*
B. Modify the Perl Script (hard)

 [form.html]
|
|   form action="formmail.pl"   
V
[formmail.pl]   adapt redirect here
|
|   redirect: .php3?message=bla 
V
[faq_confirm.php3]

If you have access to the script and nobody minds you changing it, find this 
line in the formmail.pl :
  print "Location: $Config{'redirect'}\n\n";
This one calls a page mentioned in your form's  textbox named 'redirect' 
(see formmail documentation). 
Now somehow add the textbox you need. It MIGHT look like this (i forgot 
about scope and all kinds of perl details).

  print "Location: $Config{'redirect'}".
'?nameofyourtextbox='
"$Config{'nameofyourtextbox'}".
"\n\n";

And hopefully variable $nameofyourtextbox in your redirect page.php contains 
the text. MIND YOU i think you have to change the textbox contents to 
prevent the spaces in the textbox (space would end the URL and you;ll end up 
with only the 1st word), so you will have to find the Perl equivalent of 
urlencode like this:

&urlencode($Config{'nameofyourtextbox'}).
Perl is more difficu

[PHP] php.ini

2001-01-23 Thread Rasmus Resen Amossen

Everybody talks about this nice configuration file, but where is it?!
I have compiled php4 with apache, but even a »find . -name "php.ini«
gives anything.
Do I really need to recompile php to change its configuration?

-- 
Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen
Jagtvej 120, -244| http://www.math.ku.dk/muh
2200 Kbh. N  | http://w1.1444.telia.com/~u14441

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Session problems

2001-01-23 Thread Jimmy Bäckström

Yeah I used a path name with '\' instead of '/' but it still does not work. Help!

"Johannes Janson" <[EMAIL PROTECTED]> wrote in message 
94kpfm$4cc$[EMAIL PROTECTED]">news:94kpfm$4cc$[EMAIL PROTECTED]...
> you have to set the 'session.save_path' in your php.ini.
> be careful with the slashes you use. as you can see from
> the error msg by default it's '/' but windows uses '\'.
> 
> good luck
> Johannes
> 
> 
> "Jimmy Bäckström" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> 001201c08564$f7398660$554d59d5@broder">news:001201c08564$f7398660$554d59d5@broder...
> Yo!
> I'm playing a little bit with sessions for the moment and I get a really
> scary errormessage:
> 
> Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
> (2) in h:\program\apache\htdocs/boa/sessionTest.php on line 5
> 
> Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
> (2) in Unknown on line 0
> 
> Warning: Failed to write session data (files). Please verify that the
> current setting of session.save_path is correct (/tmp) in Unknown on line 0
> 
> I understand that there is a folder missing somewhere (tmp) and I tried to
> create one in the apache directory, but it still does not work. I'm using
> Win2k proffesional with an apache webserver and I don't have a clue what
> changes I should do to php.ini.
> Please help!
> /Broder B
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 



[PHP] Mysql question(s)

2001-01-23 Thread Mike P

I created a table with FaceMysql that had one field and I could not add data
to it .Only when I recreated it with 2 fields and a primary key did it
work.Is there any reason for this?Must there always be a primary key in
Mysql?I've never known this to be true of relational Db's.Especially if you
can't implement a foriegn key.Mike P
[EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] is it possible to communicate javascript and php?

2001-01-23 Thread Dustin Butler

I've used the  tag in Internet Exploder to talk to the server via
javascript.  It may be possible using a regular frame also.  Here's the low
down on how I did it.

1.) Some onclick, onchange ... action calls a javascript function that looks
like this
function getData() {
document.all.hidden_frame.src =
"databaseactions.php?getmesomedata=something";
}


2.) The output of databaseactions.php would look like



var contacts = new Array("Jeff Boyer","555-555-);



Put something here for debugging



The frame is hidden (width and height set to 0) so the client does not see
the output.

3.) A function on the main page called loadselectbox gets the array of data
returned from the server.  You need to rawurlencode the data elements in the
array or javascript will complain.

Tuna Out,
Dustin

> Hello Alex,
> 
> Sunday, January 21, 2001, 4:20:53 AM, you wrote:
> 
> AB> no without submitting information to the server with get or post.
> 
> AB> for example, if a bit of javascript you have comes up 
> with some value, the
> AB> only way you can get it to the server is to put it in a 
> get and send the
> AB> user to that url:
> 
> AB> http://www.mysite.com/index.php?your_js_var=your_value
> 
> You could also post WDDX packets generated by JS, if you intend to
> operate with large and complex data. Sometimes it's much more
> convenient. But, of course, using POST, cause PHP haven't learned mind
> reading yet :)
> 
> -- 
> Best regards,
> Max A. Derkachev mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CREATE DOWNLOAD LINK

2001-01-23 Thread Richard Lynch

> How do I build a link to
> an attached file to an email?
> 
> I have the filename, mime-type and size
> but where do I get the path to the file?

You may want to use Manuel Lemos' mail class to handle that

-- 
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] file or fopen to fetch a web page???

2001-01-23 Thread Richard Lynch

> I wonder myself, which method is better to fetch a web page:
>
>$file = fopen($url, "r");
>$page = fread($file, 5);
>
> or
>
>$file = join('', file($url));

Probably about the same either way...

Maybe not building an array to build a string will save a little...

You could test it fairly quickly for yourself -- Probably best, as you never
know what your box might like better...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Export to Spreadsheet Format

2001-01-23 Thread Richard Lynch

>I want to run a query on a database and export the recordset to a
>spreadsheet, preferably Excel native.
>
>The box is on a Win32 OS, so I can instantiate a Excel COM object (similar
>to the PHPBuilder COM article), and use the COM methods to create an Excel
>file.
>
>Or, I can fopen and fput a CSV formatted file ready to import into Excel.
>
>My question is this: can anyone recommend a script/class where this has
>already been done?  Thanks, PHP list.

Because the CSV format gets real gnarly real fast with nested commas and
quotes, you may find tab-delimited easier...

while($row = xxx_fetch_row($result)){
$line = explode("\t", $row);
fputs($file,$line);
}

eXcel can import tab-delimited real easy.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Filereference and require()

2001-01-23 Thread Richard Lynch

You can provide the full path:
require "/usr/local/share/apache/htdocs/deep/down/dir/a_specific_file";

You can alter include_path in php.ini to have
"/usr/local/share/apache/htdocs/deep/down/dir:./:/usr..." in it

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Rasmus Resen Amossen <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Tuesday, January 23, 2001 11:46 AM
Subject: [PHP] Filereference and require()


> I have a file, lets call it genericfile.php, containing a
>   require("a_specific_file");
>
> Now, I want to use (thats include) genericfile.php in many of my other
> .php-files in the WHOLE directorytree. The problem is that
> "a_specific_file" can't be found trough genericfile.php if this is
> included someplace other in the directory tree.
>
> How can I tell php not to make defaultpath to the toplevel require()
> funcion call?
>
> --
> Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen
> Jagtvej 120, -244| http://www.math.ku.dk/muh
> 2200 Kbh. N  | http://w1.1444.telia.com/~u14441
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] installing and using PEAR

2001-01-23 Thread Richard Lynch

>Can anyone direct me to some up-to-date documentation on how to install
(and then use) the Pear included in the distribution? There seems to be
minimal (and perhaps outdated or inappropriate?) install instructions
included with the source distribution, but I've found nothing on how to use
it.

I think Rasmus might have some material in his online slides from conference
tutorials... http://conf.php.net  No guarantee as to applicability,
up-to-date-ness or anything...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Funny php://stdout behaviour

2001-01-23 Thread Richard Lynch

> When calling the php4 code below, sometimes the browser receives
> -the "HTML estandar text"
> -sometimes the "Text generated from PHP" (but NEVER both!)
> -and ocassionaly the error:
> "Warning: fopen("php://stdout","w") - Bad file descriptor in
> /home/sites/site74/web/_proc/pruebas/stdout-test.php on line 7
> unable to open device"

I actually was getting prompted to download the .php file sometimes...

That was a known bug with an earlier release of PHP4 under high load, I
think...  Or maybe that was the one where turning the engine on/off in
different domains was messing up?...  Or maybe both conditions had to be
true.

Meanwhile, not sure how fopen() is involved.

Maybe try whatever corresponds to stdout on your OS, be it "/dev/0" or
"/dev/stdout" or whatever -- Just to see if you can duplicate it with the
normal file-system stuff.

And try the same thing with some other files/pages etc.

One thing that occurs to me -- stdout starts off by being the browser, so
it's kinda funky to open it -- You've already got it open...  I *think* it
really only makes sense to fopen() stdout from the command line.  At least,
I'm not clear on what it would mean to open it from a HTTP environment...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] POST headers

2001-01-23 Thread jeremy brand

You can get your answer from a program I wrote, in fact, feel free (as
in GLP) to use the POST function that I wrote.

http://www.nirvani.net/software/SmartBeep_PageIT_Plus/

See the "urlize_array" and "post_method" functions.

Jeremy

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"LINUX is obsolete"  -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   http://www.JEEP-FOR-SALE.com/ -- I need a buyer
  Get your own Free, Private email at http://www.smackdown.com/

On Wed, 24 Jan 2001, Tobias Talltorp wrote:

> Date: Wed, 24 Jan 2001 01:11:08 +0100
> From: Tobias Talltorp <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] POST headers
> 
> What are the HTTP Headers performing a POST?
> 
> I need to simulate a POST to a webpage.
> NOTE: I do not want to use curl or the post-to-host function, since these
> get the information.
> 
> What I want to do is this:
> 
> I enter the page "localhost/post.php" where there are a set of HTTP Headers
> for sending a post to "domain.com/result.php". From this point on,
> domain.com handles the displaying of the result. Just exactly the same
> process as a HTML-form, just without the form.
> 
> Thanks,
> // Tobias
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] POST headers

2001-01-23 Thread Tobias Talltorp

What are the HTTP Headers performing a POST?

I need to simulate a POST to a webpage.
NOTE: I do not want to use curl or the post-to-host function, since these
get the information.

What I want to do is this:

I enter the page "localhost/post.php" where there are a set of HTTP Headers
for sending a post to "domain.com/result.php". From this point on,
domain.com handles the displaying of the result. Just exactly the same
process as a HTML-form, just without the form.

Thanks,
// Tobias



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: XML Processing Instruction ( was "

2001-01-23 Thread Brian White

At 05:24 PM 1/23/01 +0100, Jirka Kosek wrote:
>Teodor Cimpoesu wrote:
> > my follow-up was from an suggest of using <% though :)
> > it exists in C, ASP and JSP. We have it in PHP, why not use it?
 >
>Because it is not compatible with XML syntax.

I agree. The short answer is to the question is "Standards".

There are heaps of tools around for processing data that conforms to the
XML standard - if you keep you documents ( and code script is just a
  document ) in XML those tools are available to you.

This is one of the big arguments in favour of XSLT - because it is stored
in XML the argument is that you can manage you XML content documents
and the XSLT code you process it with all with the same set of tools.
This includes editors, document storage, validators, pretty printers etc.

( Note: whether the benefits outweigh the cost in my example are
   arguable and I am not going there )



-
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy

http://www.steptwo.com.au/
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Non-existant folders??

2001-01-23 Thread Brian White

I can't say for sure but my gut reaction is:

1) Not using directories sounds like it would be complicated and
a point of failure

2) If you want to have a single code source, maybe you should just
create a stub page in each directory that includes the main one,
something like:




At 11:31 AM 1/23/01 +, Adrian Murphy wrote:
>Hi,
>I'm creating a little app whereby people will be able to create a simple
>site for themselves (maybe 10 html pages).
>here's the problem:
>say their company is called "companyname" and my site is called
>"www.mysite.com" i'd like their site to be located at
>
>"http://www.mysite.com/companyname"
>
>Is there a way i can do this without creating indivual folders for each
>company.I'd like the whole creation process to be automated.
>I'm sure the ftp functions in php would allow for the generation of new
>folders for each,but since all content/style etc. will be pulled from a DB
>it's seems to me a little pointless having all these folders with the same
>php page in each.essentially i'd like a php script to run automatically each
>time taking what looks like a folder name and making a call to the db using
>this name as a variable.
>easy,difficult or impossible?
>thanx,
>adrian
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

-
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy

http://www.steptwo.com.au/
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] CREATE DOWNLOAD LINK

2001-01-23 Thread Jochen Kächelin

How do I build a link to
an attached file to an email?

I have the filename, mime-type and size
but where do I get the path to the file?

--
**
* Jochen Kächelin*
* Ihr WEBberater - Werbeagentur Pulvermüller *
* Stuttgarter Str. 3 - D-73033 Göppingen *
* www.wa-p.de - mailto:[EMAIL PROTECTED]  *
**


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] zend ide & debugger

2001-01-23 Thread WBB

For any of you developing on a Win machine you might want to try:

http://www.soysal.com/PHPEd


There will be new version up shortly and the version after it will have
interactive debugging.

- Original Message -
From: "Alex Black" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 1:15 PM
Subject: [PHP] zend ide & debugger


> ola all,
>
> has anyone used the zend ide+debugger?
>
> before I slap down $800, I'd like to know if people who have think it's
> groovy..
>
> :)
>
> _alex
>
>
> --
> Alex Black, Head Monkey
> [EMAIL PROTECTED]
>
> The Turing Studio, Inc.
> http://www.turingstudio.com
>
> vox+510.666.0074
> fax+510.666.0093
>
> Saul Zaentz Film Center
> 2600 Tenth St Suite 433
> Berkeley, CA 94710-2522
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help: Google like page functions

2001-01-23 Thread Ashley M. Kirchner

Shane McBride wrote:

> If I have a MySQL DB that has 50 records in it and I want to display 5 per page. How 
>do I do this. Also, 50 was just a nice round number, the number will change 
>constantly.

$sql = "select * from table limit 0,5"; <-- first 5
$sql = "select * from table limit 5,5"; <-- next 5
$sql = "select * from table limit 10,5"; <-- next 5

etc.

AMK4

--
W |
  |  I haven't lost my mind; it's backed up on tape somewhere.
  |
  ~
  Ashley M. Kirchner    .   303.442.6410 x130
  SysAdmin / Websmith   . 800.441.3873 x130
  Photo Craft Laboratories, Inc. .eFax 248.671.0909
  http://www.pcraft.com  . 3550 Arapahoe Ave #6
  .. .  .  . .   Boulder, CO 80303, USA



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Help: Google like page functions

2001-01-23 Thread Shane McBride

I thought this had been addressed earlier, but I could not find the thread.

If I have a MySQL DB that has 50 records in it and I want to display 5 per page. How 
do I do this. Also, 50 was just a nice round number, the number will change constantly.

All the search engines are doing this type of thing. I just can't seem to figure out 
what I should search for.

- Shane



Re: [PHP] Help w/ quotes/html and data from MySQL

2001-01-23 Thread Shane McBride

After I sent this message I looked at the code again. I saw the error as
obvious as daylight. It's working great now.

Thanks.


- Original Message -
From: "Steve Edberg" <[EMAIL PROTECTED]>
To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 5:50 PM
Subject: Re: [PHP] Help w/ quotes/html and data from MySQL


> At 4:47 PM -0500 1/23/01, Shane McBride wrote:
> >I have a field in MySQL that holds data that may look like this:
> >
> >Rose Painting"Looks really nice, blah, blah"25.00
> >
> >Now, I want to pull that data back into a form  to edit.
> >Here's how I have unsuccessfully been doing it:
> >
> >?>
> > beginning code
> >Description:
> > >rows=\"5\">
> >...ending code
> >?>
> >
> >I looks like that the embedded html in the MySQL data is actually
> >being "rendered" (for the lack of a better term).
> >How can I get the whole chunk of data back into the form?
> >
>
>
> Well, if you're using PHP:
>
> echo
> 'Description:',
> '',
> htmlentities($description),
> ''
> ;
>
> Presumably, other web development languages have an equivalent
> construct to PHP's htmlentities().
>
> Also, the value of a textarea tag is not put in a 'value' attribute
> within the tag as with the INPUT tag; it is put in the textarea
> 'container' - that is, between the  and  tags.
>
> - steve
>
>
> --
> +--- "They've got a cherry pie there, that'll kill ya" --+
> | Steve Edberg   University of California, Davis |
> | [EMAIL PROTECTED]   Computer Consultant |
> | http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
> +-- FBI Special Agent Dale Cooper ---+
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Zend Store products questions

2001-01-23 Thread Andrew Sitnikov

Hello ,

  I have some questions about new products from Zend.

  1. After the my "Commercial Subscription Plan"  expire,
  will scripts coded with "Zend Encoder SE" working ? (if it work in users servers 
with "Zend
  Encoder SE Runtime plugins").

  2. If I shall choose payment 12 months, I shall receive products at once or in 12 
months?

  3. When I install the "Zend IDE", " Zend Encoder SE " ... On one
  The computer also I receive the licenses (FLEXlm) for it,
  when I will need to make upgrade hardware or change IP or move all
  software to other computer, I can receive The new license?

Best regards,
 Andrew Sitnikov 
 e-mail : [EMAIL PROTECTED]
 GSM: (+372) 56491109



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help w/ quotes/html and data from MySQL

2001-01-23 Thread Steve Edberg

At 4:47 PM -0500 1/23/01, Shane McBride wrote:
>I have a field in MySQL that holds data that may look like this:
>
>Rose Painting"Looks really nice, blah, blah"25.00
>
>Now, I want to pull that data back into a form  to edit. 
>Here's how I have unsuccessfully been doing it:
>
>?>
> beginning code
>Description:
>rows=\"5\">
>...ending code
>?>
>
>I looks like that the embedded html in the MySQL data is actually 
>being "rendered" (for the lack of a better term).
>How can I get the whole chunk of data back into the form?
>


Well, if you're using PHP:

echo
'Description:',
'',
htmlentities($description),
''
;

Presumably, other web development languages have an equivalent 
construct to PHP's htmlentities().

Also, the value of a textarea tag is not put in a 'value' attribute 
within the tag as with the INPUT tag; it is put in the textarea 
'container' - that is, between the  and  tags.

- steve


-- 
+--- "They've got a cherry pie there, that'll kill ya" --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+-- FBI Special Agent Dale Cooper ---+

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] apache + mssql

2001-01-23 Thread Thor M. Steindorsson

HELP!

I need to access a database on a mssql server from a linux box, but the php
doesn't recognize any of the mssql statements.  Apparently mssql support was
not included in the inital php installation (which came with Mandrake 7.2).
I know there's the option of downloading the PHP source and configuring it
with mssql and re-installing it.
But if there's any way to add the mssql support without such drastic
measures, I'd sure like to hear about them.
Can anyone help?

Thanks.

Thor M. Steindorsson - [EMAIL PROTECTED]
http://www.netwood.net - Find Out Why We're Better.




[PHP] file or fopen to fetch a web page???

2001-01-23 Thread Lic. Rodolfo Gonzalez Gonzalez

Hello,

I wonder myself, which method is better to fetch a web page:

   $file = fopen($url, "r");
   $page = fread($file, 5);

or

   $file = join('', file($url));

, speaking from the performance point of view? (or is there any better?).

Thanks.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How does PHP accept multiple selection

2001-01-23 Thread jeremy brand

Feel free (as in GPL) to use my libHtmlForm functions available here:
http://www.nirvani.net/software/libHtmlForm/

Jeremy

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"LINUX is obsolete"  -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   http://www.JEEP-FOR-SALE.com/ -- I need a buyer
  Get your own Free, Private email at http://www.smackdown.com/

On Tue, 23 Jan 2001, david klein wrote:

> Date: Tue, 23 Jan 2001 21:48:52 -
> From: david klein <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] How does PHP accept multiple selection
> 
> Hello,
> 
> I have some codes like:
>   
>Page 1
>Page 2
>Page 3
>   
>   
> 
> If I selected item 1 and item 3 both, how can I get my multiple selection in 
> the PHP codes? (it seems to me it always give me the last selection only).
> 
> Thank you very much in advance.
> 
> Regards,
> David
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Search Engines and PHP

2001-01-23 Thread Joe Stump

You might want to look at Jeremy Brands VERY useful "variables from uri" 
function that can be found at http://www.nirvani.net/software/ I use this 
religiously and am quite pleased with it.

--Joe

On Tue, Jan 23, 2001 at 02:19:46PM -0500, Kristofer Widholm wrote:
> At 13.33 +0100 01-01-23, Sander Pilon poked the keyboard as follows:
> >  >
> >>  >If you want to be totally searchengine-safe, do not use variables on the
> >>  >url, do not rely on cookies and do not rely on POST variables
> >>  for the pages
> >>  >you want to have the searchengine spider.
> >>
> >>  How the heck do you build a dynamic site without URL variables,
> >>  cookies, or POST variables?
> >>
> >>  Kristofer
> >
> >One way would be to use the url path.
> >
> >Http://script.php/these/are/variables/passed/to/php
> >
> >You fool the searchengine, it thinks 'script.php' is a directory and its
> >getting a file called 'php', but actually you're calling 'script.php' with
> >'/these/are/variables/passed/to/php' as parameters.
> 
> I'm assuming that the tradeoff is the loss of having your variables 
> pre-populated in your scripts and that you have to parse the URL for 
> them. While it's probably easy enough to write my own, does anyone 
> have -- ready made -- a robust and versatile function for populating 
> variables from a URL.
> 
> My impulse is to go with this:
> 
> list($var1,$var2,$var3)=explode("/","$PHP_SELF");
> 
> Anyone one have a better idea?
> 
> A difference to note, it strikes me, is that using this method, it is 
> no longer arbitrary in which order the variables are stacked in the 
> URL.  would be a 
> different page from , 
> whereas using variable declarations in the URL like so 
>  means 
> you can put them in any order you like.
> 
> Kristofer
> -- 
> __
> 
> Kristofer Widholm
> Web Pharmacy
> [EMAIL PROTECTED]
> 191 Grand Street, Brooklyn  NY  11211
> 718.599.4893
> __
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 

Joe Stump, PHP Hacker
[EMAIL PROTECTED]
http://www.miester.org/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] zend ide & debugger

2001-01-23 Thread Alex Akilov

Alex,

I saw a demo of it about 3 months ago while they were working on it
and it looked pretty impressive and contained all the necessary debug
features I asked about.  As far as sending info to the browser, you
might be surprised as I think it might do some of that but I don't
recall
exactly what.

Note that the non-commercial subscription (which includes the IDE) is
only $50 a year.  If you just want to evaluate it, it might be the
ticket
(provided that you only use it for personal use).

The Java nature of the IDE is a bit unfortunate as I don't think it
looks
as pristine and responsive as native code but it appeared to be
sufficiently responsive when I saw it.

Overall, I don't think you'll be disappointed.

Alex A.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How does PHP accept multiple selection

2001-01-23 Thread david klein


Shawn,

   Tested, it works now. Thanks a bunch!

Best Regards,
David

>From: Shawn Blaylock <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: david klein <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: [PHP] How does PHP accept multiple selection
>Date: Tue, 23 Jan 2001 13:51:08 -0800
>
>It stores it in a 2D array. There's info on it on the FAQ.
>here's the URL:
>http://www.php.net/FAQ.php#7.14
>
>
>david klein wrote:
> >
> > Hello,
> >
> > I have some codes like:
> >   
> >Page 1
> >Page 2
> >Page 3
> >   
> >   
> >
> > If I selected item 1 and item 3 both, how can I get my multiple 
>selection in
> > the PHP codes? (it seems to me it always give me the last selection 
>only).
> >
> > Thank you very much in advance.
> >
> > Regards,
> > David
> > _
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>--
>
>Shawn Blaylock, ClipperNet Software Engineer
>[EMAIL PROTECTED]
>http://www.clipper.net/
>Eugene OR  541-431-3360 x406
>Toll Free  866-673-6260 x406
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>

_
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Sockets

2001-01-23 Thread Boget, Chris

Are there any tutorials on how to use Sockets in PHP?
If so, where can I find them?  I've looked on several of
the sites that are linked from the main php.net site but
found nothing... :/

Thanks.

Chris



Re: [PHP] How does PHP accept multiple selection

2001-01-23 Thread Shawn Blaylock

It stores it in a 2D array. There's info on it on the FAQ.
here's the URL:
http://www.php.net/FAQ.php#7.14 


david klein wrote:
> 
> Hello,
> 
> I have some codes like:
>   
>Page 1
>Page 2
>Page 3
>   
>   
> 
> If I selected item 1 and item 3 both, how can I get my multiple selection in
> the PHP codes? (it seems to me it always give me the last selection only).
> 
> Thank you very much in advance.
> 
> Regards,
> David
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 

Shawn Blaylock, ClipperNet Software Engineer
[EMAIL PROTECTED]
http://www.clipper.net/
Eugene OR  541-431-3360 x406
Toll Free  866-673-6260 x406

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How does PHP accept multiple selection

2001-01-23 Thread david klein

Hello,

I have some codes like:
  
   Page 1
   Page 2
   Page 3
  
  

If I selected item 1 and item 3 both, how can I get my multiple selection in 
the PHP codes? (it seems to me it always give me the last selection only).

Thank you very much in advance.

Regards,
David
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-CVS] cvs: php4 /ext/vpopmail CREDITS README config.m4 php_vpopmail.c php_vpopmail.h

2001-01-23 Thread Boian Bonev

bbonev  Tue Jan 23 13:46:08 2001 EDT

  Modified files:  
/php4/ext/vpopmail  CREDITS README config.m4 php_vpopmail.c 
php_vpopmail.h 
  Log:
  changed function names to be like vpopmail_add_user instead vpopmail_adduser
  added vpopmail_error to report error string (vpopmail_errno global var)
  put exec functions back in with _ex (vpopmail_add_domain_ex)
  rewritten README to help users keep secure
  fixed protos to state bool instead void return type
  
  

Index: php4/ext/vpopmail/CREDITS
diff -u php4/ext/vpopmail/CREDITS:1.2 php4/ext/vpopmail/CREDITS:1.3
--- php4/ext/vpopmail/CREDITS:1.2   Sun Jan 14 08:47:55 2001
+++ php4/ext/vpopmail/CREDITS   Tue Jan 23 13:46:03 2001
@@ -1,3 +1,2 @@
 Vpopmail
-David Croft
-Boian Bonev
+David Croft, Boian Bonev
Index: php4/ext/vpopmail/README
diff -u php4/ext/vpopmail/README:1.1 php4/ext/vpopmail/README:1.2
--- php4/ext/vpopmail/README:1.1Sun Jan 14 09:38:29 2001
+++ php4/ext/vpopmail/READMETue Jan 23 13:46:03 2001
@@ -1,63 +1,173 @@
 Minimum Survial Readme
 
-1) select a uid and gid apache to run under
-   or if this is already fixed take it into account
+VPOPMAIL SPECIFIC ISSUES
+---
 
-2) install vpopmail with EXACTLY the same uid gid
-   in case you already have installed vpopmail
-   you have two choices - to change apache's 
-   uid/gid but be careful - this may break some 
-   existing scripts or worse your server's security
+assume
+   qmail is installed in /var/qmail
+   vpopmail in ~vpopmail
+   qmail-send runs as qmails
 
-   changing existing vpopmail uid/gid is possible
-   but not easy - take these into account:
 
-   #1 - backup your setup!
+different parts of vpopmail require certain user id (uid) and
+group id (gid) in order to operate normally.
 
-   stop qmail-send before doing any changes
-   else your mail in process may get bounced or 
-   deleted or delivered to a default destination or...
+brief list with requirements:
 
-   stop pop3/imap remote users - while changing uids
-   users cannot check their mail
+adddomain
+deldomain
+addaliasdomain
+   read/write permissions on
+   /var/qmail/users/ assing, assign.lock, cdb
 
-   you may leave smtp - qmail-inject will take care
-   no matter vpopmail setup is broken (if and only
-   if you have stopped qmail-send)
+   read/write permissions on
+   /var/qmail/control/*
 
-   rc.d scrips tcpserver uid/gid may need to be changed
+   singnal qmail-send with SIGHUP (uid==qmails or root)
 
-   remember to
-   ./configure opts
-   make clean all install
-   in vpopmail src tree
+   read/write permissions on
+   ~vpopmail/domains
 
-   after these steps change the uid/gid in
-   /var/qmail/users/assign
-   compile the assign file. the dummies way is to
-   vadddomain mydummy.domain 
-   vdeldomain mydummy.domain
+   optionally read/write to cdb vpopmail databases
 
-   suid root vadddomain, vdeldomain and vaddaliasdomain
-   cd ~vpopmail/bin
-   chown 0.0 vadddomain vdeldomain vaddaliasdomain
-   chmod +s vadddomain vdeldomain vaddaliasdomain
-   beware these programs may be exploitable and if
-   neccessary chmod 700 ~vpopmail/bin
+adduser
+deluser
+   read/write permissions on
+   ~vpopmail/domains/ (or the default domain)
 
-   run qmail-send (/bin/csh -cf '/var/qmail/rc &')
-   run pop3 tcpserver or what you are using
+   optionally read/write to cdb vpopmail databases
 
-   verify your setup
+passwd
+   optionally read/write on
+   ~vpopmail/domains//
+   (only when sqwebmail is configured)
 
-3) check that vpopmail support is compiled into apache
-   throug a simple phpinfo. there some more info helpful
-   for debugging will appear
+setuserquota
+   optionally read/write to cdb vpopmail databases
 
-4) happy vpopmail-ing :-)
+auth_user
+   optionally read from cdb vpopmail databases
 
+POSSIBLE SCENARIOS
+---
+
+php is in cgi mode
+
+   command line invocation
+
+   web server cgi invocation
+
+php is web server module
+
+
+in command line mode the php interpreter may be run from vpopmail uid to
+administer users, etc. or as root to add/del domains - this is the easiest case
+
+in cgi mode proper uid may be provided eighter by suid php interpreter or
+using cgi exec wrapper. the same restrictions as in command line mode apply
+
+the web server module mode is the most powerful and works much faster that cgi.
+in this mode more restrictions apply because web server's uid at least must
+be able to read/write the directories of the manages domains.
+
+first scenario only allows web scripts to manage certain domains.  security 
+may be compromised if there are user webs under the same web server
+with allowed script execution.
+
+second scenario is to setup web server and vpop

[PHP] Help w/ quotes/html and data from MySQL

2001-01-23 Thread Shane McBride

I have a field in MySQL that holds data that may look like this:

Rose Painting"Looks really nice, blah, blah"25.00

Now, I want to pull that data back into a form  to edit. Here's how I have 
unsuccessfully been doing it:

?>
 beginning code
Description:

...ending code
?>

I looks like that the embedded html in the MySQL data is actually being "rendered" 
(for the lack of a better term).
How can I get the whole chunk of data back into the form?

TIA,
-Shane



Re: [PHP] zend ide & debugger

2001-01-23 Thread Alex Black

> The IDE+Debugger combo really looks great, esp. because of the debug
> support being AWOL in PHP4.

I'm a little bit irked about that actually, they obviously stopped the
"free" development on it, and moved it in house. But I guess you gotta put
food on the table :)

I really would prefer to have debug info printed to a browser instead of
_only_ accessible through their IDE. anyway.

> I'm a little worried about the IDE being written in java tho...I hope its
> not as slow/memory hungry/crash happy as the other java + JRE apps I've
> used...

That's getting a bit better, I've got a couple apps that run fine on win2k
that are java. they're memory pigs but that's the multiplatform life. also,
you're sort of screwed if you want to go X + windows, without maintaining
two separate codebases, so I understand the choice.

plus, swing is very mac-esque, so I approve :)

> Too bad there's not an evaluation version available for download.

I've sent mail to one of their sales guys, adam, about that. The 30-day
"evaluation" is pretty funny: you have to pay $100 for it. (come _on_)!

_but_, for me the "encoder se" is worth the $800 right out, I can ensure
some values stored in my apps right now are ripped up in a binary, which is
extra-extra-groovy for security.

-alex


> Ben
> 
> At 03:15 PM 1/23/2001, you wrote:
>> ola all,
>> 
>> has anyone used the zend ide+debugger?
>> 
>> before I slap down $800, I'd like to know if people who have think it's
>> groovy..
>> 
>> :)
>> 
>> _alex
>> 
>> 
>> --
>> Alex Black, Head Monkey
>> [EMAIL PROTECTED]
>> 
>> The Turing Studio, Inc.
>> http://www.turingstudio.com
>> 
>> vox+510.666.0074
>> fax+510.666.0093
>> 
>> Saul Zaentz Film Center
>> 2600 Tenth St Suite 433
>> Berkeley, CA 94710-2522
>> 
>> 
>> 
>> 
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-CVS] cvs: php4 /pear/Crypt CBC.php

2001-01-23 Thread Colin Viebrock

cmv Tue Jan 23 13:36:12 2001 EDT

  Modified files:  
/php4/pear/CryptCBC.php 
  Log:
  wrong name
  
  
Index: php4/pear/Crypt/CBC.php
diff -u php4/pear/Crypt/CBC.php:1.3 php4/pear/Crypt/CBC.php:1.4
--- php4/pear/Crypt/CBC.php:1.3 Sat Jan 13 12:34:35 2001
+++ php4/pear/Crypt/CBC.php Tue Jan 23 13:36:12 2001
@@ -36,7 +36,7 @@
 * the author of libcrypt decides to name things internally.
 *
 *
-* @version  $Id: CBC.php,v 1.3 2001/01/13 20:34:35 cmv Exp $
+* @version  $Id: CBC.php,v 1.4 2001/01/23 21:36:12 cmv Exp $
 * @author   Colin Viebrock <[EMAIL PROTECTED]>
 * @author   Mike Glover <[EMAIL PROTECTED]>
 *
@@ -56,7 +56,7 @@
 
 
 
-class CBC extends PEAR {
+class Crypt_CBC extends PEAR {
 
 var $known_ciphers = array (
 'DES'   => MCRYPT_DES,
@@ -90,7 +90,7 @@
 *
 */
 
-function CBC ($key, $cipher='DES')
+function Crypt_CBC ($key, $cipher='DES')
 {
 
 if (!extension_loaded('mcrypt')) {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] IMAP HELP

2001-01-23 Thread Jochen Kächelin

when I list all parts of an object returned by

$a = imap_fetchstructure($link,1);

I will get something like this:


[parameters] => Array
( [0] => stdClass Object
( [attribute] => BOUNDARY
  [value] => =_NextPart_000__01C08563.8269C440 )
)

I' am not able to assigna varable to get "_NextPart"!!!

How doI get this?

$a->parameters[0]->value does not work!

Please help!


--
**
* Jochen Kächelin*
* Ihr WEBberater - Werbeagentur Pulvermüller *
* Stuttgarter Str. 3 - D-73033 Göppingen *
* www.wa-p.de - mailto:[EMAIL PROTECTED]  *
**


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] zend ide & debugger

2001-01-23 Thread Ben Gollmer

I second that.

The IDE+Debugger combo really looks great, esp. because of the debug 
support being AWOL in PHP4.

I'm a little worried about the IDE being written in java tho...I hope its 
not as slow/memory hungry/crash happy as the other java + JRE apps I've used...

Too bad there's not an evaluation version available for download.

Ben

At 03:15 PM 1/23/2001, you wrote:
>ola all,
>
>has anyone used the zend ide+debugger?
>
>before I slap down $800, I'd like to know if people who have think it's
>groovy..
>
>:)
>
>_alex
>
>
>--
>Alex Black, Head Monkey
>[EMAIL PROTECTED]
>
>The Turing Studio, Inc.
>http://www.turingstudio.com
>
>vox+510.666.0074
>fax+510.666.0093
>
>Saul Zaentz Film Center
>2600 Tenth St Suite 433
>Berkeley, CA 94710-2522
>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] zend ide & debugger

2001-01-23 Thread Alex Black

ola all,

has anyone used the zend ide+debugger?

before I slap down $800, I'd like to know if people who have think it's
groovy..

:)

_alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] To much PHP (Newbie)

2001-01-23 Thread Chris Lee

If your refering to old Pascal pre-3.0 in how you could only have X number
of bytes in a file (32k I think) then pascal would not parse the rest, then
no php isnt limited to this, your pages will just get slower and slower
because of more hits.

Chris Lee
Mediawaveonline.com



"Mike Mike" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there a such thing as to much code in an include
> file that will break it.  Assuming that you have, say
> 20 people hitting that one page simultaniously.  Will
> it just slow things or will it actually break (As in
> show code to the viewer)?
>
> Thanks
>   --Mike
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-CVS] cvs: php4 /pear Makefile.in

2001-01-23 Thread Colin Viebrock

cmv Tue Jan 23 13:09:55 2001 EDT

  Modified files:  
/php4/pear  Makefile.in 
  Log:
  Forgot this too ...
  
  
Index: php4/pear/Makefile.in
diff -u php4/pear/Makefile.in:1.65 php4/pear/Makefile.in:1.66
--- php4/pear/Makefile.in:1.65  Tue Jan 23 13:08:13 2001
+++ php4/pear/Makefile.in   Tue Jan 23 13:09:55 2001
@@ -27,6 +27,7 @@
Numbers \
Payment \
PEAR \
+   Schedule \
XML
 
 PEAR_FILES = \
@@ -78,6 +79,7 @@
Numbers/Roman.php \
PEAR/Installer.php \
Payment/Verisign.php \
+   Schedule/At.php \
XML/Parser.php \
XML/RPC.php
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sending a mail in HTML format

2001-01-23 Thread Alex Black

that html mail class is fantastical :)

_alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("Jade Ohlhauser")
> Newsgroups: php.general
> Date: 23 Jan 2001 12:51:45 -0800
> Subject: Re: [PHP] Sending a mail in HTML format
> 
> 1.that won't always display properly
> 2.that doesn't allow for inline images
> 
> To do it properly use MIME. Richard Heyes has already done all the hard work
> for you:
> http://www.zend.com/codex.php?id=103&single=1
> 
> . Jade Ohlhauser
> [website architect]... http://bandwidthplace.com
> 
> 
> - Original Message -
> From: "Kristi Russell" <[EMAIL PROTECTED]>
> To: "Pascal Clerin" <[EMAIL PROTECTED]>
> Cc: "php" <[EMAIL PROTECTED]>
> Sent: Saturday, January 20, 2001 11:31 PM
> Subject: Re: [PHP] Sending a mail in HTML format
> 
> 
>> Nothing special, just add  at the beginning of what you're trying to
>> send as HTML. Always worked for me?
>> 
>> Kristi
>> 
>> - Original Message -
>> From: "Pascal Clerin" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Saturday, January 20, 2001 8:46 PM
>> Subject: [PHP] Sending a mail in HTML format
>> 
>> 
>>> Hello,
>>> 
>>> I want to send a mail in HTML format with the mail() function.
>>> I have tried to send html stuff in the message parameter, but when I
> read
>> it
>>> in my hotmail account, I just see the html code and not what the html is
>>> supposed to show.
>>> I suppose that it is necessary to send some additional headers to
> specify
>> that
>>> the mail is in html format.
>>> Thanks for your help.
>>> 
>>> Pascal
>>> 
>>> 
>>> Get free email and a permanent address at http://www.netaddress.com/?N=1
>>> 
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>> 
>> 
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] non-php related question.

2001-01-23 Thread Steve Edberg

Try wget

http://sunsite.dk/wget/index.html


At 12:05 PM -0500 1/23/01, Jason Jacobs wrote:
>Hey guys and gals!  I have my personal site on go.com, and I wanna move it.
>The problem is I don't have it all backed up on my machine (I think I only
>have some of the images), but I want to move it to my server at work.  Does
>anyone know of a script of some sort that will go to my site, copy all the
>files to a specified folder, and follow my internal links?  Thanks for the
>info.
>

-- 
+--- "They've got a cherry pie there, that'll kill ya" --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+-- FBI Special Agent Dale Cooper ---+

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-CVS] cvs: php4 /pear Makefile.in

2001-01-23 Thread Colin Viebrock

cmv Tue Jan 23 13:08:13 2001 EDT

  Modified files:  
/php4/pear  Makefile.in 
  Log:
  Never added this ...
  
  
Index: php4/pear/Makefile.in
diff -u php4/pear/Makefile.in:1.64 php4/pear/Makefile.in:1.65
--- php4/pear/Makefile.in:1.64  Fri Jan 19 21:39:26 2001
+++ php4/pear/Makefile.in   Tue Jan 23 13:08:13 2001
@@ -34,6 +34,7 @@
Benchmark/Timer.php \
Cache/Function_Cache.php \
Console/Getopt.php \
+   Crypt/CBC.php \
Crypt/HCEMD5.php \
Date/Calc.php \
Date/Human.php \



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] To much PHP (Newbie)

2001-01-23 Thread Mike Mike

Is there a such thing as to much code in an include
file that will break it.  Assuming that you have, say
20 people hitting that one page simultaniously.  Will
it just slow things or will it actually break (As in
show code to the viewer)? 

Thanks 
  --Mike

__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sending a mail in HTML format

2001-01-23 Thread Jade Ohlhauser

1.that won't always display properly
2.that doesn't allow for inline images

To do it properly use MIME. Richard Heyes has already done all the hard work
for you:
http://www.zend.com/codex.php?id=103&single=1

. Jade Ohlhauser
[website architect]... http://bandwidthplace.com


- Original Message -
From: "Kristi Russell" <[EMAIL PROTECTED]>
To: "Pascal Clerin" <[EMAIL PROTECTED]>
Cc: "php" <[EMAIL PROTECTED]>
Sent: Saturday, January 20, 2001 11:31 PM
Subject: Re: [PHP] Sending a mail in HTML format


> Nothing special, just add  at the beginning of what you're trying to
> send as HTML. Always worked for me?
>
> Kristi
>
> - Original Message -
> From: "Pascal Clerin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, January 20, 2001 8:46 PM
> Subject: [PHP] Sending a mail in HTML format
>
>
> > Hello,
> >
> > I want to send a mail in HTML format with the mail() function.
> > I have tried to send html stuff in the message parameter, but when I
read
> it
> > in my hotmail account, I just see the html code and not what the html is
> > supposed to show.
> > I suppose that it is necessary to send some additional headers to
specify
> that
> > the mail is in html format.
> > Thanks for your help.
> >
> > Pascal
> >
> > 
> > Get free email and a permanent address at http://www.netaddress.com/?N=1
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Session tracking question

2001-01-23 Thread Todd Cary

Wade -

I am very new with using PHP so I cannot submit my answer as "what most
use".  However, here is what I use:

I do not like to be dependent on Cookies.  For me, Cookies are a
convenience.  That is, I may store a UserID and if it is in a Cookie,
use the ID to put up a greeting or whatever.

Secondly, I am DB oriented, so I opt for DB solutions.  I create a
SessionID using the time() function.  This is stored in the DB with an
Expire time and it is the only value I pass from page to page (I use
POST for passing values).  On login, I do get the UserID and PW and if
they are OK, I then assign the Session ID.

I realize there are many additions to the above that can make it more
secure, but I am not dealing with sensitive data at this time.

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Session tracking question

2001-01-23 Thread Alexander Wagner

Wade D wrote:
> what do most use, combination of cookies and GET?

IMHO the optimal solution are cookies with a fallback to GET.

In some situations, though, it may be better to drop cookies completely.

Wagner

-- 
One maniac alone can do what 20 together cannot

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] field types

2001-01-23 Thread Joao Prado Maia


On Tue, 23 Jan 2001, Boget, Chris wrote:

> Never mind, I see how he did it.  He runs the following query:
> 
> "SELECT FIELDS FROM $tableName"
> 
> Where '$tableName' is your table (obviously) and he parses the result
> to get all the information.
> 

Actually he did a "SHOW FIELDS FROM $tableName". It looks like it's some
sort of alias to "DESC $tableName", since it shows pretty much the same
data.

Joao

--
João Prado Maia <[EMAIL PROTECTED]>
http://phpbrasil.com - php com um jeitinho brasileiro


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Multiple Page Form

2001-01-23 Thread Benjamin Munoz


Make sure you are not forgetting to include $action as a hidden input, so
your script can know how to process.

, for example

-Ben

-Original Message-
From: Jeremy Bowen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 12:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Multiple Page Form


hey,

I am sure this is a dumb question but, I cannot seem to find out what i am
doing wrong. 

I have a three page form, it basically takes a users input, displays it on
the
next page to make sure the users info is correct (i store the variables on
this page in a form in hidden input tags), when the user clicks subscribe on
this page it is supposed to go on to the third page which is a confirmation
page. We instead of doing that it just reloads the page and resets all of
the
values!

My form looks something like this (This is a simplified version):










}

elseif ($action="Send")

{


PAGE TWO




$name 
$email 





}

elseif ($action="Send")

{


Thanks for Subscribing!

mail("Args","Args","Args");

}

?>

I have looked on php.net but i cannot seem to find docs on how to do this!

Thanks,

Jeremy






 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Session tracking question

2001-01-23 Thread Wade D

what do most use, combination of cookies and GET?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Multiple Page Form

2001-01-23 Thread Jeremy Bowen

hey,

I am sure this is a dumb question but, I cannot seem to find out what i am
doing wrong. 

I have a three page form, it basically takes a users input, displays it on the
next page to make sure the users info is correct (i store the variables on
this page in a form in hidden input tags), when the user clicks subscribe on
this page it is supposed to go on to the third page which is a confirmation
page. We instead of doing that it just reloads the page and resets all of the
values!

My form looks something like this (This is a simplified version):










}

elseif ($action="Send")

{


PAGE TWO




$name 
$email 





}

elseif ($action="Send")

{


Thanks for Subscribing!

mail("Args","Args","Args");

}

?>

I have looked on php.net but i cannot seem to find docs on how to do this!

Thanks,

Jeremy






 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] field types

2001-01-23 Thread Boget, Chris

> If you have phpMySql, take a look at the file:
> /mysqladmin/tbl_properties.php
> That code is doing something to return the type of the field.  It's a
> little hard to follow so I don't know exactly how he's doing it and
> unfortunately, didn't have the time to decipher. :p  However, I'm
> sure if you sat down with it for a while, you'd figure out how he
> did it.

Never mind, I see how he did it.  He runs the following query:

"SELECT FIELDS FROM $tableName"

Where '$tableName' is your table (obviously) and he parses the result
to get all the information.

HTH

Chris



Re: [PHP] Session problems

2001-01-23 Thread Johannes Janson

you have to set the 'session.save_path' in your php.ini.
be careful with the slashes you use. as you can see from
the error msg by default it's '/' but windows uses '\'.

good luck
Johannes


"Jimmy Bäckström" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
001201c08564$f7398660$554d59d5@broder">news:001201c08564$f7398660$554d59d5@broder...
Yo!
I'm playing a little bit with sessions for the moment and I get a really
scary errormessage:

Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
(2) in h:\program\apache\htdocs/boa/sessionTest.php on line 5

Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0

I understand that there is a folder missing somewhere (tmp) and I tried to
create one in the apache directory, but it still does not work. I'm using
Win2k proffesional with an apache webserver and I don't have a clue what
changes I should do to php.ini.
Please help!
/Broder B




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   3   >