RE: [PHP] Re: PHP to Excel (csv)

2002-10-07 Thread Timothy J Hitchens
If it is in Mysql format why not reimport into a database and write an export script... that does the work? Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Owen Prime [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 8 October 2002 4:31 PM To: [EM

[PHP] Re: PHP to Excel (csv)

2002-10-07 Thread Owen Prime
Check out http://www.wotsit.org for the exact csv specifications but here is a snippit that works for me: function csv($value) { if (strstr($value, ",") || strstr($value, "\n") || strstr($value, "\r")) { return "\"" . str_replace("\"", "\"\"", $value) . "\""; } el

[PHP] Re: PHP to Excel (csv)

2002-10-07 Thread @ Edwin
Perhaps, you can take them off then? I think you can use str_replace() to replace them with "". - E "Ivo Stoykov" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > > I have following problem. > > Some data retreived from mysql db I need to send to the user

[PHP] PHP to Excel (csv)

2002-10-07 Thread Ivo Stoykov
Hi I have following problem. Some data retreived from mysql db I need to send to the user as a *.csv file. Usually I separate fields (usually double quoted) with comma (,) or semicolomn (;) and the records with cr/lf (Windows) It works fin until I do not have cr/lf in any of the fields. Unfortu

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

2002-10-07 Thread Jason Wong
On Tuesday 08 October 2002 06:03, Jef wrote: > I need some help with the NEXT() and PREV() functions. I want to use them > with a webpage to direct which page is viewed by the user. If NEXT is > selected then I would like the next information pulled from the database. > If the PREV is selected I w

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

2002-10-07 Thread Rasmus Lerdorf
Why not just a simple wget -S https://... to see the headers? On Tue, 8 Oct 2002, Tom Rogers wrote: > Hi, > > Tuesday, October 8, 2002, 1:32:16 PM, you wrote: > JWH> Thanks for the help guys. Like I said, the download works fine as long > JWH> as it's not over SSL. I will try to disable it and s

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

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 1:32:16 PM, you wrote: JWH> Thanks for the help guys. Like I said, the download works fine as long JWH> as it's not over SSL. I will try to disable it and see if I can look at JWH> the headers sent to see if a no-cache header is being sent, even though JWH> I haven't

Re: [PHP] Change in PHP 4.2.3 for mysql rollback

2002-10-07 Thread Rasmus Lerdorf
It doesn't look to see if there are any, that'd be hard. It just does a rollback to be safe. It shouldn't hurt anything if you aren't using transactions. -Rasmus On Tue, 8 Oct 2002, Samantha Savvakis wrote: > Hi, > > I noticed one of the fixes/changes to PHP 4.2.3 is the following: > > - Made

[PHP] Change in PHP 4.2.3 for mysql rollback

2002-10-07 Thread Samantha Savvakis
Hi, I noticed one of the fixes/changes to PHP 4.2.3 is the following: - Made MySQL rollback open transactions when the request ends. The reason why I looked into the changes is because I noticed the SQL Command "ROLLBACK" being submitted to my database server after the database handles were clo

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread @ Edwin
Yes, I agree. Besides, Justin had a similar idea (with yours). But, I was trying to help with the "alignment" problem--might even be useful somewhere else... ;) - E On Tuesday, October 8, 2002 1:26 PM Thoenen, Peter Mr. EPS wrote: > What you want is: > [snip] > > What I dont' understand is why

RE: [PHP] is there an alternative to this code?

2002-10-07 Thread Thoenen, Peter Mr. EPS
What you want is: http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en"> Foo What I dont' understand is why you are using a POST for this. why not just do something like below and get rid of the form competely. W

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Jeff Bluemel
I think my next project is to dig into ccs files, and get this part of my webpage setup... I've got a lot of good structures, but I need to get the styles etc. set. Jeff (here's the project http://obi-wan.domintcom.com username guest password domintcom - go to customer service, and then prepai

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Chris Shiflett
I'm not sure if this will be helpful, but I have always found that the only reliable way to make a tag disappear (meaning, not affect alignment or create any vertical space) is to place it outside of row tags yet inside the table: Table Cell @ Edwin wrote: >Yes, I agree,

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Owen Prime
Good answer. I tend to put the following line in my css which gets rid of this problem in pretty much all browsers. FORM { vspace: 0px; hspace: 0px; } Cheers, Owen Prime http://www.noggin.com.au @ Edwin wrote: > Yes, I agree, this is an html/css question... but you can try this. > > Instead

Re: [PHP] fsockopen timeout not working

2002-10-07 Thread Rasmus Lerdorf
You should read up on socket_select On Tue, 8 Oct 2002, Scott Dowd wrote: > I have a PHP application that goes out an checks all our servers via > SNMP when requested. Trouble is, if the server is not available, the > fsockopen never times out and therefore never moves onto the next > server. I

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread @ Edwin
Yes, I agree, this is an html/css question... but you can try this. Instead of putting your tags inside the tags, why not put them outside the tags like this: I think this won't destroy the "alignment". Just an idea... - E On Tuesday, October 8, 2002 11:24 AM Subject: Re: [

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

2002-10-07 Thread John W. Holmes
Thanks for the help guys. Like I said, the download works fine as long as it's not over SSL. I will try to disable it and see if I can look at the headers sent to see if a no-cache header is being sent, even though I haven't specified it. Regardless, even if it is, I have no way of stopping it, si

[PHP] fsockopen timeout not working

2002-10-07 Thread Scott Dowd
I have a PHP application that goes out an checks all our servers via SNMP when requested. Trouble is, if the server is not available, the fsockopen never times out and therefore never moves onto the next server. I am running 4.2.3 on IIS (NT4). I read there was a bug with previous versions, but I

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

2002-10-07 Thread Chris Shiflett
Yes, you're right. You might want to turn off the forced SSL temporarily to debug this, if that's possible. Nothing other than your browser or the Web server will be able to show you the HTTP communication over SSL, because it's all trash to everything in between. There may be settings in Oper

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

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:59:40 PM, you wrote: JWH> Wouldn't everything be encrypted, though, since it's over SSL? Including JWH> the headers? JWH> Unfortunately, the way they set up the server, it will not process any JWH> unsecured requests now. JWH> ---John Holmes... Yes it is encry

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Jeff Bluemel
ok - I played with this, and found this to work (but I have no idea why). is there a good webpage that give good information on the variable, and html? I have the code working, but I really have no idea how this stuff works together like it does. I would be very interested in some place I can ge

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

2002-10-07 Thread John W. Holmes
> Tuesday, October 8, 2002, 12:13:59 PM, you wrote: > >> You can have multiple directives in that header: > >> > >> Cache-Control: no-cache, no-store > >> > >> Do you have a way to view the HTTP? > > JWH> No. Can you recommend a good method on windows? Should I get lynx or > JWH> does opera have

[PHP] Re: is there an alternative to this code?

2002-10-07 Thread Jeff Bluemel
I will have to try to play with the absmiddle function... border=0 is already in there Jeff "Owen Prime" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You may have already been here but what about a border="0" and > align="absmiddle" on the image button. > >

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Jeff Bluemel
ok - I'm looking at the code you posted, and I'm following some of it, but not all of it. let me tell you what I am trying to accomplish. I like the code you posted below, but I don't believe I am understanding it well enough to implement it. I have this 'clickable image'. when I click the ima

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

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:13:59 PM, you wrote: >> You can have multiple directives in that header: >> >> Cache-Control: no-cache, no-store >> >> Do you have a way to view the HTTP? JWH> No. Can you recommend a good method on windows? Should I get lynx or JWH> does opera have a method to

[PHP] Re: Division by zero

2002-10-07 Thread Gary
I found a problem in the rows but that didn't fix it. if I test for votes, total, and percentages it work perfect. To do this I have to cut part of the code and rearrange the braces. I beginning to think it is a problem with braces being wrong or id test code query($sql); if (DB::isError(

[PHP] PDF to PHP (code)

2002-10-07 Thread Jason Morehouse
Hi all, I've got a pretty detailed PDF that I need to dynamically re-create with PHP / pdflib. Before I sit around for endless hours inputing x, y, fonts and line coordinates, is there *any* tool that can help automate this? Basically, the miracle I'm looking for would take a PDF file, and expo

Re[2]: [PHP] Sessions 2!!!

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 12:00:59 PM, you wrote: TR> After the successful first login you are not saving the $_POST variables TR> into the $_SESSION equivalents TR> -- TR> regards, TR> Tom Ok after looking a little harder I found you were setting it :) Your prblem is in the lines if(i

[PHP] Re: is there an alternative to this code?

2002-10-07 Thread Owen Prime
You may have already been here but what about a border="0" and align="absmiddle" on the image button. Cheers, Owen Prime http://www.noggin.com.au Jeff Bluemel wrote: > I would like to do this without using a form... is there a way I can > recode this? > > I have the following table... th

Re: [PHP] is there an alternative to this code?

2002-10-07 Thread Justin French
Alignment of elements in a table or form is really a HTML/CSS question. Just to make matters worse, I have problems with aligning in IE, but not NN... so perhaps there is no way to get it all working... try a HTML or CSS group. Instead of a form, you could just have a clickable image, with any va

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

2002-10-07 Thread Peter Houchin
> > You can have multiple directives in that header: > > > > Cache-Control: no-cache, no-store > > > > Do you have a way to view the HTTP? > > No. Can you recommend a good method on windows? Should I get lynx or > does opera have a method to view all the headers? can't you view all headers etc in

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

2002-10-07 Thread John W. Holmes
> You can have multiple directives in that header: > > Cache-Control: no-cache, no-store > > Do you have a way to view the HTTP? No. Can you recommend a good method on windows? Should I get lynx or does opera have a method to view all the headers? ---John Holmes... -- PHP General Mailing L

[PHP] Re: Division by zero

2002-10-07 Thread Owen Prime
Make sure that vote1, vote2, and vote3 are not null. Maybe you need to use the IFNULL(vote1, 0) function. Cheers, Owen. Gary wrote: > I am trying t get the percent of votes form the table poll, but keep > getting Division by zero for the line commented below. > > > if ($res) { > echo "b

[PHP] MySQL back up

2002-10-07 Thread Ken
Hi All! Anyone know how to code the MySQL command in PHP to make the database script download to your local hard disk, without writing 100 lines of code? I tried the mysqldump without any luck, but I think there is an easy way to do it, just not sure how to code it. Thanks in advance! -- P

Re: [PHP] Sessions 2!!!

2002-10-07 Thread Tom Rogers
Hi, Tuesday, October 8, 2002, 6:53:43 AM, you wrote: SV> Hiya, SV> DOn't think I am getting anywhere!!! SV> I have no turned register_globals off and recoding my website, but I cant work out how to do sessions. SV> The following code dosen't keep sessions. Its logs on, but I dosent

Re: [PHP] Division by zero

2002-10-07 Thread Gary
Yes, I did that before I posted. I am beginning to wonder if vote1-3 are being retrieved from the database. Gary John W. Holmes wrote: > Sounds like $total is zero to me...do you think PHP is making up errors > for you? Have you checked the value of $total and the different $voteX > variables?

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

2002-10-07 Thread Chris Shiflett
You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? Chris John W. Holmes wrote: >I had tried it with both cases, actually, just to be sure. It did not >make a difference. If the session is sending a no-cache header, would >the

RE: [PHP] Division by zero

2002-10-07 Thread John W. Holmes
Sounds like $total is zero to me...do you think PHP is making up errors for you? Have you checked the value of $total and the different $voteX variables? ---John Holmes... > -Original Message- > From: Gary [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 07, 2002 9:29 PM > To: [EMAIL P

[PHP] Division by zero

2002-10-07 Thread Gary
I am trying t get the percent of votes form the table poll, but keep getting Division by zero for the line commented below. if ($res) { echo "bla bla bla"; $sql = "SELECT question, responce1, responce2, responce3, vote1, vote2, vote3, date FROM poll WHERE id = {$_POST['id']}";

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

2002-10-07 Thread John W. Holmes
I had tried it with both cases, actually, just to be sure. It did not make a difference. If the session is sending a no-cache header, would then sending a no-store one cancel the other out, or just add to it? ---John Holmes... > -Original Message- > From: Chris Shiflett [mailto:[EMAIL PR

Re: [PHP] detecting POST variables

2002-10-07 Thread christian haines
maybe try... print ""; print_r($HTTP_POST_VARS); print ""; this will dump the entire post var array to the browser.. similar to functions before but faster. Christian Haines Internet Developer MITOUSA. Branding Strategies for Visual & Interactive Design 102 Tynte Street North Adelaide

RE: [PHP] Getting fully qualified host name

2002-10-07 Thread Lance Lovette
If you happen to be running *nix (which it sounds like you are) and want to compile the Pwee extension into PHP you can have access to constants like SERVER_HOSTNAME. http://pwee.sourceforge.net Lance > -Original Message- > From: Spongle [mailto:[EMAIL PROTECTED]] > Sent: Monday, Octobe

[PHP] is there an alternative to this code?

2002-10-07 Thread Jeff Bluemel
I would like to do this without using a form... is there a way I can recode this? I have the following table... the button that originates from a form is out of alighnment, and sits higher then the rest. how do I solve this? " method="POST"> -- Jeff Bluemel

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

2002-10-07 Thread Chris Shiflett
Are you sure? I think (I might be wrong) using PHP sessions automatically sends the Cache-Control header. I cannot remember what directives it uses. Perhaps the fact that you do not use correct case makes PHP miss the fact that you want to reassign Cache-Control to use a different value? If t

RE: [PHP] Database help

2002-10-07 Thread Davy Obdam
Hi Jef, This is what i would do: $fSelect = "SELECT lot,size,price FROM properties WHERE status = 'Available' ORDER BY lot ASC"; $fSql = mysql_query($fSelect, $db) or DIE("Unable to retrieve data"); for ($i=0;$i".$useFields['lot'].""; //The rest of your table } I hope this helps Be

Re: [PHP] detecting POST variables

2002-10-07 Thread Anup
Here's the code $Value) { echo "DEBUG ::: POST Key: $Index; POST Value: $Value\n"; } ?> ### Here's the function (this is how what I catually use). function PrintVars () { global $HTTP_POST_VARS; foreach ($HTTP_POST_VARS as $Index=>$Value) { echo "DEBUG ::: POST Key: $Index; POST Valu

[PHP] own session_name gc

2002-10-07 Thread Giancarlo
The manual gives an example: function destroy ($id) { global $sess_save_path, $sess_session_name; $sess_file = "$sess_save_path/sess_$id"; return(@unlink($sess_file)); } /* * WARNING - You will need to implement some * * sort of

Re: [PHP] detecting POST variables

2002-10-07 Thread Justin French
on 08/10/02 9:13 AM, Anup ([EMAIL PROTECTED]) wrote: > 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 qu

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

2002-10-07 Thread Jef
Here is the code to get the information from the database... $pnSelect = "SELECT lot FROM properties WHERE status = 'Available'"; $pnSql = mysql_query($pnSelect, $db) or DIE("Unable to retrieve LOT data"); $pnFields = mysql_fetch_array($pnSql); If I understand the current() function correctly I

[PHP] Re: detecting POST variables

2002-10-07 Thread Anup
This is a snippet of what I use: foreach ($HTTP_POST_VARS as $Index=>$Value) { echo "DEBUG ::: POST Key: $Index; POST Value: $Value\n"; } 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 the form

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

2002-10-07 Thread John W. Holmes
I think someone already mentioned this, but you can also do this: if(isset($dele) && count($dele) > 0) { $ids = "'" . implode("','",$dele) . "'"; $sql = "delete from gastenboek where entryID IN ($ids)"; $result = mysql_query($sql); } might want to add in a is_array() somewhere in there...

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

[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] NEXT() and/or PREV()

2002-10-07 Thread Jef
I need some help with the NEXT() and PREV() functions. I want to use them with a webpage to direct which page is viewed by the user. If NEXT is selected then I would like the next information pulled from the database. If the PREV is selected I would like the previous information pulled from the da

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

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: [E

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

[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: > > pard

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 j

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

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

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; $i To: "Php Mailinglist" <[EMAIL PROTECTED]>; "Php-Windows Mailing" <[EMAIL PROTECTED]> Sent: Monday, October 07, 200

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

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 wi

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: http://www.blah.com/$4.$6\"";, $contents); echo $contents; fclose ($fd); ?> Lo and behold, it works

[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: Now i can select multiple items. But i have tried to delete e

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 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] 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: [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: > > > > function checkimage() > { > if (document.all.image1.width == 1) > { > document.all.fr1.src="

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

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

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 d

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] 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] Fi

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 (ht

[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 Marco Tabini
Simple trick (well, not so simple, but kind of a Columbus' Egg): 1) Create an 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 with a

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

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: # # The following directives modify normal HTTP response behavior. # The first directive disables keepalive for Netscape 2.x and browsers that # spoof

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

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]

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 Mes

[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 > is_upload_file($f

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

[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, why

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-general&m=103266066416399&w=2 - E On Tuesday, October 8, 2

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 hav

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 h

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] 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] 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 th

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 me)

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 repl

[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 "PHP/4

[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: http://www.php

[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

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 fil

  1   2   >