Re: [PHP] Templates

2001-01-13 Thread Michael Kimsal
I'm sure it could be done, just with a bit of planning. The notion of passing in sql results is not foreign - we do it sometimes to our own 'templates', but our templates are generally just HTML with a bit of PHP in there, whereas the initial PHP page is PHP with a tiny bit of HTML. If there's a

Re: [PHP] Templates

2001-01-13 Thread andrew
Yup, I believe so - I've been wrestling with this idea for a while and trying to figure out how to integrate it into the parser explained in a PHPBuilder Article on Cached Modules: http://www.phpbuilder.net/columns/jprins2201.php3 In the above, I think the point is to create little block tem

[PHP] rewriting the browser's url

2001-01-13 Thread Jared Howard
I need to know how to be able to eliminate the querysting portion of the URL that is displayed on the users browser. I don't want it possible to click refresh and reenter in the same querystring that was used previously (eg. php runs a mysql query of INSERT based on the querystring which only sho

php-general Digest 14 Jan 2001 02:22:50 -0000 Issue 453

2001-01-13 Thread php-general-digest-help
php-general Digest 14 Jan 2001 02:22:50 - Issue 453 Topics (messages 34360 through 34435): load balancing with php/apache? 34360 by: Erick Papadakis 34374 by: Tim Zickus 34376 by: Rasmus Lerdorf 34377 by: Joe Stump 34378 by: Rasmus Lerdorf 343

Re: [PHP] rewriting the browser's url

2001-01-13 Thread Cynic
1) use POST method, not GET 2) don't output anything from the script that recieves the POST data, instead, redirect to another page. pseudocode follows: if( post ) { query the database ; header( 'Location: result.php' ) ; } html form At 03:23 14.1. 2001, Jared Howard wrote t

[PHP] 祝!ご成人**

2001-01-13 Thread Over Twenty
ご成人オメデトウゴザイマス http://www.gem.hi-ho.ne.jp/p-head/tobi/infdex.htm ご成人以外は削除してください -- 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,

[PHP] Escape characters

2001-01-13 Thread Jeremy Bowen
Hey All, I am sending e-mail using the mail() command. My question is whenever an ' is used in the e-mail it is escaped like this: don\'t. Is there any way to prevent this?? Thanks, Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

Re: [PHP] Escape characters

2001-01-13 Thread Cynic
mail( 'email@address' , 'subject' , stripslashes( $body ) ) ; At 04:22 14.1. 2001, Jeremy Bowen wrote the following: -- >Hey All, > >I am sending e-mail using the mail() command. My question is whenever >an ' is used in

Re: [PHP] Problem building php 3.0.18

2001-01-13 Thread Michael A. Peters
I did that, and compiling those two modules as modules gives the same error (as it would, of course). I really would those compiled as seperate shared objects, not as part of the libphp3.so. These will be rpm's that are distributed, and the way users determin what php functions they want to use i

[PHP] Mixing PHP3 & SSI

2001-01-13 Thread Scott Brown
Ok - I thought I saw that it could be done, so I tried it... and I almost got it working. But rather than one simple layer, I've got SHTML that calls other SHTML and so on it made changes really simple until now ;-) So anyways, rather than use I've replaced my with and

Re: [PHP] Mixing PHP3 & SSI

2001-01-13 Thread Rasmus Lerdorf
Why did you decide not to use virtual? The readfile() method you are using turns PHP into the browser and it makes a completely new request to your web server. -Rasmus On Sat, 13 Jan 2001, Scott Brown wrote: > Ok - I thought I saw that it could be done, so I tried it... and I almost > got it w

RE: [PHP] load balancing with php/apache?

2001-01-13 Thread [EMAIL PROTECTED]
On Sat, 13 Jan 2001, jeremy brand wrote: > Oh, BTW, we don't use PHP sessions, we use our own. That has got me hooked - what do you use? do you mean you dont use 1) PHP4 sessions OR 2) don't use PHP for session handling at all? Tarique -- = B2

RE: [PHP] Mixing PHP3 & SSI

2001-01-13 Thread Scott Brown
I tried virtual first - but it didnt work. it grabbed the first call, processed it, and then forgot about the rest of the page. > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: Saturday, January 13, 2001 11:56 PM > To: Scott Brown > Cc: [EMAIL PROTECTED]

RE: [PHP] Mixing PHP3 & SSI

2001-01-13 Thread Rasmus Lerdorf
Well, your readfile() method will never work in any version of PHP. Why not just port all your SSI stuff to PHP? There is nothing you can do in SSI that you can't easily do in PHP. -Rasmus On Sun, 14 Jan 2001, Scott Brown wrote: > I tried virtual first - but it didnt work. > > it grabbed the

RE: [PHP] Mixing PHP3 & SSI

2001-01-13 Thread Scott Brown
Well, it means redeveloping the entire site then - i'm just trying to add one PHP page to a couple of dozen others that are entirely built out of pieces of SHTML - not reinvent the wheel (I'm not getting paid for my time here - it's volunteer work ;-) If readfile is indeed that "broken", maybe we

RE: [PHP] Mixing PHP3 & SSI

2001-01-13 Thread Rasmus Lerdorf
> If readfile is indeed that "broken", maybe we can talk the powers that be > into dumping full HTTP headers through the readfile call in a future > version I mean, the main script has it already from when it was > called... so it should be able to sub-call pages in that same context. readfil

