[PHP] Sending mail() using 5.0.0

2004-07-30 Thread Michael Purdy
Folks

I am running php 5.0.0 on Windows 2000

When using php-cgi.exe or php.exe for that matter I get the following error when using 
MAIL()

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" 
header missing in e:\http\cgi\mail.php on line 4

When using php-win.exe or an earlier version of php I have no problems.  Has anyone 
else ran into this problem?

Mike


[PHP] RE: mysql_connect and PHP 5.0

2004-08-03 Thread Michael Purdy
Have you enabled MYSQL support by removing the semi-colon in front of the extension 
DLL in the php.ini
file?  

Mike


[PHP] 5.0.0 NT and Mail()

2004-08-09 Thread Michael Purdy
Folks

Has anyone running php 5.0.0 on NT ran into the MAIL() error

Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header 
missing 

I have tried numerous syntax changes to sendmail_from in the PHP.INI as well as 
setting headers without
success.

Mike


[PHP] RE: PHP 5.0.0 NT Mail()

2004-08-10 Thread Michael Purdy
Jason

Thank you for your response.  In the php.ini I have tried:

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

sendmail_from = '[EMAIL PROTECTED]'

sendmail_from = "[EMAIL PROTECTED]"

This issue has been raised on other php forums, but has not received any responses.  

Mike


[PHP] Cookie behaviour

2004-08-23 Thread Michael Purdy
Folks

I am running php 5.0.1 on NT.  

I have a small test script as shown below


  setcookie('cat','large',time()+3600);
  setcookie('dog','small',time()+3600);


The outcome of this script is that only the LAST cookie is successfully stored.despite 
having a different
name.  Is this because they are both being set from within the same script and 
therefore conflicting with
each other?

Mike


[PHP] RE: Resetting result sets after looping

2004-09-29 Thread Michael Purdy
Steve

Take a look at

mysql_data_seek

Mike

[PHP] Cannot send session cookie

2004-07-12 Thread Michael Purdy
Folks

I am a new to php.  I am currently learning about session handling and would 
appreciate some assistance with the following:

I am using php 4.3.7 and I am using the default values in the php.ini for

session.use_cookies = 1
session.cache_limiter = nocache

When experimenting with a few simple lines of code

    This is line 14
   session_start();
 

I get the following errors:

Warning: session_start(): Cannot send session cookie - headers already sent by (output 
started at e:\http\cgi\a.php:14) in e:\http\cgi\a.php on line 15

Warning: session_start(): Cannot send session cache limiter - headers already sent
(output started at e:\http\cgi\a.php:14) in e:\http\cgi\a.php on line 15 

Can anyone offer me a insight on the reason for the error.

Mike


[PHP] $_Request from 4.3 to v5.x

2004-07-13 Thread Michael Purdy
Folks

I am currently using 4.3.7.

I have a script which accepts three POSTed variables from a basic form.  Under 4.3.7 
the script
runs fine and the variables are successfully passed to the script.

I am testing 5.0 C3 and receive the following error 

PHP Notice: Undefined index: searchtype in c:\http\cgi\list7.php on line 13


[PHP] $_Request from 4.3 to v5.x

2004-07-13 Thread Michael Purdy
 
Folks

I am currently using 4.3.7.

I have a script which accepts three POSTed variables from a basic form.  Under 4.3.7 
the script
runs fine and the variables are successfully passed to the script.

I am testing 5.0 C3 and receive the following error 

PHP Notice: Undefined index: searchtype in c:\http\cgi\list7.php on line 13


[PHP] $_POST v4.3 to v5.0

2004-07-14 Thread Michael Purdy
Folks

I appreciate the answers received previously in relation to my 4,3 to 5.0 question 
regarding $_REQUEST $_POST etc..

Unfortunately I am still no further advanced on solving the problem.  Clearly the 
value from the form is not being passed to the script in 5.x, but being very new to 
PHP and I am not sure why.

Here are my two scripts which I created for testing purposes and which run fine under 
4.3.x

# SENDING SCRIPT  1.php



echo '
'; echo '

Input a Test Variable

'; echo '

'; echo '
'; RECEIVING SCRIPT ### 2.php $searchtype = $_POST['testvar']; echo $searchtype; I still receive a error Notice: Undefined index: testvar in e:\WC5\http\cgi\2.php on line 3 PHP Notice: Undefined index: testvar in e:\WC5\http\cgi\2.php on line 3 Is there anything in the php.ini v5 file that maybe causing me problems. Mike

[PHP] Re: Book Required

2004-07-17 Thread Michael Purdy
Michael

Your right there is a wide selection available and as such you need to select based on 
your particular development slant.

PHP and Mysql Web Development ISBN 0-672-32525-X 2nd Edition by Welling & Thomson is a 
good general text.

Did you solve your table results printing question?

Mike
Melb.au

[PHP] Re: old guy newbie needs some help

2004-07-17 Thread Michael Purdy
Bob

A. Example path

session.save_path = c:\http\cgi\session

Basically a directory under the root of your webserver

B. session_start() must be before any other commands in your script such as HTML.

So  Line 1: 

[PHP] Re: Using and Echoing Session Variables

2004-07-18 Thread Michael Purdy
Michael

session_start() starts and resumes a session placing it in script that is being called 
will make
the variable visible.

Mike


[PHP] re: newbie needs help in getting php and MySQL integrated

2004-07-20 Thread Michael Purdy
Chris

Have you removed the ";" from the extension DLL in the php.ini file?

;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
extension=php_mysql.dll  < Here
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll


Mike