php-general Digest 20 Jul 2003 17:09:02 -0000 Issue 2187

Topics (messages 155942 through 155982):

Re: Forms and PHP
        155942 by: Jason Giangrande
        155951 by: Jason Wong
        155970 by: Yasir Malik
        155971 by: John Nichel

Re: Setting total db size to a variable.
        155943 by: Curt Zirzow

Re: URL correctimizer ... how to make one?
        155944 by: Curt Zirzow
        155960 by: Justin French
        155966 by: Randum Ian
        155967 by: Mike Morton
        155979 by: Curt Zirzow

Re: classes v. functions
        155945 by: Simon Fredriksson
        155946 by: Curt Zirzow
        155947 by: Andu
        155968 by: Robert Cummings

list server problem
        155948 by: Andu
        155949 by: Curt Zirzow
        155952 by: Jason Wong
        155980 by: Andu

Coding Question
        155950 by: Aaron Axelsen
        155959 by: Justin French

Re: Still problem with files
        155953 by: Jason Wong

FREE PHP HOSTING
        155954 by: Bang Dodi

creating rs2 newsfeeds
        155955 by: Merlin
        155969 by: Aquarion
        155973 by: Merlin
        155974 by: Manuel Lemos
        155976 by: Merlin
        155981 by: Manuel Lemos

Preserving session vars over multiple windows
        155956 by: Thomas Hochstetter

hi
        155957 by: David Kelso

Jumping between HTTP and HTTPS
        155958 by: John Manko
        155977 by: Curt Zirzow
        155978 by: Curt Zirzow

Auto session timeout
        155961 by: Tan Ai Leen
        155965 by: John W. Holmes
        155982 by: Curt Zirzow

The 'Unable to create Java Virtual Machine' Again
        155962 by: Tan Ai Leen
        155964 by: Tan Ai Leen

Re: HOW TO -- ARRAY UPDATE MYSQL
        155963 by: Suresh Babu.A [Support]

mail function
        155972 by: Peda

Re: A new FREE web server can do PHP faster than Apache's mod_php
        155975 by: Mark Clarkstone

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Thanks guys.  I think I'll try it first as Chris suggested and see how
that goes.  Thanks again.

Jason

On Sun, 2003-07-20 at 00:55, Justin French wrote:
> This is done with javascript... without getting too off topic... JS can 
> get the contents of the textarea, and submit it via get (maybe post as 
> well) to another (pop-up) window.  the pop-up window can highlght 
> misspelled words, and even make dynamic changes to the content in the 
> first window.
> 
> it's pretty complex stuff though... and definitely NOT for the JS 
> newbie...
> 
> look around the JS lists and sites for something that might give you a 
> head start.
> 
> 
> justin
> 
> 
> 
> On Sunday, July 20, 2003, at 02:37  PM, Jason Giangrande wrote:
> 
> > I have a question about forms and PHP.  Here's what I'm looking to do.
> > I'm trying to set up a spell checker that checks text entered in a 
> > form,
> > but I want the check results to show up in a different window so that
> > the user can change the misspelled words if they'd like.  In other
> > words, I want to be able to click a link and have another page open 
> > that
> > checks the spelling.  My question is how can I send the text from the
> > form to this other page (which, right now, is a separate php script) so
> > it can be spell checked without actually submitting the actual form
> > first?  In other words, I would like the user to be able to check the
> > spelling without actually submitting the form.
> >
> > Thanks,
> > Jason Giangrande
> >
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > ---
> > [This E-mail scanned for viruses]
> >
> >
> 


--- End Message ---
--- Begin Message ---
On Sunday 20 July 2003 12:37, Jason Giangrande wrote:
> I have a question about forms and PHP.  Here's what I'm looking to do.
> I'm trying to set up a spell checker that checks text entered in a form,
> but I want the check results to show up in a different window so that
> the user can change the misspelled words if they'd like.  In other
> words, I want to be able to click a link and have another page open that
> checks the spelling.  My question is how can I send the text from the
> form to this other page (which, right now, is a separate php script) so
> it can be spell checked without actually submitting the actual form
> first?  In other words, I would like the user to be able to check the
> spelling without actually submitting the form.

Squirrelmail has a nice spelling checker which works similar to that. Take a 
look to see if you can borrow some ideas/code.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
It is not a good omen when goldfish commit suicide.
*/


--- End Message ---
--- Begin Message ---
I'm working with forms using PHP and HTML.  I've noticed that there is a
limit of the length of a URL that can sent to browser (I'm passing many
many things as arguments across pages).  Is there a way to get across the
limit or am I doing something wrong?
Yasir

--- End Message ---
--- Begin Message --- Yasir Malik wrote:
I'm working with forms using PHP and HTML.  I've noticed that there is a
limit of the length of a URL that can sent to browser (I'm passing many
many things as arguments across pages).  Is there a way to get across the
limit or am I doing something wrong?
Yasir


