[PHP] PHP & EJB

2003-10-03 Thread Alec
Hi,

Though I have used PHP with Java Objects for sometime, I am keen to know
whether anyone has tried using PHP to communicate with Enterprise
JavaBeans??


Thanks

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



[PHP] mysql_fetch problem

2003-02-20 Thread Alec Solway
I have the following call:

SELECT * FROM facility LEFT JOIN fuel USING(facilityID) LEFT JOIN fuelType 
ON fuel.TypeID=fuelType.ID WHERE facility.facilityID=$facilityID

The data is returned properly using mysql_fetch_row(), but 
mysql_fetch_assoc() and mysql_fetch_object() set the ID of the facility to
NULL for one of the returned entries. It also looks properly when issued in 
the mysql commander center. Any ideas?


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



[PHP] imap mail() problems

2003-04-03 Thread Alec Wallis
Hi

I am experiencing problems with the mail functions, in that I can not send emails to 
multiple addresses in the to field, or send Cc's.  The multiple addresses show up in 
the email when it arrives to the first email address, but the other copies never 
arrive.

The code I use is:

mail($strTo, $strSubject, $strBody, $header);

with the optional header fields being:

$header = "Cc: [EMAIL PROTECTED]";

Any ideas welcome

Cheers

Alec



[PHP] Problem connecting to POP3 accounts

2003-04-03 Thread Alec Wallis
Hi

I am currently experiencing some problems connecting to POP3 accounts using imap_open.

I am using the following code:

$ArrayImap = imap_open ($strMailServer, $strUsername, $strPassword);

with the mail server being set to:

$strMailServer = "{domain.co.uk/pop3:110}INBOX";

It seems to connect ok, as if an incorrect username or password is entered incorrectly 
something different happens.  The error message I seem to get is:

Notice: (null)(): Mailbox is empty (errflg=1) in Unknown on line 0
PHP Notice: (null)(): Mailbox is empty (errflg=1) in Unknown on line 0 

When I view the mailbox in Outlook it has messages in it and so isn't empty.  Can 
anyone help me please?


Alec


Re: [PHP] imap mail() problems

2003-04-04 Thread Alec Wallis
Thanks for the suggestions, I have tried them all but with no joy.  Still
exactly the same problem.  Pretty sure its not my SMTP server as using
Outlook it works fines.  Any other ideas as would prefer not to have to use
the mail() function multiple times.

Alec

- Original Message -
From: "Mario Soto" <[EMAIL PROTECTED]>
To: "Alec Wallis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 6:04 PM
Subject: Re: [PHP] imap mail() problems


Try first to take off the \r char on the string. It worked very good for me
using only the \n to send more headers. Other is to put the address into
angle bracets (<[EMAIL PROTECTED]>) and in this way you can use a name on the
server (read some rfc's, it will be helpful if you're using email often in
php programs; begin reading the 822). Other is try to send one message at
the time. Remember that you can une more than once the mail() function on
the program. Other, chech if your SMTP server allow to send CC and BCC
messages. Some ones for security reasons don't let you to do that. Other add
the CC address to $strSubject separated with a semi colon and still use the
CC extra header.

Greetings, and my best wishes.

Mario Soto
[EMAIL PROTECTED]
-.-.-.-

