<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.php.general">
    <title>gmane.comp.php.general</title>
    <link>http://blog.gmane.org/gmane.comp.php.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229207"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229206"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229205"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229204"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229203"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229202"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229201"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229200"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229199"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229198"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229197"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229196"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229195"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229194"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229193"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229192"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229191"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229190"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229189"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.general/229188"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229207">
    <title>Re: Re: Doing something wrong?</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229207</link>
    <description>&lt;pre&gt;
That was the kick - Thanks ...

&lt;/pre&gt;</description>
    <dc:creator>Lester Caine</dc:creator>
    <dc:date>2013-05-22T10:14:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229206">
    <title>Re: Doing something wrong?</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229206</link>
    <description>&lt;pre&gt;

Did you "make clean" after reconfiguring before re-compiling php? According 
to https://bugs.php.net/bug.php?id=63611 that may be a cause.

&lt;/pre&gt;</description>
    <dc:creator>David Robley</dc:creator>
    <dc:date>2013-05-22T00:11:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229205">
    <title>Doing something wrong?</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229205</link>
    <description>&lt;pre&gt;I've got a new machine set up with SUSE12.3 but while it has PHP5.4, Apache is 
still stuck at 2.2, so I've downloaded and built 2.4.4 and PHP5.4.15 along with 
the modules I need but I'm having trouble actually getting it to load the 
'Additional' .ini files.
phpinfo is showing the change of location of the php.ini file, but nothing for 
the 'Scan this dir for additional .ini files' while the Configure shows 
'--with-config-file-scan-dir=/opt/apache2/conf/php5.d'
What am I missing?
It's working on the other machines and loading all the extra modules happily.

&lt;/pre&gt;</description>
    <dc:creator>Lester Caine</dc:creator>
    <dc:date>2013-05-21T19:08:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229204">
    <title>Re: How do I remove a string from another string in a fuzzy way?</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229204</link>
    <description>&lt;pre&gt;Initially I was thinking that somehow I could use a simple regex on the

Daevid:

Go ahead and strip out the whitespace, but replace it with a delimiter string that is unique and then don't consider that delimiter when comparing strings to strings.

Afterwards, if you want to keep the string (instead of deleting it), then reverse the process adding back in the whitespace and removing the delimiter.

Also, you may want to look into using array_unique() for comparing groupings of several strings (i.e., paragraphs) to other groupings. It works pretty slick for me.

Cheers,

tedd

_____________________
tedd.sperling&amp;lt; at &amp;gt;gmail.com
http://sperling.com


&lt;/pre&gt;</description>
    <dc:creator>Tedd Sperling</dc:creator>
    <dc:date>2013-05-21T16:45:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229203">
    <title>Re: A Good OOP Tutorial/Read?</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229203</link>
    <description>&lt;pre&gt;Hey guys, thanks again for the talk and education.  I've purchased the
book, and started reading thru the links given.  Take care!

-Dan


On Sun, May 19, 2013 at 12:28 PM, Tedd Sperling &amp;lt;tedd&amp;lt; at &amp;gt;sperling.com&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Dan Joseph</dc:creator>
    <dc:date>2013-05-21T13:18:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229202">
    <title>Re: Question about session_id() and session_start()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229202</link>
    <description>&lt;pre&gt;thank you.
I read the source code and it helps a lot, now I know the behavior
of the code is consistent with the NOTE.
I think the reason is that If the 'new' session_id we want to set
already exists on the server, but does not exist on the client's
cookie, the server must send a set-cookie header to the client.


On Tue, May 21, 2013 at 3:50 PM, Tim Schofield &amp;lt;tim&amp;lt; at &amp;gt;weberpafrica.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>孟远涛</dc:creator>
    <dc:date>2013-05-21T12:50:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229201">
    <title>Re: totally a newbie in sending phone number to a webserver</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229201</link>
    <description>&lt;pre&gt;    require_once('nusoap/nusoap.php');
    $client = new nusoap_client('http://smsprovider.com/post/send.asmx?wsdl'
);

    $err = $client-&amp;gt;getError();

    if ($err)
    {

        echo 'Constructor error' . $err;

    }

