[PHP] Scrollbars?

2002-10-07 Thread Steve Jackson
This might be off topic but I thought I'd give the list a try... Does anyone know of any PHP or CSS or something which allows you to change the appearance of scrollbars in Explorer and navigator? Kind regards, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL

Re: [PHP] Scrollbars?

2002-10-07 Thread Justin French
yes it is off topic no it's not PHP yes it is CSS yes you can try a newsgroup like comp.infosystems.www.authoring.stylesheets, or do a simple search of google, which will surely return plenty of answers. justin on 07/10/02 5:01 PM, Steve Jackson ([EMAIL PROTECTED]) wrote: This might be off

[PHP] page expires

2002-10-07 Thread Wilbert Enserink
Hi all I'm using a lot of php in my website. Especially forms. but Aftre a form submit I get this message from IE that the page is expired and I have to push Refresh. Does anybody know why this is happening and is there a way to avoid this message?? thx. Wilbert Warning: Page has Expired

RE: [PHP] page expires

2002-10-07 Thread Timothy J Hitchens
You have posted data from a previous page into this page.. FORM Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Wilbert Enserink [mailto:[EMAIL PROTECTED]] Sent: Monday, 7 October 2002 5:48 PM To: [EMAIL PROTECTED] Subject: [PHP] page

[PHP] Re: getimagesize or loop pblm

