[PHP] COMEDY FORUM

2001-12-20 Thread Webleycity
DOES ANY BODY OUT THERE KNOW OF A GOOD COMEDY FORUM? OR A FREE REAL PLAYER COMEDY CHANNE.L ALL THIS WORK CAN DRIVE A MAN MAD. --- Mark Webley Multimedia design and development WebleyCity Limited London United Kingdom [EMAIL PROTECTED] [EMAIL

RE: [PHP] How to save the result page generated by a Form?

2001-12-20 Thread Martin Towell
separate the email address with, can remember which now, either a comma or a semicolon - try one, if it does work, it must be the other :) -Original Message- From: Webleycity [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 3:52 PM To: Stefan Rusterholz; Joe Cc: PHP Subject:

[PHP] Re: Algorithm: Limiting Large Numbers of Pages to 10 visible

2001-12-20 Thread Manuel Lemos
Hello, I've got to believe that there's a really slick way of doing this. I've searched the usual places (weberdev.com, devshed.com, zend.com) but there's no really good keywords, and when you search on 'paging you get too many results to be useful

[PHP] PRINT FROM A DATABASE to a printer?

2001-12-20 Thread Webleycity
HELLO ALL I have a client who wishes to print the contents of a database to a printer. Does anybody out there know how the command, tables at the click of a button on a content management tool. --- Mark Webley Multimedia design and development WebleyCity

Re: [PHP] Positioning HTML output in browser window

2001-12-20 Thread Ken
At 06:59 PM 12/20/01 -0700, Leland wrote: I tried generating a A NAME=lastpos/A in the orginal list, but I haven't been able to create the return link on the other page that will refrence this. I tried A HREF=myscript.php#lastpos?cat=$catLink/A but it doesn't work. Did you try a

[PHP] embed pdf.

2001-12-20 Thread Webleycity
Does anybody out there know how to embed pdf in a web page --- Mark Webley Multimedia design and development WebleyCity Limited London United Kingdom [EMAIL PROTECTED] [EMAIL PROTECTED] Mobile: 07980 213 627 Fax/Tel: 0208 678 1721 Pager 07654 581816

[PHP] Multiple JavaScript Windows with PHP

2001-12-20 Thread Carlos Fernando Scheidecker Antunes
Hello all! I've wrote to scripts that use Javascript too. The idea is to have a parent window teste_popup.php4 and a child window pop.php4. When a link is clicked on the parent window, the child window will open. After the user enters information on the child window he must close it and that

RE: [PHP] Multiple JavaScript Windows with PHP

2001-12-20 Thread Martin Towell
I haven't tried your code, but I'm thinking what's happening is that the browsers that the code isn't working in is stopping at the returnwin=window.opener.navigate(urlLoc); line - what happens if you change it to returnwin=window.opener.location = urlLoc; ?? Original Message- From:

[PHP] Beginner question?

2001-12-20 Thread jtjohnston
This seems newbie. So what am I doing wrong? I want to print the contents of the file. I get resource id #1 instead. Do I need to add a header or what? ?php //$fp = fopen (C:/Program Files/localhost/info.txt, r); //$fp = fopen (http://compcanlit.ca/;, r); $fp = fopen (./info.txt, r); print

RE: [PHP] Beginner question?

2001-12-20 Thread Martin Towell
?php //$fp = fopen (C:/Program Files/localhost/info.txt, r); //$fp = fopen (http://compcanlit.ca/;, r); $fp = fopen (./info.txt, r); while (!foef($fp)) { $line = fgets($fp, 1024); echo $line; } fclose($fp); ? what you were doing was opening a file ready for reading and then printing the

Re: [PHP] Beginner question?

2001-12-20 Thread Michael Sims
At 12:13 AM 12/21/2001 -0500, jtjohnston wrote: This seems newbie. So what am I doing wrong? I want to print the contents of the file. I get resource id #1 instead. Do I need to add a header or what? ?php //$fp = fopen (C:/Program Files/localhost/info.txt, r); //$fp = fopen

Re: [PHP] Suggestions for the next php

2001-12-20 Thread Vincent Stoessel
I would love to see a decent debugger like perl has. Nothing is more frustrating then having to echo and die() to debug code. Especially when you are assigned the task of updating code from a developer that has long gone without leaving any documentation. Stephano Mariani wrote: Hi! I have

Re: [PHP] Multiple JavaScript Windows with PHP

2001-12-20 Thread Carlos Fernando Scheidecker Antunes
It still the same thing. It child does not close on Nestcape and Konqueror and when it closes on IE now it refreshes teh parent window twice. - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Carlos Fernando Scheidecker Antunes' [EMAIL PROTECTED]; PHP-GENERAL [EMAIL

Re: [PHP] Suggestions for the next php

2001-12-20 Thread Manuel Lemos
Hello, Vincent Stoessel wrote: I would love to see a decent debugger like perl has. Nothing is more frustrating then having to echo and die() to debug code. Especially when you are assigned the task of updating code from a developer that has long gone without leaving any documentation.

Re: [PHP] Error while calling a function--Thanks

2001-12-20 Thread J.F.Kishor
Hi pals, Thanks a lot for all the PHP pals , I have recoded my script an' now itz working fine. cheers an' regards, - JFK kishor Nilgiri Networks -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] How to check if a session exists

