Re: [PHP-DB] error on post

2001-08-14 Thread Renze Munnik
On Mon, Aug 13, 2001 at 03:38:50PM -0700, John Telesh wrote: I have created a form which I cannot duplicate the error which is coming up only sometimes. An affiliate to my client had received emails regarding the following error: The requested method POST is not allowed for the

Re: [PHP-DB] VERY strange erro

2001-08-14 Thread Markus Bertheau
Piotr Dubla wrote: Fatal error: Unsupported operand types in /usr/local/apache/htdocs/debit.php on line 51 Now at line 51 there is a statement which says $day1 = $day1 - 1; Hi, look at line 50, maybe you forgot a ;. bert cenes data gmbh berlin germany www.cenes.de -- PHP Database

Re: [PHP-DB] Anyone used Pearson Corilations in PHP

2001-08-14 Thread Russ Michell
I'm not sure what the hell a Pearson Corilation is but it sounds statistical, so using Excel/Access should do the trick. Use MyODBC from mysql.com to connect your local copy of access to your remote MySQL database. You can then export fron Access to Excel and do all sorts of analyses on your

[PHP-DB] Re: NEXT - PREVIOUS coding

2001-08-14 Thread Boaz Amit
Hi, what about other possibilities to do this ? Tom Other possibilities? Why not just utilize the second argument of the LIMIT function with a fairly simple SQL query? Here's a portion of a script I wrote, modified to be an example on this matter: ?php $articles_display_limit = 5; //

[PHP-DB] [Q] MS-SQL Print Statements.....

2001-08-14 Thread Donovan J. Edye
G'Day, My environment is as follows: - MS-SQL 2k on Win32 box - PHP 4.xx, TDS x.xx on Linux box If I have the following stored procedure: CREATE PROCEDURE MyProc AS BEGIN PRINT 'Hello World' SELECT * FROM tblMyTable END GO And I am using the mssq_* functions. How do I get to see any

RE: [PHP-DB] mail function

2001-08-14 Thread Tom Hodder
check that you have either specified [mail function] ; For Win32 only. SMTP = mail.myserver.com ; For Win32 only. sendmail_from = [EMAIL PROTECTED] or the sendmail path here; ; For Unix only. You may supply arguments as well (default: 'sendmail -t -i'). ;sendmail_path = /usr/bin/sendmail

[PHP-DB] internal queries

2001-08-14 Thread Russ Michell
Hi crew: I want to delete material from a database if it is older than say one month since its insertion. However I don't want to have to run a cron-job or something, as there must exist a way for a script to execute itself periodically or to have the MySQL database tell *itself* to execute

Re: [PHP-DB] Re: Can PHP exclude % characters in external txt file?

2001-08-14 Thread Justin Buist
On Mon, 13 Aug 2001, Phillip Bow wrote: I can't think of a simple way to do it off of an include, but off the top of my head: ?php $file = file(data.txt); for($x=0; $xcount($file); $x++){ $temp = str_replace(%, , $file[$x]); print $temp\n; } unset($file, $temp); ? -- Few

[PHP-DB] Re: reload page

2001-08-14 Thread Hugh Bothwell
Schleipp [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi everybody, I have created a webpage with two frames. One of this frames is a form in which the user can change some data, which you can see in the other frame. I want the latter frame being updated as

[PHP-DB] Re: reload page

2001-08-14 Thread Russ Michell
I just needed a similar thing to occur in my app! Just reload the page using the header function: Once submit has been hit in one frame, pass a hidden value from Frame1 to frame2: input type=\hidden\ name=\refresh\ Then detect for it in the 2nd frame and refresh the page using the header()

Re: [PHP-DB] Re: reload page

2001-08-14 Thread Hugh Bothwell
Russ Michell [EMAIL PROTECTED] wrote in message news:SIMEON.10108141609.F@k1c. anglia.ac.uk... I just needed a similar thing to occur in my app! Just reload the page using the header function: Once submit has been hit in one frame, pass a hidden value from Frame1 to frame2: input

Re: [PHP-DB] Re: reload page

2001-08-14 Thread Russ Michell
I don't see what this gains you. Well you asked if there was a way to refresh your target frame once a submission was made from an origin frame. This method would do that. Then again, why does the second frame not already display the results of the submission?? As it get's called from the

Re: [PHP-DB] Re: reload page

2001-08-14 Thread Hugh Bothwell
Russ Michell [EMAIL PROTECTED] wrote in message news:SIMEON.10108141754.G@k1c. anglia.ac.uk... I don't see what this gains you. Well you asked if there was a way to refresh your target frame once a submission was made from an origin frame. This method would do that. The question was

Re: [PHP-DB] Re: reload page

2001-08-14 Thread Justin Buist
Actually... it's not a bad idea to refresh a page once it's been submitted, even if that frame could be displaying the results with only one hit. We do it around here on quite a few things simply because it prevents accidents from happening on the user's end. If you redirect back to $PHP_SELF

[PHP-DB] Off the point here!

2001-08-14 Thread Scott Fletcher
Hi! I got a configure error when trying to install PHP 4 on the AIX machine. As I looked around on the website and foudn that I would need to have flex and bison installed. So, I am looking for them and will download them. I have a question. Is flex built into the bison? Or is it a

[PHP-DB] Oracle troubles with php 3.x

2001-08-14 Thread Leif Gripner
Have a working Oracle installation (8.0.5) Have all my ORACLE_HOME/SID/BASE and so on corectly set up. Configures apache Configures php with --with-apache --with oracle . .. . . .. Works just good. Oracle are found and right version are found in the Configure output. make and make install

Re: [PHP-DB] mssql_connect() commandline problem

2001-08-14 Thread Richard Chauvaux
Sounds like you might be working with 2 different versions of php: Mod-php for Apache in the web environment, stand-alone php operating in the shell. You might want to start by ensuring that the stand alone version is compiled -with mssql. Try running phpinfo() in the shell? Richard Erik

[PHP-DB] Re: Off the point here!

2001-08-14 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Scott Fletcher) wrote: P.S. the php.general php.version4 newsgroup is now closed! No they're not. I just accessed both lists (via news server) without difficulty. Maybe something's funky with your newsreader config? -- CC -- PHP

