[PHP] suggestion needed about du command run on PHP

2001-04-29 Thread Mark Lo \(3\)
Hi, I would like to run a du command to find out how many bytes of each databases is consuming under PHP+ Apache. But, the problem is I am not able to count the bytes of the databases in MySQL, because the user and group is set to MySQL. On the other hand, My Web server is running on user

Re: [PHP] Best Practice-HTML In Database

2001-04-29 Thread Donald Goodwill
Using an URL to point to an HTML page or file is better. Inserting the HTML page in the database would cause: a) more database requests and thus heavy load on the database b) large amount traffic between the database server and the web server At my previous company we even ended up removing the

Re: [PHP] Best Practice-HTML In Database

2001-04-29 Thread Michael Hall
If you ever need to update the HTML, option 2 will be a lot easier. Mick On Sun, 29 Apr 2001, John Monfort wrote: > > Hello everyone, > > I'm curious. Which is the better practice? >1) Insert the HTML page (...HTML code) in the database ? > >or > >2) Insert a URL in the dat

[PHP] Best Practice-HTML In Database

2001-04-29 Thread John Monfort
Hello everyone, I'm curious. Which is the better practice? 1) Insert the HTML page (...HTML code) in the database ? or 2) Insert a URL in the database field, that points to the HTML page? why? Any help will be appreciated. Btw, thank you all for helping with my previous

php-general Digest 30 Apr 2001 03:32:58 -0000 Issue 657

2001-04-29 Thread php-general-digest-help
php-general Digest 30 Apr 2001 03:32:58 - Issue 657 Topics (messages 50795 through 50823): Re: Opening a page in the same window 50795 by: Johannes Rumpf template solutions? 50796 by: Steven Haryanto Re: MySQL capabilities 50797 by: Steven Haryanto Re: integer che

[PHP] Loading PHP module on Win98

2001-04-29 Thread Benny
I have a problem on intializing PHP module. I've installed PHP on my windows 98 system. I used PWS. I placed php on c:/Php. My home directory is c:/Inetpub/myfolder. This is the php.ini, Paths and Directories section : doc_root = "c:/Inetpub/myfolder" extension_dir = "

[PHP] Reporting from Database

2001-04-29 Thread Tim Thorburn
Hi, I'm setting up an event calendar for an organization, and I'm running into several problems. Firstly, there seems to be no standardization in the event listings - by this I mean that some events are single days while others span several days - some events have only one start time during t

Re: [PHP] Messaging to a simple server?

2001-04-29 Thread Tormod Ravnanger Landet
[EMAIL PROTECTED] ("Andy - Interlync") wrote in <[EMAIL PROTECTED]>: >Could I cause PHP to send/receive simple text messages with that server? >This has nothing to do with the Web. I'd just like to be able to 'talk' >to that server with a PHP script. Tx! Look in the php.net under sockets one

Re: [PHP] Browser Caching

2001-04-29 Thread Chris Adams
On 29 Apr 2001 07:19:15 -0700, Steve Haemelinck <[EMAIL PROTECTED]> wrote: > I thought this was because the page might be cached, but when I set the > header("cache-control: no-cache") & the meta tag http-equiv="Expires" > content="-1" it still produces the same effect. How can I solve this > pro

[PHP] Etags for emacs (Where?)

2001-04-29 Thread Yasuo Ohgaki
Does anyone know where to get etags program that works with php source? Looked around, couldn't find any tag program works with emacs. Thanks a lot. -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] HELP!! Mail and attachments

2001-04-29 Thread Chris Anderson
Personally I haven't tried, but I know many people have written classes to allow this. Try searching most php sites. Chris Anderson aka "Null" PHP Developer / Nulltech PHP-GTK Contributer / gtk.php.net STA Administrator / www.stronger.org DOD Co-Owne

Re: [PHP] how to include() a string

2001-04-29 Thread Andi Gutmans
At 06:42 PM 4/29/2001 +0200, Luca wrote: >Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > Sometimes eval() is the right solution. > > I can't think of a solution if I don't know *exactly* what you are > > trying to do and why you need eval(). > >Yes, I'm sorry, I should have explained myself better.

Re: [PHP] how to include() a string

2001-04-29 Thread Andi Gutmans
At 05:13 PM 4/29/2001 +0200, Luca wrote: >Luca <[EMAIL PROTECTED]> wrote: > > > Unfortunately eval() is not what I need. > >I was wrong. From a user contributed note in the online manual: > >"To include HTML in the string passed to eval, precede it with a PHP >closing tag. Once you have finished y

