Skinbase.org Skinbase.org

General Talk about PHP scripts

By Gregor Klevže
5,707 views 11 replies
craeonics avatar
craeonics
Member
OP
In general or the SkinTech ones?
Gregor Klevže avatar
Gregor Klevže
Member
hmmm.... i guess we could about general php/mysql :)

Edited

cuttheredwire avatar
cuttheredwire
Member
I&acute;ve got a tough one for you guys. 8) <br /> <br />I&acute;m reading up on this stuff, and on news groups. What I would like to do is have a news group and php forum links. Have it so you could access it through a browser or though a news reader. From what I gather, news grups are similare to databases (or are special types or databases). I&acute;m not sure how thier user system works though. I&acute;m not sure how a user system in php works either. <br /> <br />So to start off, what are your thoughts on this? I&acute;ve heard of it being done, but never seen it. We can get into code and details later if you want. For now, bouncing arround a few ideas sound good to me. ^.^
Gregor Klevže avatar
Gregor Klevže
Member
you can access to newsgroups with php through sockets, or try to find any php addon which support newsgorup access. <br />You can connect to newsgroup if you open socket to news server on port 119. <br />After connection you just have to send/recieve data. <br />Newsgroups know this commands: <br /><code> <br /> authinfo user Name|pass Password|generic <prog> <args> <br /> article [MessageID|Number] <br /> body [MessageID|Number] <br /> date <br /> group newsgroup <br /> head [MessageID|Number] <br /> help <br /> ihave <br /> last <br /> list [active|newsgroups|distributions|schema] <br /> listgroup newsgroup <br /> mode reader <br /> newgroups yymmdd hhmmss [&quot;GMT&quot;] [<distributions>] <br /> next <br /> post <br /> slave <br /> stat [MessageID|Number] <br /> xgtitle [group_pattern] <br /> xhdr header [range|MessageID] <br /> xover [range] <br /> xpat header range|MessageID pat [morepat...] <br /> xpath xpath MessageID <br /></code> <br /> <br />you can also test it through telnet command. <br /> <br />Example: telnet news.triera.net 119 <br /> <br />and then type any commands I paste before. <br /> <br /> <br />
craeonics avatar
craeonics
Member
Basically, what gRAVE said would be the way to go. Openiong a socket in PHP (through fsockopen()) is akin to telnetting to a server yourself. <br /> <br />I have seen it done on a dutch board: http://www.webhostingtalk.nl - scroll to the bottom and you&acute;ll see they&acute;ve integrated three newsgroups into the board. <br /> <br />By the way, gRAVE, can we somehow post code here, without having to use escape tags?
cuttheredwire avatar
cuttheredwire
Member
I have to say it sounds a lot more simple than I thought it woud be. 8) <br />Now I just gotta figure out how to make a news group. :P <br /> <br />Thx guys. =^.^=

Edited

Gregor Klevže avatar
Gregor Klevže
Member
letme test the code :) <br /> <br /><code> <br /> <?php <br /> <br /> echo &quot;Hello World&quot;; <br /> ?> <br /></code> <br /> <br />

Edited

Gregor Klevže avatar
Gregor Klevže
Member
if you wanna post a code use &lt;code> and close with &lt;/code> <br /> <br />it should work then
cuttheredwire avatar
cuttheredwire
Member
That&acute;s a good way to do it I think.
craeonics avatar
craeonics
Member
Lemme try: <br /> <br /><code> <br /> if(!class_exists($klasse)){ <br /> $module=MOD.&acute;/&acute;.substr($klasse,1).&acute;.mod.php&acute;; <br /> if(file_exists($module)){ <br /> include_once($module); <br /> } <br /> } <br /></code>
craeonics avatar
craeonics
Member
Cool. But it shouldn&acute;t strip the whitespace though. Perhaps replace multiple spaces between &lt;code&gt; tags with &amp;nbsp; ?
Gregor Klevže avatar
Gregor Klevže
Member
added :)
Sign in to post a reply.