[PHP] How to get the post variable ?

2001-07-30 Thread Balaji Ankem



Hi! friend,
 during login i posted 2 
variables to authentication.php.

In authentication.php it will call one html which will inturn 
contains frames and in one frame 4 links r there.

For every link i will call one php file. I want to get one 
variable that is posted during login in this php file .

Please suggest me.

Thanks in advance.

Regards
-Balaji

The Information contained and transmitted by this E-MAIL is proprietary to 
Wipro Limited and is intended for  use only by the individual or entity to which 
it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If this is a forwarded message, 
the content of this E-MAIL may not have been sent with the authority of the 
Company. If you are not the intended recipient, an agent of the intended 
recipient or a  person responsible for delivering the information to the named 
recipient,  you are notified that any use, distribution, transmission, printing, 
copying or dissemination of this information in any way or in any manner is 
strictly prohibited. If you have received this communication in error, please 
delete this mail  notify us immediately at [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 header question.

2001-07-30 Thread Christian Reiniger

On Monday 30 July 2001 03:10, Ben Bleything wrote:

 I understand that the POST operation stores the data from the form in
 the message headers... I just need to know which headers, so I can use
 that information to write my own... I basically want to make it seem as
 if the $failure var was POST'ed back to the page.

 I'm having NO luck whatsoever with the HTTP RFC's... too thick =

Read them nevertheless.
A POST is a request from the client (browser) to the webserver. PHP's 
header () is used to send a response header from the webserver to the 
browser. Wrong way for what you want to do.
header (Location: http://XY;) works (if there's a 
header ('302: Moved Temporarily'); before it), because it just tells the 
browser don't use this URL at the moment - try XY instead and the 
browser initiates a new request based on that.

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.

- /. posting discussing the likelihood that an AC post that claimed to be
posted by John Carmack during his honeymoon (and having the login info at
home) was actually from him.

--
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] NuSphere.. what is it???

2001-07-30 Thread B. van Ouwerkerk

snip

What's the deal with that NuShere stuff... I visited their website and 
download a Free version (40MB)...
snip

what are we paying for here?
snip

I don't know.. Perhaps you pay for the tools.. or because of the fact they 
seem to preconfigure the stuff.. I didn't check their website.

Must be quite some additions they made and tools they added (or they didn't 
bother to zip/gzip/whatever).. I downloaded MySQL, PHP and Apache (all 
latest releases).. that was about 17MB (manuals included)..

You can download everything for free from www.mysql.com www.php.net 
www.apache.org and a step to step guide to install everything can be found 
at www.devshed.com (amongst others)..

So no reason to pay whatever amount to NuSphere.. If you need a 
supportcontract for MySQL you could get one from the creators .. found at 
www.mysql.com
Don't go to mysql.org since that's NuSphere trying to impersonate the 
creators of MySQL..
For MySQL www.mysql.com is the place to be.. all sorts of tools can be 
found there too best of all: it's FREE.

Bye,


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] sendmail administration api?

2001-07-30 Thread Christopher Cheng

Does anybody know any Sendmail Administration API for PHP?

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] disabling the back button

2001-07-30 Thread Daniel Rezny

Hello Saquib,

Monday, July 30, 2001, 8:19:51 AM, you wrote:

SF Hi all,
SF can anybody tell how do i disable the user's back button, i mean
SF that when he clicks the back button, in his browser, AFTER he has sigend
SF out or finished a transaction, he will get a message saying that the 
SF session has expired ... just the way hotmail does it.
SF thanx in advance.

You can do it with header EXPIRE on a site before. Give the time of
validity  to the past and after you go to next page and then to
prievious page you'd recieve a page like in hotmail.

I hope it helps

-- 
Best regards,
 Danielmailto:[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] log out solution?

2001-07-30 Thread Jack

Yes indeed, but not a good one. Beside, it appears to be the only solution
though. Someone told me to do this to solve the logout solution:
You do this for the login bit:
*
if (!isset($PHP_AUTH_USER) || $unauthorized)

$realm = myrealm_.time();
Header(WWW-Authenticate: Basic realm=\$realm\, stale=FALSE);
Header(Status: HTTP/1.0 401 Unauthorized);
print h1401 Unauthorized/h1Unable to authorize you. Please a
href=\$PHP_SELF\click here/a to try again.;
exit;
}
else // if they're not in the database, re-authenticate
{ // insert query here

if username and password are not match
{ 
header(Location: .$PHP_SELF.?unauthorized=1); 
}else{
$ID = mysql_result($result,0,0);
 print(meta http-equiv='refresh' content='1;url=http://yourtargetfile);
 } 
}
*

And you do this for the log out bit, it won't need user to close the browser but a 
user would have to click on the login pop up box once in order to logout completely.

**
Click a href=\login.php?unauthorized=1\here/a to log out.; 
**
The file login.php is basically your login file, it is to create a new realm time 
stamp, I think. If anyone at the list know a better solution would be good.
Jack
[EMAIL PROTECTED]
Love your enemies, it will drive them nuts
- Original Message - 
From: Ariunbold Gerelt-Od [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 2:03 AM
Subject: Did you find out a solution?


 You wrote:
 ___
 Hi people
 We all know we use PHP_AUTH_USER for login auhenthication, how about =
 when we need to logout? Can we just simply link them to someplace else =
 or do we need to anything special beside normal link?
 cheers
 Jack
 [EMAIL PROTECTED]
 Love your enemies, it will drive them nuts
 
 

 and I have a same problem as you wrote. If you solved it or somebody
 helped you ,could you please send me a solution.
 Thanx in advance.




-- 
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 header question.

2001-07-30 Thread Taylor, Stewart

The easiest solution is to create the failure variable as a session
variable.

-Stewart

-Original Message-
From: Matt Rogers [mailto:[EMAIL PROTECTED]]
Sent: 30 July 2001 04:00
To: [EMAIL PROTECTED]
Subject: [PHP] Re: HTTP header question.


I don't know how to solve your problem, but I do know what you are talking
about..  People just aren't understanding.

All he wants is if you go to login.php in your browser, the Location will
show:

http://his.website.com/rams/login.php

Okay?  Got it?  NOW...  If you attempt to log in and give the form an
INCORRECT login, he wants to SOMEHOW (and currently trying by headers) wants
the location to show this:

http://his.website.com/rams/login.php

AND NOT:

http://his.website.com/rams/login.php?failure=true

Is that hard to understand?
I hope I have helped to some degree.
--
---
-- MD Creations
- Matt Rogers
- Web Design Dept.
- [EMAIL PROTECTED]
Ben Bleything [EMAIL PROTECTED] wrote in message
01c11891$447271c0$0201a8c0@allegro">news:01c11891$447271c0$0201a8c0@allegro...
 Hey all,

 I want to craft a header such that it seems to the page that data has
 been POST'ed to it... Here's the situation:  I'm writing a login page to
 my application, and if they log in incorrectly, I want the page to
 redisplay, but I want it to throw out an error message.  I'm currently
 doing it by

 header(Location: login.php?failure=true);

 but I'd like to make it transparent.  Any ideas?

 Thanks,
 Ben




-- 
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] undefined Symbol PQoidValue

2001-07-30 Thread Stuart Grimshaw

I have recently upgraded PHP to the latest version, and also upgraded 
Postgres to the latest version. PHP worked fine after it's upgrade, but 
after the Postgres upgrade it is now broken.

I have recompiled  installed PHP, but when I try  start Apache, I get the 
following error message:

Syntax error on line 224 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: 
/usr/local/apache/libexec/libphp4.so: undefined symbol: PQoidValue

I have explicitly told php where to look for the postgres libs with the 
--with-psql=/usr/local/postgres/lib option and I still get the same error 
message.

What might be causing it?

-- 
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] Form Data

2001-07-30 Thread Gerard Samuel

Hey all.  Another thought.  In a form I have there is a drop down box 
with age groups.  ie 20-25 26-35 etc.  If I submit the form and echo the 
   variable for the dropdown box, the output is correct ie 20-25.
When I inject the variable in mysql, the data in the database is 20- or 
35-, its only part of the info.  What needs to done for this to work
correctly??

Thanks
Gerard


-- 
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: log out solution?

2001-07-30 Thread Jack

not yet, good one to know that. You should post this on to the list so that
people will share this together.
Jack
[EMAIL PROTECTED]
Love your enemies, it will drive them nuts
- Original Message -
From: Ariunbold Gerelt-Od [EMAIL PROTECTED]
To: Jack [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 2:34 AM
Subject: Re: log out solution?


 Thanx for your quick reply
 I've tried the below one and it seemed to work normally.
 But when I installed new Netscape 6.0 as my web browser this is stuff is
 not working.
 And have you tried it on NS6?

 Jack wrote:

  Yes indeed, but not a good one. Beside, it appears to be the only
solution
  though. Someone told me to do this to solve the logout solution:
  You do this for the login bit:
  *
  if (!isset($PHP_AUTH_USER) || $unauthorized)
 
  $realm = myrealm_.time();
  Header(WWW-Authenticate: Basic realm=\$realm\, stale=FALSE);
  Header(Status: HTTP/1.0 401 Unauthorized);
  print h1401 Unauthorized/h1Unable to authorize you. Please a
  href=\$PHP_SELF\click here/a to try again.;
  exit;
  }
  else // if they're not in the database, re-authenticate
  { // insert query here
 
  if username and password are not match
 

  header(Location: .$PHP_SELF.?unauthorized=1);
  }else{
  $ID = mysql_result($result,0,0);
   print(meta http-equiv='refresh'
content='1;url=http://yourtargetfile);
   }
  }
  *
 
  And you do this for the log out bit, it won't need user to close the
browser but a user would have to click on the login pop up box once in order
to logout completely.
 
  **
  Click a href=\login.php?unauthorized=1\here/a to log out.;
  **
  The file login.php is basically your login file, it is to create a new