2001-12-20 Thread Peter J. Schoenster
On 20 Dec 2001, at 17:34, Alex Shi wrote: If a sesson_id is known, how can check if the session exists? I think this answers the question (function.session-id.html) session_id (PHP 4 = 4.0.0) session_id -- Get and/or set the current session id Description string session_id ([string id])

Re: [PHP] Suggestions for the next php

2001-12-20 Thread Vincent Stoessel
I did not know that, thank you for the info. I just downloaded phpIDE beta and I am highly impressed with the debugger. It say that it can do remote debugging as well. That sounds cool but I wonder how secure it is. Zend folks, I apologize for taking so long to try out this product, it's great!

[PHP] mail function

2001-12-20 Thread Peter
Hi, Can someone tell me if there is something wrong with the order of the mail function in here. I am trying to get the text in HTML format, but I am not getting the text in html format. else { $mailheaders = From: $email\r\n; $mailheaders .= Reply-To: $email\r\n; $mailheaders .= Content-Type:

[PHP] arrays

2001-12-20 Thread php dood
I'm trying to figure out how to parse an xml document, and convert it into html... i know how to parse in simple xml stuff for example easyeasy/easy is pretty easy to parse in, and i know how to code that, but when you start adding flags that i'm going to need variables for, example easy does=1

Re: [PHP] Beginner question?

2001-12-20 Thread jtjohnston
Michael, $fp = fopen (./users.txt, r); while (!feof ($fp)) { $buffer = fgets($fp, 4096); echo $buffer; } fclose($fp); Ok. But $buffer is not an array, is it? Why/what is 4096? What is !feof ? Can anyone show me how to split() each line and parse to see if $user exists? Here's what I'm

[PHP] Re: mail function

2001-12-20 Thread jtjohnston
If you declare Here is code that works: ?php session_name(ESLpostcard); session_start(); $img_encoded = base64_encode($image_data); mail($theiremail, You Have A Christmas Postcard, , from: \$yourname\ $youremail\r\n .Content-Type: multipart/mixed;

[PHP] Re: mail function

2001-12-20 Thread jtjohnston
If you declare a header after you used html or echoed something, it will fail. header(Location: http://www.winwhole.com.hk/sent.php;) HTH. Here is some code that works: ?php session_name(ESLpostcard); session_start(); $img_encoded = base64_encode($image_data); mail($theiremail, You Have A

Re: [PHP] Beginner question?

2001-12-20 Thread jtjohnston
:) Again why 1024? or 4096 or ... ? while (!foef($fp)) { $line = fgets($fp, 1024); echo $line; } -- 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:

Re: [PHP] Re: php telnet

2001-12-20 Thread Thies C. Arntzen
the attached file implements a minimal telnet client and is free to use. re, tc On Wed, Dec 19, 2001 at 02:16:36PM -0800, Chris Lee wrote: if I nc to my server on port 23 I get the same thing. ie there is nothing wrong. your going to have to emulate the telnet protocal now,

[PHP] JavaScript Windows with PHP

2001-12-20 Thread Carlos Fernando Scheidecker Antunes
Hello all! I've wrote to scripts that use Javascript too. The idea is to have a parent window teste_popup.php4 and a child window pop.php4. When a link is clicked on the parent window, the child window will open. After the user enters information on the child window he must close it and that

Re: [PHP] Re: mail function

2001-12-20 Thread Peter
Sorry but I am a bit of a newbie at this. So do you mean that I am supposed write it like this? else { $mailheaders = From: $email\r\n; $mailheaders .= Reply-To: $email\r\n; $mailheaders .= Content-Type: text/html; charset=iso-8859-1\r\n; $remarks .= brbr$items; mail([EMAIL PROTECTED],

[PHP] Can it be improved upon?

2001-12-20 Thread jtjohnston
Can it be improved upon? Suggestions welcome, John ?php $fp = fopen (./users.pass, r); while (!feof ($fp)) { $line = fgets($fp, 4096); list($user,$password) = explode(:, $line); $password = chop($password); if(!isset($PHP_AUTH_USER)) { authenticate(); } elseif(($PHP_AUTH_USER

[PHP] sessions

2001-12-20 Thread Daniel Masur
my logout.php looks like this code session_start(); session_register(SESSION); //these 2 things have to be on every page right? require ('validate_session.php'); //does compare $PHPSESSID and the sessid i have in every url // start of validate_session.php ? header(Expires: Mon, 26 Jul 1997

<    1   2