Submit your form via post instead of get.



--- End Message ---
--- Begin Message ---
* Thus wrote Jason Martyn ([EMAIL PROTECTED]):
> I have a question in regards to finding the total db size and setting it to a 
> variable.
> 
> How would I go about this?

http://www.mysql.com/doc/en/SHOW_TABLE_STATUS.html

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

--- End Message ---
--- Begin Message ---
I know this isn't your code but...

* Thus wrote Justin French ([EMAIL PROTECTED]):
> [...]
> 
> // test the URL
> // it's important that you dont put http:// or it will not work
> // the 2nd paramater is how long to test the URL b4 timing out
> $found = fsockopen($url, 10);

$found = fsockopen($host, $port, $errno, $errstr, $timeout);
 
> 
> // act on it
> if($found)
>       {  
>     echo "URL http://{$url} could not be found, thus is considered 
> invalid";

hm... actually this is found but any way but any way since it is found
might as well check the uri..

fputs($found, "GET $uri HTTP/1.0\r\nHost: $host\r\n\r\n");

$status = fgets($found)
list(proto, $result, $result_text) = split($status);
if ($result != 200 ) {
  echo "url is bad, give me a better one";
} else{
  echo "thank you for for the url";
}

>       }
> ?>

and of course 
fclose($found); //we dont want the rest of the page.


hmm.. I think I did to much.. just that other peoples code frighten me
sometimes....

btw, the above code is copyrighted so dont use it. 

cheers,

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

--- End Message ---
--- Begin Message ---
On Sunday, July 20, 2003, at 03:26 PM, Curt Zirzow wrote:


I know this isn't your code but...

yes, it wasn't mine, but i should have checked it out more thoroughly regardless.



btw, the above code is copyrighted so dont use it.

*sigh*... so why contribute it to the list? Just to prove your skills?


I didn't join this list for that reason at all... I joined to teach and learn in return.

I have no need for the code you supplied AT ALL, and don't plan to use it, but fail to see why you're so precious about a few lines, and fail to see why you bothered to send it to the list at all if you didn't want anyone to use it.


Justin



--- End Message ---
--- Begin Message ---
And even if it is copyrighted as soon as you change variable names and
so on that copyright does not apply.

-----Original Message-----
From: Justin French [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2003 14:00
To: Curt Zirzow
Cc: php
Subject: Re: [PHP] URL correctimizer ... how to make one?


On Sunday, July 20, 2003, at 03:26  PM, Curt Zirzow wrote:

> I know this isn't your code but...

yes, it wasn't mine, but i should have checked it out more thoroughly 
regardless.


> btw, the above code is copyrighted so dont use it.

*sigh*... so why contribute it to the list?  Just to prove your skills?

I didn't join this list for that reason at all... I joined to teach and 
learn in return.

I have no need for the code you supplied AT ALL, and don't plan to use 
it, but fail to see why you're so precious about a few lines, and fail 
to see why you bothered to send it to the list at all if you didn't 
want anyone to use it.


Justin


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


--- End Message ---
--- Begin Message ---
Tell me Curt, where is it copyrighted?  US/Canada/Worldwide?  Where is it
registered?  What do you intended to do to protect your copyright?  What
makes this code unique that it can be copyrighted to you?  Do you understand
copyrighting and intellectual property?  You just made that code public on a
public list - does that nullify the copyright?  Why did you post the code if
it was not with the intent to share?

Perhaps you should think twice/thrice/four-times before you post copyrighted
code - I can guarantee you that it will be used over and over and over by
many a person - and you did not even include a credit in the code.  Silly
boy :)



On 7/20/03 1:26 AM, "Curt Zirzow" <[EMAIL PROTECTED]> wrote:

> I know this isn't your code but...
> 
> * Thus wrote Justin French ([EMAIL PROTECTED]):
>> [...]
>> 
>> // test the URL
>> // it's important that you dont put http:// or it will not work
>> // the 2nd paramater is how long to test the URL b4 timing out
>> $found = fsockopen($url, 10);
> 
> $found = fsockopen($host, $port, $errno, $errstr, $timeout);
> 
>> 
>> // act on it
>> if($found)
>> {  
>>     echo "URL http://{$url} could not be found, thus is considered
>> invalid";
> 
> hm... actually this is found but any way but any way since it is found
> might as well check the uri..
> 
> fputs($found, "GET $uri HTTP/1.0\r\nHost: $host\r\n\r\n");
> 
> $status = fgets($found)
> list(proto, $result, $result_text) = split($status);
> if ($result != 200 ) {
> echo "url is bad, give me a better one";
> } else{
> echo "thank you for for the url";
> }
> 
>> }
>> ?>
> 
> and of course 
> fclose($found); //we dont want the rest of the page.
> 
> 
> hmm.. I think I did to much.. just that other peoples code frighten me
> sometimes....
> 
> btw, the above code is copyrighted so dont use it.
> 
> cheers,
> 
> Curt