realm time stamp, I think. If anyone at the list know a better solution
would be good.
  Jack
  [EMAIL PROTECTED]
  Love your enemies, it will drive them nuts
  - Original Message -
  From: Ariunbold Gerelt-Od [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, July 30, 2001 2:03 AM
  Subject: Did you find out a solution?
 
 
 
 You wrote:
 ___
 Hi people
 We all know we use PHP_AUTH_USER for login auhenthication, how about =
 when we need to logout? Can we just simply link them to someplace else =
 or do we need to anything special beside normal link?
 cheers
 Jack
 [EMAIL PROTECTED]
 Love your enemies, it will drive them nuts
 
 
 
 
 and I have a same problem as you wrote. If you solved it or somebody
 helped you ,could you please send me a solution.
 Thanx in advance.
 
 
 
 
 
  .
 
 





-- 
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] sendmail administration api?

2001-07-30 Thread Chris Fry

There's one included in Webmin:-

http://www.webmin.com/webmin

Chris

Christopher Cheng wrote:

 Does anybody know any Sendmail Administration API for PHP?

 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]

--

Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



-- 
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] Example high-profile PHP sites

2001-07-30 Thread Daniel Goldin \(E-mail\)

www.kinderstart.com

Major childrens portal. Php and MySql and some perl.

-Original Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 10:38 AM
To: Maurice Rickard
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Example high-profile PHP sites


So sprach »Maurice Rickard« am 2001-07-26 um 13:31:36 -0400 :
 a few marquee names wouldn't hurt matters.  But yeah, functionality
 (which is why I'm using it in the first place) should trump
 popularity.

Yep, I also like that sweet dream :)

Alexander Skwar
--
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 3 days 18 hours 20 minutes

--
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: doubt regarding mysql php

2001-07-30 Thread elias

a = b means
PASSWORD(a) = PASSWORD(b)

therefore,
if correct password is 'a' and it was stored in the database like
PASSWORD(a) then the user's inputed password is 'b' and must be equal like:
PASSWORD(a) = PASSWORD(b)

=

Balaji Ankem [EMAIL PROTECTED] wrote in message
002801c11741$14997940$[EMAIL PROTECTED]">news:002801c11741$14997940$[EMAIL PROTECTED]...
Hi dearest friend,
can we update the same row immediately after selection.

please see the following code at line number 29 it is giving error.

code


?php


  // Connect to MySQL

 $connection = mysql_connect( 'localhost', 'balaji', 'pingpong' )
 or die ( 'Unable to connect to server.' );

 // Select database on MySQL server

 mysql_select_db( 'imac' )
 or die ( 'Unable to select database.' );

 // Formulate the query (inv_tag will come by post method

 $sql1 = SELECT * FROM inventory WHERE inv_tag = '$inv_tag';

 // Execute the query and put results in $result

 $result1 = mysql_query( $sql1 )
 or die ( 'Unable to select the data from inventory.' );


 if ( $result1 )
 {

//change the status of the inventory item in inventory table

$sql2=UPDATE inventory SET inv_status=assigned where
inv_tag='$inv_tag' ;  // This is line number 29.

$result2 = mysql_query( $sql2 )
   or die ( 'Unable to execute query for upadation of
inventory table.' );

  $sql3 = insert into status
values('$inv_name','$inv_type','$inv_tag','$issued_to','$issued_by','$issue_
date');

 $result3 = mysql_query( $sql3 )
   or die ( 'Unable to execute query for insertion in to
status table.' );


  }

 else
 {

 // header( 'WWW-Authenticate: Basic realm=Private' );
 // header( 'HTTP/1.0 401 Unauthorized' );
  echo '$inv_tag does not exist';
  exit;

   }


  ?


please inform if any errors.

Thanks in advance.

Regards
-Balaji



-- 
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: PHP 4.0.6 + Postgres 7.1.2

2001-07-30 Thread Yasuo Ohgaki

Stuart Grimshaw stuart[get@smgsystems.co.uk wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Yasuo Ohgaki wrote:

  It works fine.
  You probably need to specify libpq location explicitly.
   --with-pgsql=/your/pgsql-7.1.2/somewhere

 I have, several times.

 and I did a rm config.cache, reconfigure  make clean in between each one
 too.

Where is your libpq and include file that comes with PostgreSQL 7.1.2? If they
are under /usr/local, I guess you have older one some where. If you don't need
older one, remove (or move somewhere) them.

Compiling PHP with PostgreSQL is straight forward, if you have only one version
of libpq and include file.

When you are sure that you have only one version of libpq and pgsql include. Try
make distclean; ./configure [options]; make.

Regards,
--
Yasuo Ohgaki


-- 
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: Form Data

2001-07-30 Thread elias

maybe the field is too small to hold the whole value?

some code might also help.

Gerard Samuel [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hey all.  Another thought.  In a form I have there is a drop down box
 with age groups.  ie 20-25 26-35 etc.  If I submit the form and echo the
variable for the dropdown box, the output is correct ie 20-25.
 When I inject the variable in mysql, the data in the database is 20- or
 35-, its only part of the info.  What needs to done for this to work
 correctly??

 Thanks
 Gerard




-- 
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] Text Database class

2001-07-30 Thread elias

I have hosting plan that doesn't support MySQL nor any Databases...Just PHP.

I'm wondering if there is any text database class that simulates the MySql
queries and function calls.

I mean text database, like all the values and data is stored in a raw text
file.



-- 
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: Text Database class

2001-07-30 Thread Henrik Hansen

[EMAIL PROTECTED] (Elias) wrote:

  I have hosting plan that doesn't support MySQL nor any Databases...Just PHP.
  
  I'm wondering if there is any text database class that simulates the MySql
  queries and function calls.
  
  I mean text database, like all the values and data is stored in a raw text
  file.

I dont, but you can get free mysql databases here, freesql.org

-- 
Henrik Hansen

-- 
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] NuSphere.. what is it???

2001-07-30 Thread Kraa de Simon

NuSphere added a table type called gemini.

From nusphere.com:

Gemini tables provide row-level locking, robust transaction support, and
reliable crash recovery.

It's not included in the free download.

I guess you also pay the easy install (*) and for e-mail/phone support.

(*) It takes a few minutes to install and configure MySQL, PHP, Apache,
Perl and some other stuff.

Simon.

 -Original Message-
 From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]]
 Sent: maandag 30 juli 2001 8:49
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] NuSphere.. what is it???
 
 
 snip
 
 What's the deal with that NuShere stuff... I visited their 
 website and 
 download a Free version (40MB)...
 snip
 
 what are we paying for here?
 snip
 
 I don't know.. Perhaps you pay for the tools.. or because of 
 the fact they 
 seem to preconfigure the stuff.. I didn't check their website.
 
 Must be quite some additions they made and tools they added 
 (or they didn't 
 bother to zip/gzip/whatever).. I downloaded MySQL, PHP and 
 Apache (all 
 latest releases).. that was about 17MB (manuals included)..
 
 You can download everything for free from www.mysql.com www.php.net 
 www.apache.org and a step to step guide to install everything 
 can be found 
 at www.devshed.com (amongst others)..
 
 So no reason to pay whatever amount to NuSphere.. If you need a 
 supportcontract for MySQL you could get one from the creators 
 .. found at 
 www.mysql.com
 Don't go to mysql.org since that's NuSphere trying to impersonate the 
 creators of MySQL..
 For MySQL www.mysql.com is the place to be.. all sorts of 
 tools can be 
 found there too best of all: it's FREE.
 
 Bye,
 
 
 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 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: compiling Apache for php

2001-07-30 Thread Yasuo Ohgaki

Richard Kurth [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 How can I recompile Apache so that I can use PHP4 as a Dynamic Module (DSO).
 This is a working server and I can not change the httpd.conf file so I do

You must be able to edit httpd.conf to enable PHP module anyway. Refer to
INSTALL file in source dist and PHP Manual.

If you are using RedHat, Apache supports DSO by default.

 not what to just do a compile and make install. Also there is not a copy
 of apxs on the server where can I get a copy of this. The server is
 running with RedHat 7.

Install apache-devel package.

 What are the dangers of recompiling Apache on
 a working server. By the way I know how to compile Apache and php

It is not dangerous if you know what is going on. Save copy of httpd.conf and
other configuration related files before you type make install just in case.
If you aren't familer with Apache/PHP, I suggest to try it on your spare
machine. Apache supports RedHat file layout, but it is not the same AFAIK. Refer
to Apache Manual and INSTALL instruction for detals.

Since some of RPM depends on Apahce, you might consider to install Apache to
default location.

Regards,
--
Yasuo Ohgaki




-- 
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] Generating mysql statement from php return an error :-(

2001-07-30 Thread James Holloway

If you want to separate insert statements, you can do it like this:

$big_insert_query = INSERT INTO table (id, col1, col2) VALUES ('',
'$col1_stuff[$i]', '$col2_stuff[$i]'), ('', '$col1_stuff[$i]',
'$col2_stuff[$i]'), ('', '$col1_stuff[$i]', '$col2_stuff[$i]'), ('',
'$col1_stuff[$i]', '$col2_stuff[$i]');

Ie, you specify the columns, and the values are a comma separated, bracket
enclosed list.  I dunno whether this frees up any resources, or has any
major advantages, though it's probably better practice ;)

I think this is only available in 3.22 or higher, though I could be
wrong

James

Ben Bleything [EMAIL PROTECTED] wrote in message
000801c11895$0d43b7a0$0201a8c0@allegro">news:000801c11895$0d43b7a0$0201a8c0@allegro...
 I _believe_ (not totally sure) that mysql_query() can only handle one
 statement at a time, and if you need to execute multiple, you will need
 to use more than one mysql_query() statements.  It's a bummer =  I have
 all sorts of problems with it.

 What's up with your return e-mail address?  It's a pain in the ass for
 all mails to you bouncing...

 Ben

 -Original Message-
 From: Jacques [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, July 29, 2001 5:47 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Generating mysql statement from php return an error :-(

 Hi,
 I'm using a table in my session to store my variable to generate later
 my
 sql statements.
 Until now... nothing very weird !
 But when I want to generate my sql statement. I've got an error after
 the
 first line where I put a comma
  ;  to make a difference within my statements.


 this is a portion of my code :
  $query.=Insert into product
 (id_quote,item,description,quantity,unit_price,ext_price,lead) values
 ('$QUOTE_NUMBER' , '.$TABLE_QUOTE_PRODUCT[$y][item].' ,
 '.$TABLE_QUOTE_PRODUCT[$y][description].',
   '.$TABLE_QUOTE_PRODUCT[$y][qty].' ,
 '.$TABLE_QUOTE_PRODUCT[$y][unitprice].' ,
   '.$TABLE_QUOTE_PRODUCT[$y][extprice].' ,
 '.$TABLE_QUOTE_PRODUCT[$y][leadtime].');\n;
  }
  $result=mysql_query($query);

 If I have only one line in my sql and I remove the ; it works.
 but If I add the ; to separate two sql lines error !

 Any idea how I can resolve this problem ?

 Regards,
 Jacques



 --
 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] HELP Getting error when compiling PHP

2001-07-30 Thread Richard Kurth

I am compiling php as a cgi but I get this error when I run make
 It says it cant find the file errno.h   but the file is in the
 directory it is looking in. What can I do to fix this.

[root php-4.0.6]# make
Making all in Zend
make[1]: Entering directory `/home/tmp/php-4.0.6/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../main   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12  -g -O2 -c
zend_language_scanner.c
In file included from /usr/include/errno.h:36,
 from zend_language_scanner.c:2718:
/usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
make[1]: *** [zend_language_scanner.lo] Error 1
make[1]: Leaving directory `/home/tmp/php-4.0.6/Zend'
make: *** [all-recursive] Error 1











Best regards,
 Richard  
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] Re: HELP Getting error when compiling PHP