Re: [PHP] how to include() a string

2001-04-29 Thread Andi Gutmans
At 04:57 PM 4/29/2001 +0200, Luca wrote: >Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > Do you mean eval()? It evaluates code which is a string, for example: > > eval ('print(2);'); > > > > If you can develop your application without using eval() you're better off > > as it is very slow. > >Unfort

Re: [PHP] how to include() a string

2001-04-29 Thread ~~~i LeoNid ~~
On 29 Apr 2001 06:11:23 -0700 impersonator of [EMAIL PROTECTED] (Andi Gutmans) planted &I saw in php.general: >Do you mean eval()? It evaluates code which is a string, for example: >eval ('print(2);'); > >If you can develop your application without using eval() you're better off >as it is very s

[PHP] Browser Caching

2001-04-29 Thread Steve Haemelinck
Hi all I use sessions the authenticate users, but I seem to have a problem. This is what happens: 1) A user logs in on PC one with his username and password. (So far so good) 2) Another user logs in with his details on the same computer --> He is logged in with his details but the page d

Re: [PHP] Apache+PHP(as apache module)+SSL under Windows

2001-04-29 Thread ~~~i LeoNid ~~
On 29 Apr 2001 05:54:17 -0700 impersonator of [EMAIL PROTECTED] ("Daniel BI") planted &I saw in php.general: >Hi there! > >Anybody knows if possible to have >PHP as an Apache module under Windows, with >SSL enabled, too? > >Is there an 'openSSL' lib for Windows? > >thanx, >Daniel BI > see, if you

RE: [PHP] getting sessions lifetime

2001-04-29 Thread Taylor, Stewart
Yes your right that would not work with cookies turned off. You might instead get the session timeout details from the php.ini file by using the http://www.php.net/manual/en/function.get-cfg-var.php function. And base you timeout settings on these values. -Stewart -Original Message-

[PHP] Comparison between template engines.

2001-04-29 Thread Subhrajyoti Moitra
Hi, Have any one benchmarked FastTemplate Template Engine, PHPLib Template Engine and Smarty Template engine? I wanted to know the pros and cons of these engines. Can anyone help me please. regards subhro _ Chat with your friends as soon as the

RE: [PHP] getting sessions lifetime

2001-04-29 Thread Taylor, Stewart
You can get the lifetime of a session cookie by calling the get_cookie_params function http://www.php.net/manual/en/function.session-get-cookie-params.php. How do you propose to hit a hidden frame just before the session times out? A better solution would be to increase the session cookie timeou

Re: [PHP] Do You Like This Book?

2001-04-29 Thread Tym Rehm
I'm reading it now. I think it's a great book. It has good examples. At 05:49 PM 4/28/01 -0500, you wrote: >Has anyone read this new book yet? > >PHP and MySQL Web Development >by Luke Welling, Laura Thomson > >http://www.amazon.com/exec/obidos/ASIN/0672317842/ref=ase_hotscrcomyourgui/1 >07-09433

Re: [PHP] how to include() a string

2001-04-29 Thread Andi Gutmans
Do you mean eval()? It evaluates code which is a string, for example: eval ('print(2);'); If you can develop your application without using eval() you're better off as it is very slow. Andi At 11:29 AM 4/29/2001 +, ~~~i LeoNid ~~ wrote: >require(?) > >-- >PHP General Mailing List (http://w

[PHP] how to measure databases

2001-04-29 Thread Mark Lo
Hi, I would like to know how to measure how many MB of one particular databases is taken in PHP command. I know I can always use the command of du ... . But this command is not work under apache because the user and group are nobody, while the user and group for mysql is mysql, also the pe

Re: [PHP] how to include() a string

2001-04-29 Thread ~~~i LeoNid ~~
require(?) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Apache+PHP(as apache module)+SSL under Windows

2001-04-29 Thread Daniel BI
Hi there! Anybody knows if possible to have PHP as an Apache module under Windows, with SSL enabled, too? Is there an 'openSSL' lib for Windows? thanx, Daniel BI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

[PHP] getting sessions lifetime

2001-04-29 Thread Jens Kisters
Hi there! Is there a way to determine the session timeout of the currents servers PHP configuration, e.g. by reading values from the php.ini? i want to manage the timeout of the session myself, no matter what the server is set to, i want to try to hit a session page in a hidden frame just before

RE: [PHP] Sessions

2001-04-29 Thread Taylor, Stewart
The SID will only be added automatically if -enable-trans-sid is set and your browser has cookies switched off. When cookies are on the session id is propagated using a cookie. So likewise the constant will only be expanded when cookies are switched off. Anyway, yes you will have to add to al