$parameters['username'] = "";
$parameters['password'] = "";
$parameters['to'] = "";
$parameters['from'] = "";
$parameters['text'] ="test";
$parameters['isflash'] =false;


    $result = $client-&amp;gt;call('send', $parameters);
    print_r($result);


On Tue, May 21, 2013 at 1:46 PM, Negin Nickparsa &amp;lt;nickparsa&amp;lt; at &amp;gt;gmail.com&amp;gt;wrote:

&lt;/pre&gt;</description>
    <dc:creator>Farzan Dalaee</dc:creator>
    <dc:date>2013-05-21T10:17:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229200">
    <title>totally a newbie in sending phone number to a webserver</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229200</link>
    <description>&lt;pre&gt;I registered a SMS web service and I have username and password
and there are methods as follow which I can use:

balance
receive
send
send to all
send advanced
status
status advanced

suppose I have a form and I will get the phone number from user
also I have user name,pass and url of the web service
like $phone['number'],$user,$pass,$url

I don't know what exactly I should do to force the php code read from the
functions of the web service does including the url enough?
I am totally mixed up.

can someone tell me what is happening in this procedure?

is there any tutorial so that I can understand it?
I tried to use sample codes but they were different from which I wanted.

Thanks in Advance.
&lt;/pre&gt;</description>
    <dc:creator>Negin Nickparsa</dc:creator>
    <dc:date>2013-05-21T09:16:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229199">
    <title>Re: Question about session_id() and session_start()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229199</link>
    <description>&lt;pre&gt;
Tell that to the designers of the android gmail app :-)


That wasn't the advice given. The advice given was to read the source
code. My point was that is not very helpful advice. With a few notable
exceptions the help given on this list has become less and less
friendly over the years I have been reading it. This can't be good for
the PHP community.


Tim

&lt;/pre&gt;</description>
    <dc:creator>Tim Schofield</dc:creator>
    <dc:date>2013-05-21T07:50:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229198">
    <title>RE: How do I remove a string from another string in a fuzzy way?</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229198</link>
    <description>&lt;pre&gt;


Yes written from scratch years ago.


We have like 20,000 tickets in there already. Asking the users (who are not the brightest people on the planet to begin with given the vast majority of tickets I've encountered. Most don't read simple instructions as it is and many don't even speak Engrish) to follow some instructions is probably not going to work. And even if it did, that doesn't solve the problem for previous tickets.


&lt;/pre&gt;</description>
    <dc:creator>Daevid Vincent</dc:creator>
    <dc:date>2013-05-21T04:46:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229197">
    <title>Re: How do I remove a string from another string in a fuzzy way?</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229197</link>
    <description>&lt;pre&gt;Is your ticketing system written from scratch? Because such type of logic
is already implemented in existing help desk softwares.

I think you can also use a specific string in your email to define which
part goes in ticket and which part not. For example, you can include
"PLEASE REPLY ABOVE THIS LINE\r\n" in each of the email. When reply comes
you can split the whole email with this string and get the first part as
original reply.


&lt;/pre&gt;</description>
    <dc:creator>shiplu</dc:creator>
    <dc:date>2013-05-21T04:03:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229196">
    <title>Re: Question about session_id() and session_start()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229196</link>
    <description>&lt;pre&gt;Op 21 mei 2013 03:59 schreef "David OBrien" &amp;lt;dgobrien&amp;lt; at &amp;gt;gmail.com&amp;gt; het
volgende:
wrote:
wrote:
seems a
of C
wrote:
session_id()
regardless if
id is
matches
http://stackoverflow.com/questions/12233406/preventing-session-hijacking
new cookie with the same session id?
tried to use my session info they would get a new session id where I would
still have my original one so they wouldn't be able to hijack mine trying
to reuse the same id I have since php would generate a new one

If you read the original question correctly, it's about a *new cookie* with
the *same session id*.

Second, if somebody is sniffing you he would also be able to grab the new
session id, and yours (old and new one) will be useless if he uses the new
session id before you do.
Avoiding session hijacking is not that easy, it's much easier to just use
an SSL connection. At least that protects you from someone sniffing on a
public wifi, but it does not help against sniffing viruses, malicious
browser extensions or cross site scripting attacks. Since it's off topic,
I'll end here. If you want to learn more, Google is your best friend!

- Matijn
&lt;/pre&gt;</description>
    <dc:creator>Matijn Woudt</dc:creator>
    <dc:date>2013-05-21T02:21:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229195">
    <title>How do I remove a string from another string in a fuzzy way?</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229195</link>
    <description>&lt;pre&gt;We have a support ticket system we built and customers can reply via email
which then posts their reply into our database. The problem is that when you
read a ticket, you see each ticket entry (row in DB) but they tend to
accumulate the previous entries text since the customer replied to an email.
A thread if you will.

I'm trying to strip out the "duplicate parts" (cosmetically on the front end
via a checkbox, in case the support person needs to see the actual unaltered
version such as in cases where the algorithm may be too aggressive and rip
out important pieces inadvertently).