2001-07-30 Thread Richard Kurth

Hello Yasuo,

How can I tell if I am missing header files before I go and replace
them

Monday, July 30, 2001, 1:38:58 AM, you wrote:


Yasuo Ohgaki Richard Kurth [EMAIL PROTECTED] wrote in message
Yasuo Ohgaki [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I am compiling php as a cgi but I get this error when I run make
  It says it cant find the file errno.h   but the file is in the
  directory it is looking in. What can I do to fix this.


 [root php-4.0.6]# make
 Making all in Zend
 make[1]: Entering directory `/home/tmp/php-4.0.6/Zend'
 /bin/sh ../libtool --silent --mode=compile
Yasuo Ohgaki gcc -DHAVE_CONFIG_H -I. -I. -I../main   -DSUPPORT_UTF8 
-DXML_BYTE_ORDER=12  -g -
Yasuo Ohgaki O2 -c zend_language_scanner.c
 In file included from /usr/include/errno.h:36,
  from zend_language_scanner.c:2718:
 /usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
 make[1]: *** [zend_language_scanner.lo] Error 1
 make[1]: Leaving directory `/home/tmp/php-4.0.6/Zend'
 make: *** [all-recursive] Error 1



Yasuo Ohgaki I'm sure you don't have kernel header.
Yasuo Ohgaki Install kernel header in your system and make a correct link for it.
Yasuo Ohgaki RPM will do the job if you are using RedHat or like.

Yasuo Ohgaki Regards,
Yasuo Ohgaki --
Yasuo Ohgaki Yasuo Ohgaki






-- 
Best regards,
 Richard  
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]




[PHP] RE: foreach and multiple arrays

2001-07-30 Thread Tim Ward

Why can't you create the arrays as associative arrays in the first place
$fred[] =
array(title=Apple,value=Red,size1=10,size2=20);
$fred[] =
array(title=Banana,value=Yellow,size1=10,size2=20);

then
foreach($fred as $thisfred)
foreach ($thisfred as $key=$value) ... do whatever ...;

Tim
--
From:  Chris Aitken [SMTP:[EMAIL PROTECTED]]
Sent:  30 July 2001 02:40
To:  [EMAIL PROTECTED]
Subject:  foreach and multiple arrays


Hi guys,

Something ive been working on and not having much success is this. I
am 
writing a function, and I want to be able to feed it the following -

function_name (
 array(Apple,Red,10,20),
 array(Banana,Yellow,10,20)
 );


now, basically what I want to be able to do is, take each array
andlist 
each entry in the array as a variable.. eg..

(first loop run)
$title=Apple;
$value=Red;
$size1=10;
$size2=20;

(first loop run)
$title=Banana;
$value=Yellow;
$size1=10;
$size2=20;



etc. The function may have any number of entries (1 onwards) etc. I
have 
played with foreach() and other variants, but I just cant seem to
find the 
right combo of code to get it working.

Any help would be appreciated.


Cheers


Chris


--
 Chris Aitken - Administration/Database Designer - IDEAL
Internet
  email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628
8890
  __-__
   *** Big Brother ***
It just shows that the dull will rule the world. And we will be
watching it.


-- 
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: Text Database class

2001-07-30 Thread Yasuo Ohgaki
"Elias" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Yes, But I still want to know if any Text Database class exist...

dbm or like? They are file based databases, not a text database though.
http://www.php.net/manual/en/ref.dba.php

--
Yasuo Ohgaki




-- 
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: Text Database class

2001-07-30 Thread Henrik Hansen

[EMAIL PROTECTED] (Elias) wrote:

  Yes, But I still want to know if any Text Database class exist...
  

dont know, but I know 2 possible ways you can do it,

using dbm files to store it in, http://www.php.net/manual/en/ref.dba.php
using xml files to store it in,
http://www.php.net/manual/en/ref.domxml.php and 
http://www.php.net/manual/en/ref.xml.php

-- 
Henrik Hansen

-- 
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 to clear cache THROUGH HTML PAGE

2001-07-30 Thread Balaji Ankem



hI! dearest friends,
 i want to clear cache after logout.
In logout.html i want to clear previous cache 
total.

Thanks in advance

Regards
-Balaji

The Information contained and transmitted by this E-MAIL is proprietary to 
Wipro Limited and is intended for  use only by the individual or entity to which 
it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If this is a forwarded message, 
the content of this E-MAIL may not have been sent with the authority of the 
Company. If you are not the intended recipient, an agent of the intended 
recipient or a  person responsible for delivering the information to the named 
recipient,  you are notified that any use, distribution, transmission, printing, 
copying or dissemination of this information in any way or in any manner is 
strictly prohibited. If you have received this communication in error, please 
delete this mail  notify us immediately at [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: Text Database class

2001-07-30 Thread elias

Thanks guys, I had no idea about this:
http://www.php.net/manual/en/ref.dba.php
I'll take a look to make sure if that's what i really want.

Elias [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have hosting plan that doesn't support MySQL nor any Databases...Just
PHP.

 I'm wondering if there is any text database class that simulates the MySql
 queries and function calls.

 I mean text database, like all the values and data is stored in a raw text
 file.





-- 
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 to set no cache in html file.

2001-07-30 Thread Balaji Ankem

Hi, friend,
I want to disable back button or no cache after displaying logout  html
file.

Thanks in advance
Regards
-Balaji



The Information contained and transmitted by this E-MAIL is proprietary to 
Wipro Limited and is intended for  use only by the individual or entity to which 
it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If this is a forwarded message, 
the content of this E-MAIL may not have been sent with the authority of the 
Company. If you are not the intended recipient, an agent of the intended 
recipient or a  person responsible for delivering the information to the named 
recipient,  you are notified that any use, distribution, transmission, printing, 
copying or dissemination of this information in any way or in any manner is 
strictly prohibited. If you have received this communication in error, please 
delete this mail  notify us immediately at [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] NuSphere.. what is it???

2001-07-30 Thread B. van Ouwerkerk


NuSphere added a table type called gemini.

 From nusphere.com:

Gemini tables provide row-level locking, robust transaction support, and
reliable crash recovery.

Transactions.. you don't need Gemini to have transactions.. INNOBASE (might 
be it's called INNODB.. think theres an issue with INNOBASE as name).
According to the manual theres an MySQL way to repair your database.. And 
MySQL AB is going to create a safe replication scema.. according to the 
manual.txt found in 3.23.36 .. that is..

Since Gemini is not included in the free download I wonder why that is 
about 23MB larger than the seperate parts you can download from other 
websites.. Sure.. a few scripts.. but that shouldn't take much space..

I guess you also pay the easy install (*) and for e-mail/phone support.

lists @php.net and @mysql.com are FREE.. Phone support is (in my 
experience) only good for simple problems.. but.. perhaps their support is 
much better than that..

(*) It takes a few minutes to install and configure MySQL, PHP, Apache,
Perl and some other stuff.

Uhm, it doesn't take that long to install from source using the 
instructions found on www.devshed.com .. but that highly depends on the 
hardware you're using.

Bye,



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] Revision Tracking - program concept

2001-07-30 Thread Dave Freeman

G'day All

I'm writing an application for an intranet environment.  At the moment I'm 
writing a document control system.  The intention is that people will be 
able to check in documents (generally created in MS Word from 
templates) and the app will upload them to the server.

The process related to this involves other people then checking the 
documents back out and making appropriate changes based on their 
responsibilities and then checking the documents back into the system 
again.

What I would like to do is keep track of each revision of these documents 
(ie. actually provide a capability to review earlier revisions, or, indeed, 
revert to earlier revisions).

At this stage I am planning to track information about each document in 
an SQL table but not actually store the binary data in the table (there are 
additional reasons behind this).

The only solution I've come up with that will easily implement some sort of 
revision system would be to store only the last five, for example, revisions 
and then use duplicate SQL tables to store older iterations of the 
document with suitable links in the SQL back to the current version.

Can anyone suggest an alternate approach that will let me do this?

More from a program logic point of view than from an actual code example 
point of view really.  I guess that makes this close to off-topic but there 
you go - hopefully it won't be considered too out of place.

CYA, Dave


---
Outback Queensland Internet - Longreach, Outback Queensland - Australia
http://www.outbackqld.net.au  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]




[PHP] Re: Form Data

2001-07-30 Thread Adam

maybe your field is set to INT



-- 
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] Special Deal This Week Only !!!

2001-07-30 Thread free







(This safeguard is not inserted when using the registered version)













(This safeguard is not inserted when using the registered version)










RE: [PHP] NuSphere.. what is it???

2001-07-30 Thread Kraa de Simon

I agree on most parts, but is there transaction support in MySQL?

So if I try to do 2 updates and the application crashes in the middle, the
1st update is rolled back?