--
Cheers

Mike Morton

****************************************************
*
* Tel: 905-465-1263
* Email: [EMAIL PROTECTED]
*
****************************************************

"Indeed, it would not be an exaggeration to describe the history of the
computer industry for the past decade as a massive effort to keep up with
Apple."
- Byte Magazine

Given infinite time, 100 monkeys could type out the complete works of
Shakespeare. Win 98 source code? Eight monkeys, five minutes.
-- NullGrey 


--- End Message ---
--- Begin Message ---
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
> 
> btw, the above code is copyrighted so dont use it. 

Sorry, i shouldn't and try and make jokes in the furture...

I was a little tired last night and kinda needed to lighten up my email
a little (but it backfired on me)..


Again, sorry for the confusion.

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

--- End Message ---
--- Begin Message ---
I've been working like that for about two years and just recently I got enlighted in the use of classes. I've built a few sites and after a while on each of them I run into a problem. Say I wanna add a meta-refresh tag or send a cookie; with my earlier code, that brought out hell... more or less. Sure I solved it, but it never felt like it was the best thing to do.


Since I first used a class, I've tried to figure out how they work. I got them running but I had no idea what I did, I just used the examples provided. I read through some tutorial and the docs at php.net, but I just got confused. Then, suddenly I got some class for something, checked out the code and my brain just snapped. "aaah, THAT's how it's done!". It wasn't well documented, just nicely structured and easy to read and understand.

You'll get it one day. Until then - do what you feel is the best thing for you to use and understand.

This might not have helped you at all, it's just my story.

//Simon

Ryan A wrote:
Hi,
I myself never really create classes to use in my projects, if I ever use
classes its only because they come from someone else (eg phpclasses.org), I
find using the non OO approach much easier to understand.
Just my 2 cents.
Cheers,
-Ryan



--- End Message ---
--- Begin Message ---
* Thus wrote Simon Fredriksson ([EMAIL PROTECTED]):
> [...]
> just got confused. Then, suddenly I got some class for something, 
> checked out the code and my brain just snapped. "aaah, THAT's how it's 
> done!". It wasn't well documented, just nicely structured and easy to 
> read and understand.

I need a good brain snap sometimes, too :)


Curt.
--


--- End Message ---
--- Begin Message ---

--On Sunday, July 20, 2003 07:53:20 +0200 Simon Fredriksson <[EMAIL PROTECTED]> wrote:


I've been working like that for about two years and just recently I got enlighted in the use of classes.

The main reason I started this thread is that since I'm just beginning with php I thought I might as well start with a good methodology. I've seen on the net whole collections of classes some going as far as almost inventing a new language but having some experience I know everything comes at a price.
Classes seem to provide advantages to plain functions but only sometimes, striking the right balance I guess, is what I'm after.
One shouldn't apply industrial theories to just everything.


Regards, Andu Novac


--- End Message ---
--- Begin Message ---
On Sun, 2003-07-20 at 02:28, Andu wrote:
> 
> One shouldn't apply industrial theories to just everything.
> 

Object Oriented Design is not an industrial theory. It's a tried and
true practice with over a decade of computer science and practical use
behind it. Procedural programming is a subset of Object oriented
programming. Someday you'll need the higher level features OOD offers,
but until then it probably just won't make sense unless you actually go
and learn the principles from a good book or teacher. Trying to
formulate an opinion about OOD from the PHP mailing list is like trying
to form an opinion about nuclear physics from your buddy that watched
some show on nuclear power plants (maybe not that extreme, but hopefully
you get the point).

