Re: [PHP] HTML Printing problem.

2003-10-07 Thread Leif K-Brooks
php coder wrote: HTML files are to large to print from the browser. We are creating reports that are ++5 mg in size. This is a real problem for the browser. We are on a network and can print directly from the server but this means we must convert the html to some printer friendly format. We ar

Re: [PHP] HTML Printing problem.

2003-10-07 Thread php coder
Are there any packages developed in php or any use of the php print tags that might solve this problem? From: Leif K-Brooks <[EMAIL PROTECTED]> To: php coder <[EMAIL PROTECTED]> CC: "Php-General (E-mail)" <[EMAIL PROTECTED]> Subject: Re: [PHP] HTML Printing problem. Date: Tue, 07 Oct 2003 16:18:

Re: [PHP] HTML Printing problem.

2003-10-07 Thread Robert Cummings
On Tue, 2003-10-07 at 16:13, php coder wrote: > Issue: > HTML files are to large to print from the browser. We are creating reports > that are ++5 mg in size. This is a real problem for the browser. We are on a > network and can print directly from the server but this means we must > convert the

Re: [PHP] or return problem

2003-10-07 Thread Curt Zirzow
* Thus wrote Pat Carmody ([EMAIL PROTECTED]): > > > Calling the following retor_test() function causes a "Parse error: parse > error, unexpected T_RETURN" message when the script is run: > > function istrue() { > return true; > } > function retor_test() { > istrue() or return( "False" ); >

Re: [PHP] or return problem

2003-10-07 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > I wouldn't call this lazy, more like sloppy and confusing. > > return (istrue()? 'True': 'False'); > > hmm.. less typing, easier to understand and logically readable. Well, that is arguable. :-) I'm not a big fan of the ternary operator when it co

Re: [PHP] or return problem

2003-10-07 Thread Pat Carmody
On Tue, 7 Oct 2003, Curt Zirzow wrote: >> function istrue() { >> return true; >> } >> function retor_test() { >> istrue() or return( "False" ); >> return "True"; >> } > return (istrue()? 'True': 'False'); > >hmm.. less typing, easier to understand and logically readable. This doesn't an

Re: [PHP] HTML Printing problem.

2003-10-07 Thread php coder
If I could fiqure out how css can get me the same effect as the tbody and thead tags and have it easily converted to pcl or pdf then great but I haven't been able to do this nor am I sure that it can be done. From: Robert Cummings <[EMAIL PROTECTED]> To: php coder <[EMAIL PROTECTED]> CC: PHP-Ge

Re: [PHP] or return problem

2003-10-07 Thread Robert Cummings
On Tue, 2003-10-07 at 16:53, Pat Carmody wrote: > > On Tue, 7 Oct 2003, Curt Zirzow wrote: > > >> function istrue() { > >> return true; > >> } > >> function retor_test() { > >> istrue() or return( "False" ); > >> return "True"; > >> } > > > return (istrue()? 'True': 'False'); > > > >hmm..

Re: [PHP] HTML Printing problem.

2003-10-07 Thread Robert Cummings
On Tue, 2003-10-07 at 17:09, php coder wrote: > If I could fiqure out how css can get me the same effect as the tbody and > thead tags and have it easily converted to pcl or pdf then great but I > haven't been able to do this nor am I sure that it can be done. > Sounds like you need an intermed

RE: [PHP] mysql_fetch_array() not working as expected

2003-10-07 Thread Chris W. Parker
Marek Kilimajer on Tuesday, October 07, 2003 12:26 PM said: > (c.id) You can make the query: > SELECT c.id > , cc.id AS ccid > , cc.prod_id > , p.name doh! how obvious! thanks. c. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] IRC & SOCKETS

2003-10-07 Thread Jason Sheets
If you do this on the server side with PHP you will need to reload or keep a connection open all the time to a web server process. Try using one of the many and free java IRC applets (http://www.freshmeat.net and search for java irc applet). Jason Paulo Nunes wrote: I am trying to implement

Re: [PHP] Limits and php...

2003-10-07 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]): > [snip] > I have been trying to understand how to write a simple code that will > let me limit the number of files view to 10 records, but I need to > under how php can look at a number of records and then caculates how > many pages it needs to s

Re: [PHP] Re: PHP & CSS

2003-10-07 Thread erythros
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 o

[PHP] Memory usage of variables in Functions/Methods

2003-10-07 Thread Gerard Samuel
The question is what happens to local variables when the code leaves a function/method as far as memory is concerned. Does it *silently* unset (free the allocated memory) the local variables, or does it make sense to hardcode unset() to garbage these local variables? Thanks function foo() { $

Re: [PHP] Sessions

2003-10-07 Thread John W. Holmes
Webmaster wrote: Hi! I started to use the php own session functions today. Now I am getting such lines in the address bar: /pages/news.php?option=1015&PHPSESSID=PHPSESSID=d117dba208d4b205cd4e521f606b b44e#result Why do I get "PHPSESSID=PHPSESSID=" ? Probably because you have /pages/news.php?opt

Re: [PHP] Memory usage of variables in Functions/Methods

2003-10-07 Thread Robert Cummings
On Tue, 2003-10-07 at 22:44, Gerard Samuel wrote: > The question is what happens to local variables when the code leaves a > function/method > as far as memory is concerned. > Does it *silently* unset (free the allocated memory) the local > variables, or does it make sense to hardcode > unset() t

[PHP] killing server process online

2003-10-07 Thread Michael P. Carel
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: alert("Process Killed")alert("Kill Error: kp; ?>") Is there something wrong w

Re: [PHP] Memory usage of variables in Functions/Methods

2003-10-07 Thread Gerard Samuel
Robert Cummings wrote: On Tue, 2003-10-07 at 22:44, Gerard Samuel wrote: The question is what happens to local variables when the code leaves a function/method as far as memory is concerned. Does it *silently* unset (free the allocated memory) the local variables, or does it make sense to har

Re: [PHP] killing server process online

2003-10-07 Thread Robert Cummings
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 proc

Re: [PHP] Sessions

2003-10-07 Thread Chris Wanstrath
You probably have transparent sessions turned on in your config. Turn that off and the session ID will disappear from the url. On Tue, 2003-10-07 at 08:09, Webmaster wrote: > Hi! > > I started to use the php own session functions today. > > Now I am getting such lines in the address bar: > > /

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,

[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 _

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,

[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

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_*

[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] 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 t

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 > s

[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.

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 w

<    1   2