[PHP] PHP with NNTP?

2008-04-15 Thread vester_s

Hi,

Can anybody tell me how can php connect to NNTP to get the list of all users
in the newsgroups?

thanks,
-- 
View this message in context: 
http://www.nabble.com/PHP-with-NNTP--tp16713817p16713817.html
Sent from the PHP - General mailing list archive at Nabble.com.


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



Re: [PHP] PHP with NNTP?

2008-04-16 Thread vester_s

Is it possible to do it without using imap? I am trying to get the list of
all users that is on the newsgroup, is that possible?


chris smith-9 wrote:
> 
> vester_s wrote:
>> Hi,
>> 
>> Can anybody tell me how can php connect to NNTP to get the list of all
>> users
>> in the newsgroups?
> 
> http://php.net/imap supports nntp.
> 
> -- 
> Postgresql & php tutorials
> http://www.designmagick.com/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/PHP-with-NNTP--tp16713817p16723692.html
Sent from the PHP - General mailing list archive at Nabble.com.


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



Re: [PHP] PHP with NNTP?

2008-04-16 Thread vester_s

I need to get the list for all of the people that subscribing to this
newsreader, this list will be used to modify the other mailing list
programs.

Basically by getting the list of the people that subscribing on this
newsgroup, then i could migrate it to our new forum based.

So is it possible for getting those list?

thanks,



Stut wrote:
> 
> On 16 Apr 2008, at 18:01, vester_s wrote:
>> Is it possible to do it without using imap? I am trying to get the  
>> list of
>> all users that is on the newsgroup, is that possible?
> 
> I'm wondering what possible legitimate reason you could have for  
> wanting that list?
> 
> There is a way to get it (it's not easy but it's possible) but until I  
> know why you want it I'm not sharing.
> 
> -Stut
> 
> -- 
> http://stut.net/
> 
>> chris smith-9 wrote:
>>>
>>> vester_s wrote:
>>>> Hi,
>>>>
>>>> Can anybody tell me how can php connect to NNTP to get the list of  
>>>> all
>>>> users
>>>> in the newsgroups?
>>>
>>> http://php.net/imap supports nntp.
>>>
>>> -- 
>>> Postgresql & php tutorials
>>> http://www.designmagick.com/
>>>
>>> -- 
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/PHP-with-NNTP--tp16713817p16723692.html
>> Sent from the PHP - General mailing list archive at Nabble.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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/PHP-with-NNTP--tp16713817p16735336.html
Sent from the PHP - General mailing list archive at Nabble.com.


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



[PHP] Re: Re[PHP] gex to catch s

2008-05-06 Thread vester_s

$tag_regex=array(
  '/\(.*?)\<\/p\> /si' => "$1",
  '/\<(\s*)(*.?)class\=(*.?)\>(.*?)\<\/(*.?)\>/si' => "$3"
);

$paragraphs=preg_replace(array_keys($tag_regex),array_values($tag_regex),$page);

I am not sure what tag is that you mean on , but in this
RE .. it should capture any  tags (the first element of the array) and
any tags (the second element of the array) that has attribute class on it. 

You can find another example of this kind of HTML parsing in the PHP... try
googling it..:)

HTH


Ryan S-4 wrote:
> 
> 
> 
> 
>>  To say I suck at regex is an understatement so really need any help I
>> can get on this, I have a page of text with different html tags in them,
>> but each "block" of text has a  or a < class="something"> tag...
>> anybody have any regex that will catch each of these paragraphs and put
>> then into an array
> 
> 
> If you're using php5 you can use DOM's getElementsByTagName.
> 
> If you still think you need to do some sort of regex it is possible
> but it will be buggy at best.
> 
> 
> 
> 
> Nope, need a regex... guess I have no choice, either chancy regex or
> nothing... I know for a fact that the first paragraph tag wont contain a
> class, and for the  tags that contain a class="blah" does it matter
> that i know exactly what the classname is?
> 
> 
> 
>  
> 
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now. 
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Regex-to-catch-%3Cp%3Es-tp17075329p17089906.html
Sent from the PHP - General mailing list archive at Nabble.com.


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