Re: [PHP] integer checking problem from query string

2001-04-29 Thread Steven Haryanto
Because it's a string. You can use regex matching or test whether floor($var) == $var, for example. Steve At 4/29/2001 04:25 AM, Jamie Saunders wrote: >Hi, > >I'm submitting a phone number from an HTML form to a PHP page >that examines it to see if it's an integer: > >form.html: > >validate.ph

Re: [PHP] MySQL capabilities

2001-04-29 Thread Steven Haryanto
This is perhaps more suited on mysql mailing list, but anyway... On 4/29/2001 06:18 PM, José León Serna wrote: > Hello: > Since no one asks my question about access to InterBase from PHP, I'm > considering MySQL ;-) > I would like to know more about the reliability and functionality from

[PHP] template solutions?

2001-04-29 Thread Steven Haryanto
Does anyone know a rather advanced template solution in PHP? At least one that supports loop and if (like HTML::Template), and directives/commands would be nice (like Perl's Template Toolkit). I am currently rolling my own, but still not happy with the result of the design. I'd be happy to use on

Re: [PHP] Opening a page in the same window

2001-04-29 Thread Johannes Rumpf
For PHP there's no command, just do it by Javascript, like this: print("document.location.href=\" --- Fill in file location here --- \""); The file you're linking to can be any file, a html, a php, a cgi, whatever you want Greetings from Austria, Joh

php-general Digest 29 Apr 2001 11:15:15 -0000 Issue 656

2001-04-29 Thread php-general-digest-help
php-general Digest 29 Apr 2001 11:15:15 - Issue 656 Topics (messages 50775 through 50794): Content_Type is included in uploaded file! 50775 by: Siamak Amirghodsi php suck 50776 by: idban secandri 50779 by: Jack Lauman 50780 by: Kath 50790 by: Michael

[PHP] MySQL capabilities

2001-04-29 Thread José León Serna
Hello: Since no one asks my question about access to InterBase from PHP, I'm considering MySQL ;-) I would like to know more about the reliability and functionality from PHP users, I'm going to make searchs on a database with big text in Blob fields. Right now, in my web (it's made in Delphi)

[PHP] CGI version of php

2001-04-29 Thread Cameron
im playing with the cgi version of php for a change and im trying to work out how to set a different include path on each vhost but i cant work it out. TIA, Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

[PHP] Sessions

2001-04-29 Thread Jennifer
I have been doing a few test pages trying to figure out how sessions work. The SID is not being automatically added to my urls so I assume that means that php was not compiled with -enable-trans-sid (I'm on a virtual server so I can't access php.ini) So that means that I need to add to all my

[PHP] Handling the http location header/How to make a php browser - help needed

2001-04-29 Thread albawaba
I've been trying to read a page with fsockopen, that page returns a location header but when parsing the header and trying to read the page it points to I get a different result than when using my browser... Does any one have any suggestions how to get the same result as when using a browser? I in

Re: [PHP] php suck

2001-04-29 Thread Michael Hall
> i found this when surfing this morning > http://www.phpsucks.net/ Looks like someone just spent a fortune on getting and learning M$ products then lost work to a PHP/open source alternative, or maybe they just can't get Red Hat installed. Either way, who cares? Mick -- PHP General Mailing

[PHP] Opening a page in the same window

2001-04-29 Thread Abdullah Al-Juaid
hello, How to open a page in the same window by means of PHP or JavaScript? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTE

Re: [PHP] php sucks

2001-04-29 Thread Christian Reiniger
On Sunday 29 April 2001 04:33, Chris Fry wrote: > I guess the PHP Group has plenty of witnesses to support their case! > > Chris > > Jack Lauman wrote: > > After 25 years in the advertising business, I'd say the PHP Group has > > a hell of a good copyright infringement and defamation case here. >

[PHP] Syntax Needed in safe_mode_exec_dir

2001-04-29 Thread Mark Lo
Hi, I have turned on safe mode in PHP4. Now, I would like to exec something in home directory. What syntax should I use ?? etc. safe_mode_exec_dir= /home ---> Thank you so much mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: [PHP] dynamically adding rows to same form.

2001-04-29 Thread Subodh Gupta
Hi Rahul A simple solution could be if(empty(num_of_rows)){num_of_rows=some_default_value ;} while (num_of_rows>0){ what you want to do in that row } Well, this is a very raw answer, I haven't even taken care of proper syntax.. But I hope may help yo