S.

 -Original Message-
 From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]]
 Sent: maandag 30 juli 2001 12:13
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] NuSphere.. what is it???
 
 
 
 NuSphere added a table type called gemini.
 
  From nusphere.com:
 
 Gemini tables provide row-level locking, robust transaction 
 support, and
 reliable crash recovery.
 
 Transactions.. you don't need Gemini to have transactions.. 
 INNOBASE (might 
 be it's called INNODB.. think theres an issue with INNOBASE as name).
 According to the manual theres an MySQL way to repair your 
 database.. And 
 MySQL AB is going to create a safe replication scema.. 
 according to the 
 manual.txt found in 3.23.36 .. that is..
 
 Since Gemini is not included in the free download I wonder 
 why that is 
 about 23MB larger than the seperate parts you can download from other 
 websites.. Sure.. a few scripts.. but that shouldn't take much space..
 
 I guess you also pay the easy install (*) and for 
 e-mail/phone support.
 
 lists @php.net and @mysql.com are FREE.. Phone support is (in my 
 experience) only good for simple problems.. but.. perhaps 
 their support is 
 much better than that..
 
 (*) It takes a few minutes to install and configure 
 MySQL, PHP, Apache,
 Perl and some other stuff.
 
 Uhm, it doesn't take that long to install from source using the 
 instructions found on www.devshed.com .. but that highly 
 depends on the 
 hardware you're using.
 
 Bye,
 
 
 
 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 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] NuSphere.. what is it???

2001-07-30 Thread Alexander Wagner

Kraa de Simon wrote:
 I agree on most parts, but is there transaction support in MySQL?

Berkley-DB tables support transactions.

regards
Wagner

-- 
Madness takes its toll. Please have exact change.

-- 
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] Need for dox...

2001-07-30 Thread Gabriele Biondo

Hi... i would like to have more infos about the sessions in PHP.
Where could i found them???

Thanks in advance

Gabriele



RE: [PHP] Need for dox...

2001-07-30 Thread Jon Haworth

You've already checked the php.net site before asking this, I take it.

Oh wait... http://www.php.net/manual/en/ref.session.php

Maybe not :-)

Cheers
Jon


-Original Message-
From: Gabriele Biondo [mailto:[EMAIL PROTECTED]]
Sent: 30 July 2001 12:25
To: PHP
Subject: [PHP] Need for dox...


Hi... i would like to have more infos about the sessions in PHP.
Where could i found them???

Thanks in advance

Gabriele

-- 
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: Need for dox...

2001-07-30 Thread Henrik Hansen

[EMAIL PROTECTED] (Gabriele Biondo) wrote:

  Hi... i would like to have more infos about the sessions in PHP.
  Where could i found them???

have you read the manual pages for sessions? (php.net/session).

here are some from phpbuilder:
http://www.phpbuilder.com/columns/mattias2105.php3
http://www.phpbuilder.com/columns/mattias2312.php3
http://www.phpbuilder.com/columns/ying2602.php3

-- 
Henrik Hansen

-- 
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] calling javascript functions inside PHP

2001-07-30 Thread Dean Martin

I use a PHP self-validating form for taking orders off my site. (on submit
it calls itself and if there are no errors a send variable is set and it
emails me the information, etc - standard stuff).

I'd like to start taking CC orders and would like to encode the information
using javascript
http://javascript.internet.com/passwords/virgenere-encryption.html.  I'll
use a hidden value as a codephrase to encode the CC number, then when I
receive the order I can go to a secure page on the site to decrypt it.

The question is - how do I call a javascript function from my PHP code?  I
want to do the encoding just before I email the form variables.  ie -

if ($send == yes){
do javascript encoding of cc number
$mail (information to me)
echo (Your Order has been sent)
}

Thanks for any help,
Dean


-- 
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] calling javascript functions inside PHP

2001-07-30 Thread Bruin, Bolke de

Short:

You cannot

why:

PHP is serverside JavaScript is clientside


solution:

encode the cc number in PHP or use SSL for encryption. Or let the javascript
version encode it anyway 
although it's not send and let the PHP checkf or the value of send and cc
number (that is kind of
what you are doing anyway). Another way is to use Java on the serverside (!=
JavaScript of course)

Btw. You're not going to encrypt cc numbers without a ssl connection are
you?


Bolke

-Oorspronkelijk bericht-
Van: Dean Martin [mailto:[EMAIL PROTECTED]]
Verzonden: Monday, July 30, 2001 1:40 PM
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] calling javascript functions inside PHP


I use a PHP self-validating form for taking orders off my site. (on submit
it calls itself and if there are no errors a send variable is set and it
emails me the information, etc - standard stuff).

I'd like to start taking CC orders and would like to encode the information
using javascript
http://javascript.internet.com/passwords/virgenere-encryption.html.  I'll
use a hidden value as a codephrase to encode the CC number, then when I
receive the order I can go to a secure page on the site to decrypt it.

The question is - how do I call a javascript function from my PHP code?  I
want to do the encoding just before I email the form variables.  ie -

if ($send == yes){
do javascript encoding of cc number
$mail (information to me)
echo (Your Order has been sent)
}

Thanks for any help,
Dean


-- 
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] Connecting PHP to SQL Server

2001-07-30 Thread webmaster uva

Hello,
I have to connect one Solaris computer (Netscape Enterprise Server) with PHP to 
another one with NT (database SQL Server).
I have to get data from the SQL Server database using PHP.
Is it possible?
How?
Thankyou.
Regards.
Félix García Renedo
  mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
  Tfn: 983-423000 Ext. 26520
  Fax: 983-423271
Centro de Telecomunicaciones e Informatica
Universidad de Valladolid
España




RE: [PHP] Need for dox...

2001-07-30 Thread B. van Ouwerkerk

At 12:36 30-7-01 +0100, Jon Haworth wrote:
You've already checked the php.net site before asking this, I take it.

Oh wait... http://www.php.net/manual/en/ref.session.php

Maybe not :-)

H, you could even download them

Bye,


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] Reading from remote files

2001-07-30 Thread Paul Uttley

I am trying to read in a nav bar from a remote web page into my web page.
There is a comment at the start !-- 1st Column start -- and one at the end
!-- 1st Column end --, and i want to be able to read in everything between
these two comments.

If anyone can help it would be greatly apprecited.

Thanks Paul Uttley



-- 
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] splitting a string in half

2001-07-30 Thread Adam

I wish to split my databased string in half to be shown on 2 seperate
columns, but also preserve whole words. Is there a function that does this
already? Maybe a quick fix? Hopefully something that doesn't include html
tags as part of the string to split. If it's not that specific then that's
okay.

-Adam



-- 
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: HELP Getting error when compiling PHP

2001-07-30 Thread Yasuo Ohgaki

Richard Kurth [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello Yasuo,

 How can I tell if I am missing header files before I go and replace
 them

I don't know which distoribution/kernel you are using. Anyway, you should be
able to query if you have been installed kernel-header packages by your package
manager.

For rpm, rpm -qa | grep kernel and see if there is package name like
kernel-header-*. You should have /usr/include/linux and /usr/include/asm at
least, if kernel headers are installed.

If you're compiled kernel by yourself, you may need to make a sym link/copy
header by yourself.

Regards,
--
Yasuo Ohgaki





-- 
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] Need for dox...

2001-07-30 Thread Gabriele Biondo

Thanks buddies...

I didn't know the http://www.phpbuilder.com/ site!!! 
many, many thanks.

Gabriele


-- 
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 header question.

2001-07-30 Thread Dave

still don't see the need to pass as a header...

?PHP
$success=0;
$failure_notice='';
if($login){
# lets say we are checking against database for valid user
#connect to db
#do your query
#get result in $valid_login, $valid_pass
if($login==$valid_login  $passwd=$valid_pass) {
$success=1
}else{
$failure_notice='FAILED';
}
}else{
# nothing - not loggin in
}
if($success=1){
#correct login, proceed to page
header(wherever.php);  #make sure no output to screen
}else{
#login failed, we have to reprint the login with the failure notice
echo $failure_notice;
#willshow failed if login failed and nothing if first display of screen
echo 'form...
input... name=login value='.$login.'';
#will display login so user doesnt' have to retype
}
?

you avoid the http://his.website.com/rams/login.php?failure=true as you just get
login.php each time as far as the displayed URL.

my opinion, let the scripting handle all the logic and ease off the header
functions.


-Original Message-
From: Matt Rogers [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 29, 2001 11:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: HTTP header question.


I don't know how to solve your problem, but I do know what you are talking
about..  People just aren't understanding.

All he wants is if you go to login.php in your browser, the Location will
show:

http://his.website.com/rams/login.php

Okay?  Got it?  NOW...  If you attempt to log in and give the form an
INCORRECT login, he wants to SOMEHOW (and currently trying by headers) wants
the location to show this:

http://his.website.com/rams/login.php

AND NOT:

http://his.website.com/rams/login.php?failure=true

Is that hard to understand?
I hope I have helped to some degree.
--
---
-- MD Creations
- Matt Rogers
- Web Design Dept.
- [EMAIL PROTECTED]
Ben Bleything [EMAIL PROTECTED] wrote in message
01c11891$447271c0$0201a8c0@allegro">news:01c11891$447271c0$0201a8c0@allegro...
 Hey all,

 I want to craft a header such that it seems to the page that data has
 been POST'ed to it... Here's the situation:  I'm writing a login page to
 my application, and if they log in incorrectly, I want the page to
 redisplay, but I want it to throw out an error message.  I'm currently
 doing it by

 header(Location: login.php?failure=true);

 but I'd like to make it transparent.  Any ideas?

 Thanks,
 Ben




--
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] Need for dox...

2001-07-30 Thread B. van Ouwerkerk


I didn't know the http://www.phpbuilder.com/ site!!!
many, many thanks.

/me likes to uses a searchengine if /me needs some info on a topic..

Does help you know..

Bye,



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] Re: calling javascript functions inside PHP

2001-07-30 Thread elias

you really can't do that...
try translating the decoding algorithm to PHP.

Dean Martin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I use a PHP self-validating form for taking orders off my site. (on submit
 it calls itself and if there are no errors a send variable is set and it
 emails me the information, etc - standard stuff).

 I'd like to start taking CC orders and would like to encode the
information
 using javascript
 http://javascript.internet.com/passwords/virgenere-encryption.html.  I'll
 use a hidden value as a codephrase to encode the CC number, then when I
 receive the order I can go to a secure page on the site to decrypt it.

 The question is - how do I call a javascript function from my PHP code?  I
 want to do the encoding just before I email the form variables.  ie -

 if ($send == yes){
 do javascript encoding of cc number
 $mail (information to me)
 echo (Your Order has been sent)
 }

 Thanks for any help,
 Dean