One challenge I'm running into are situations like this, where the text is
embedded but has been slightly altered.

ENTRY 1:

For security and confidentiality reasons, we request that all subscribers
who are requesting cancellation do so via the website of the company billing
their account. You can easily cancel your membership on our billing agent
website

(just in case THIS PHP list software mangles the above, it is just one long
string with no CR breaks as the ones below have)

ENTRY 2: (which was mangled by the customer's email client most likely and
formatted for 72 chars)

For security and confidentiality reasons, we request that all
subscribers who are requesting cancellation do so via the website of
the company billing their account. You can easily cancel your 
membership on our billing agent website

This is a simple example, but the solution logic might extend to other
things such as perhaps a prefix like so:

ENTRY 3: (again mangled by email client to prefix with "&amp;gt;" marks)


Keep in mind those blobs of text are often embedded inside other text which
I *do* want to display.

Initially I was thinking that somehow I could use a simple regex on the
needle and haystacks to strip out all white space and str_ireplace() them
that way, but then I don't have a way to put the whitespace back that I can
see.

Currently I'm just sort of brute forcing it and comparing the current
message to previous ones and if the previous message is found in this
message, then blank it out. But this only works of course if they are
identical.

&amp;lt;?php
$i = 0;

//the initial ticket message is in a different table than the replies
hereafter
$entry_message[$i] = $my_ticket-&amp;gt;get_message(false); 

foreach($my_ticket-&amp;gt;get_entries() as $eid =&amp;gt; $entry) 
{ 
$i++;
$output_message = $entry_message[$i] = trim($entry['message']);
//var_dump('OUTPUT MESSAGE:', $output_message);

for ($j = ($i - 1); $j &amp;gt;= 0; --$j)
{
//echo "\n&amp;lt;br&amp;gt;&amp;lt;font color='green'&amp;gt;&amp;lt;b&amp;gt;searching for
entry_message[$j] in [i = $i]:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;\n$output_message&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;\n";
$output_message = str_replace($entry_message[$j], '',
$output_message);
//var_dump('NEW OUTPUT MESSAGE:', $output_message);
}

( ^ you have to start from the bottom up like that or else you have altered
your $output_message so subsequent matches fail ^ )

Would these be helpful? 

http://us2.php.net/manual/en/function.similar-text.php
http://us2.php.net/manual/en/function.levenshtein.php
http://us2.php.net/manual/en/function.soundex.php
http://us2.php.net/manual/en/function.metaphone.php

It seems like similar_text() could be, and if it's a high percentage,
consider it a match, but then how do I extract that part from the source
string, since str_replace() requires an exact match, not fuzzy.

I am also thinking maybe something with preg_replace() where I break up the
source string and take the first word(s) and last word(s) and use .*? in
between, but that has its' own challenges for example...

  /For .*? website/

On this text doesn't do the match I really want (it stops on the second
line)...

  For security and confidentiality reasons, we request that all
  subscribers who are requesting cancellation do so via the website of
  the company billing their account. You can easily cancel your 
  membership on our billing agent website
  More stuff goes here website

By putting more words before and after the .*? I could get better accuracy,
but that is starting to feel hacky or fragile somehow.