- Original Message -
From: Alec Wallis
To: [EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 11:54 AM
Subject: [PHP] imap mail() problems


Hi

I am experiencing problems with the mail functions, in that I can not send
emails to multiple addresses in the to field, or send Cc's.  The multiple
addresses show up in the email when it arrives to the first email address,
but the other copies never arrive.

The code I use is:

mail($strTo, $strSubject, $strBody, $header);

with the optional header fields being:

$header = "Cc: [EMAIL PROTECTED]";

Any ideas welcome

Cheers

Alec






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



[PHP] shell_exec('cp...

2002-10-08 Thread Alec Solway

I'm having problems running cp from shel_exec(). Nothing is returned, but 
the copy is unsuccessful. The same call works as user nobody from the 
actual shell. Any ideas?

-Alec


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




Re: [PHP] PERL vs. PHP

2001-04-20 Thread Alec Smith

Perl to PHP is proving to be no big deal for me. I've only just started
looking at PHP 3 days ago, and am already generating production code. PHP
to Perl would most likely be a harder move since you'd have to add quite a
few new concepts to your knowledgebase.

In general, I'd have to say that PHP is a far easier language to use
overall.


On Fri, 20 Apr 2001, Butler, Shaun wrote:

> maybe for basics but in general no way, I think going the other way, from
> Perl to PHP is a much easier transition.
>
> - Shaun
>
> On Friday 20 April 2001 17:10, Jason Caldwell wrote:
> > If I know PHP will I *basically* know PERL?  Looking at some PERL code...
> > it looks nearly identical.
> >
> > Thanks.
> > Jason
>
> --
> 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] Problems with pattern matching

2001-04-20 Thread Alec Smith

I'm attempting to get something like the following to match anything from 
aol.com so that I can handle AOL users differently than users from other 
ISPs:

$hostname = gethostbyaddr($REMOTE_ADDR);

if (eregi(".*\.aol\.com.*", $hostname))
{
echo $hostname;
echo "AOHell user";
}
else
{
echo $hostname;
echo "Not on AOHell";
}

However, the else condition is always the one which is always executed. Any 
ideas why? I'll admit to being somewhat weak when it comes to regular 
expressions.

Thanks,
Alec


-- 
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] $PHP_AUTH_USER

2002-04-20 Thread Alec M.

Hello,

I have trouble unseting the values of $PHP_AUTH_USER and $PHP_AUTH_PW. I use
the WWW-Authenticate via header() to authorize the user when accessing the
page. But when the user logs out, values in $PHP_AUTH_USER and PW seem to
remain and the user isn't asked again to authorize till a new browser window
is opened. I suppose that this problem should be solved by sending a proper
header() to end the session ... but which one? Of course, I could be wrong
:-) ... I would appreciate if anyone could help me to solve this.

regards,
Alec



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




[PHP] Number Punctuator

2009-01-03 Thread Alec Wright
Hey all, is there a php function to punctuate a number?
eg 3482957239525 would become 3,482,957,239,525 and 274018 would become
274,018 etc

Thanks :)


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



[PHP] PRIVATE_INVITATION f'ree $50 bonus

2005-05-15 Thread Alec Kennett
Greetings,

I have just received this program (FAST MARKET) from an associate. The program 
started in 2003, became a private closed membership, and has now re-opened to 
new memberships for an unspecified time period.

Upon signing up you get a F'REE $50 bonus which you can choose to place in the 
compounding or non-compounding options. You can try this out at NO RISK.

You can't withdraw this $50 bonus but you are able to withdraw the interest on 
it (the rates of return are very good). 

You can add more money of your own if you like on top of your $50 f'ree bonus 
(minimum of $5).

NON COMPOUNDING accounts pay from 0.5% to 2.5% daily depending on the amount.
For COMPOUNDED accounts it is between 0.7% and 3.2% daily.

There is a 10% referral bonus and referring others is OPTIONAL.

>>>SIGNUP AT THIS WEBSITE ONLY:
Fast Market (FTM):
https://members.fastmarket.com/process_invitation.php?inv_code=00524971513000


PROGRAM DETAILS (info only, do not sign up from here):
http://fastmarket.com/
***DO NOT sign up at this website. An invitation code is necessary to join Fast 
Market. Sign up using the other website above (my invitation code = 
00524971513000).

F'ree signup, f'ree $50 bonus, no risk, give it a try!


Best regards

Alec
INVITATION CODE = 00524971513000


NOTE: the above information is for educational purposes only.

Open your own e-Gold account and make payments anonymously and instantly 
world wide http://www.e-gold.com/e-gold.asp?cid=137501

Great place to fund your e-Gold account:
http://www.e-forexgold.com/aff/2166.htm



If you received this email in error, please accept our apologies. If you choose 
to unsubscribe from Membership Activation mailings. Send a return message with 
"UNSUBSCRIBE" in the subject field...Thank you.

++

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