Chew on this...
develo...@mypse:~$ cat ./md5test.php
#!/usr/bin/php
?php
$password = '12345678';
echo md5(strtoupper($password));
echo \n;
echo md5(strtoupper('12345678'));
echo \n;
$password = '$12345678';
echo md5(strtoupper($password));
echo \n;
echo md5(strtoupper('$12345678'));
echo \n;
?
On 11/06/2010, at 12:49 PM, Daevid Vincent wrote:
Chew on this...
develo...@mypse:~$ cat ./md5test.php
#!/usr/bin/php
?php
$password = '12345678';
echo md5(strtoupper($password));
echo \n;
echo md5(strtoupper('12345678'));
echo \n;
$password = '$12345678';
echo
On Thu, 2010-06-10 at 17:49 -0700, Daevid Vincent wrote:
Chew on this...
develo...@mypse:~$ cat ./md5test.php
#!/usr/bin/php
?php
$password = '12345678';
echo md5(strtoupper($password));
echo \n;
echo md5(strtoupper('12345678'));
echo \n;
$password = '$12345678';
echo
Matthew Croud wrote:
Doesn't the DOM have the getAttribute() method?
Thanks,
Ash
http://www.ashleysheridan.co.uk
It's not in my reference, though I see it in the PHP manual now.
This is what I have:
_
$dom = new DomDocument();
$dom - load(items.xml);
Cheers Guys,
Your the greatest !
On 8 Sep 2009, at 09:08, Peter Ford wrote:
Matthew Croud wrote:
Doesn't the DOM have the getAttribute() method?
Thanks,
Ash
http://www.ashleysheridan.co.uk
It's not in my reference, though I see it in the PHP manual now.
This is what I have:
I'm at my wits end here, so close to the finishing line!
Is there a method to return an attribute value of an XML node using
DOM, I can check to see if an attribute exists using hasAttributes()
But I can't retrieve the value.
I'm so desperate i've started to eat dirt.
Many thanks,
Matt
On Mon, 2009-09-07 at 16:37 +0100, Matthew Croud wrote:
I'm at my wits end here, so close to the finishing line!
Is there a method to return an attribute value of an XML node using
DOM, I can check to see if an attribute exists using hasAttributes()
But I can't retrieve the value.
I'm
Doesn't the DOM have the getAttribute() method?
Thanks,
Ash
http://www.ashleysheridan.co.uk
It's not in my reference, though I see it in the PHP manual now.
This is what I have:
_
$dom = new DomDocument();
$dom - load(items.xml);
$topics = $dom -
hi all,
is there any function to return us the lanuage of a word in the sentence?
for example : My name is شهرزاد .
when it sees شهرزاد notice that is a persian language.
Thanks
2008/9/29 shahrzad khorrami [EMAIL PROTECTED]:
hi all,
is there any function to return us the lanuage of a word in the sentence?
for example : My name is شهرزاد .
when it sees شهرزاد notice that is a persian language.
As others have said, you can check what unicode block the characters are
Bojan Tesanovic wrote:
On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote:
Hello,
I want to return an array from function and reference an index all in
one line. Is this possible?
In the code below I want I want $yo to be the array(5,6).
Here is what I've tried,
function returnarray() {
On 12 Apr 2008, at 00:31, Daniel Kolbo wrote:
Philip Thompson wrote:
On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote:
I want to return an array from function and reference an index all
in one line. Is this possible?
In the code below I want I want $yo to be the array(5,6).
Here is what
Jim Lucas wrote:
Bojan Tesanovic wrote:
On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote:
Hello,
I want to return an array from function and reference an index all in
one line. Is this possible?
In the code below I want I want $yo to be the array(5,6).
Here is what I've tried,
Stut wrote:
On 12 Apr 2008, at 00:31, Daniel Kolbo wrote:
Philip Thompson wrote:
On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote:
I want to return an array from function and reference an index all
in one line. Is this possible?
In the code below I want I want $yo to be the array(5,6).
On 12 Apr 2008, at 15:18, Daniel Kolbo wrote:
Stut wrote:
On 12 Apr 2008, at 00:31, Daniel Kolbo wrote:
Philip Thompson wrote:
On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote:
I want to return an array from function and reference an index
all in one line. Is this possible?
In the code
On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED] wrote:
search the archives ;)
http://www.mail-archive.com/php-general@lists.php.net/msg224626.html
-nathan
On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe [EMAIL PROTECTED] wrote:
On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED] wrote:
search the archives ;)
http://www.mail-archive.com/php-general@lists.php.net/msg224626.html
-nathan
?php
function ReturnArray() {
return
On Sat, Apr 12, 2008 at 12:18 PM, Casey [EMAIL PROTECTED] wrote:
On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe [EMAIL PROTECTED]
wrote:
On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED] wrote:
search the archives ;)
On Sat, Apr 12, 2008 at 9:35 AM, Nathan Nobbe [EMAIL PROTECTED] wrote:
On Sat, Apr 12, 2008 at 12:18 PM, Casey [EMAIL PROTECTED] wrote:
On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe [EMAIL PROTECTED]
wrote:
On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED] wrote:
Casey wrote:
On Sat, Apr 12, 2008 at 9:35 AM, Nathan Nobbe [EMAIL PROTECTED] wrote:
On Sat, Apr 12, 2008 at 12:18 PM, Casey [EMAIL PROTECTED] wrote:
On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe [EMAIL PROTECTED]
wrote:
On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED]
On Apr 12, 2008, at 6:18 PM, Casey wrote:
On Sat, Apr 12, 2008 at 9:12 AM, Nathan Nobbe
[EMAIL PROTECTED] wrote:
On Fri, Apr 11, 2008 at 6:33 PM, Daniel Kolbo [EMAIL PROTECTED]
wrote:
search the archives ;)
http://www.mail-archive.com/php-general@lists.php.net/msg224626.html
-nathan
Hello,
I want to return an array from function and reference an index all in
one line. Is this possible?
In the code below I want I want $yo to be the array(5,6).
Here is what I've tried,
function returnarray() {
return array('lose' = array(5,6), 'win' = array(9,8));
}
$yo =
Top-posting side comment: It's not nice to hijack threads.
My comments are below...
On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote:
Hello,
I want to return an array from function and reference an index all
in one line. Is this possible?
In the code below I want I want $yo to be the
Philip Thompson wrote:
Top-posting side comment: It's not nice to hijack threads.
My comments are below...
On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote:
Hello,
I want to return an array from function and reference an index all in
one line. Is this possible?
In the code below I want
On Apr 11, 2008, at 6:31 PM, Daniel Kolbo wrote:
Philip Thompson wrote:
Top-posting side comment: It's not nice to hijack threads.
My comments are below...
On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote:
Hello,
I want to return an array from function and reference an index all
in one
On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote:
Hello,
I want to return an array from function and reference an index all
in one line. Is this possible?
In the code below I want I want $yo to be the array(5,6).
Here is what I've tried,
function returnarray() {
return
Hi all,
Just a quick straw-poll really:
What is your take on using 'return' when you end a function, if you
don't actually need to return a value?
If you have to return say a true/false as the result of an operation,
then it's an obvious choice. But what if all the function does is
perform an
Just a quick straw-poll really:
What is your take on using 'return' when you end a function, if you
don't actually need to return a value?
If you have to return say a true/false as the result of an operation,
then it's an obvious choice. But what if all the function does is
perform an
If there is no need to return a value then I don't do so. However, the
function is going to process something, and surely you should check that the
processing has succeeded or failed?
Hi Dave,
Wednesday, May 30, 2007, 12:20:48 PM, you wrote:
If there is no need to return a value then I don't do so. However, the
function is going to process something, and surely you should check that the
processing has succeeded or failed?
I have exception and error handling dealt with
On Wed, 2007-05-30 at 12:20 +0100, Dave Goodchild wrote:
If there is no need to return a value then I don't do so. However, the
function is going to process something, and surely you should check that the
processing has succeeded or failed?
If you unit test, then returns become quite
2007. 05. 30, szerda keltezéssel 11.52-kor Richard Davey ezt írta:
Hi all,
Just a quick straw-poll really:
What is your take on using 'return' when you end a function, if you
don't actually need to return a value?
If you have to return say a true/false as the result of an operation,
If there is no need to return a value then I don't do
so. However, the function is going to process something,
and surely you should check that the processing has
succeeded or failed?
This is precisely the point I was going to make. Unless an argument is
passed in by reference for
Hi Chris,
Wednesday, May 30, 2007, 1:17:39 PM, you wrote:
If there is no need to return a value then I don't do
so. However, the function is going to process something,
and surely you should check that the processing has
succeeded or failed?
This is precisely the point I was going to
Chris Boget wrote:
If there is no need to return a value then I don't do
so. However, the function is going to process something,
and surely you should check that the processing has
succeeded or failed?
This is precisely the point I was going to make. Unless an argument is
passed in by
[snip]
All depends on the function.
function someFunc(){
$this-counter++;
if($this-counter 100) $this-counter = 0;
}
Something that simple wont need a return at all.
[/snip]
Classically this would need a return, because $this-counter is going to
be less than 100 most of the
On Wed, May 30, 2007 5:52 am, Richard Davey wrote:
Just a quick straw-poll really:
What is your take on using 'return' when you end a function, if you
don't actually need to return a value?
If you have to return say a true/false as the result of an operation,
then it's an obvious choice.
At 5/30/2007 05:41 AM, Richard Davey wrote:
/* check connection */
if (mysqli_connect_errno()) {
printf(Connect failed: %s\n, mysqli_connect_error());
exit();
}
If that was wrapped in a function, sticking 'return false' within the
connect_error check is useful why exactly? Equally the
Hi Paul,
Wednesday, May 30, 2007, 4:07:00 PM, you wrote:
I demur at your final point: If we don't use exit() and the function
performs non-aborting error handling, it's going to return to the
calling function which in most cases will need to know whether its
child function succeeded or
On Wed, May 30, 2007 10:25 am, Richard Davey wrote:
Hi Paul,
Wednesday, May 30, 2007, 4:07:00 PM, you wrote:
I demur at your final point: If we don't use exit() and the
function
performs non-aborting error handling, it's going to return to the
calling function which in most cases will
On Wed, May 30, 2007 12:00 pm, Paul Novitski wrote:
[snip] use the archives
I think there is a LOT of value in bubbling up errors to the
appropriate level of handling, and letting the right layer do the
right job for the error.
HOWEVER: it is not a good idea, imho, to always let the errors
On Wed, May 30, 2007 7:42 am, Darren Whitlen wrote:
Chris Boget wrote:
If there is no need to return a value then I don't do
so. However, the function is going to process something,
and surely you should check that the processing has
succeeded or failed?
This is precisely the point I was
At 5/30/2007 08:25 AM, Richard Davey wrote:
In order that displayData() doesn't fall on its face, I would write
the parent function in one of these ways:
if (lookUpData()) displayData();
That's where our approach differs. If lookUpData falls flat on its
face, my error handler will
On Wed, May 30, 2007 7:56 am, Jay Blanchard wrote:
Classically this would need a return, because $this-counter is going
to
be less than 100 most of the time, and you may want to return the
value
at some point.
Or you may not ever need to return it.
And if you return it for no reason, you
At 5/30/2007 10:51 AM, Richard Lynch wrote:
On Wed, May 30, 2007 12:00 pm, Paul Novitski wrote:
[snip] use the archives
Good suggestion!
HOWEVER: it is not a good idea, imho, to always let the errors
bubble up to the outer layer, which is what Paul seemed to have
typed...
But didn't.
On May 30, 2007, at 6:32 AM, Richard Davey wrote:
Hi Dave,
Wednesday, May 30, 2007, 12:20:48 PM, you wrote:
If there is no need to return a value then I don't do so. However,
the
function is going to process something, and surely you should
check that the
processing has succeeded or
[EMAIL PROTECTED] wrote:
hi,
is it possible to specify email address in mail() function where bounced
email could return?
I checked http://us2.php.net/manual/en/function.mail.php but didn't find
anything.
That's the right place. It's the 5th parameter you want to change.
--
Postgresql
On Tue, January 30, 2007 9:44 am, [EMAIL PROTECTED] wrote:
is it possible to specify email address in mail() function where
bounced
email could return?
I checked http://us2.php.net/manual/en/function.mail.php but didn't
find
anything.
Some MTAs follow some standards which at one time or
hi,
is it possible to specify email address in mail() function where bounced
email could return?
I checked http://us2.php.net/manual/en/function.mail.php but didn't find
anything.
thanks.
-afan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
# [EMAIL PROTECTED] / 2007-01-30 16:44:38 +0100:
is it possible to specify email address in mail() function where bounced
email could return?
Yes, see ftp://ftp.rfc-editor.org/in-notes/rfc2821.txt
I checked http://us2.php.net/manual/en/function.mail.php but didn't find
anything.
That's ok,
[EMAIL PROTECTED] wrote:
hi,
is it possible to specify email address in mail() function where bounced
email could return?
I checked http://us2.php.net/manual/en/function.mail.php but didn't find
anything.
That's the right place. It's the 5th parameter you want to change.
--
Postgresql php
On Thu, July 27, 2006 1:05 pm, Adam Zey wrote:
Then how come when I do a foreach on an array (without modifying
anything within the foreach), it still makes a copy of the array that
consumes memory? I think it's dangerous to generalize that it's always
best to let PHP make copies of things. In
On Thu, 2006-07-27 at 01:35, Larry Garfield wrote:
On Wednesday 26 July 2006 21:41, Robert Cummings wrote:
I'm working on some code that would be called to generate a cell in a
possibly large table and therefore a small difference in performance
may have a significant impact.
PHP
Robert Cummings wrote:
On Thu, 2006-07-27 at 01:35, Larry Garfield wrote:
On Wednesday 26 July 2006 21:41, Robert Cummings wrote:
I'm working on some code that would be called to generate a cell in a
possibly large table and therefore a small difference in performance
may have a significant
Robert Cummings wrote:
Then how come when I do a foreach on an array (without modifying
anything within the foreach), it still makes a copy of the array that
consumes memory? I think it's dangerous to generalize that it's always
best to let PHP make copies of things. In the foreach situation,
KermodeBear wrote:
Robert Cummings wrote:
Then how come when I do a foreach on an array (without modifying
anything within the foreach), it still makes a copy of the array that
consumes memory? I think it's dangerous to generalize that it's always
best to let PHP make copies of things. In
On Thu, 2006-07-27 at 14:48, Adam Zey wrote:
KermodeBear wrote:
Robert Cummings wrote:
Then how come when I do a foreach on an array (without modifying
anything within the foreach), it still makes a copy of the array that
consumes memory? I think it's dangerous to generalize that
Is a function return value copied? If the value is an integer I suppose
it is but what about a string or an array? If you pass by reference is
the return value still copied?
For example, is this:
function foo($arr) {
$arr[] = bar;
}
faster than this?
function foo($arr) {
On Wed, 2006-07-26 at 22:29, Michael B Allen wrote:
Is a function return value copied? If the value is an integer I suppose
it is but what about a string or an array? If you pass by reference is
the return value still copied?
For example, is this:
function foo($arr) {
$arr[] =
On Wednesday 26 July 2006 21:41, Robert Cummings wrote:
I'm working on some code that would be called to generate a cell in a
possibly large table and therefore a small difference in performance
may have a significant impact.
PHP uses copy-on-write and so copies are essentially shared
Ray Hauge wrote:
On Wednesday 19 July 2006 09:27, Mathijs wrote:
Hello there,
I Have an problem with UTF-8 and XML.
I Output perfect XML (according to IE, Opera and Firefox).
I use the Content-Type header with text/xml; charset=utf-8.
For some reason this breaks UTF-8 output.
When i remove it
Mathijs a écrit :
Hello there,
I Have an problem with UTF-8 and XML.
I Output perfect XML (according to IE, Opera and Firefox).
I use the Content-Type header with text/xml; charset=utf-8.
For some reason this breaks UTF-8 output.
When i remove it it works. But i need the text/xml header.
Hi,
Hello there,
I Have an problem with UTF-8 and XML.
I Output perfect XML (according to IE, Opera and Firefox).
I use the Content-Type header with text/xml; charset=utf-8.
For some reason this breaks UTF-8 output.
When i remove it it works. But i need the text/xml header.
If i save an document
On Wednesday 19 July 2006 09:27, Mathijs wrote:
Hello there,
I Have an problem with UTF-8 and XML.
I Output perfect XML (according to IE, Opera and Firefox).
I use the Content-Type header with text/xml; charset=utf-8.
For some reason this breaks UTF-8 output.
When i remove it it works. But
On Mon, April 17, 2006 8:55 pm, tedd wrote:
As I understand it, it won't make any difference if you use
strtotime()
See: http://www.weberdev.com/strtotime
Errr, yeah.
Only problem is, he needs non-existent function that might be named
timetostr which takes an elapsed time and turns it into a
On Fri, April 14, 2006 1:24 pm, jonathan wrote:
is there a function to take a second count and return it as a
formatted difference?
like a date_diff('H hours i',6133)
that uses date()'s formatting.
I think he means something not unlike:
function human_time($seconds){
$result = and .
At 6:17 PM -0500 4/17/06, Richard Lynch wrote:
On Fri, April 14, 2006 1:24 pm, jonathan wrote:
is there a function to take a second count and return it as a
formatted difference?
That, however, is probably not precisely what he wants, as it's WAY
off in the months/years thing... :-)
[snip]
is there a function to take a second count and return it as a
formatted difference?
like a date_diff('H hours i',6133)
that uses date()'s formatting.
[/snip]
http://www.php.net/mktime
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, Apr 02, 2006 at 10:34:48PM -0700, [EMAIL PROTECTED] wrote:
The same as before:
Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Mon, 03 Apr 2006 00:35:34 -0500
Received: from nobody by amsterdam.servershost.net with local (Exim 4.52)
You are better off using the 5th paramater to mail() instead..
mail($to, $sub, $msg, $headers, -f $return);
And what if that doesn't work? Is there a 3rd way of doing it that might
work?
~Drew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[EMAIL PROTECTED] wrote:
You are better off using the 5th paramater to mail() instead..
mail($to, $sub, $msg, $headers, -f $return);
And what if that doesn't work? Is there a 3rd way of doing it that might
work?
Ask your host if they allow you to change it on the fly. Explain what
you're
I'm having a problem setting the return-path using the mail function. I seem to
be able to modify any of the other header information I want, but not this one
item.
Here's my code:
$headers = Return-Path: Test test@test.com\r\n .
From: Test test@test.com\r\n .
Reply-To: Test
Andrew Darrow wrote:
I'm having a problem setting the return-path using the mail function. I seem to be able to modify any of the other header information I want, but not this one item.
Here's my code:
$headers = Return-Path: Test test@test.com\r\n .
From: Test test@test.com\r\n .
[EMAIL PROTECTED] wrote:
Safe mode is indeed off and sendmail_from has no value. I've modified the
code as below:
$return=test@test.com;
$orig_sendmail_from = ini_get('sendmail_from');
ini_set('sendmail_from', $return);
$headers = From: Test test@test.com\r\n .
Reply-To: Test
~Drew
www.drewpydraws.com
- Original Message -
From: Chris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Sunday, April 02, 2006 10:31 PM
Subject: Re: [PHP] return path of mail function
[EMAIL PROTECTED] wrote:
Safe mode is indeed off and sendmail_from has
so here http://drewpydraws.com/phpinfo.php
~Drew
www.drewpydraws.com
- Original Message -
From: Chris [EMAIL PROTECTED]
To: Andrew Darrow [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Sunday, April 02, 2006 5:02 PM
Subject: Re: [PHP] return path of mail function
Andrew Darrow
using: RedHat ; PHP 5.1.2 ; libxml 2.6.22
How do I return a node-set to an xsl stylesheet via php:function?
I've had no difficulty returning strings, but so far xsl refuses to see
the result as something I can iterate as real XML.
php fragment:
-
// return
try using -f
mail($toemail, $subject, $message, $from, '-f [EMAIL PROTECTED]');
[EMAIL PROTECTED] wrote:
I don't seem to be able to set the return path using the mail() function. I can't figure out why from will let me set it, but not the return path.
$headers = 'From: [EMAIL PROTECTED]' .
, 2005 6:12 AM
Subject: Re: [PHP] Return Path
try using -f
mail($toemail, $subject, $message, $from, '-f [EMAIL PROTECTED]');
[EMAIL PROTECTED] wrote:
I don't seem to be able to set the return path using the mail()
function. I can't figure out why from will let me set it, but not the
return
I don't seem to be able to set the return path using the mail() function. I
can't figure out why from will let me set it, but not the return path.
$headers = 'From: [EMAIL PROTECTED]' . \r\n .
'Return-path: [EMAIL PROTECTED]' . \r\n .
'X-Mailer: PHP/' . phpversion();
mail($email,
Hi,
i have a form which user have to fill all the fields in it, when the
form is submitted it goes to a validation page which checks if users
entered all the required fields.
what i want to do is to make the validation page redirect to the form
again with the previuosly entered values, so the
Ahmed Abdel-Aliem wrote:
Hi,
i have a form which user have to fill all the fields in it, when the
form is submitted it goes to a validation page which checks if users
entered all the required fields.
what i want to do is to make the validation page redirect to the form
again with the previuosly
I now there are function to calc file size but I want function to get string size in
bytes
On 10 Mar 2004 Robert Cummings wrote:
Overhead is minimal since PHP doesn't actually copy the contents of the
container until an attempt to modify it is made. At which time the
contents are only actually copied if the internal reference count is
greater than 0. Generally this means it won't
Kelly Hallman wrote:
Consider this method:
function xyz() {
return $this-data = unserialize($this-serial); }
Maybe I'm just being stupid, but wouldn't that simply return true if the
assignment was successful, and false otherwise?
[ trimmed ]
--
PHP General Mailing List
On 10 March 2004 13:48, Burhan Khalid wrote:
Kelly Hallman wrote:
Consider this method:
function xyz() {
return $this-data = unserialize($this-serial); }
Maybe I'm just being stupid, but wouldn't that simply return true if
the assignment was successful, and false
On Wed, Mar 10, 2004 at 04:48:06PM +0300, Burhan Khalid wrote:
Kelly Hallman wrote:
Consider this method:
function xyz() {
return $this-data = unserialize($this-serial); }
Maybe I'm just being stupid, but wouldn't that simply return true if the
assignment was successful,
On Wed, 2004-03-10 at 08:30, [EMAIL PROTECTED] wrote:
On 10 Mar 2004 Robert Cummings wrote:
Overhead is minimal since PHP doesn't actually copy the contents of the
container until an attempt to modify it is made. At which time the
contents are only actually copied if the internal
Consider this method:
function xyz() {
return $this-data = unserialize($this-serial); }
A few assumptions:
- Resultant data large enough to warrant discussion of efficiency
- I always want to store the unserialized data into the object
- The return value is only needed sometimes
If
On Wed, 2004-03-10 at 02:07, Kelly Hallman wrote:
Consider this method:
function xyz() {
return $this-data = unserialize($this-serial); }
A few assumptions:
- Resultant data large enough to warrant discussion of efficiency
- I always want to store the unserialized data into
You can use a class that sends mails by connecting directly to smtp
server, e.g. http://www.phpclasses.org/mimemessage
Chris Balay wrote:
Good Day Coders -
I have built a newsletter program with php. It sends out an e-mail to a
couple thousand subcribers every day. All works well. My problem
Good Day Coders -
I have built a newsletter program with php. It sends out an e-mail to a couple
thousand subcribers every day. All works well. My problem is that I have know
way of finding out which e-mails are not being delivered successfully.
My code is as follows:
$to =
Chris --
You have started a new thread by taking an existing message and replying
to it while merely changing the Subject: line.
That is bad, because it breaks threading. Whenever you reply to a
message, your mail client generates a References: header that tells all
recipients to which
On Wed, 5 Nov 2003 14:53:15 +0800, you wrote:
I am trying to get the results of a function, which queries MySQL, back into
an array for me to order. I only want to print out certain fields (I call
the same query, but use different fields in different places).
Can someone perhaps show me how to
--- Terence [EMAIL PROTECTED] wrote:
I am trying to get the results of a function, which queries MySQL, back
into an array for me to order. I only want to print out certain fields
(I call the same query, but use different fields in different places).
This works is I print out the fields in
Hi All,
I am trying to get the results of a function, which queries MySQL, back into
an array for me to order. I only want to print out certain fields (I call
the same query, but use different fields in different places).
This works is I print out the fields in the function itself:
while($row =
First of all, Hi!
I just started getting into php a week ago, but already ran into a problem I
can't seem to solve.
The issue is this : I code 2 different websites, each has it's own mySQL-DB.
Website A has a login-section, each time you successfully log in, a key is
generated which stays only
On Fri, 17 Oct 2003 08:54:23 +0200 (MEST), you wrote:
I have a php file in website A's directory, which, when given a key value,
will check whether it is valid or not. Is there any way I can treat this
website like a function and have it give me a return value after it has run
through ?
Yes;
fputs ($sp, POST /path/to/script.php HTTP/1.0\r\n);
fputs ($sp, Host: $host\r\n);
Sorry. That should be HTTP/1.1, of course.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Now I noticed you are on windows. There is a user note in the manual
that says that this function does not work as expected on windows:
[snip]
(by priebe at mi-corporation dot com)
Note that register_shutdown_function() does not work under Apache on
Windows platforms. Your shutdown function
1 - 100 of 175 matches
Mail list logo