-- 
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] Need for dox...

2001-07-30 Thread Jeff Lewis

No need to get nasty :)  Keep the list friendly, it's better that way ;)

Jeff
- Original Message - 
From: B. van Ouwerkerk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 8:53 AM
Subject: Re: [PHP] Need for dox...


 
 I didn't know the http://www.phpbuilder.com/ site!!!
 many, many thanks.
 
 /me likes to uses a searchengine if /me needs some info on a topic..
 
 Does help you know..
 
 Bye,


-- 
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: Text Database class

2001-07-30 Thread elias

http://www.php.net/manual/en/ref.dba.php
wasn't what I really wanted,

Any other ideas to use text databases?

Elias [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have hosting plan that doesn't support MySQL nor any Databases...Just
PHP.

 I'm wondering if there is any text database class that simulates the MySql
 queries and function calls.

 I mean text database, like all the values and data is stored in a raw text
 file.





-- 
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] Call to a member function on a non-object error!

2001-07-30 Thread Greg Fyans

Fatal error: Call to a member function on a non-object in 
/home/cmradmin/public_html/thus/basket.php on line 304


Does anyone know what the flaming heck that means?  I'm trying to fix this little 
problem which has only appeared since my webserver upgraded to PHP4.


Line 304 contains this:

$MyCart-Display($Orderno);


Which is calling the function from this class:

class MyCart extends Cart {
  
function Display($orderno)
{
 echo called dummy...;  //  this isnt the real function this is just a dummy
}
}


I can't quite figure out the error message itself, it doesnt really make any sense.

Any help appreciated!

Cheers.

--
Greg Fyans
[EMAIL PROTECTED]



[PHP] Re: Call to a member function on a non-object error!

2001-07-30 Thread Henrik Hansen

[EMAIL PROTECTED] (Greg Fyans) wrote:

  Fatal error: Call to a member function on a non-object in 
 /home/cmradmin/public_html/thus/basket.php on line 304
  Does anyone know what the flaming heck that means?  I'm trying to fix this little 
 problem which has only appeared since my webserver upgraded to PHP4.
  Line 304 contains this:
  
$MyCart-Display($Orderno);
  

have you initialized you object before using it?
like:

$MyCart = new MyCart;

-- 
Henrik Hansen

-- 
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: Text Database class

2001-07-30 Thread Henrik Hansen

[EMAIL PROTECTED] (Elias) wrote:

  http://www.php.net/manual/en/ref.dba.php
  wasn't what I really wanted,
  
  Any other ideas to use text databases?
  

xml, csv files, what do you need excatly and how advanced?

-- 
Henrik Hansen

-- 
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: Text Database class

2001-07-30 Thread elias

thanks for sharing http://www.freesql.org link!

Henrik Hansen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 [EMAIL PROTECTED] (Elias) wrote:

   Yes, But I still want to know if any Text Database class exist...
  

 dont know, but I know 2 possible ways you can do it,

 using dbm files to store it in, http://www.php.net/manual/en/ref.dba.php
 using xml files to store it in,
 http://www.php.net/manual/en/ref.domxml.php and
http://www.php.net/manual/en/ref.xml.php

 --
 Henrik Hansen



-- 
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 tools do you use to develop PHP?

2001-07-30 Thread Gerry Kirk

Hi,

I'm putting together a PHP development framework for our small group. We
have worked on a couple of small apps, so now it's time to do things a
little more methodically, i.e. make life easier for everyone. :)

So, I scanned the web and found quite a few options for code libraries,
and a few for PHP code editors. 

I'm interested to know what tools / libraries people prefer -

1. Code libraries:
a) Metabase (for database abstraction)
b) PHPLib
c) PEAR
d) BinaryCloud
e) other

2. What code editor do you use?

3. Source code control. CVS appears to be the only real option here.

TIA,
Gerry


-- 
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 tools do you use to develop with PHP? (more questions)

2001-07-30 Thread Gerry Kirk

I forgot to also ask, how many are using templates, and if so, are you
using a template framework:
a) PHPLib
b) Smarty
c) other?

Gerry


-- 
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 tools do you use to develop PHP?

2001-07-30 Thread Justin Farnsworth

1.  We prefer binarycloud for many, many reasons.  I suggest
everyone at least look into this touchstone that finally
and elegantly separates layout from content...
2.  vim
3.  RCS/CVS

_justin




Gerry Kirk wrote:
 
 Hi,
 
 I'm putting together a PHP development framework for our small group. We
 have worked on a couple of small apps, so now it's time to do things a
 little more methodically, i.e. make life easier for everyone. :)
 
 So, I scanned the web and found quite a few options for code libraries,
 and a few for PHP code editors.
 
 I'm interested to know what tools / libraries people prefer -
 
 1. Code libraries:
 a) Metabase (for database abstraction)
 b) PHPLib
 c) PEAR
 d) BinaryCloud
 e) other
 
 2. What code editor do you use?
 
 3. Source code control. CVS appears to be the only real option here.
 
 TIA,
 Gerry
 
 --
 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]

-- 
Justin Farnsworth
Eye Integrated Communications
321 South Evans - Suite 203
Greenville, NC 27858 | Tel: (252) 353-0722

-- 
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 tools do you use to develop PHP?

2001-07-30 Thread Ralf Geschke

 I'm interested to know what tools / libraries people prefer -
 
 1. Code libraries:
 a) Metabase (for database abstraction)
 b) PHPLib
 c) PEAR
 d) BinaryCloud
 e) other

A mixture of PEAR's database abstraction, PHPLIB's template class and my own
libraries and classes. 

 2. What code editor do you use?

Emacs. Nothing else. 

 3. Source code control. CVS appears to be the only real option here.

Yes. 


   Ralf

-- 
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] Need for dox...

2001-07-30 Thread B. van Ouwerkerk

At 09:08 30-7-01 -0400, Jeff Lewis wrote:
No need to get nasty :)  Keep the list friendly, it's better that way ;)

HUH

/me is always friendly..

Seriously.. you can get lots of information from searchengines..

Bye,


B.


Yeah, there are more important things in life then money,
but they won't get out with you if you don't have any.


-- 
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] Teen Hobos having sex? ..no.. but MAYBE

2001-07-30 Thread Andrew Sterling Hanenkamp

Actually, if you use telnet you can write your own headers and say 
you've been refered by whoever you want to say you were refered by and 
then use the script anyway, because you'll just say you came from 
someplace where they have a form. This script is very bad. I submitted 
an update to the archive which adds an additional constraint to it by 
allowing users to only send to certain domains or only certain 
addresses, but I never received word back so I had assumed that the site 
was not very actively maintained.

Any script you write that allows a user to sendmail should ALWAYS CHECK 
THE RECIPIENT to make sure it's not just anyone. I've quit using that 
script in favor of my PHP script that just translates keys given in the 
form into real addresses so that the formmail doesn't even really get 
the ability to send to just anyone.

Sterling

PS - If you or anyone else is interested in the script, I can send it to 
them. (If I get a lot of requests I just post it on my web site since 
Matt's Script Archive never posted my update.)

Thomas Deliduka wrote:

 This is a classic case of someone not having formmail.pl from Matt's Script
 archive locked down.
 
 I found it very interesting that while Matt's Script Archive is setup to
 block you from using someone else's form as a referer to yours to prevent
 the use of your script from another server, he simply allows you through if
 you have no referer at all. And that's how someone used our server several
 times about 6 months ago. If you format a perfect querystring and simply hit
 enter on the browser, you can successfully send many people e-mail through
 formmail.pl if it's not modified to block 'no referer' references.
 
 On 7/26/2001 8:29 PM this was written:
 
 
Below is the result of your feedback form.  It was submitted by
([EMAIL PROTECTED]) on Thursday, July 26, 2001 at 20:29:47
---

: Join for free Today.
Free Memberships. No Credit Cards Needed.
HUGE Celebrity selection from Jennifer Lopez to Britney Spears.
Also Specializing Streaming Video, Live sex shows for every desire!
This isn't one of those crummy scams where you have touse a credit card!
Take a look and you'll see.
a href=aol://2000:http://coverme1.devil.ru;Enter Here/a


BRBRBRBRBRBRBR

You recived this email because you subscribed to a mailing list. If you would
like to be removed from this mailing list please a
href=mailto:[EMAIL PROTECTED];Click Here!/aBRBRBRBRBRBRBR

---


-- 
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] Need for dox...

2001-07-30 Thread Gabriele Biondo

Thanx again, buddies.
The pages you listed were really useful...

... is there a better search engine than the experience of other people that
faced the
problem before???

Later, friends!


- Original Message -
From: B. van Ouwerkerk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 3:53 PM
Subject: Re: [PHP] Need for dox...


 At 09:08 30-7-01 -0400, Jeff Lewis wrote:
 No need to get nasty :)  Keep the list friendly, it's better that way ;)

 HUH

 /me is always friendly..

 Seriously.. you can get lots of information from searchengines..

 Bye,


 B.


 Yeah, there are more important things in life then money,
 but they won't get out with you if you don't have any.


 --
 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] Admin help please!

2001-07-30 Thread B. van Ouwerkerk

At 08:13 30-7-01 -0500, Erich Kolb wrote:
How do I contact the administrator of this list?

ezmlm lists? by default something like listname-owner@domain

So.. for php general help thats:
[EMAIL PROTECTED]

Uhm, this was also in the welcome messages you got when you subscribed.

Bye,


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]




Re: [PHP] Re: HTTP header question.

2001-07-30 Thread Matt Rogers

Some of the original message:
 still don't see the need to pass as a header...

 you avoid the http://his.website.com/rams/login.php?failure=true as you
just get
 login.php each time as far as the displayed URL.

 my opinion, let the scripting handle all the logic and ease off the header
 functions.

The whole idea behind his point is so the user cannot see what's going on
behind the scenes.  It's just another method of making it look more
professional.

It's not really a case of headers, Ben just wanted to know if it is at all
possible to use PHP to keep the URL from showing the query as opposed to
having to use JavaScript or anything else.

People kept giving him different solutions to something he didn't need
solutions for -- he already had the verification and if-then's down in the
script... He just wanted one little thing about making the browser show only
the simple URL and not let it change.  That's all.   =)