SV: [PHP-DB] mssql_connect() commandline problem

2001-08-14 Thread Erik
I wrote a script (? phpinfo(); ?) and executed it from the commandline (php script.php test.txt) turns out text.txt doesnt have sybase support listed at all - which the apache version of phpinfo has. could this be the problem? and if so, how do i enable sybase support for the commandline php? or

[PHP-DB] Re: ODBC failed

2001-08-14 Thread Al
You are using phoneinfo both as a table name and a datasource name. You *could* do that, but I don't think it's what you're trying for :) Go back to your control panel and see what you named the ODBC you created (datasource name, or DSN). You use that name for the first parameter for your ODBC

[PHP-DB] ever send SMIME Encrypted mail from PHP4 Mail() to an OUTLOOK EXPRESS user?

2001-08-14 Thread Ken Sommers
hi, has anyone ever sent SMIME Encrypted mail from a PHP4 script using the Mail() function to an MS OUTLOOK EXPRESS user? from a linux/apache/mysql/PHP4 Server? I would like to be able to send Secure emails (from within my PHP scripts) to the members of my site. After these members have gotten

[PHP-DB] Design/Permissions Question

2001-08-14 Thread o o
I'm relatively new to MySQL and am drawing up some ideas for writing a support/trouble tracking database for my company. I envisioned a single database with seperate tables for various data I would be storing (IP/Connection info table, Machine Inventory Table, etc). Each table would have data for

Re: [PHP-DB] Design/Permissions Question

2001-08-14 Thread Miles Thompson
First of all, search the web for a tutorial on basic SQL and database design. There are lots out there, and most are good. It's important to work through this stuff and get a handle on it. I believe there are good ones at DevShed and WebMonkey. Secondly, this is really a MySQL question and

Re: SV: [PHP-DB] mssql_connect() commandline problem

2001-08-14 Thread Richard Chauvaux
Erik, Having only set up PHP once on Windoze and once with Apache on Linux, I would have to reference the installation docs on php.net. On Windoze, you edit the php.ini file-- maybe that's also true for the stand-alone on Linux? You need the stand-alone version if you want to bypass the

[PHP-DB] Querying active directory from PHP

2001-08-14 Thread tony . mccrory
Has anyone done anything with Windows 2000 Active Directory from PHP? I'd quite like to try this out but I haven't been able to get anything to work! To begin with I'd like to query basic attributes like user name, phone number, email address Any info/pointers whatsoever would be

[PHP-DB] includes and filenames

2001-08-14 Thread travis forden
Hi. This is my setup. I have a PHP file that pulls in two includes - content and footer. content is done with readfile() since no processing done (in most cases). footer in done with include() - or will be once i find an answer to my question. currently the footer is exactly the same for

Re: [PHP-DB] Querying active directory from PHP

2001-08-14 Thread Chris Hobbs
[EMAIL PROTECTED] wrote: Has anyone done anything with Windows 2000 Active Directory from PHP? I'd quite like to try this out but I haven't been able to get anything to work! To begin with I'd like to query basic attributes like user name, phone number, email address Well, having

[PHP-DB] Session variables

2001-08-14 Thread CK Raju
I have compiled php-4.0.6 from source with --enable-track-vars and --enable-trans-sid options (--with-mysql and --with-apxs). I use RH7.1 and mysql-3.23.41. In my /usr/local/test/connect.inc I use the following code ?php $login = $HTTP_SESSION_VARS[login]; $passwd =

Re: [PHP-DB] Session variables

2001-08-14 Thread Jason Wong
When I run main.html, I get the following error message : Warning : Cannot send session cookie - headers already sent by (output started at /var/www/html/main.html: 10) in /var/www/html/main.html on line 11 Where could I be wrong ? Raju You must make sure that in pages where you use