Re: [PHP] RTFM me to IIF file format creation...

2001-01-13 Thread php3
Addressed to: "Dallas Kropka" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Dallas Kropka" <[EMAIL PROTECTED]> Sat, 13 Jan 2001 19:15:02 -0600 > > I need to create files and reports for importation into QuickBooks, > but they need to be in the IIF file format that Qu

RE: [PHP] Mixing PHP3 & SSI

2001-01-13 Thread Scott Brown
> > If readfile is indeed that "broken", maybe we can talk the > > powers that be into dumping full HTTP headers through the > > readfile call in a future version I mean, the main > > script has it already from when it was called... so it > > should be able to sub-call pages in that same cont

Re: [PHP] problem using flock()

2001-01-13 Thread Rasmus Lerdorf
Oh man, I wouldn't do it this way. Log this stuff in a separate file using a simple append which doesn't need logging. Then write yourself a simple little perl script that figures it out after the fact. File locking on anything with high traffic is going to make your hair turn grey. Another al

RE: [PHP] Mixing PHP3 & SSI

2001-01-13 Thread Rasmus Lerdorf
> > > If readfile is indeed that "broken", maybe we can talk the > > > powers that be into dumping full HTTP headers through the > > > readfile call in a future version I mean, the main > > > script has it already from when it was called... so it > > > should be able to sub-call pages in that

[PHP-CVS] cvs: php4 /ext/standard datetime.c

2001-01-13 Thread David Croft
david Sat Jan 13 21:37:33 2001 EDT Modified files: /php4/ext/standard datetime.c Log: reserve space for quoted characters fixes buffer overrun bug #8694 Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.62 php4/ext/standard/date

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-13 Thread Rasmus Lerdorf
rasmus Sat Jan 13 21:55:07 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: More karma for David Croft Index: CVSROOT/avail diff -u CVSROOT/avail:1.33 CVSROOT/avail:1.34 --- CVSROOT/avail:1.33 Fri Jan 12 10:27:59 2001 +++ CVSROOT/avail

[PHP] Installing PHP in Windows Me and PWS4

2001-01-13 Thread Statbat
Hello, I am trying to install php in windows Me and PWS4. But I am getting into trouble. I have stated the steps I have performed and the one I am unable to perform. 1. - The easiest way to do it is to copy these DLLs to your SYSTEM (Windows 9x) directory, which is under your Windows direc

[PHP] SMs

2001-01-13 Thread Dhaval Desai
HI! I am trying to build a SMS(Short message service) mesaging system..can anybody tell me what are the requirements for this... Thanx a lot! Dhaval Desai __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yaho

[PHP] file checking

2001-01-13 Thread Huseyin
i am trying to write a function that checks the file to see if it is still availabla to download if not it will return link is broken this is what i have if(!($connection = @fopen ($row[url], "r"))) { $broken=1;} else { $broken=0; } but the problem is that it sometimes display broken link even tho

[PHP] logging page views, which method is better????

2001-01-13 Thread Dallas Kropka
I have a large site, with several hundred pages its a product listing and shopping cart and I want to log my page views I receive an average of 3000 hits per minute. Is it better (faster) to log my views to a database table? or to a flat file? -- PHP General Mailing List (

[PHP-CVS] cvs: php4 /ext/iconv iconv.c php_iconv.h

2001-01-13 Thread Rui Hirokawa
hirokawaSat Jan 13 23:40:16 2001 EDT Modified files: /php4/ext/iconv iconv.c php_iconv.h Log: added iconv_get_encoding and supported initialization from php.ini Index: php4/ext/iconv/iconv.c diff -u php4/ext/iconv/iconv.c:1.3 php4/ext/iconv/iconv.c:

[PHP] Refresh particular browser while updating another browser

2001-01-13 Thread Hendry Sumilo
Dear Expert, I would like how to refresh particular browser with a new updated data when the user has updated it at another browser. Purpose of doing this is particular user won't user overwrite new value if he uses another browser to update it. Thank you Sincerely Yours Hendry Sumilo [EMA

[PHP] Easiest Way to Install PHP3 with MySQL support on RHL 6.2

2001-01-13 Thread Neil Zanella
Hello, I thought this might be of interest to some newbies who might want to enable MySQL support in PHP without having to do anything but execute some commands as root on their Red Hat Linux 6.2 system. Here they are: wget ftp://ftp.redhat.com/redhat/redhat-6.2/SRPMS/SRPMS/php-3.0.15-2.src.rpm

Re: [PHP] problem using flock()

2001-01-13 Thread Mukul Sabharwal
Hi, Well the problem might be while obtaining the lock. fopen() with let's say 'a' will open the file, and put the cursor to the very last byte. The time period between opening the file and getting the lock is probably where you're clobbered. At let's say time X, a file is opened and the writing

Re: [PHP] cookie stopped working???

2001-01-13 Thread Rasmus Lerdorf
> SetCookie("cpvin","$vin","time()+1500"); SetCookie("cpvin",$vin,time()+1500); Note though that such short expiry times make you very prone to people having their clocks set wrong. It is a better idea to embed your server's timestamp in the value of the cookie and when you get the cookie back

<    1   2