&lt;/pre&gt;</description>
    <dc:creator>Daevid Vincent</dc:creator>
    <dc:date>2013-05-21T02:17:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229194">
    <title>Re: Question about session_id() and session_start()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229194</link>
    <description>&lt;pre&gt;wrote:
seems a
of C
session_id()
regardless if
is
matches
new cookie with the same session id?

I was thinking if I was sitting in a cafe and someone was sniffing and
tried to use my session info they would get a new session id where I would
still have my original one so they wouldn't be able to hijack mine trying
to reuse the same id I have since php would generate a new one

No?
&lt;/pre&gt;</description>
    <dc:creator>David OBrien</dc:creator>
    <dc:date>2013-05-21T01:59:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229193">
    <title>Re: Question about session_id() and session_start()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229193</link>
    <description>&lt;pre&gt;


How would it help preventing session hijacking if it was sending the a new
cookie with the same session id?

- Matijn
&lt;/pre&gt;</description>
    <dc:creator>Matijn Woudt</dc:creator>
    <dc:date>2013-05-21T00:44:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229192">
    <title>Re: Question about session_id() and session_start()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229192</link>
    <description>&lt;pre&gt;
Tim,

first of all, please bottom-post on this list.
Secondly, a simple google search for "php c session_start" resulted in 
this: https://github.com/php/php-src/blob/master/ext/session/session.c#L1303

- Tul

&lt;/pre&gt;</description>
    <dc:creator>Maciek Sokolewicz</dc:creator>
    <dc:date>2013-05-20T21:44:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229191">
    <title>Re: Question about session_id() and session_start()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229191</link>
    <description>&lt;pre&gt;

I guess it would be to help prevent session hijacks like explained here

http://stackoverflow.com/questions/12233406/preventing-session-hijacking
&lt;/pre&gt;</description>
    <dc:creator>David OBrien</dc:creator>
    <dc:date>2013-05-20T20:46:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229190">
    <title>Re: Question about session_id() and session_start()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229190</link>
    <description>&lt;pre&gt;Matijn

There are well over half a million lines of source code in PHP. It seems a
little unhelpful to tell someone to go and read half a million lines of C
when you could just tell them the answer?

Thanks
Tim

Course View Towers,
Plot 21 Yusuf Lule Road,
Kampala
T +256 (0) 312 314 418
M +256 (0) 752 963 325
www.weberpafrica.com
Twitter: &amp;lt; at &amp;gt;TimSchofield2
Blog: http://weberpafrica.blogspot.co.uk
On May 20, 2013 6:24 PM, "Matijn Woudt" &amp;lt;tijnema&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Tim Schofield</dc:creator>
    <dc:date>2013-05-20T20:14:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229189">
    <title>Re: pass parameter via URL</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229189</link>
    <description>&lt;pre&gt;
How about just using &amp;lt;form action='myPage.php' method='GET'&amp;gt;?
Put a normal submit button there and you're done (and as a bonus it takes
care of character escaping)

- Matijn
&lt;/pre&gt;</description>
    <dc:creator>Matijn Woudt</dc:creator>
    <dc:date>2013-05-20T17:31:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229188">
    <title>Re: Question about session_id() and session_start()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229188</link>
    <description>&lt;pre&gt;

You will find the answer in the PHP source code.
If you don't want this to happen, check if the current session id matches
with the value you want to set it to, and don't set if they match.

- Matijn
&lt;/pre&gt;</description>
    <dc:creator>Matijn Woudt</dc:creator>
    <dc:date>2013-05-20T17:24:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.general/229187">
    <title>Re: Symfony?</title>
    <link>http://permalink.gmane.org/gmane.comp.php.general/229187</link>
    <description>&lt;pre&gt;Drupal 8 is being built using Symfony, which means I have to learn it.

Ken

At 12:44 PM 5/20/2013, Bastien wrote:




&lt;/pre&gt;</description>
    <dc:creator>Ken Robinson</dc:creator>
    <dc:date>2013-05-20T16:54:09</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.php.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.php.general</link>
  </textinput>
</rdf:RDF>