2002-10-07 Thread Tim Toohey
Arnaud Gonzales wrote: for($i=0;$i=56;$i++){ should be for($i=0;$i56;$i++){ to loop 56 times. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 7 Oct 2002 08:03:44 -0000 Issue 1629

2002-10-07 Thread php-general-digest-help
php-general Digest 7 Oct 2002 08:03:44 - Issue 1629 Topics (messages 119013 through 119048): Re: Can it be Done? 119013 by: Sascha Cunz 119014 by: Adriano 119015 by: Sascha Cunz 119042 by: . Edwin need help for a where clause 119016 by: Alex Shi

[PHP] Getting fully qualified host name

2002-10-07 Thread Spongle
I need to get the fully qualified host name of the local machine, like server.somewhere.com. Sounds simple, right? Seems not. I'm running a CLI script in PHP 4.3-cvs (on OpenBSD) so I have no HTTP or other global vars to look at, and it doesn't seem to be lying about in my environment (not that

[PHP] sysvshm examples?

2002-10-07 Thread Geranium
Can anyone point me at some examples of using sysv shared memory, particularly for passing values between a mod_php script and a PHP CLI process? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Signal handling

2002-10-07 Thread Geranium
Is signal handling broken in PHP 4.3-cvs? I've set up some handlers as per the docs, but nothing happens when I send appropriate signals. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] formatting / beautifying PHP code

2002-10-07 Thread Tony Crockford
Is there a utility that formats / beautifies PHP code like indent does for C code? something like this? http://tools.phpedit.net/phpCodeBeautifier/ HTH Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] join() , can do that fast?

2002-10-07 Thread lallous
Hello, I have: $x = array('str1','str2','str3'); I want to convert that array to a valid javascript syntax as: var x = ['str1','str2','str3'] I can do this in PHP: echo sprintf(x=[%s], join(',', $x)); but that would produce: x = [str1, str2, str3] is there is a fast way (other than doing

Re: [PHP] sessions without cookies *or* URLs

2002-10-07 Thread David T-G
John, et al -- ...and then John W. Holmes said... % % You can pass the session ID in a form, too. Just use POST, and make it a % hidden element passed to the next page. Yeah, I figured that. % % input type=hidden name=PHPSESSID value=?=$PHPSESSID? % % It's no different than passing it in

Re: [PHP] page expires

2002-10-07 Thread Justin French
It's a browser issue, not a PHP issue to the best of my knowledge. Justin on 07/10/02 5:47 PM, Wilbert Enserink ([EMAIL PROTECTED]) wrote: Hi all I'm using a lot of php in my website. Especially forms. but Aftre a form submit I get this message from IE that the page is expired and I

RE: [PHP] page expires

2002-10-07 Thread John W. Holmes
Use GET instead of POST. It's a browser issue and it's been discussed on here plenty of times. Do a search. ---John Holmes... -Original Message- From: Wilbert Enserink [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 3:48 AM To: [EMAIL PROTECTED] Subject: [PHP] page

Re: [PHP] sessions without cookies *or* URLs

2002-10-07 Thread David T-G
Justin, et al -- ...and then Justin French said... % % on 07/10/02 11:32 AM, David T-G ([EMAIL PROTECTED]) wrote: % % It's a start; it confirms some of what I think I understand about % sessions. Now if only I can get the session ID out of the URL without % using any cookies... Any ideas,

RE: [PHP] join() , can do that fast?

2002-10-07 Thread John W. Holmes
-Original Message- From: lallous [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 6:09 AM To: [EMAIL PROTECTED] Subject: [PHP] join() , can do that fast? Hello, I have: $x = array('str1','str2','str3'); I want to convert that array to a valid javascript syntax

Re: [PHP] join() , can do that fast?

2002-10-07 Thread lallous
John, what you said would simply produce: var x = ['str1,str2,str3'] and not as I want: var x = ['str1','str2','str3'] Elias, John W. Holmes [EMAIL PROTECTED] wrote in message 002101c26de2$982bf7d0$7c02a8c0@coconut">news:002101c26de2$982bf7d0$7c02a8c0@coconut... -Original

Re: [PHP] sessions without cookies *or* URLs

2002-10-07 Thread Justin French
on 07/10/02 7:18 PM, David T-G ([EMAIL PROTECTED]) wrote: % re-write any relative URLs in your pages to include the session ID... it's So I can code without having to put the ID on the URLs myself? So the transparent-ness is for the programmer? Well, I do like that... Yes. % So, this

Re: [PHP] join() , can do that fast?

2002-10-07 Thread Erwin
Lallous wrote: John, what you said would simply produce: var x = ['str1,str2,str3'] and not as I want: var x = ['str1','str2','str3'] Elias, did you actually tried that? Because it does produce what you want... ? $x = Array( 'str1', 'str2', 'str3' ); echo sprintf(x=['%s'], join(',',

Re: [PHP] join() , can do that fast?

2002-10-07 Thread lallous
Thanks John, sorry I didn't see the new join()'s parameters you provided, I only noticed the new '%s' . Elias, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need help for a where clause

2002-10-07 Thread Philipp Lutz
If you are using MySQL you may want to look at the CASE statement in the Control flow functions for use with SELECT Statements it would look like SELECT CASE A.Afn WHEN 1 THEN B.Bfn1 WHEN 2 THEN B.Bfn2 WHEN 3 THEN B.Bfn3 FROM A,B IN MySQL Hope That Helps.. Phil Alex Shi

RE: [PHP] sessions without cookies *or* URLs

2002-10-07 Thread John W. Holmes
% The most common method is plain cookies. But if you want guaranteed state, Sure, but I know that cookies won't work, so that rules them out. Won't work, or you don't want to use them? % So, this rules out a complaint about complicated URLs, because you don't % have to type them. I

Re: [PHP] join() , can do that fast?

2002-10-07 Thread Philipp Lutz
Read closely ! There are extra apostrophes inside the quotes !! Phil Lallous [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... John, what you said would simply produce: var x = ['str1,str2,str3'] and not as I want: var x = ['str1','str2','str3']

[PHP] Doubt on using header and setcookie functions

2002-10-07 Thread Balaji Ankem
Hi How to set cookies using header() function and using setcookie function? Setcookie('testcookie','Balaji',time()+3600,'/','10.145.0.1',1); If I want to write same thing with header function how can I do that? Is it like header(Set-Cookie:

[PHP] Includes

2002-10-07 Thread Rick Beckman
I'm wanting to use PHP to make updating an entire site easier by using include() [I think that's the function] to include navigation bars, notices, etc. on multiple pages. What's the best way to do that, and is it possible to keep the included files from being indexed/viewed on their own

Re: [PHP] Includes

2002-10-07 Thread Andy Woolley
Hi, The best way to do this (it's only my opinion, I'm sure there are many other ways but this way works for me) is to create a .php file and fill it with your most commonly used functions. You can use a .inc file, which is probably recommended, but you will need to tell the server not to

Re: [PHP] PHPDoc?

2002-10-07 Thread Matt
I know of the following... www.phpdoc.de - used by PEAR, scattered documentation http://phpdocu.sourceforge.net - lots more documentation, hate the framed output http://www.ez.no/article/articlestatic/35/1/42/ - eZ phpdoc, from the people who make the eZ CMS I'm interested in hearing from

[PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
Everyone, I've had a simple download script working where a user would click on a link and the program would send word or excel headers instead of HTML. The file would then be opened in the appropriate program and the user could save/edit it. Now that we've loaded everything under SSL, it

[PHP] Using '/' instead of '?' in url querystring

2002-10-07 Thread Kenni Graversen
Hi, I wonder if any of you have experience, sending variables in the url without using the ? character. When sending variables this is the normal way to do it: /foo.php?id=12 But I have read that the following URL should work: /foo.php/12/ and then fetch the id in this way: $id =

[PHP] Re: Using '/' instead of '?' in url querystring

2002-10-07 Thread Johan Holst Nielsen
When sending variables this is the normal way to do it: /foo.php?id=12 But I have read that the following URL should work: /foo.php/12/ and then fetch the id in this way: $id = ereg_replace('[^0-9]', '', $PATH_INFO); I have even seen it in function but the problem is that I can't get

Re: [PHP] Does anyone knows File Maker

2002-10-07 Thread Andrew Hill
Elliot, PHP works just fine with ODBC, using the iODBC Driver Manager as per the HOWTO at http://www.iodbc.org. This should work against FMPro under Windows as well. Best regards, Andrew Hill Director of Technology Evangelism - OpenLink Software Universal Data Access and the Virtuoso Universal

Re: [PHP] what is the best way to handle connectivity

2002-10-07 Thread salamander
Jeff, ODBC should work just fine - you can just link --with-iodbc as per the HOWTOs on www.iodbc.org. If you use a native driver than the Informix client needs to be installed on the same box. Best regards, Andrew Hill Director of Technology Evangelism - OpenLink Software Universal Data

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rasmus Lerdorf
Does it work with a different browser? Smells like an IE bug to me. On Mon, 7 Oct 2002, 1LT John W. Holmes wrote: Everyone, I've had a simple download script working where a user would click on a link and the program would send word or excel headers instead of HTML. The file would then be

Re: [PHP] recent encrpyt decrypt code... (problems)

2002-10-07 Thread Scott Fletcher
You got to be kidding me I use similar code and a sample of yours and I got just about the same error message as what Jeff Bluemel got. I checked the PHP Info and it showed that I had the libmcrypt accepted but no supported ciphers. Then I posted two seperate unanswered posting until I

[PHP] Prevent certain cachingheaders sent by sessionssytem

2002-10-07 Thread Eric Persson
I'm using the builtin sessionssystem in some soloutions I've made but I'm not totally satisfied with the headers sent from it. Especially I dont like the following line: Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 The header above causes me some problems and I

Re: [PHP] Using '/' instead of '?' in url querystring

2002-10-07 Thread Nicole Lallande
Kenni, I asked a similar question several months ago and got a lot of terrific info from the list. First some links: See this related link: Q How can I pass variables to a script in the url like /script/var1/var2? http://www.faqts.com/knowledge_base/view.phtml/aid/124 Includes

Re: [PHP] recent encrpyt decrypt code... (problems)

2002-10-07 Thread Scott Fletcher
Never mind that! I found the answer when I did the Google search. It said mHash come first, then libmcrypt then mcrypt. So, that's what it should be. Yea, it can also be libmcrypt 1st then mhash then mcrypt. I got what I need to know which is that libmcrypt should come before mcrypt. So, it

[PHP] quert problems

2002-10-07 Thread Kurth Bemis (List Monkey)
what the hell i wrong in this query? $q = UPDATE userpref WHERE username='kurth' AND preference=required_hits SET preference=$HTTP_POST_VARS[required_hits]; mysql_error() returns this...You have an error in your SQL syntax near 'WHERE username='kurth' AND preference=required_hits SET

Re: [PHP] quert problems

2002-10-07 Thread Phillip Erskine
SET comes before WHERE $q = UPDATE userpref SET preference=$HTTP_POST_VARS[required_hits] WHERE username='kurth' AND preference=required_hits; _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP

Re: [PHP] quert problems

2002-10-07 Thread Stuart Dallas
Kurth Bemis (List Monkey) wrote: what the hell i wrong in this query? $q = UPDATE userpref WHERE username='kurth' AND preference=required_hits SET preference=$HTTP_POST_VARS[required_hits]; mysql_error() returns this...You have an error in your SQL syntax near 'WHERE username='kurth'

Re: [PHP] what is the best way to handle connectivity

2002-10-07 Thread Jeff Bluemel
thanks for the FYI... this is what I as assuming the answer was going to be, but I wanted to make sure. Jeff Salamander [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Jeff, ODBC should work just fine - you can just link --with-iodbc as per the HOWTOs on

Re: [PHP] Using '/' instead of '?' in url querystring

2002-10-07 Thread Kenni Graversen
Thanks, These links will help me out for sure. regards Kenni Nicole Lallande [EMAIL PROTECTED] skrev i en meddelelse [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Kenni, I asked a similar question several months ago and got a lot of terrific info from the list. First some links: See

[PHP] running slow on Win2k

2002-10-07 Thread Support @ Fourthrealm.com
Hi everyone, I notice that my PHP runs really slow on Win2k Server w/ IIS 5, and even slower when accessing a mySQL database. It's a PIII-800 with 256MB RAM. It is otherwise a great machine, and fast. Any suggestions? Peter - - - - - - - - - - - - - - - - - - - - - Fourth Realm Solutions

Re: [PHP] running slow on Win2k

2002-10-07 Thread Gerard Samuel
I have a dev setup running IIS/MSSQL Apache/MySQL on a w2k box with 800PIII/128M Ram. It flies for me. php 4.2.2 as isapi Support @ Fourthrealm.com wrote: Hi everyone, I notice that my PHP runs really slow on Win2k Server w/ IIS 5, and even slower when accessing a mySQL database. It's a

Re: [PHP] running slow on Win2k

2002-10-07 Thread @ Edwin
Hello, On Tuesday, October 8, 2002 12:19 AM Support @ Fourthrealm.com wrote: Hi everyone, I notice that my PHP runs really slow on Win2k Server w/ IIS 5, and even slower when accessing a mySQL database. It's a PIII-800 with 256MB RAM. It is otherwise a great machine, and fast. Any

Re: [PHP] Re: session cookies

2002-10-07 Thread Scott Fletcher
Hi Jeff, I manage the website for the credit report reseller. We don't normally use cookie but we use session only. You were expressing some concern about someone knowing the session id. What we normally use is we used the encrypted session id and use use long aphanumeric number. This

Re: [PHP] running slow on Win2k

2002-10-07 Thread Support @ Fourthrealm.com
Edwin, I have no interest in getting into a Win2K/Linux debate. There are strengths and reasons for using both systems. I run other applications (ASP, .NET, iHTML, MSSQL) without any problems, and they all work very quickly. Win2K is my primary development environment as it matches the

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
Does it work with a different browser? Smells like an IE bug to me. Doesn't everything with IE smell like a bug? Anyhow, it works fine with Netscape. Opera will not open the file, but will save-as just fine when prompted. I'm off to search MS...deity of choice help me... ---John Holmes...

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
I believe in miracles. I have searched Microsoft and the first link was actually related to my problem... Okay, I found an IE issue where downloads over SSL will choke when you send a no-cache header. It says to use a no-store cache-control header, instead. I tried this:

[PHP] eregi_replace help

2002-10-07 Thread Jennifer Swofford
Hello all, I am trying to use php to read through an html file and replace all image paths, like such: Change images/firstimage.gif to http://www.blah.com/firstimage.gif; ... Change somesuch/images/secondimage.jpg to http://www.blah.com/secondimage.jpg; So I am going through the file and

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rasmus Lerdorf
Nope, PHP does not send that. On Mon, 7 Oct 2002, 1LT John W. Holmes wrote: I believe in miracles. I have searched Microsoft and the first link was actually related to my problem... Okay, I found an IE issue where downloads over SSL will choke when you send a no-cache header. It says to

Re: [PHP] eregi_replace help

2002-10-07 Thread Jennifer Swofford
BTW - I have found errors in the regular expression that I was matching so don't bother to point those out. ;) That shouldn't affect the nature of the problem I was asking about. --- Jennifer Swofford [EMAIL PROTECTED] wrote: Hello all, I am trying to use php to read through an html file

[PHP] parsing variables through webpages

2002-10-07 Thread Edgard Berendsen
I send hidden variables from a form to a php. In the php I have the following code to convert the global vars sent: If (isset($_GET['foo'])) $foo = $_GET['foo'] else $foo = 0; But this only works using the GET method! Thanks for your answer. -- PHP General Mailing

[PHP] PHP Informix Win

2002-10-07 Thread Juraj Hasko
Hello, I would like to know if someone uses PHP (on Win[9x,2k,xp]) connection to Informix server in other way than trough ODBC. I'm trying do it, but without any success. Thank you in advance. Juraj Hasko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] MAIL taking 60 seconds to send... (too long)

2002-10-07 Thread Negretti, John (CCI-San Diego)
Hello All, I have a script which is using mail() to send an e-mail message. It seems to be working, yet taking as long as 60-65 seconds just to send the e-mail. The e-mail has no attachments and only has one line in it. Does anyone have experience with this issue. I am using

Re: [PHP] eregi_replace help

2002-10-07 Thread Marco Tabini
Jennifer-- A couple of things. eregi_replace does not have a limitation parameter, which means that if you use it *all* the strings that match your pattern will be replace with the new pattern. In your case, if I read your code correctly (and I may not--I'm doing this from memory), the eregi

Re: [PHP] MAIL taking 60 seconds to send... (too long)

2002-10-07 Thread Marco Tabini
Hey John-- Couple of ideas: 1) Is your sendmail configured as a relay? As such your PHP process may have to wait for the e-mail to be relayed before returning, which might explain why it's taking so long. The same might happen if your machine is very busy (although that has never happened to

Re: [PHP] parsing variables through webpages

2002-10-07 Thread Marco Tabini
You can use $_POST in a similar fashion to retrieve values from form that have been posted with the POST method. Also, you can use $_REQUEST to catch both at the same time. In this case, you may have a problem if the same variable is passed through both GET and POST, in that one will override

Re: [PHP] running slow on Win2k

2002-10-07 Thread @ Edwin
Peter, On Tuesday, October 8, 2002 12:40 AM Support Fourthrealm.com wrote: Edwin, I have no interest in getting into a Win2K/Linux debate. There are strengths and reasons for using both systems. Of course... Most of the time I code on my Windoze machine. (Besides, I use it most of the

Re: [PHP] Includes

2002-10-07 Thread Bryan Koschmann - GKT
Yes that is the proper usage. Maybe you could check the referrer and only display if from the webserver? I can't remember if a .htaccess would work with that sort of thing, as password protecting would of course require a password :) Unless this isn't a public site and you want a password.

Re: [PHP] MAIL taking 60 seconds to send... (too long)

2002-10-07 Thread @ Edwin
Hello, Perhaps, a DNS setting problem? - E On Tuesday, October 08, 2002 1:25 AM Negretti, John (CCI-San Diego) wrote: Hello All, I have a script which is using mail() to send an e-mail message. It seems to be working, yet taking as long as 60-65 seconds just to send the e-mail. The e-mail

Re: [PHP] MAIL taking 60 seconds to send... (too long)

2002-10-07 Thread Brad Pauly
Maybe your /etc/hosts file. What does you maillog say? # tail /var/log/maillog Brad On Mon, 2002-10-07 at 10:52, Edwin wrote: Hello, Perhaps, a DNS setting problem? - E On Tuesday, October 08, 2002 1:25 AM Negretti, John (CCI-San Diego) wrote: Hello All, I have a script

Re: [PHP] Includes

2002-10-07 Thread @ Edwin
Yes, you can use .htacess for that purpose though you don't need to password protect the folder. I'm sure if you check the archives you'll find a way to do it. Something like this: (Thanks to Justin) http://marc.theaimsgroup.com/?l=php-generalm=103266066416399w=2 - E On Tuesday, October 8,

[PHP] uploading files

2002-10-07 Thread Donahue Ben
I am uploading a gif file using is_upload_file($filename) function. I save the file with a file name img1.gif. It seems to work fine. But when I delete the file img1.gif then upload a different gif file and save it as img1.gif, it displays the first image i uploaded not the most recent one,

[PHP] Source files (.phps) cutting off prematurely

2002-10-07 Thread Jason Young
Hey guys and gals... I'm not sure if this is Apache, PHP, or a browser issue.. but.. .phps files get cut off while trying to access them in a browser.. anyone ever have a problem with this? I can't exactly calculate where in any particular file its doing this, but refreshing the page causes

[PHP] Re: uploading files

2002-10-07 Thread Jason Young
How are you handling the transfer of files between its temporary area and where it's going to be stored? If you're copying instead of moving, I would imagine the file in the temp directory would still be present. -Jason Donahue Ben wrote: I am uploading a gif file using

Re: [PHP] Re: uploading files

2002-10-07 Thread Kevin Stone
Possibly. But temp files created during execution should be destroyed when the script exists. So either copying or moving shouldn't make any difference. Besides that I think the difference is strictly semantic. Another possibility is that this is a browser cache issue. -Kevin - Original

Re: [PHP] uploading files

2002-10-07 Thread 1LT John W. Holmes
How are you deleting the file? How are you moving the temp file to the permanent area? Are you sure it's not a browser cache issue? ---John Holmes... - Original Message - From: Donahue Ben [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 07, 2002 1:22 PM Subject: [PHP]

[PHP] Chat with php

2002-10-07 Thread Oliver Witt
I attempted to write a oage that you can chat on with php. It ended up being a page that reloads itself all the time which isn't really what I wanted. But I didn't know how to do it differently. Is there another way? I heard something about flush()? Kind regards, Oliver -- PHP General Mailing

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rouvas Stathis
John, problem is broken HTTP/1.1 implementation of Internet Exploder. Make your server downgrade to HHTP/1.0. e.g. for apache: example IfModule mod_setenvif.c # # The following directives modify normal HTTP response behavior. # The first directive disables keepalive for Netscape

Re: [PHP] Chat with php

2002-10-07 Thread Robert Cummings
You can have your script enter a loop to check for data in a database. If data output it then calls the flush() function to output to the browser. Then sleep for some time, then wakeup and repeat. You may have issues with some browsers using this technique, but generally it does work. The key is

Re: [PHP] Chat with php

2002-10-07 Thread Marco Tabini
But, Robert, doesn't this technique leave a connection open on the server--and, won't it cause the server to run out of resources after a very finite number of connections has been established? Marco On Mon, 2002-10-07 at 14:07, Robert Cummings wrote: You can have your script enter a loop to

RE: [PHP] Chat with php

2002-10-07 Thread Brad Dameron
Another way is to use javascript with PHP to pull the database every so many seconds. I have seen this in I think it was PHPChat. Been a long time however. --- Brad Dameron Network Account Executive TSCNet Inc.

Re: [PHP] Chat with php

2002-10-07 Thread Marco Tabini
Simple trick (well, not so simple, but kind of a Columbus' Egg): 1) Create an img tag in your web page that is hidden 2) Point the img tag to a php script that returns: 1) An image with a pixel width of 1 if there is new data to pick up from the server 2) An image

[PHP] Sockets

2002-10-07 Thread Asmodean
Hey everyone, Does anybody know what the current support / functionality for PHP with sockets is? According to the documentation, all the socket_ functions should be included in PHP = 4.1.0. I'm currently running 4.2.1 and PHP doesn't seem to recognize these functions (socket_send, socket_write,

Re: [PHP] Chat with php

2002-10-07 Thread Oliver Witt
Brad Dameron schrieb: Another way is to use javascript with PHP to pull the database every so many seconds. I have seen this in I think it was PHPChat. Been a long time however. Well, that's pretty much how I've done it. And it is pretty crappy... Olli -- PHP General Mailing List

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
Stathis, Thanks for the tip. Any idea how to fix IIS regarding this issue? ---John Holmes... - Original Message - From: Rouvas Stathis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: 1LT John W. Holmes [EMAIL PROTECTED] Sent: Monday, October 07, 2002 2:00 PM Subject: Re: [PHP] File

Re: [PHP] Sockets

2002-10-07 Thread Marco Tabini
Yep, if you're using UNIX and compiling from source, you must add this switch to the command line when you're configuring and compiling PHP: --enable-sockets (e.g.: ./configure --enable-sockets). If you're using a prepackaged version (RPM or Windows) then you should look into the documentation

Re: [PHP] Chat with php

2002-10-07 Thread Marco Tabini
Oliver-- I'm afraid I wasn't too clear! If you do it the way I'm suggesting, your page will look like it's reloading ONLY when there is new data available, and not continuously. PHPChat is an example--it looks really good and doesn't do any of the annoying things that reloading the page usually

[PHP] edit simple text file

2002-10-07 Thread Hitesh Aidasani
Hello, I have a question that I was hoping somebody here could answer or atleast point me in the right direction. I maintain a series of mailing lists for our organization. Currently, I edit the distribution lists myself, but I would like to offload this administration to the departments

Re: [PHP] Chat with php

2002-10-07 Thread Oliver Witt
Marco Tabini schrieb: Simple trick (well, not so simple, but kind of a Columbus' Egg): 1) Create an img tag in your web page that is hidden 2) Point the img tag to a php script that returns: 1) An image with a pixel width of 1 if there is new data to pick up from the

Re: [Fwd: Re: [PHP] Chat with php]

2002-10-07 Thread Oliver Witt
Marco Tabini schrieb: Ok, off the top of my head (please don't be upset if it doesn't work right off, because I'm doing this from memory): Web page: script language=javascript function checkimage() { if (document.all.image1.width == 1) {

Re: [PHP] Grabbing auto_increment during insert?

2002-10-07 Thread Marco Tabini
If you're using MySQL: mysql_insert_id If you're using MSSQL, you need to execute SELECT IDENTITY right after your insertion operation. The result will give you the ID of your last insertion. This won't work well if you're doing a bulk insert, though. On Mon, 2002-10-07 at 15:46, Jason Young

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rouvas Stathis
John, sorry, don't know zip about IIS. I got the info from URL:http://www.squirrelmail.org/wiki/InternetExplorerVersusSSL though. Maybe they have more to say... -Stathis. 1LT John W. Holmes wrote: Stathis, Thanks for the tip. Any idea how to fix IIS regarding this issue? ---John

Re: [PHP] eregi_replace help

2002-10-07 Thread Jennifer Swofford
Thank you Marco! Between your post and the other stuff I happened to find at the same time, I got it working. Turned out I was making it much more difficult than it had to be. I ended up with: ? $filename = newexample.html; $fd = fopen ($filename, r); $contents = fread ($fd, filesize

Re: [PHP] how to build a webmail

2002-10-07 Thread Marco Tabini
Try this: http://www.horde.org/imp/ On Mon, 2002-10-07 at 16:26, Nagib Abi Fadel wrote: Hi i want to build a webmail with PHP, can someone give me some guidelines. thx. - Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, more

[PHP] Deleting multiple items from database using checkboxes

2002-10-07 Thread Davy Obdam
Hi people,. I have a guestbook admin page were i would like to delete one item or more items from the database if necessary. I have modified my normal guestbookpage so that it has checkboxes in front of every entry. This is my code: input type=\checkbox\ name=\dele[]\ value=\.$sql['entryID'].\

Re: [PHP] Deleting multiple items from database using checkboxes

2002-10-07 Thread Marco Tabini
Try WHERE EntryID IN ( . implode ($dele, ',') . ) However: 1) Anybody could fake a form post or query url to delete any data in your database 2) It would also be possible to create a more dangerous post that could give the attacker control over your entire database Thus, I assume that you will

[PHP] Re: [PHP-WIN] Deleting multiple items from database using checkboxes

2002-10-07 Thread Aitor
my querylooks like this : DELETE FROM gastenboek WHERE entryID=$dele . I think that the mySQL query should look like: DELETE * FROM gastenboek WHERE entryID=$dele so, you should do something like this: DELETE $thinks_to_delete FROM gastenboek WHERE entryID=$dele After the DELETE you must

Re: [PHP] Deleting multiple items from database using checkboxes

2002-10-07 Thread Ing. Raúl González Rodríguez
You can use the following code to delete multiple items: if(isset($dele) (count($dele) 0)) { $sql = delete from gastenboek where (entryID='$dele[0]'); for($i=1; $icount($dele); $i++) $sql .= or (entryID='$dele[$i]'); $res = mysql_query($sql, $connection); } Raul

[PHP] detecting POST variables

2002-10-07 Thread Anup
Hello, I have been dealing with different form proccessing PHP scripts. When I start a new job I usually have a script that just takes the form POST values and prints them to the screen, so I know what I'm working with. Now I have a question say the form has 1 field named FirstName. If the field

RE: [PHP] parsing variables through webpages

2002-10-07 Thread David Freeman
I send hidden variables from a form to a php. In the php I have the following code to convert the global vars sent: If (isset($_GET['foo'])) $foo = $_GET['foo'] else $foo = 0; But this only works using the GET method! If you're sending the variable

RE: [PHP] running slow on Win2k

2002-10-07 Thread David Freeman
I have no interest in getting into a Win2K/Linux debate. There are strengths and reasons for using both systems. Good for you, I was about to post something similar. For the record my dev environment is a laptop with a Celeron 1.2/256MB/WinXP Pro and it's running Apache, MySQL and PHP

[PHP] Re: mail subjects and iso-8859-15

2002-10-07 Thread Manuel Lemos
Hello, On 10/07/2002 06:32 PM, Kek Le Rouge wrote: Hello, I have configured a pop sever on my PC, and I'd like to enable poeple to read ther mails from a http server (for those who haven't outlook in fact) Well, I manage to print the subjets of the mail, but if appears like that: pardon,

[PHP] Referrer

2002-10-07 Thread Alex Shi
How can know the referrer of a script? Let's say script B is linked from script/page A. Is it possible to obtain A's name in script B? Alex -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Referrer

2002-10-07 Thread Timothy J Hitchens
You can't know the name of the script but you can know the complete URI (if available) $_SERVER['HTTP_REFERER'] Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Alex Shi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 8 October 2002 9:39 AM To:

[PHP] Re: detecting POST variables

2002-10-07 Thread nicos
You should use foreach($_POST as $key = $value) { echo $key.':'.$value; } Btw thats just an example to get all $_POST values, all superglobals are arrays. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Anup [EMAIL PROTECTED] a écrit dans le

[PHP] Database help

2002-10-07 Thread Jef
I am querying a database to populate a list. The list is suppose to start with the first line of information in the database and continue untill have been displayed. The problem I am having is the first line in the database is not being displayed. The display starts on the second line. Here are

[PHP] Re: NEXT() and/or PREV()

2002-10-07 Thread nicos
sure, get an array with all your filenames, get the current position with $_SERVER['PHP_SELF'] and then use next() or prev(). -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Jef [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED]

[PHP] Re: detecting POST variables

2002-10-07 Thread Anup
This is a snippet of what I use: code foreach ($HTTP_POST_VARS as $Index=$Value) { echo DEBUG ::: POST Key: $Index; POST Value: $Valuebr\n; } /code But I just want to know why sometimes when the form has empty values, that sometimes it prints the key's name but not the actual value. Assume

  1   2   >