What a confusing thread, eh?  hehe..  At least if someone wants to read
something funny and understands the American Language, this is the thread to
read...
---
-- MD Creations
- Matt Rogers
- Web Design Dept.
- [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: url to link

2001-07-30 Thread bill

Hi Matthias,

I tried it but it didn't work.  It returned a Document contains no data error.

I put the preg_replace info all on one line.  Could that have affected any
whitespace?

kind regards,

bill

Matthias Winkelmann wrote:

 This uses just one expression (and that is a fast preg_ insteat of ereg) for
 both, mailto: and http: links (and news:, too):

 $text =
 preg_replace('#(^|[^\=]{1})(http://|ftp://|mailto:|news:)([^\s]+)([\s\n
 ]|$)#sm',\\1a href=\2\\3\\\
 target=\\\blank\\\u\\2\\3/u/a\\4,$text);

 ciao,

 matt

 --
 s o m e o n   GmbH
 Community Software  Service

 Elberfelder Str. 8Tel. +49 (0)2104 171337
 40822 Mettmann  Fax  +49 (0)2104 171 339
 Germany

 [EMAIL PROTECTED]   http://someon.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] Array Bug?

2001-07-30 Thread Robert Covell

Recently I have noticed very strange occurances with PHP and arrays and
cannot for the life of me figure out why.  When I deal with a large array,
+2000 entries the Apache child process Aborts.  The same is true when I am
working with about 20 different arrays the vary in length, ranging from 3 to
30(total lines of code~230).  To make it stranger, the later case mentioned,
works in PHP Version 4.0.4pl1 and does not work in PHP Version 4.0.6.

I switched to PHP Version 4.0.6 because the 4.0.4p1 child process was
Aborting when I tried to add words from MySql to a pspell dictionary.  I
verified that the data was actually returning from MySql and that it got the
code to add it to the dictionary:

--Code Example---
//Test loop to recreate crash manually without MySql
//  for ($y=0;$y2000;$y++)
//  $wordlist[]=$y;
$query = select check_word from dictionary;
$words = $db-selectQuery($query);

//  for ($q=0;$q2;$q++)
for ($q=0; $qcount($words); $q++)
{
$word = $words[$q][check_word];
//  $wordlist[] = $words[$q][check_word];
echo br . $word;
$wordlist[]=$word;
}
//The data is all there
print_r($wordlist);

$sp = new SpellChecker($symbols, $wordlist, $wrongcolor);

In SpellChecker.checkSpelling()---
//  for ($i=0;$i5;$i++)
for ($i=0;$icount($this-wordlist);$i++)
pspell_add_to_personal ($pspell_link, $this-wordlist[$i]);

If I comment out the above line to add only 5 elements to the list it
Aborts.  If I change the 5 to a 4, it works.

The data at element 5 is: ACCP's
for live data.

And for test data it is: 5

In either case, live data or test data, the child apache process aborted
with both versions of PHP.  PHP 4.0.4pl1 did not crash when including a file
with a list of arrays that are used for site Default values whereas 4.0.6
did.  I have gone back to PHP 4.0.4pl1 for now.

Sincerely,

Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: [EMAIL PROTECTED]
Phone: 816.210.7145
Fax: 816.753.1952


-- 
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] Array Bug?

2001-07-30 Thread Alexander Wagner

File a bug-report on bugs.php.net

regards
Wagner

-- 
Madness takes its toll. Please have exact change.

-- 
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] Array Bug?

2001-07-30 Thread Robert Covell

Thanks for the heads up.  I wanted to see if anyone else was having a
similar experience before filing a bug.

Sincerely,

Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: [EMAIL PROTECTED]
Phone: 816.210.7145
Fax: 816.753.1952

-Original Message-
From: Alexander Wagner [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 9:22 AM
To: Robert Covell; Php-General
Subject: Re: [PHP] Array Bug?


File a bug-report on bugs.php.net

regards
Wagner

--
Madness takes its toll. Please have exact change.

--
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] move_uploaded_file permissions

2001-07-30 Thread bill

I tried the new move_uploaded_file() function.  It seems to work fine
but doesn't assign any permissions to the moved file, not even for
reading.

Is there any way around this? Can I define the permissions myself?

kind regards,

bill hollett


-- 
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] Connecting PHP to SQL Server

2001-07-30 Thread Mark Roedel

 -Original Message-
 From: webmaster uva [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 30, 2001 6:56 AM
 To: php
 Subject: [PHP] Connecting PHP to SQL Server
 
 
 I have to connect one Solaris computer (Netscape Enterprise
 Server) with PHP to another one with NT (database SQL Server).

 I have to get data from the SQL Server database using PHP.

 Is it possible?

Definitely possible.

You'll want to install the FreeTDS libraries (http://freetds.org/) on
the Solaris machine, then rebuild PHP using the --with-sybase option
when you run configure.  That'll enable a set of mssql functions for you
to use.


---
Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full.
 LeTourneau University  ||-- Henry Kissinger


--
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] Connecting PHP to SQL Server

2001-07-30 Thread Andrew Hill

Hi,

One fairly straightfoward way is to use an ODBC driver.  You will want to
compile PHP --with-iodbc as per the HOWTO on www.iodbc.org, and then install
your ODBC driver of choice.  OpenLink supports the Solaris-to-SQLServer
architecture with our Multi-Tier drivers, which are available for a free
download and come with a non-expiring 2-user license.

Free support is also available at
http://www.openlinksw.com/support/suppindx.htm should you run into problems.

Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software  http://www.openlinksw.com
Universal Data Access  Data Integration Technology Providers

 -Original Message-
 From: webmaster uva [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 30, 2001 7:56 AM
 To: php
 Subject: [PHP] Connecting PHP to SQL Server


 Hello,
 I have to connect one Solaris computer (Netscape Enterprise
 Server) with PHP to another one with NT (database SQL Server).
 I have to get data from the SQL Server database using PHP.
 Is it possible?
 How?
 Thankyou.
 Regards.
 Félix García Renedo
   mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
   Tfn: 983-423000 Ext. 26520
   Fax: 983-423271
 Centro de Telecomunicaciones e Informatica
 Universidad de Valladolid
 Españ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]




[PHP] exec'ing sendmail?

2001-07-30 Thread Kevin Price-Ward

Hi,

I am experiencing problems with an email distribution utility using the mail
function, the 'Return-path' header that I specify gets overwritten by
sendmail.

I write: Return-Path: [EMAIL PROTECTED]\n

but sendmail re-writes this as: Return-Path: [EMAIL PROTECTED]

My plan is to exec sendmail and use the -f flag to specify a return-path, I
can do this from the command line but I am unsure how to go about doing this
from within php basically what are the principals of using the exec
function, specifically with sendmail and do I have to close the process
after each mail that's sent.

Many thanks

Kevin Price-Ward
tmx newmedia
-


-- 
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: What tools do you use to develop PHP?

2001-07-30 Thread Matt Rogers

I like PHPCoder for Winblowz:

http://www.phpide.de


There are a couple of others, but this one lets you do all kinds of stuff
built-in.  Of course, it's for Windows and you have to download the
documentation (mySQL, PHP, and htmlhelp.com's HTML docs)

And the fact that it's still kinda buggy But it works and keeps me from
having to load a bunch of different programs all at once to write, upload,
and test my php scripts. =)

(I'm a Beta enthuisiast)
---
-- MD Creations
- Matt Rogers
- Web Design Dept.
- [EMAIL PROTECTED]
Gerry Kirk [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 I'm putting together a PHP development framework for our small group. We
 have worked on a couple of small apps, so now it's time to do things a
 little more methodically, i.e. make life easier for everyone. :)

 So, I scanned the web and found quite a few options for code libraries,
 and a few for PHP code editors.

 I'm interested to know what tools / libraries people prefer -

 1. Code libraries:
 a) Metabase (for database abstraction)
 b) PHPLib
 c) PEAR
 d) BinaryCloud
 e) other

 2. What code editor do you use?

 3. Source code control. CVS appears to be the only real option here.

 TIA,
 Gerry




-- 
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 header question.

2001-07-30 Thread Dave

below

Some of the original message:
 still don't see the need to pass as a header...

 you avoid the http://his.website.com/rams/login.php?failure=true as you
just get
 login.php each time as far as the displayed URL.

 my opinion, let the scripting handle all the logic and ease off the header
 functions.

The whole idea behind his point is so the user cannot see what's going on
behind the scenes.  It's just another method of making it look more
professional.

I understand that much, but don't see why he would want to do a
header('filename') redirection at all in case of a failure?

It's not really a case of headers, Ben just wanted to know if it is at all
possible to use PHP to keep the URL from showing the query as opposed to
having to use JavaScript or anything else.

People kept giving him different solutions to something he didn't need
solutions for -- he already had the verification and if-then's down in the
script... He just wanted one little thing about making the browser show only
the simple URL and not let it change.  That's all.   =)

Understood.  My point is that he appears to be using the wrong tool for the job,
and solving a problem where if done otherwise would not exist.

My impression is he is posting a login to a page and redirecting back to the
login page if it fails with a failure notice.  Rather than that, my suggestion
would be to keep the login page seperate, have it do the authentication, and
only move from that page when it succeeds.  This also allows him to reuse this
code as necessary, and removes the need for any passing of header information,
thus no problem.

What a confusing thread, eh?  hehe..  At least if someone wants to read
something funny and understands the American Language, this is the thread to
read...

I think if he had posted the code from tha pages he is using, that would have
clarified things greatly.

My mistake is taking his problem, and suggesting that he is trying to do a big
workaround for a problem that if done differently wouldn't exist.  Why reinvent
the wheel.  :)

Cheers

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] Form Data

2001-07-30 Thread Gerard Samuel

Yup, that was it.  I had it set to 3 in mysql.  Thanks for the pointer...

