php-general Digest 15 Aug 2013 18:16:40 -0000 Issue 8332
Topics (messages 321843 through 321847):
Re: How to upstream code changes to php community
321843 by: David Robley
filesize() fails on file and works on it's copy (same permissions, same
directory)
321844 by: MichaÅ Kochanowicz
Why the difference in email transit times?
321845 by: Tedd Sperling
321846 by: Ian
Session_unset - session_destroy issue
321847 by: dealTek
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Shahina Rabbani wrote:
> Hi,
>
> I have done some modifications to the php source code and i tested it with
> php bench and I observed some improvement.
>
> I wanted to upstream these code changes to PHP community.
> I searched the wed but i didnt find proper guide to upstream the code to
> php.
>
> Please help me by providing the information how to upstream my code
> changes to php source code community.
>
>
> Thanks,
> Shahina Rabbani
Start with https://github.com/php/php-
src/blob/master/README.SUBMITTING_PATCH which is linked from the Community
menu item on the PHP home page.
--
Cheers
David Robley
Enter any 11-digit prime number to continue...
--- End Message ---
--- Begin Message ---
Hello
I've got a file, which can't be checked with filesize(). I copy it (with
permissions) and then I can filesize() the copy. This is same directory,
permissions are same. I don't understand what's the difference. Can you help me?
Original file:
File: 'DSC_5196_fx-1553725666.JPG'
Size: 1907383 Blocks: 3728 IO Block: 4096 regular file
Device: 803h/2051d Inode: 5905591363 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 51/ http) Gid: ( 51/ http)
Access: 2013-08-13 00:47:28.107477918 +0200
Modify: 2013-08-12 21:38:27.219913208 +0200
Change: 2013-08-13 00:47:08.931478654 +0200
Birth: -
Copy:
File: 'DSC_5196_fx-1553725666_X.JPG'
Size: 1907383 Blocks: 3728 IO Block: 4096 regular file
Device: 803h/2051d Inode: 144 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 51/ http) Gid: ( 51/ http)
Access: 2013-08-13 00:45:48.000000000 +0200
Modify: 2013-08-12 21:38:27.000000000 +0200
Change: 2013-08-13 00:47:28.199477914 +0200
Birth: -
The only difference is inode: (5905591363 - doesn't work vs 144 - does work).
Test script:
<html>
<body>
<pre>
<?
$f3 =
'/home/services/httpd/html.galeria.XXX/gallery/var/albums/988_Rok-2013/333_Rydzewo-04-06.08.2013/Sobota/DSC_5196_fx-1553725666.JPG';
$f4 =
'/home/services/httpd/html.galeria.XXX/gallery/var/albums/988_Rok-2013/333_Rydzewo-04-06.08.2013/Sobota/DSC_5196_fx-1553725666_X.JPG';
print $f3.": ".filesize($f3)."\n";
print $f4.": ".filesize($f4)."\n";
?>
</pre>
</body>
</html>
Result:
Warning: filesize(): stat failed for
/home/services/httpd/html.galeria.XXX/gallery/var/albums/988_Rok-2013/333_Rydzewo-04-06.08.2013/Sobota/DSC_5196_fx-1553725666.JPG
in /home/services/httpd/html.galeria.michal.waw.pl/gallery3-3.0.x/test.php on
line 13
/home/services/httpd/html.galeria.XXX/gallery/var/albums/988_Rok-2013/333_Rydzewo-04-06.08.2013/Sobota/DSC_5196_fx-1553725666.JPG:
/home/services/httpd/html.galeria.XXX/gallery/var/albums/988_Rok-2013/333_Rydzewo-04-06.08.2013/Sobota/DSC_5196_fx-1553725666_X.JPG:
1907383
Regards
Michał
--- End Message ---
--- Begin Message ---
Hi gang:
I'm using the class.phpmailer.php code to send email -- it works neat -- very
classy (no pun intended).
I can send an email from my sperling.com domain and it arrives almost
immediately.
However, when I use the exact same code (except for the FROM address) from
kvyv.com (another domain I own), the email literally takes hours (up to 12) to
arrive.
Any idea of why there is a difference of email transit times between the two
domains?
Cheers,
tedd
PS: Note, my receiving email addresses are handled by gmail.com.
_______________
tedd sperling
t...@sperling.com
--- End Message ---
--- Begin Message ---
On 13/08/2013 16:20, Tedd Sperling wrote:
> Hi gang:
>
> I'm using the class.phpmailer.php code to send email -- it works neat -- very
> classy (no pun intended).
>
> I can send an email from my sperling.com domain and it arrives almost
> immediately.
>
> However, when I use the exact same code (except for the FROM address) from
> kvyv.com (another domain I own), the email literally takes hours (up to 12)
> to arrive.
>
> Any idea of why there is a difference of email transit times between the two
> domains?
>
> Cheers,
>
> tedd
>
> PS: Note, my receiving email addresses are handled by gmail.com.
Hi,
Have a look at the "Received:" headers of each email. They are in
reverse order. I.e. the one at the top is the most recently added.
Take into account timezone differences too.
12 hours seems like a very long time for a delay. I suspect one of the
receiving hosts in the chain employs greylisting, and the sending
network employs many different sending servers (ie like Google) in a
round-robin fashion. The greylisting server may not be configured to
recognise the many different servers as one 'set'.
All speculation of course ;)
Feel free to send the headers off list and I'll take a look.
Regards
Ian
--
--- End Message ---
--- Begin Message ---
Hi all,
I am having trouble with session_destroy - session_unset and $_SESSION =
array()... I am trying to STOP and destroy all session vars......
with the simple code test below I would think it would echo test 1 BUT FAIL on
test2
- however it shows both for me...
how do I UNSET - DESTROY SESSIONS?
<?php
session_start();
$_SESSION['var1'] = 'test1';
echo '<br /> test1 '. $_SESSION['var1'].' ';
session_unset();
session_destroy();
$_SESSION = array();
$_SESSION['var1'] = 'test2';
echo '<br /> test2 ' . $_SESSION['var1'];
?>
--
Thanks,
Dave - DealTek
deal...@gmail.com
[db-3]
--- End Message ---