Cheers,
Rob.
-- 
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org   |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the  |
| stuff of nightmares grasp for your soul.    |
`---------------------------------------------'

--- End Message ---
--- Begin Message --- Is it just me getting some messages 3 times?
I also noticed that there is no Reply-To in the headers so every time I want to reply to the list I have to copy/paste the list's address, clicking the Reply button would send my message to the poster, not the list.
I guess others are having the same problem for which reason they "reply to all" or cc to the list, all of us ending up with a couple copies of the message.
Is this something that can be fixed?



Regards, Andu Novac



--- End Message ---
--- Begin Message ---
* Thus wrote Andu ([EMAIL PROTECTED]):
> Is it just me getting some messages 3 times?
> I also noticed that there is no Reply-To in the headers so every time I 
> want to reply to the list I have to copy/paste the list's address, clicking 
> the Reply button would send my message to the poster, not the list.
> I guess others are having the same problem for which reason they "reply to 
> all" or cc to the list, all of us ending up with a couple copies of the 
> message.
> Is this something that can be fixed?

I've been noticing this too, everytime someone replies to the list I get
an extra copy of the mail. It seems that most people are just doing a
reply to all type follow-up. 

I've actually been considering adding a reply-to: php-general to my
outbound mail on this list, but have hesitated doing so.

I dont have that problem cause mutt recoginzes that I'm replying to the
mailing list and replies directly to the list instead of the user. It
would be nice if a solution could be made on this, i'm getting needless
mail in my mailbox.


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

--- End Message ---
--- Begin Message ---
On Sunday 20 July 2003 14:42, Andu wrote:
> Is it just me getting some messages 3 times?
> I also noticed that there is no Reply-To in the headers so every time I
> want to reply to the list I have to copy/paste the list's address, clicking
> the Reply button would send my message to the poster, not the list.
> I guess others are having the same problem for which reason they "reply to
> all" or cc to the list, all of us ending up with a couple copies of the
> message.
> Is this something that can be fixed?

There is nothing wrong with the headers that the list messages use. This was 
discussed fairly extensive about two weeks ago. Refer to archive for details.

The executive summary is that there is nothing to be fixed. If you're using a 
less than adequate mail client which does not understand the mailing list 
info contained in the headers then you should either change clients or, even 
easier, just add the mailing list address into your address book.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
An antique that seems too good to be true, probably is. 
                -- Kathy Lee's Dictum
*/


--- End Message ---
--- Begin Message ---

--On Sunday, July 20, 2003 16:35:46 +0800 Jason Wong <[EMAIL PROTECTED]> wrote:

On Sunday 20 July 2003 14:42, Andu wrote:
Is it just me getting some messages 3 times?
I also noticed that there is no Reply-To in the headers so every time I
want to reply to the list I have to copy/paste the list's address,
clicking the Reply button would send my message to the poster, not the
list. I guess others are having the same problem for which reason they
"reply to all" or cc to the list, all of us ending up with a couple
copies of the message.
Is this something that can be fixed?

There is nothing wrong with the headers that the list messages use. This was discussed fairly extensive about two weeks ago. Refer to archive for details.

The executive summary is that there is nothing to be fixed. If you're
using a  less than adequate mail client which does not understand the
mailing list  info contained in the headers then you should either change
clients or, even  easier, just add the mailing list address into your
address book.

Nonsense, all clients understand reply-to if it's there and that is the obligation of the sender which in this case is the list server not my client.




Regards, Andu Novac


--- End Message ---
--- Begin Message ---
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I am currently trying to think of how I want to solve an issue, and
im looking for some input.

I have a page that will query information from a database and then
properly display it on the screen.  Now the thing I want to set up is
the option to split the information over 2,3 or more pages.

For example, the user can set a value in the config file for how many
results to display for page, then on each page ill have something
that says results 25-50 here and what not.

The only thing that comes to my mind, is somehow setting up some
tests, and then altering the sql statement with the list option.  Is
this the best way to do this?  Does anyone else have any other
suggestions??

Thanks in advance for the assistance.

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPxpK1brnDjSLw9ADEQK0cQCgmFLBwO/IeqIYZIJUhR2j23Na5/sAniYv
nXehy/vKSs6AE8/yI3O9BixJ
=s7G2
-----END PGP SIGNATURE-----



--- End Message ---
--- Begin Message --- Retrieving the results can be LIMITed to X results starting at row Y using mysql's LIMIT function.

Check the MySQL manual, but basically, this will limit the result to 10 rows, starting with row 5.

SELECT name FROM customers LIMIT 5,10


By taking your values for the starting point and row count from variables from within the url, a posted form, session, cookie, etc, you can build dynamic queries, eg:


$sql = "SELECT name FROM customers LIMIT {$start},{$perPage}";


You can also build next and previous links by adding and subtracting the $perPage to the $start.



Make sense?



There's plenty of tutorials -- just do a google search.



Justin




On Sunday, July 20, 2003, at 05:55 PM, Aaron Axelsen wrote:


-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Hello,

I am currently trying to think of how I want to solve an issue, and
im looking for some input.

I have a page that will query information from a database and then
properly display it on the screen.  Now the thing I want to set up is
the option to split the information over 2,3 or more pages.

For example, the user can set a value in the config file for how many
results to display for page, then on each page ill have something
that says results 25-50 here and what not.

The only thing that comes to my mind, is somehow setting up some
tests, and then altering the sql statement with the list option.  Is
this the best way to do this?  Does anyone else have any other
suggestions??

Thanks in advance for the assistance.

- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com

Web Dev/Design Community/Zine
www.developercube.com


-----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPxpK1brnDjSLw9ADEQK0cQCgmFLBwO/IeqIYZIJUhR2j23Na5/sAniYv
nXehy/vKSs6AE8/yI3O9BixJ
=s7G2
-----END PGP SIGNATURE-----



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

---
[This E-mail scanned for viruses]




--- End Message ---
--- Begin Message ---
On Monday 21 July 2003 00:23, Beauford.2005 wrote:
> These files were already done from last year, so I figured I would just
> carry on with them. Last year they did not have to be manipulated - so
> it wasn't a big deal. I have since changed the whole thing and am now
> using a database (took me a whole 45 minutes), which I was using anyway
> to hold all my other info. I'd still be curious though as to why the
> other way did not work.

If it's not obvious from examining the code then you have to get down to some 
serious debugging. Most importantly you need to:

 - incorporate error checking into your code, examine the values returned from 
all functions

 - var_dump() all your major variables and verify that they are what you 
expect them to be

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
What's all this brouhaha?
*/


--- End Message ---
--- Begin Message ---
FREE PHP & MySQL Hosting !

http://cmax.port5.com

Film & TV Extras urgently required in your area - See Yourself in major Films & TV? 
Call 0907 1512440 to Register. calls cost 150pm  



--- End Message ---
--- Begin Message ---
Hi there,

I was searching on the net for a while on how to create dynamic newsfeeds
from my web portal. Somehow I did not find what I was looking for.

Can anybody give me a good start on how to write a newsfeed service which is
dynamic? The goal is whenever a member publishes a story on the site, it
should be included into the newsfeed.

Thanx for any suggestions and help on this!

--
Worldwide Travel Community
http://www.globosapiens.net



--- End Message ---
--- Begin Message ---
On Sun, 20 Jul 2003 12:28:55 +0200, [EMAIL PROTECTED] (Merlin) wrote:

>Hi there,
>
>I was searching on the net for a while on how to create dynamic newsfeeds
>from my web portal. Somehow I did not find what I was looking for.
>
>Can anybody give me a good start on how to write a newsfeed service which is
>dynamic? The goal is whenever a member publishes a story on the site, it
>should be included into the newsfeed.
>
>Thanx for any suggestions and help on this!

Two ways of doing it, basically.

First is a dynamic PHP page that goes though the last ten or whatever
updates and displays them as RSS (in much the same way you display a
"recent articles" page, except you output XML instead of HTML)

Second is to create the page as above whenever you add a new story and
then output it to a static file.

Output of RSS is fairly simple, start off with
<?PHP
header("content-type: text/xml")
?>

then build up the introductory data (I'm using a stripped down version
of my own feed as an example here):

<example>

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
  xmlns:dc="http://purl.org/dc/elements/1.1/";>
<channel>
<title>Aquarionics</title>
<link>http://www.aquarionics.com</link>
<description></description>
<dc:language>en-gb</dc:language>
<dc:creator>Aquarion ([EMAIL PROTECTED])</dc:creator>
<dc:rights>Copyright 2003 Aquarion</dc:rights>
<dc:date>2003-07-20T11:55:00+0100</dc:date>
<admin:generatorAgent
rdf:resource="http://www.aquarionics.com/epistula/?v=2.0.2b"; />

<admin:errorReportsTo rdf:resource="mailto:[EMAIL PROTECTED]"/>
<sy:updatePeriod>daily</sy:updatePeriod>
<sy:updateFrequency>8</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>

</example>

If it's a database, query for the last 10 items, then loop though them
and output the code:

<item>
        <title>Journal - Aquarion and the Missing Domain</title>

<link>http://www.aquarionics.com/journal/2003/07/18/Aquarion_and_the_Missing_Domain</link>


<comments>http://www.aquarionics.com/journal/2003/07/18/Aquarion_and_the_Missing_Domain</comments>
        <description>In which a server vanishes</description>
        <guid
isPermaLink="true">http://www.aquarionics.com/journal/2003/07/18/Aquarion_and_the_Missing_Domain</guid>
        <content:encoded><![CDATA[      <p>Okay, so in the confusion
of yesterday, I forgot to mention something. As of yesterday morning,
the entire gkhs.net network went <span class="caps">AWOL</span>
because for some reason neither of the people who have the domain got
any emails reminding us that it was due to expire.</p>

        <p>This is why none of you have discovered that
spirit.gkhs.net isn&#8217;t working for <span class="caps">IRC</span>
atm. I&#8217;ll relaunch it when I get them back again (I&#8217;ve now
renewed the domain).</p>
 ]]></content:encoded>
        <dc:date>2003-07-18T07:33:00+0100</dc:date>
        <dc:subject>computing</dc:subject>
</item>

Finally, do the final closing tags:

</channel>
</rss>

and then run it though the Feed Validator at
http://feeds.archive.org/validator/ to make sure you haven't done
anything silly :-)

The specification for RSS2 (which will tell you - or help you - know
what goes in all the tags I used above) is at
http://blogs.law.harvard.edu/tech/rss

HTH

--- End Message ---
--- Begin Message ---
ok, I get the idea how to create those newsfeeds. Looks pretty staigh
forward.

How do you implement them on the client site. I read about news agregator
programms (like newsreaders for newsgroups). But I do want to integrate them
into another website without having php on that site. Do I have to wrap it
around another peace of software? It would be grate if it would just be a
html tag which just implements the little news into a whole html page
surrounded by its other content.

--
Worldwide Travel Community
http://www.globosapiens.net
"Aquarion" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> On Sun, 20 Jul 2003 12:28:55 +0200, [EMAIL PROTECTED] (Merlin) wrote:
>
> >Hi there,
> >
> >I was searching on the net for a while on how to create dynamic newsfeeds
> >from my web portal. Somehow I did not find what I was looking for.
> >
> >Can anybody give me a good start on how to write a newsfeed service which
is
> >dynamic? The goal is whenever a member publishes a story on the site, it
> >should be included into the newsfeed.
> >
> >Thanx for any suggestions and help on this!
>
> Two ways of doing it, basically.
>
> First is a dynamic PHP page that goes though the last ten or whatever
> updates and displays them as RSS (in much the same way you display a
> "recent articles" page, except you output XML instead of HTML)
>
> Second is to create the page as above whenever you add a new story and
> then output it to a static file.
>
> Output of RSS is fairly simple, start off with
> <?PHP
> header("content-type: text/xml")
> ?>
>
> then build up the introductory data (I'm using a stripped down version
> of my own feed as an example here):
>
> <example>
>
> <?xml version="1.0" encoding="utf-8"?>
> <rss version="2.0"
>   xmlns:dc="http://purl.org/dc/elements/1.1/";>
> <channel>
> <title>Aquarionics</title>
> <link>http://www.aquarionics.com</link>
> <description></description>
> <dc:language>en-gb</dc:language>
> <dc:creator>Aquarion ([EMAIL PROTECTED])</dc:creator>
> <dc:rights>Copyright 2003 Aquarion</dc:rights>
> <dc:date>2003-07-20T11:55:00+0100</dc:date>
> <admin:generatorAgent
> rdf:resource="http://www.aquarionics.com/epistula/?v=2.0.2b"; />
>
> <admin:errorReportsTo rdf:resource="mailto:[EMAIL PROTECTED]"/>
> <sy:updatePeriod>daily</sy:updatePeriod>
> <sy:updateFrequency>8</sy:updateFrequency>
> <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
>
> </example>
>
> If it's a database, query for the last 10 items, then loop though them
> and output the code:
>
> <item>
> <title>Journal - Aquarion and the Missing Domain</title>
>
>
<link>http://www.aquarionics.com/journal/2003/07/18/Aquarion_and_the_Missing
_Domain</link>
>
>
>
<comments>http://www.aquarionics.com/journal/2003/07/18/Aquarion_and_the_Mis
sing_Domain</comments>
> <description>In which a server vanishes</description>
> <guid
>
isPermaLink="true">http://www.aquarionics.com/journal/2003/07/18/Aquarion_an
d_the_Missing_Domain</guid>
> <content:encoded><![CDATA[ <p>Okay, so in the confusion
> of yesterday, I forgot to mention something. As of yesterday morning,
> the entire gkhs.net network went <span class="caps">AWOL</span>
> because for some reason neither of the people who have the domain got
> any emails reminding us that it was due to expire.</p>
>
> <p>This is why none of you have discovered that
> spirit.gkhs.net isn&#8217;t working for <span class="caps">IRC</span>
> atm. I&#8217;ll relaunch it when I get them back again (I&#8217;ve now
> renewed the domain).</p>
>  ]]></content:encoded>
> <dc:date>2003-07-18T07:33:00+0100</dc:date>
> <dc:subject>computing</dc:subject>
> </item>
>
> Finally, do the final closing tags:
>
> </channel>
> </rss>
>
> and then run it though the Feed Validator at
> http://feeds.archive.org/validator/ to make sure you haven't done
> anything silly :-)
>
> The specification for RSS2 (which will tell you - or help you - know
> what goes in all the tags I used above) is at
> http://blogs.law.harvard.edu/tech/rss
>
> HTH



--- End Message ---
--- Begin Message --- Hello,

On 07/20/2003 07:28 AM, Merlin wrote:
I was searching on the net for a while on how to create dynamic newsfeeds
from my web portal. Somehow I did not find what I was looking for.

Can anybody give me a good start on how to write a newsfeed service which is
dynamic? The goal is whenever a member publishes a story on the site, it
should be included into the newsfeed.

You may want to try this class that does exactly what you ask:


http://www.phpclasses.org/rsswriter

--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/


--- End Message ---
--- Begin Message ---
> > Can anybody give me a good start on how to write a newsfeed service
which is
> > dynamic? The goal is whenever a member publishes a story on the site, it
> > should be included into the newsfeed.
>
> You may want to try this class that does exactly what you ask:
>
> http://www.phpclasses.org/rsswriter


thanx, but I am looking for a method which I can forward to people without
having to worry about php. Something like JavaSript. Something that even a
person on geocities would enable to put the newsfeed on there page.

Is this even possible?


--
Worldwide Travel Community
http://www.globosapiens.net
"Manuel Lemos" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hello,
>
> On 07/20/2003 07:28 AM, Merlin wrote:
> > I was searching on the net for a while on how to create dynamic
newsfeeds
> > from my web portal. Somehow I did not find what I was looking for.
> >
> > Can anybody give me a good start on how to write a newsfeed service
which is
> > dynamic? The goal is whenever a member publishes a story on the site, it
> > should be included into the newsfeed.
>
> You may want to try this class that does exactly what you ask:
>
> http://www.phpclasses.org/rsswriter
>
> --
>
> Regards,
> Manuel Lemos
>
> Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>



--- End Message ---
--- Begin Message --- Hello,

On 07/20/2003 01:07 PM, Merlin wrote:
Can anybody give me a good start on how to write a newsfeed service

which is


dynamic? The goal is whenever a member publishes a story on the site, it
should be included into the newsfeed.

You may want to try this class that does exactly what you ask:


http://www.phpclasses.org/rsswriter



thanx, but I am looking for a method which I can forward to people without having to worry about php. Something like JavaSript. Something that even a person on geocities would enable to put the newsfeed on there page.

Is this even possible?

Sure, just use that class to generate RSS feed and then use this Javascript feed viewer service to embed it peoples pages with a single HTML line. Here is an example:


Original feed:
http://www.phpclasses.org/browse.html/latest/latest.xml

HTML tags to embed:
<script language="javascript" src="http://publish.curry.com/rss/rss-box.r?url=http://www.phpclasses.org/browse.html/latest/latest.xml&align=left&width=200&frameColor=black&titleBarColor=%23add8e6&titleBarTextColor=black&boxFillColor=white&textColor=black&fontFace=&maxItems=7&compact=&xmlButton=&javascript=true";></script>


Feed viewer page:
http://publish.curry.com/rss/?url=http%3A%2F%2Fwww.phpclasses.org%2Fbrowse.html%2Flatest%2Flatest.xml&width=200&align=left&frameColor=black&titleBarColor=%23add8e6&titleBarTextColor=black&boxFillColor=white&textColor=black&fontFace=&maxItems=7&setup=true


--


Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/


--- End Message ---
--- Begin Message ---
Hi there.

How can i preserve var's of session 's' over more than one window without
loosing them?

Thomas

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++

Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern!


--- End Message ---
--- Begin Message ---
Hi there,

My name is Dave, and no ya don't know me, but I wanna tell ya about something.
I'll admit I got your info off a website somewhere while searching around
for addys on Yahoo, but this isn't spam, and i'm not adding you to any
sort of list. This email is between *me* and *you* and if you reply,
you will get a real person on the other end :-)

The site that I saw yer addy on, and I can't really recall where I saw it,
it had something to do with message forums and online conversation, and I
am also into message forums also. I don't like the flame forums tho with
all the idiots just swearing like they have nothing better to do.

I like the ones that are fun, friendly, and the people actually have something
intelligent to say.

Well, anywayz, I run a message forum network called Xpresit Net, and am trying
to premote it. We don't sell anything, and I actually run the network from my
DSL line at home. The site is on an OC3, but the actual mail exchange takes
place from the hub on my DSL line.

This is a network in light of the fact that we not only offer it to regular
people, but we also offer it to websites to have for their visitors.

It's a free speech network, we just don't allow flaming, because I feel that
any opinion can be said without attacking someone.

We have 62 servers so far, and we have telnet, web, nntp (Newsgroup), and email
list access to post in the network.

Since this network is privately run, there is absolutely no spam, and the way
it is setup, spammers can't get to it.

You can't spam via a bot on the website, with telnet its impossible to spam,
and with email and nntp, if anyone actually manages to send out a spam
message, their account will be blocked and removed.

I setup this network 10 years ago, starting on my 14.4 modem, if you can
beleive that :-)

Well anyways, if you are a webmaster who wants the network on your site,
or if your just a regular person looking for a friendly place to chat
with some nice people, then please visit http://www.xpresit.net

If you have any questions, please feel free to reply. If your not
interested, I'm really really sorry to have bothered you, and you
can just delete this email.

Well anywayz, thats about all i have to say about that. I hope you'll
join us. But if not thats ok too.

Have a good one, and thanks again.

Dave


--- End Message ---
--- Begin Message --- I'm having a little trouble understanding how to accomplish this.
Should the entire browsing session be HTTPS after login, or just for important functions like "login" and "checkout"
If noly for those function, who should I design to jump back an forth. I know DB should be used for cart items, but when I jump to HTTPS, should I enclude the session ID (which will be stored in the DB) as a GET query string field? If not, how else will I be able to know which user to continue with. I don't see any functions that will let you specify which session ID to continue with. What is the best practice?




--- End Message ---
--- Begin Message ---
* Thus wrote John Manko ([EMAIL PROTECTED]):
> I'm having a little trouble understanding how to accomplish this.
> Should the entire browsing session be HTTPS after login, or just for 
> important functions like "login" and "checkout"
> If noly for those function, who should I design to jump back an forth.  
> I know DB should be used for cart items, but when I jump to HTTPS, 
> should I enclude the session ID (which will be stored in the DB) as a 
> GET query string field?  If not, how else will I be able to know which 
> user to continue with.  I don't see any functions that will let you 
> specify which session ID to continue with.  What is the best practice?

It is overkill to run whole site on https,  you only need it when
sensitive data is being sent back and forth (ie, credit card, login
info..)

Technically you only need to use https when the user actually
submits the form to the script that processes. So the page that
generates the form for the user to login does NOT need to be encrypted,
the forms action will contain the https url.

In general practice though I would probably encrypt the login/checkout
page just so 'joe user' feels more secure (seeing the little secure icon
in the lower left corner.)

You dont need to touch any php code, just modify the html so the
properlinks point to https where needed.

On and advanced note, there are ways to protect a users password on a
normal http connection.  The authentication program I helped developed
and use has the abilty to make a hash of the password on the client side
then send the hash value to the authentication script. The authenication
script never sees the password just verifies the hash.

http://sourceforge.net/projects/diggerauth/
(only cvs version is available, you need ot browse cvs to see the code)


HTH,

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

--- End Message ---
--- Begin Message ---
I'm curious as to why your email has these headers:

References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>

My email program thinks your discussing db sized and how you can get it
into a variable in php.

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

--- End Message ---
--- Begin Message ---
Hi,
Can someone confirm that php does not have a auto timeout feature? Meaning
something like session will auto expire irregardless of whether the browser
is close or not?



--- End Message ---
--- Begin Message --- Tan Ai Leen wrote:
Hi,
Can someone confirm that php does not have a auto timeout feature? Meaning
something like session will auto expire irregardless of whether the browser
is close or not?

If you're using the default session handler and storing the session files in the location specified in php.ini, then the files will be deleted by the garbage collection process after so many minutes of not being accessed. So, whether the browser window is open or not, the file will be deleted if it hasn't been accessed, thus ending the session.


The time that this happens isn't exact, though, since garbage collection is triggered based upon traffic to your site and a probability you set in php.ini. It's close enough for government work, though. :)

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

PHP|Architect: A magazine for PHP Professionals – www.phparch.com





--- End Message ---
--- Begin Message ---
* Thus wrote Tan Ai Leen ([EMAIL PROTECTED]):
> Hi, Can someone confirm that php does not have a auto timeout feature?
> Meaning something like session will auto expire irregardless of
> whether the browser is close or not?
> 

two php ini variables that effect this:

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; After this number of seconds, stored data will be seen as 'garbage' and 
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

Now if your cookie_lifetime is greater than your gc_maxlifetime, I'm not
sure if garbage clean up will honor the time of the cookie_lifetime.  I
would think it should.


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

--- End Message ---
--- Begin Message ---
Hi,
I know there are already a lot of posting regarding this bug. But I can't
find a solution for this problem. There is no problem with my installation,
I think. I can call java classes. But the Unable to create Java Virtual
Machine error will occur if I would to constantly refresh the page. I guess
there is a out of memory issue or deadlock somewhere.
Have any one sucessfully deploy php pages accessing java classes without
errors? This bug has been submitted but not resolved. Have anyone come up
with a solution?
I am working on a winxp, using Apache 1.3.27 and php 4.3.2., java version
1.4.1.

Thanks in advance.




--- End Message ---
--- Begin Message ---
Hi,
I know there are already a lot of posting regarding this bug. But I can't
find a solution for this problem. There is no problem with my installation,
I think. I can call java classes. But the Unable to create Java Virtual
Machine error will occur if I would to constantly refresh the page. I guess
there is a out of memory issue or deadlock somewhere.
Have any one sucessfully deploy php pages accessing java classes without
errors? This bug has been submitted but not resolved. Have anyone come up
with a solution?
I am working on a winxp, using Apache 1.3.27 and php 4.3.2., java version
1.4.1.

Thanks in advance.



--- End Message ---
--- Begin Message ---
Hi ALL,

I just want to validate each  row values of a and load the same in MYSQL
Table.

Suresh A.


On Sat, 19 Jul 2003, Curt Zirzow wrote:

> Suresh Babu.A [Support] <[EMAIL PROTECTED]> wrote:
> > 
> > HI ALL,
> > 
> > I want to update a mulitple row from a HTML Table to MYSQL Database.
> > 
> > L1 V1 T1
> > L2 V2 V2
> > L3 V3 V3
> Can you expand on this a little more, it's a bit vague.
> 
>  
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


--- End Message ---
--- Begin Message ---
I put this PHP script on web server:

<?php
 if (mail("[EMAIL PROTECTED]", "brati", "peda", "From: Peda")== TRUE)
print("U redu je");
 else
print("Greska");
?>

But It seems that mail function doesn't work. I don't get any e-mail.

Can anyone tell me what is wrong.

Greetings.



--- End Message ---
--- Begin Message ---
I can't find the windows downloads?



--- End Message ---

Reply via email to