Chris Lambert - WhiteCrown Networks wrote:

 Try changing the column length to five.
 
 /* Chris Lambert, CTO - [EMAIL PROTECTED]
 WhiteCrown Networks - More Than White Hats
 Web Application Security - www.whitecrown.net
 */
 
 - Original Message - 
 From: Gerard Samuel [EMAIL PROTECTED]
 To: PHP [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 3:29 AM
 Subject: [PHP] Form Data
 
 
 | Hey all.  Another thought.  In a form I have there is a drop down box 
 | with age groups.  ie 20-25 26-35 etc.  If I submit the form and echo the 
 |variable for the dropdown box, the output is correct ie 20-25.
 | When I inject the variable in mysql, the data in the database is 20- or 
 | 35-, its only part of the info.  What needs to done for this to work
 | correctly??
 | 
 | Thanks
 | Gerard
 | 
 | 
 | -- 
 | 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] New Book - Tips?

2001-07-30 Thread Matt Kaufman

Hi there,

I'm currently in the process of writing a new book about PHP entitled PHP Exertion.

I've read several other books, and none of them covered everything that was needed, so 
I basically have an understanding of what I will write about and what topics to 
include - although I was wondering if any of you other users had any tips or ideas..

Thanks,
Matt Kaufman
[EMAIL PROTECTED]



Re: [PHP] Admin help please!

2001-07-30 Thread Matt Greer

on 7/30/01 9:00 AM, B. van Ouwerkerk at [EMAIL PROTECTED] wrote:


 So.. for php general help thats:
 [EMAIL PROTECTED]
 
 Uhm, this was also in the welcome messages you got when you subscribed.
 

It's also in the footer of every message posted to this list :)

Matt


-- 
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] New Book - Tips?

2001-07-30 Thread Jeff Oien

One thing I would like to see is using PGP (or gnu) encryption on the server,
not via e-mail.
Jeff Oien

 Hi there,

 I'm currently in the process of writing a new book about PHP entitled PHP Exertion.

 I've read several other books, and none of them covered everything that
 was needed, so I basically have an understanding of what I will write
 about and what topics to include - although I was wondering if any of you
 other users had any tips or ideas..

 Thanks,
 Matt Kaufman
 [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: Revision Tracking - program concept

2001-07-30 Thread Inércia Sensorial

  I guess, you could create a table with some colums like, 'last_modified',
'who_modified', 'document_path'.

  Then when someone makes a change, you save this changed document in a
folder with the name of the document, so it is easy, folder by folder, to
find all modified documents. You can even put some kind of 'log' file on
each folder, recording what has changed, if the second person does all
changes, or create another mysql colum. Save every document with a different
name (might be useful to store on format date_name.extension, to be useful
sortable by date), and update the mysql table.

  Ops, first update the table, generate an ID by auto_increment, saving this
ID on the 'log' file, to keep track of changes.

--

  Julio Nobrega.

2B||!BB - That's the question.

Dave Freeman [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 G'day All

 I'm writing an application for an intranet environment.  At the moment I'm
 writing a document control system.  The intention is that people will be
 able to check in documents (generally created in MS Word from
 templates) and the app will upload them to the server.

 The process related to this involves other people then checking the
 documents back out and making appropriate changes based on their
 responsibilities and then checking the documents back into the system
 again.

 What I would like to do is keep track of each revision of these documents
 (ie. actually provide a capability to review earlier revisions, or,
indeed,
 revert to earlier revisions).

 At this stage I am planning to track information about each document in
 an SQL table but not actually store the binary data in the table (there
are
 additional reasons behind this).

 The only solution I've come up with that will easily implement some sort
of
 revision system would be to store only the last five, for example,
revisions
 and then use duplicate SQL tables to store older iterations of the
 document with suitable links in the SQL back to the current version.

 Can anyone suggest an alternate approach that will let me do this?

 More from a program logic point of view than from an actual code example
 point of view really.  I guess that makes this close to off-topic but
there
 you go - hopefully it won't be considered too out of place.

 CYA, Dave


 ---
 Outback Queensland Internet - Longreach, Outback Queensland - Australia
 http://www.outbackqld.net.au  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] New Book - Tips?

2001-07-30 Thread pierre-yves

I would also cover in detail the php.ini file. (what is safe mode,
magic_quote...)
So many questions get posted here because of people who do not know the
power of this file and all it's implication. (nothing wrong tho, people are
here to answer...) They use the engine without knowing the engine...

py


- Original Message -
From: Jeff Oien [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 11:57 AM
Subject: RE: [PHP] New Book - Tips?


 One thing I would like to see is using PGP (or gnu) encryption on the
server,
 not via e-mail.
 Jeff Oien

  Hi there,
 
  I'm currently in the process of writing a new book about PHP entitled
PHP Exertion.
 
  I've read several other books, and none of them covered everything that
  was needed, so I basically have an understanding of what I will write
  about and what topics to include - although I was wondering if any of
you
  other users had any tips or ideas..
 
  Thanks,
  Matt Kaufman
  [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] Revision Tracking - program concept

2001-07-30 Thread scott [gts]

you are severely re-inventing the wheel.

Look for CVS or RCS programs on the net.

you'll save yourself a ton of work.

 -Original Message-
 From: Dave Freeman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 30, 2001 6:27 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Revision Tracking - program concept
 
 
 G'day All
 
 I'm writing an application for an intranet environment.  At the moment I'm 
 writing a document control system.  The intention is that people will be 
 able to check in documents (generally created in MS Word from 
 templates) and the app will upload them to the server.
 
 The process related to this involves other people then checking the 
 documents back out and making appropriate changes based on their 
 responsibilities and then checking the documents back into the system 
 again.
 
 What I would like to do is keep track of each revision of these documents 
 (ie. actually provide a capability to review earlier revisions, or, indeed, 
 revert to earlier revisions).
 
 At this stage I am planning to track information about each document in 
 an SQL table but not actually store the binary data in the table (there are 
 additional reasons behind this).
 
 The only solution I've come up with that will easily implement some sort of 
 revision system would be to store only the last five, for example, revisions 
 and then use duplicate SQL tables to store older iterations of the 
 document with suitable links in the SQL back to the current version.
 
 Can anyone suggest an alternate approach that will let me do this?
 
 More from a program logic point of view than from an actual code example 
 point of view really.  I guess that makes this close to off-topic but there 
 you go - hopefully it won't be considered too out of place.
 
 CYA, Dave
 
 
 ---
 Outback Queensland Internet - Longreach, Outback Queensland - Australia
 http://www.outbackqld.net.au  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]
 

-- 
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: which php shopping cart is this?

2001-07-30 Thread simradusaadmin

[EMAIL PROTECTED] wrote:

 Greetings!

 Which php-based shopping cart is being used at this site?
 http://shop.t-shirtoutlet.com/catalog/


Did you try their contact form? They would be the best source for the
answer.


 Thanks!

 Max Pyziur BRAMA - Gateway Ukraine
 [EMAIL PROTECTED]  http://www.brama.com/

--
Chip Wiegand
Computer Services
Simrad, Inc
http://www.simradusa.com
http://www.simrad.com
[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] mkdir

2001-07-30 Thread Jerry Lake

I can create single directories,
just not subdirectories. and only in
the directory the script is in
I'm guessing that it may be a permission
issue ...?

Jerry Lake  
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 28, 2001 7:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] mkdir


On Sat, 28 Jul 2001, Jerry Lake wrote:

 when using mkdir
 I cant seem to make subdirectories
 ?
 $oldumask = umask(0);
 mkdir('test/test', 0777);
 umask($oldumask);
 ?
 
 is there any way to do this ?

does the first test directory already exist? you may need to make them in
two steps. i believe mkidir has a switch to force it to create any needed
directories along the way.

 -- mike cullerton



-- 
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: which php shopping cart is this?

2001-07-30 Thread Kurth Bemis

At 12:29 PM 7/30/2001, simradusaadmin wrote:

its called the exchange project

it hink that its at www.theexchangeproject.org

~kurth

[EMAIL PROTECTED] wrote:

  Greetings!
 
  Which php-based shopping cart is being used at this site?
  http://shop.t-shirtoutlet.com/catalog/
 

Did you try their contact form? They would be the best source for the
answer.

 
  Thanks!
 
  Max Pyziur BRAMA - Gateway Ukraine
  [EMAIL PROTECTED]  http://www.brama.com/

--
Chip Wiegand
Computer Services
Simrad, Inc
http://www.simradusa.com
http://www.simrad.com
[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] MS SQL datetime format problem

2001-07-30 Thread scott [gts]

*how* are you putting it in?

 -Original Message-
 From: Brian Weisenthal [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 30, 2001 1:01 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: [PHP] MS SQL datetime format problem
 
 
 Hi,
 
 I am having trouble setting a datetime in a ms sql database. I can put in a
 date, but when I add the time i always get an error. this is likely
 something simple, any thoughts? thanks
 
 
--Brian
 
 
 
 
 -- 
 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] Large Calculations

2001-07-30 Thread Jeff Lewis

I have a mySQL database holding baseball stats and I want to calculate
rankings on these players.  Now I'd obviously want this to be as fast as
possible since I go through about 600 players but where is it best to make
them?  In the SQL command itself or in PHP?

players need to have at least 100 at bats for this formula to work for them.
There are  6 steps.

1. batting average x .05
2. doubles + triples + HR divided by at bats
3. runs scored divided by at bats
4. rbi's divided by at bats
5. stolen bases divided by at bats
next add up the 5 totals then multiply that total by 200.   It's a bse 100
system. a rating over 100 is very good.

Jeff


-- 
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] installing sablot on win2k and php

2001-07-30 Thread Jay Paulson

I'm trying to install sablot on my win2k machine.  I have PHP 4.0.5 and in
the /php/dlls/ directory there is the expat.dll and the sablot.dll.  Also,
in the /php/extentions/ directory there is the php_sablot.dll.

I have a small test script to see if it's working and also printing out the
phpinfo() and for some reason it's not getting loaded.  I've tried to
uncomment the line in the php.ini to load the php_sablot.dll but that
doesn't work.  I've also tried to load the php_sablot.dll using the dl()
function, however that doesn't work either.

I've read the installation for win that it comes with and it says to make
sure that expat.dll, sablot.dll, and sabcmd.ext are in my PATH.  Since I'm
using win2k I don't have a clue where to set the stupid path (grrr).  Would
I be correct in assuming that it's asking to be placed in the php path? or
the extentions directory?

Thanks for any help...
jay



-- 
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] Large Calculations

2001-07-30 Thread Jay Paulson

