Re: [PHP] dynamic -> static

2003-10-07 Thread Ryan Thompson
Do you mean something like taking a snapshot of the CMS every
24 hours or so??

If I understand you right you might want to look at a different language
like perl or shell scripting. I would think they'd be more useful for that
sort of thing. 


On Wednesday 08 October 2003 03:56, Veniamin Goldin wrote:
> Dear All,
>
> Does anybody have any solutions, which makes possible to produce static
> pages of all dynamic cms once a day and  can be easily integrated into
> already made site?
>
>
> Thank you.

-- 
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net
==
"A computer scientist is someone who fixes
 things that aren't broken" --Unknown

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



[PHP] session expire

2003-10-07 Thread redips
I know that if I set a session, by default it will expire when the 
browser closes. Can I also set a timeout? For example, if the session is 
idle for 30 minutes it will expire or if the user closes the browser, it 
will also expire.

I know I can do one or the other, but what about both?

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


Re: [PHP] Re: PHP & CSS

2003-10-07 Thread Raquel Rice
On Tue, 7 Oct 2003 17:06:13 -0500
"erythros" <[EMAIL PROTECTED]> wrote:

> you probably just want what everyone wants... a seperation of
> design from content.
> 
> as for applying the variables to the style sheet it depends on
> what youre trying to do. what are the variables for? to request a
> specific css file? or are they to supplement the ccs file (ie: use
> value x for width of div), or are they to override the css file?
> 
> i may have it wrong but what it sounds like is that you want to
> have a default css file then allow the user to make changes via
> the ini file. is this what youre after?
> 

Well, yes ... in a way.  The plan is to have a main site, where
users can have a subsite off the main site.  I want to give the
users the ability to customize, to an extent, their own subsite if
they wish, while the main site retains the look I give it.

--
Raquel

I am only one; but still I am one. I cannot do everything, but still
I can do something; I will not refuse to do the something I can do.
  --Helen Keller

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



Re: [PHP] do I need a database

2003-10-07 Thread Justin French
Your options for permanent, server-side storage is pretty much either a 
flat file or a database.  Ultimately, your choice is dependant on what 
you need to do with the data later on.

Personally, since my host includes a free MySQL db with every account, 
I tend not to bother with flat files for this sort of stuff.

Justin

On Wednesday, October 8, 2003, at 02:50  PM, Sudheer Palaparambil wrote:

Hi,

 I am planning a static site. But I need to capture some data 
(username, address, telephone and
email only), do I need a database for recording this data ? Or is 
there any other way to record this
data ? The volume may be high.

 Thank you.

Sudheer

_
Get Married!  http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 
Search from 7 lakh Brides & Grooms.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---
[This E-mail scanned for viruses]

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


[PHP] dynamic -> static

2003-10-07 Thread Veniamin Goldin
Dear All,

Does anybody have any solutions, which makes possible to produce static pages of all 
dynamic cms once a day and  can be easily integrated into already made site?


Thank you.

Re: [PHP] preg question

2003-10-07 Thread Curt Zirzow
* Thus wrote Mike J ([EMAIL PROTECTED]):
> I want to pull the title (example) of a webpage out of some text. The 
> end result being "example". What preg function should I use and can someone give me 
> the the code that will do it?
> 

preg_match is what you want. And if you poke around the
preg_* section abit you'll see that preg_match_all has exactly what
you want:

/* match all content matches */
preg_match_all ("/(<([\w]+)[^>]*>)(.*)(<\/\\2>)/", $html, $matches);

Ahh.. but you say... I only want the title tag... so changing the
regex to this:

preg_match_all ("/()(.*)(<\/\\2>)/i", $html, $matches);

Add the 'i' flag for case INsensitivity, you have your solution..
easy eh?

I'll let ya do the rest :)


HTH,

Curt
-- 
"My PHP key is worn out"

  PHP List stats since 1997: 
  http://zirzow.dyndns.org/html/mlists/

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



[PHP] preg question

2003-10-07 Thread Mike J
I want to pull the title (example) of a webpage out of some text. The 
end result being "example". What preg function should I use and can someone give me 
the the code that will do it?



J.

PS. I've been on php.net trying to figure it out.
-- 
___
Get your free Verizonmail at www.verizonmail.com

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



RE: [PHP] do I need a database

2003-10-07 Thread Martin Towell
Hi Sudheer,

Depends on what you want to do with the data afterwards.
Maybe a flat file would be enough?

Martin

-Original Message-
From: Sudheer Palaparambil [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 8 October 2003 2:50 PM
To: [EMAIL PROTECTED]
Subject: [PHP] do I need a database


Hi,

  I am planning a static site. But I need to capture some data (username, 
address, telephone and
email only), do I need a database for recording this data ? Or is there any 
other way to record this
data ? The volume may be high.

  Thank you.

Sudheer

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



[PHP] do I need a database

2003-10-07 Thread Sudheer Palaparambil
Hi,

 I am planning a static site. But I need to capture some data (username, 
address, telephone and
email only), do I need a database for recording this data ? Or is there any 
other way to record this
data ? The volume may be high.

 Thank you.

Sudheer

_
Get Married!  http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Search 
from 7 lakh Brides & Grooms.

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


Re: [PHP] killing server process online

2003-10-07 Thread Michael P. Carel
yes i'm running this in a web server, is there any thing  i can for this. I
want to kill a server process in a web browser.


> I'm guessing you're attempting to run this from the web server (hence
> the  tags). Probably the web server doesn't own the process your
> attempting to kill.
>
> Cheers,
> Rob.
>
> On Tue, 2003-10-07 at 23:09, Michael P. Carel wrote:
> > Hi to all,
> >
> > I'm trying to create a script that will kill a server process via PID,
but
> > as i run the script it doesnt kill the process . And  yet I want to add
some
> > error mesage.
> >
> > Here's my sample script:
> >   > function killprocess($id){
> >  system('kill'. escapeshellarg($id), $killret);
> > if ($killret=="0"){
> >//echo success message
> >?>