RE: [PHP] Website to fax

2003-11-06 Thread M.A.Bond
See here:

http://www.adslguide.org.uk/reviews/2003/q4/efax.asp

For an e-mail to fax gateway service review.

Mark


-Original Message-
From: Randum Ian [mailto:[EMAIL PROTECTED] 
Sent: 06 November 2003 12:31
To: menezesd
Cc: php-general
Subject: Re: [PHP] Website to fax


Won't converting it to a printer be simpler and cheaper?

 Hello friends.

 I am trying to make a restaurant website where we can order on the
net.
 However, since the waiters cannot watch emails, I want to convert the
 mail() messages from the webpage to a fax using an appropriate
gateway.

 We want one gateway to server many web sites. Is there such a
 possibility?

 If yes, can someone please tell me how to start?

 Thanks
 Denis

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


Randum Ian
[EMAIL PROTECTED]
CBDagency Web Consultant
http://www.cbdagency.com
DancePortalGlobal Webmaster
http://www.danceportalglobal.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP + Sybase - auto_commit disabled

2003-07-25 Thread M.A.Bond
I don't know a lot about sybase, but if it's anything like oracle it works
like this:

A query from the console will be commited when the console is exited (plus
of course any select queries performing checks at the console will reveal
the result as it will be after the commit has occurred). With auto_commit
turned off, a php connection needs to tell the database to actually commit
before it breaks the connection (otherwise the transaction - ie update
query) will roll back, ie go back to the state it was before you attempted
the update. Therefore you wil lneed the sybase_query(commit) line in place
to commit the transaction.

Mark


-Original Message-
From: Nilo [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2003 15:42
To: php-general
Cc: lgjunior; Rodolfo
Subject: [PHP] PHP + Sybase - auto_commit disabled


My site got it's Sybase 'auto_commit' disabled, I mean, if I type a (INSERT,
UPDATE, DELETE) query on ISQL's console I got the correct result, but the
same doesn't happen when I run the query via PHP. Check the code below:

?

//includes with database connection and stuff

$xSql= INSERT INTO oab_mailing_logs (nvaNomeMailing, nvaInicioEnvio,
nvaFimEnvio, dtDataEnvio, numTamanhoMailing, intLidos) VALUES ('teste', '0',
'0', '2003-01-01', 0, 0);
$xQuery = sybase_query($xSql);

if($xQuery) //sybase_query returns me nothing. $xQuery is not tested on the
'if' clause, it just pass through both 'if' and 'else'.
{
OK!br;
}
else
{
Erro!br;
}

//sybase_query(commit); //if I uncomment 'sybase_query(commit)' I got
what I want, I mean, the INSERT is done correctly, but note that I hadn't to
do this before, it's just stop running as it used to

//echo xQuery- .$xQuery.br; //it outputs '1'

echo Executando a query: b.$xSql./bbr;

echo Linhas afetadas: .sybase_affected_rows($xQuery); //there's not output
here... it's kinda empty

sybase_free_result($xQuery);

?

I haven't got any kind of error message, even on Sybase errorlog.

Can you help me ?

Thanks and the best regards



--
Nilo
Desenvolvedor WEB
A B I L I T Y
Soluções interativas
+55 21 38526657
www.ability.com.br


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Mail From option in PHP.ini

2003-07-18 Thread M.A.Bond
I take it you've also tried setting Reply-To: ??
Same format as From:

Mark

-Original Message-
From: Brian S. Drexler [mailto:[EMAIL PROTECTED] 
Sent: 18 July 2003 16:25
To: 'sven'; php-general
Subject: RE: [PHP] Mail From option in PHP.ini


No, I tried this too.  Here is what I've tried

$hdrs = array(
'From'= ''.$FullName.' '.$Email.'',
'Return-Path'   =  $Email,
//'From'=  $Email,
//'Disposition-Notification-To' = ''.$FullName.'
'.$Email.'',
'Disposition-Notification-To' = $Email,
'Return-Receipt-To' = '' .$FullName.'
'.$Email.'',
//'Return-Path' = $Email,
'Subject' = 'Your Quote # '.$Theresult
);
The commented out ones were also tried


-Original Message-
From: sven [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 11:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Mail From option in PHP.ini


... and how about this?
$headers .= Return-Path: $email_address_from_your_database\r\n;
tell me, if it works.

ciao SVEN


Brian S. Drexler wrote:
 I tried the extra header.  The problem is with the return receipts.
 The mail is being generated by a server other than my main e-mail
 server, so if I want a delivery/read receipt I have to specify a
 From e-mail address or else it will default to the user executing
 the script, i.e. [EMAIL PROTECTED]  ini_set() does not appear to
 work with sendmail_path. sendmail_path is in the PHP_INI_SYSTEM group
 so it can only be set in the php.ini or httpd.conf...Thanks for the
 suggestion though...

 -Original Message-
 From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 18, 2003 11:09 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP] Mail From option in PHP.ini


 Ok, I want to specify who the mail is coming from by using the
 sendmail_path option in the PHP.ini.  I've added the
 [EMAIL PROTECTED] to it, but I want to be able to dynmaically change
 [EMAIL PROTECTED] to [EMAIL PROTECTED] or whatever else.  Anyone have
 any ideas how I can do this?  I'm pulling the e-mail I'd like to
 change it to from a MySQL database but can I rewrite the php.ini
 file on the fly or am I stuck.  Any help is greatly appreciated.

 Why not just put it in the extra headers?

 $headers .= From: $email_address_from_your_database\r\n;

 Or you could possibly use ini_set() to change the php.ini setting.

 ---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] writing file

2003-04-01 Thread M.A.Bond
If you want to use the  in within the string, you should use ' to surround
the string ie:

$string='html..   div align=center.';


Thanks

Mark


-Original Message-
From: Diksha Neel [mailto:[EMAIL PROTECTED] 
Sent: 01 April 2003 12:21
To: [EMAIL PROTECTED]
Subject: [PHP] writing file


dear all,

hi! i have a php script from which i am creating
an html file as under.
my problem is that when i open aditya.html, i can see
the variable values and hi!.
but when i want to put the value of $cname in the center
of the screen by using div tag as:
   div align=center $cname /div
i get a parse error.
why is the div tag not working?

regards,
diksha.

$fp = fopen (aditya.html, w);
$string=html
  headtitleaditya/title/headbodycentre
  h1u$cname/u/h1/centrehi!$city 
$bemail/body/html;
$contents=fwrite($fp, $string);
echo '$contents';
fclose($fp);

___
Odomos - the only  mosquito protection outside 4 walls -
Click here to know more!
http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htmodomosw
n


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php/apache timeout

2003-03-11 Thread M.A.Bond
HI,

Yes I was having this problem, it's probably not php timing out, but your
browser. To stop this move the execution of your sql. I assume you do
something like this:

?php

$sql = insert...;
Execute SQL;

?

HTML
...

...

/HTML

You need to move this as follows:

HTML
HEAD
/HEAD
BODY
?php

$sql = insert..;
Execute SQL;

?

Html code

/Body
/HTML

This starts sending the page to the browser, before running the sql, so the
browser doesn't time out whilst waiting to download a page.

Thanks

Mark


-Original Message-
From: Hilmi Hilmiev [mailto:[EMAIL PROTECTED] 
Sent: 11 March 2003 17:41
To: [EMAIL PROTECTED]
Subject: [PHP] php/apache timeout


Hi,

We are using Apache/PHP and using ORACLE as the database. When I submit 
the page with hugs database when the server side script (PHP) running I 
am getting an error Page not found. But on the background it is adding 
records to the database. Though I modified all the configuration in 
php.ini file max_script_execution , sesssion_gc_maxsize .etc and 
http.conf file TimeOut, KeepAliveTime paramets. How to stop this error?? 
do I need to sent any other parameters either in php.ini or in http.conf 
file.


Thanx in Advance
MrE


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: mail() function

2003-03-04 Thread M.A.Bond
Not strictly true, the mail function will send to multiple email addresses
separated by a comma, you can also cc and bcc by using headers. See the
manual, which has some good examples of this.

Mark


-Original Message-
From: Patrick Schnegg [mailto:[EMAIL PROTECTED] 
Sent: 04 March 2003 13:14
To: [EMAIL PROTECTED]
Subject: [PHP] Re: mail() function


The mail() function will only send one mail at a time, to send multiple
mails you would write a loop like this (presuming you had your mail
addresses ready in an array called $emails):

foreach ($emails as $email) {
mail($email, your subject, your message);
}

Denis L. Menezes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello friends,

Can the mail() function send emails to multiple addresses which are
formatted as follows :

[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] etc with a
comma or a semicolon between them?

Thanks
Denis





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] How do I display the script file name?

2003-02-27 Thread M.A.Bond
With the output you are getting you will not see the output from the .' '.
As it inserts a space into the ouputted text. There is an error after the
$_SERVER['PHP_SELF'] the , should be a . (is this just a typo in the
e-mail?)

Thanks

Mark


-Original Message-
From: Stephen Ford [mailto:[EMAIL PROTECTED] 
Sent: 27 February 2003 16:47
To: [EMAIL PROTECTED]
Subject: Re: [PHP] How do I display the script file name?


Partial success. The code and output are shown below. There are no errors.

What does the .' '. do pls. Have tried a variety of combinations to see
the effect. Nothing to see... :-(

===PHP==
?php
 echo PLine #1 .' '.$_SERVER['PHP_SELF'], /P;
 echo PLine #2/P;
 echo PLine #3/P;
 echo PLine #4 .' '.$_SERVER['SCRIPT_NAME'].' '.
 $_SERVER['SCRIPT_FILENAME'].' '.
 $_SERVER['PHP_SELF']./P;
 echo PLine #5/P;
 echo PLine #6 , __FILE__,/P;
?

===IE6 display===
Line #1

Line #2

Line #3

Line #4

Line #5

Line #6 Pathname removed for security
==

Stephen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Reading Text file by line

2003-02-24 Thread M.A.Bond
Using 

$var=file('filename.txt');

Creates an array, with each element in the array being 1 line of the file.

Thanks

Mark


-Original Message-
From: Anthony [mailto:[EMAIL PROTECTED] 
Sent: 24 February 2003 16:24
To: [EMAIL PROTECTED]
Subject: [PHP] Reading Text file by line


I need to read a text file by line, if I open the file and use fgets() then
it doesn't pick up the EOL corretly.  So I was planning on reading the whole
file in with fread() and then breaking it up by EOL characters.  My question
is, how do I do it?  What character do I search for in the string?  Anyone
have a simple example on how to do this?  Thanks.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Parse error

2003-01-14 Thread M.A.Bond

I'm new to PHP and am slowly learning it. I have the following code that is
giving me errors could someone take a look and suggest a fix?

Parse error: parse error in /home//public_html/Info/datain.php on
line 7

HTML
?php
$db = mysql_connect(localhost, ,xx);
mysql_select_db(learndb,$db);
$sql = INSERT INTO personnel (firstname, lastname, nick, email, salary)
VALUES ('$first','$last','$nickname',)

You are missing a ; on the end of this, plus you need email and salary
variables in the VALUES list, plus the list shouldn't end with a comma.



Mark

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Script not working from one computer

2002-12-05 Thread M.A.Bond
Have you checked:

Browser versions? (is the browser the same type/version as on the other
machines)
Is it a laptop? If so, are you using the internal keyboard with Numlock on?
Is the machine in question set-up on the network correctly, i.e. has it got
domain, gateway addresses etc setup - this would only affect it if the
Intranet server is set-up to only allow a certain range of IP addresses or
doamin/hostnames etc.

Thanks

Mark


-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] 
Sent: 05 December 2002 14:10
To: php-general
Cc: heflinaw
Subject: [PHP] Script not working from one computer


I know, PHP is executed server side, so it shouldn't matter about the
computer, but...

I've got a basic log in script that takes username and password and does the
typical SELECT to find a match. If it's good, it sets some session variables
and redirects to a main page, otherwise redirects back to the login page
with an error message.

The script works from all computers but one. The login page will come up,
but no matter what, it says the username and password are bad. They are
correct though, caps lock isn't on, etc. I've cleared the cookies and cache
and it still does the same thing.

The script is on an intranet. One computer that had this issue was fixed by
using https://computername.company.army.mil instead of just
https://computername. But for this computer, both addresses give the same
result. 

So, I'm sure it's not the PHP script, so I'm looking for ideas of what I
should check, settings wise, on the client computer? Any help is greatly
appreciated.

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] mysql_num_rows

2002-11-21 Thread M.A.Bond
I suppose it's nothing to do with the spelling mistake in the sql statement
(slecet should be select)

Mark


-Original Message-
From: empty [mailto:[EMAIL PROTECTED]] 
Sent: 21 November 2002 15:57
To: [EMAIL PROTECTED]
Subject: [PHP] mysql_num_rows


Hi guys;

I have a problem (or  mistake(s));

for this code

 39|   $result=mysql_query(slecet * from site_members where
User_Name='$username');
 40|   $num_row=mysql_num_rows($result);
 41|   if($num_row0) echo(error 46);

as a reult I have unsolved error in my hands :(

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in D:\sites\inc\register.inc on line 40

NOTE: all the fields on the db are empty

anybody knows why?
(PHP 4.2.3 SAPI - MySql 3.23.53 - IIS 5.0 running on WinXP)


thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Finding last entry in MySQL database

2002-11-15 Thread M.A.Bond
Tim,

This is a dangerous way of doing things, if you get a couple of people
registering at the same time the system has the possibility of getting the
wrong entry, you best bet is to have the upload script return the last
insertid(I'm assuming your database has an autoincrement/id field) and pass
it onto the next screen via a hidden variable in the form or via the url.

Mark


-Original Message-
From: Tim Thorburn [mailto:immortal;nwconx.net] 
Sent: 15 November 2002 10:11
To: [EMAIL PROTECTED]
Subject: [PHP] Finding last entry in MySQL database


Hi,

I'm creating a form which will allow individuals to add themselves to an 
online database and ask if they'd like to upload a picture.  I have the 
form setup which allows the individuals to add themselves - currently it 
asks if they have a picture to upload (a yes or no drop menu).  On the 
screen after the individual adds them self, I'd like to check the database 
for the last entry (the one just made) and then see if the picture column 
has a yes or a no stored.

What I don't know is how to select the last entry in a database ... I'm 
sure its something very simple, but with being up until 5am working on this 
site - it's slipped by caffeine powered brain.

Thanks
-Tim



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] newbie question

2002-10-03 Thread M.A.Bond

It depends on the version of PHP, in older versions you just use the
variable name ie in your example just use $var to access it's contents. In
new versions, with register globals turned off use $_GET['var'] to access it
ie:

Print $_GET['var']

Will print numberx

Thanks

Mark


-Original Message-
From: Remon Redika [mailto:[EMAIL PROTECTED]] 
Sent: 02 October 2002 12:24
To: [EMAIL PROTECTED]
Subject: [PHP] newbie question


I am newbie in php
I have var $query_string in my address page.
I want get value of query string.
For example I give string on my query string like 
www.mypages.com?var=numberx
I just want get a value of var or numberx
I usually do this var on asp
request.querystring(var) , so I'll get the value = numberx how i do it
on php...? sorry about my English. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php