why don't you calculate the stats every time someone inserts new stats...
you could have a column in your table for the average of the stats you
want.. that way when you want to call them back up all you have to do is get
that one column and save your cpu all that processing power... that's my
thought.. :)

jay

- Original Message -
From: Jeff Lewis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 12:11 PM
Subject: [PHP] Large Calculations


 I have a mySQL database holding baseball stats and I want to calculate
 rankings on these players.  Now I'd obviously want this to be as fast as
 possible since I go through about 600 players but where is it best to make
 them?  In the SQL command itself or in PHP?

 players need to have at least 100 at bats for this formula to work for
them.
 There are  6 steps.

 1. batting average x .05
 2. doubles + triples + HR divided by at bats
 3. runs scored divided by at bats
 4. rbi's divided by at bats
 5. stolen bases divided by at bats
 next add up the 5 totals then multiply that total by 200.   It's a bse 100
 system. a rating over 100 is very good.

 Jeff


 --
 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] character conversion - horrible characters from MS Word

2001-07-30 Thread Phil Driscoll

One of my applications is being heavily used by people who are cutting and 
pasting text from MS word into text areas within a form. I dutifully store 
what they send, and display it later using htmlentities and nl2br to sort out 
funny characters.

Sadly, quite a few oddballs for which there are no html entity equivalents 
sneak through the system - for example the different width dashes at chr 150 
and 151.

Does anyone have a comprehensive system for catching such characters, or at 
least a suitable character mapping so I don't have to do the research to get 
an exhaustive list :)

Cheers
-- 
Phil Driscoll

-- 
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 Processes Inifinitely in PHP

2001-07-30 Thread Chris Anderson

I've been using PHP 4.0.4p1 WIN32, Apache 1.3.19 WIN32 and the latest MySQL WIN32 
build for almost 6 months without a problem. But now if I try and run a php file using 
MySQL functions it just processes forever. There is no output and I can stop with the 
browser's stop button. I have tried removing and reinstalling php, apache and MySQL to 
no luck. Does anyone know how I can get MySQL to work with PHP again? Also MySQL 
independently believes it is working correctly. Thanks



[PHP] Realm Auth Via Non-Sessions

2001-07-30 Thread Christopher Allen

Greetings:
OT (yes)?
When a user leaves a realm(.htaccess) from which they have logged into is
there any kind of notification back to the server?
I would like keep a log of such activities and do not want to do any session
type of jizz jazz(cookies etc).

I would think that there would need to be some kind of notification back to
the server,  as when I leave and come back (close browser) I get a new pass
dialog popped up...How does Apache know that I have to re-authenticate and
can I access this knowledge via php?.


Thanks for any OT answers!

-ccma




-- 
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] fopen not opening url

2001-07-30 Thread Jay Paulson

hello-
I'm trying to use the fopen() command to open the url below and just read it
into another $var. However, I'm having some problems the warning i get
is below along with the url in the warning.  Anyone know what's going on
here??

Thanks,
jay

Warning: php_hostconnect: connect failed
Warning:
fopen(http://p.moreover.com/cgi-local/page?c=Music%20business%20newso=xml;
,r) - Bad file descriptor



-- 
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] Limit

2001-07-30 Thread Jeremy Morano

How do I put a limit of records that can be entered in a table?

-- 
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] Limit

2001-07-30 Thread Matt Kaufman

I would just query the database to see how many records are currently listed
(using COUNT) and use an if statement to see if it's over or under the
limit.  If it's over you can just print out a message saying that no more
entries can be added.

Matt Kaufman
- Original Message -
From: Jeremy Morano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 11:23 AM
Subject: [PHP] Limit


 How do I put a limit of records that can be entered in a table?

 --
 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]DB Logic help...

2001-07-30 Thread Chris Cocuzzo

hey-

I have a few pages on my website which need to be divided up into different
columns and rows based on a category in a table. for example, on a links
page, I have three different columns, one for bands, one for sites, and one
for other things. I'm storing those things in the table with a category
field, so that when I output the data, it goes to the right place. However
I'm a little unsure of the actual code to do this...

can someone lend me an example or give me some ideas?

thanks
chris



-- 
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] require() results in session and header-sent errors

2001-07-30 Thread Jempty, George

I'm trying to prototype the framework for some intranet
applications.  I begin with a login.php script.  At the VERY top, of this
script, I require a file as follows:

require(intranet_ini.php);

This contains some constant definitions, and one function; here is
the code:

?
  define(INTRANET_DB,intranet);
  define(INTRANET_APPS_TABLE,apps);
  define(INTRANET_APPS_FOLDER,apps);
  define(INTRANET_FOLDER,/); //Server Root
  define(INTRANET_TEST_PASSWORD,test);

  function Login_Success($thisAppFolder, $thisPassword)
  {
session_start();

global $sess_TestMode;
session_register(sess_TestMode);
$sess_TestMode = ($thisPassword == INTRANET_TEST_PASSWORD);

global $sess_AppDB;
session_register(sess_AppDB);
$sess_AppDB = $thisAppFolder;
  
$appBaseUrl = INTRANET_FOLDER . INTRANET_APPS_FOLDER;
header(Location: $appBaseUrl/$thisAppFolder/);  
  }
?

The script works fine like this: it redirects the page.  HOWEVER

I've decided I want to remove the function above into it's own file,
login_funcs.php.  For the time being it will be the only function in said
file.  I cut and pasted the function, and added:

require(login_funcs.php); 

directly underneath the line requiring intranet_ini.php, so in
essence I am still including the very same lines of code, in the very same
order.  However, when the Login_Success function is called, the following
errors stump me:

Warning: Cannot send session cookie - headers already sent by
(output started at c:\intranet\login_funcs.php:1) in
c:\intranet\login_funcs.php on line 4

Warning: Cannot send session cache limiter - headers already sent
(output started at c:\intranet\login_funcs.php:1) in
c:\intranet\login_funcs.php on line 4

Warning: Cannot add header information - headers already sent by
(output started at c:\intranet\login_funcs.php:1) in
c:\intranet\login_funcs.php on line 15

PSusing include() does not solve this problem.  Thanks in
advance for any ideas.

George M Jempty
Database Administrator
Regional West Medical Center
Scottsbluff, Nebraska
308.630.2408

-- 
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] Limit

2001-07-30 Thread Matt Kaufman

No problem, nice to help :)

- Original Message -
From: Jeremy Morano [EMAIL PROTECTED]
To: Matt Kaufman [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 11:44 AM
Subject: RE: [PHP] Limit


 perfect, thank you

 -Original Message-
 From: Matt Kaufman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 30, 2001 5:16 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Limit


 I would just query the database to see how many records are currently
listed
 (using COUNT) and use an if statement to see if it's over or under the
 limit.  If it's over you can just print out a message saying that no more
 entries can be added.

 Matt Kaufman
 - Original Message -
 From: Jeremy Morano [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, July 30, 2001 11:23 AM
 Subject: [PHP] Limit


  How do I put a limit of records that can be entered in a table?
 
  --
  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] ODBC for UniVerse Database

2001-07-30 Thread Justin Farnsworth

Anybody on this list:

1.  Have experience with ODBC for Universe
2.  Know where there is a driver available

You may reply privately if you think it is not of interest
to this group

_jef
-- 
Justin Farnsworth
Eye Integrated Communications
321 South Evans - Suite 203
Greenville, NC 27858 | Tel: (252) 353-0722

-- 
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]DB Logic help...

2001-07-30 Thread B. van Ouwerkerk

Seen some stuff on freshmeat. Does about what you want.

Bye,


B.

At 14:27 30-7-01 -0400, Chris Cocuzzo wrote:
hey-

I have a few pages on my website which need to be divided up into different
columns and rows based on a category in a table. for example, on a links
page, I have three different columns, one for bands, one for sites, and one
for other things. I'm storing those things in the table with a category
field, so that when I output the data, it goes to the right place. However
I'm a little unsure of the actual code to do this...

can someone lend me an example or give me some ideas?

thanks
chris



--
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] Find and Replace

2001-07-30 Thread Shrout, Ryan

This isn't exactly PHP I need help with, but it relates to what I learned
about security.  Up until now, I have been using *.inc extensions for my
include files.  Well, I didn't realize until recently that anyone can view
these files.  So, I want to rename them to *.inc.php.  BUT, in almost all of
my PHP pages, there are links to : include ('mydir/myfile.inc');

Can someone tell me how to do a recursive find and replace to look for
/myfile.inc and replace it with myfile.inc.php?  I am running Red Hat 7.1

Thanks!

Ryan

-- 
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: Simple site search To bit more Complex...

2001-07-30 Thread Steve Wright

Hey,

I have just developed a simple site search.. .and am after learning how to
get it to search all directories... at present, it only searches the one it
is in!!


Here's the code:

?
include(include/common.inc);
$title = Search;
include(include/header.inc);
?
P
FORM ACTION=? echo $PHP_SELF; ? METHOD=POST
INPUT TYPE=text NAME=searchstr value=? echo $searchstr; ?
   SIZE=20 MAXLENGTH=30
INPUT TYPE=submit VALUE=Search!
/FORM
/P
?
if ( ! empty($searchstr) ) {
// empty() is used to check if we've any search string
// if we do, call grep and display the results.
echo HR\n;
// call grep with case-insensitive search mode on all files
$cmdstr = grep -i $searchstr *;
$fp = popen( $cmdstr, r ); file://open the output of command
as a  pipe
$myresult = array(); // to hold my search results
while( $buffer = fgetss ($fp, 4096 )) {
// grep returns in the format
// filename: line
// So, we use split() to split the data
list($fname, $fline) = split(:,$buffer, 2);
// we take only the first hit per file
if ( !defined($myresult[$fname]))
$myresult[$fname] = $fline;
}
// we have results in a hash. lets walk through it and print
it
if ( count($myresult) ){
echo OL\n;
while(list($fname,$fline) = each($myresult))
echo LI
   A HREF=\$fname\$fname/A : $fline /LI\n;
echo /OL\n;
} else {
// no hits
echo Sorry. Search on B$searchstr/B
  returned no results.BR\n;
}
pclose($fp);
}
?
?
include(include/footer.inc);
?



I think it centers around the line whcich contains but am not definate:
while( $buffer = fgetss ($fp, 4096 )) {


Any help much appreciated..

Steve Wright





-- 
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   >