[PHP] who is on the page?

2003-03-23 Thread Oliver Witt
Hi everybody, I've been looking for a script to determine who is on my page (people have to log in). So far, I've been using a script that updates the time in the database continuously as long as the person is on the page. That way, the script could determine whether the user is still online or

[PHP] include dosn't after Provider-Change

2003-03-13 Thread Oliver Witt
Hallo, after a Provider-Change my counter-script dosn't work again. My entry is: ?php include (counter/rcounter.php) ; ? in an html-document. Is there an Error inside? My server show no error-messages... Thanx for Help. Olly -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] include dosn't after Provider-Change - I have it!

2003-03-13 Thread Oliver Witt
-Ursprüngliche Nachricht- Von: Oliver Witt [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 13. März 2003 10:03 An: [EMAIL PROTECTED] Betreff: [PHP] include dosn't after Provider-Change Hallo, after a Provider-Change my counter-script dosn't work again. My entry is: ?php include (counter/rcounter.php

[PHP] authentication problem

2003-02-28 Thread Oliver Witt
Hi again, My problem was about authentication without the default popup, but with a form that submits the credentials. I still didn't get it to work, so I'd like to know if anyone has ever done anything like that. I just can't get it to work right and I'd like to see a working script thx,

Re: [PHP] simple problem about authentication

2003-02-26 Thread Oliver Witt
1lt John W. Holmes schrieb: I'm trying to set up a password section on my website. But I don't want a window popping up asking for a username and password. I'd rather like to have a form that submits the data. I did that and it works fine, but the browser seems to not save the username

Re: [PHP] simple problem about authentication

2003-02-26 Thread Oliver Witt
Ernest E Vogelsinger schrieb: At 14:22 26.02.2003, Oliver Witt spoke out and said: [snip] if(isset($user) isset($pw)){ $user = ucwords(strtolower($user)); $PHP_AUTH_USER = $user; $PHP_AUTH_PW = $pw;} [more...] And this works fine for just

[PHP] simple problem about authentication

2003-02-25 Thread Oliver Witt
Hi, I'm trying to set up a password section on my website. But I don't want a window popping up asking for a username and password. I'd rather like to have a form that submits the data. I did that and it works fine, but the browser seems to not save the username and password, because if i click on

[PHP] Re: Submit buttons

2003-02-25 Thread Oliver Witt
Greg schrieb: Is there any way that I can have a form submit to different pages depending on the submit button that is pressed? Thanks! dont use submit buttons, but buttons... (type=button) calling a script that submits the form to whatever page you want it to. Olli -- PHP General Mailing

[PHP] Size of images (in bytes)

2003-01-23 Thread Oliver Witt
Hi, After calling to the function ImageCreateFromJPEG() and before outputing the image with ImageJPEG, is there a way to determine the images size in bytes? I want to reduce the quality more and more until it has reached a certain level. Thanks, Olli -- PHP General Mailing List

Re: [PHP] Size of images (in bytes)

2003-01-23 Thread Oliver Witt
1lt John W. Holmes schrieb: After calling to the function ImageCreateFromJPEG() and before outputing the image with ImageJPEG, is there a way to determine the images size in bytes? I want to reduce the quality more and more until it has reached a certain level. Thanks, Olli You

Re: [PHP] Size of images (in bytes)

2003-01-23 Thread Oliver Witt
Marek Kilimajer schrieb: Use output buffer: ob_start(); ImageJPEG($im); $imagestring=ob_get_contents(); ob_end_clean(); Thanks for the answer. But if I do it like that, the picture has been sent to the browser. That's what I don't want. I need to know the size of the picture before it

Re: [PHP] ftp_put: permission denied

2003-01-09 Thread Oliver Witt
[EMAIL PROTECTED] (Oliver Witt) wrote: I uploaded that script with a common ftp program on my server in the internet. FOr the host, user and pw, I use the same data as I use to log in with my ftp program. So the mistake can't be there. This is how that script basically works: ?php

[PHP] ftp_put: permission denied

2003-01-08 Thread Oliver Witt
Hi, I am running a really simple php script to upload files on my server via ftp. But it always return this warning: ftp_put(): Permission denied I can't have to do anything with CHMOD can it? I mean it's ftp!! I don't know what else it is but I guess it's a pretty common problem. Thx for any

Re: [PHP] ftp_put: permission denied

2003-01-08 Thread Oliver Witt
Timothy Hitchens ) schrieb: I am assuming you have testing from a desktop client. Are you sure that the PHP script has been logged in?? Can you see via a log file of the successful authentication?? I logged in using the same information as I used to upload that script. if ((!$conn_id) ||

Re: [PHP] ftp_put: permission denied

2003-01-08 Thread Oliver Witt
ftp_login() ?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Oliver Witt [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 5:30 AM To: [EMAIL PROTECTED]; Timothy Hitchens ) Subject: Re: [PHP] ftp_put: permission denied

[PHP] problems with uploading files

2002-12-22 Thread Oliver Witt
Hi, I have a problem with a php script that enables people to upload files on my server. I don't know if this is a general problem or if you need to see the script. It works fine with small files, but as soon as I try to upload files with a size of a couple of MB, if (is_uploaded_file($file))

[PHP] editing .htaccess / .htpasswrd

2002-11-20 Thread Oliver Witt
Hi everyone, I'm looking for a script that enables users of password demanding web sites to change their password, in other words a script, that can write into the .htpsswrd file. Thanks for help, Olli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] attachement

2002-11-10 Thread Oliver Witt
Hi, I wrote a php script that's supposed to enable me to attach files to an email. However, the attached files ends up being a mess of letters. Hallo becomes SGFsbG8=. That must have to do with encoding. Is that a common problem or do you need the entire script? Thanks, Olli -- PHP General

Re: [PHP] attachement

2002-11-10 Thread Oliver Witt
Ernest E Vogelsinger schrieb: In your mail headers, you should see some MIME like Content-Type: multipart/alternative; boundary=GU4wuTSk68F (alternative could also read related - depends on the content, the multipart is the point here) which would tell the client

Re: [PHP] attachement

2002-11-10 Thread Oliver Witt
Ernest E Vogelsinger schrieb: At 15:27 10.11.2002, Oliver Witt said: [snip] I had it set like this: $fp = fopen($file, r); $contents = fread($fp, $file_size); $encoded_file = chunk_split(base64_encode($contents)); fclose($fp); ... $body.= \n

[PHP] who's in the chat?

2002-10-10 Thread Oliver Witt
Hi all, Here's my problem: I created a web site with a chat. People have to log in to get on the site, but not to get into the chat. I can tell who's on the site but not in the chat. Is there anywhy to tell who's in the chat? Thanks, Olli -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: who's in the chat?

2002-10-10 Thread Oliver Witt
Jason Young schrieb: What's the chat built in? Is this web-page-based, telnet-based? Is this your code (i.e. you have access to the source and can modify it on-the-fly)? Oliver Witt wrote: Hi all, Here's my problem: I created a web site with a chat. People have to log in to get

[PHP] Re: who's in the chat?

2002-10-10 Thread Oliver Witt
Jason Young schrieb: Without knowing how your chat works as far as entering the chat, you DO have to put some sort of name with the person, right? Perhaps you could just update a temp table with their chat name.. Or if you can only get into chat by logging into the site, you could just

Re: [PHP] Re: who's in the chat?

2002-10-10 Thread Oliver Witt
James E Hicks III schrieb: My chat stores usernames, timestamps in a table on DB. When refresh script runs, it updates the timestamp on usernames and deletes rows in DB with stale timestamps (no refresh run). Pulling usernames from this table gives current chat users. James That's a cool

[PHP] Re: who's in the chat?

2002-10-10 Thread Oliver Witt
Jason Young schrieb: Well, when they enter, when its building all of the frames or however you ahd it set up.. just throw an INSERT in there.. Do you know if the chat patrons use the 'leave' button? That could throw out another SQL statement, or put it wherever you have your unload

[PHP] parts of sentences

2002-10-09 Thread Oliver Witt
Hi, I have a problem that I don't know how to solve within php. I have the variable $x = How are you today and the variable $y. Now, I want the variable to be $y = are you today or $y = you today. How do I do that? Thanks, Oliver -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: parts of sentences

2002-10-09 Thread Oliver Witt
Bogdan Stancescu schrieb: You might want to take a look at explode() and array functions - I don't understand exactly what you want (I want this -- or that), but those will probably solve the problem, whatever that is specifically. Bogdan Oliver Witt wrote: Hi, I have a problem that I

Re: [PHP] Chat with php

2002-10-08 Thread Oliver Witt
Thomas Weber schrieb: Hi, i'm running a selfmade PHP-chat since one and a half year, currently version 3. Maybe we can share some ideas The image-idea is interesting, but would take heavy bandwith i think. My chat runs over a simple dsl-line with 256kbit upstream, there are up to 50

Re: [PHP] Chat with php

2002-10-08 Thread Oliver Witt
Thomas Weber schrieb: I've thought about adding the text on the top, but never found a good way to make that (not with plain HTML, it would require a java-applet to display the stream). Scrolling is quite simple, i use this: head SCRIPT language=JavaScript !-- doscroll = true;

[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] 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] 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] Re: PHP source code

2002-09-20 Thread Oliver Witt
Michael Geier schrieb: PHP Source code is only available on the server, and will never be shown to the client (unless you create a tool to allow them to see the source; see show_source() ); And you can always put your authentication data (username/passwords) in an external include() file

[PHP] PHP source code

2002-09-19 Thread Oliver Witt
Hi, Is there any way to read php source code? I didn't think so until I heard about people you have done that... Kind regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP source code

2002-09-19 Thread Oliver Witt
Stephan Seidt schrieb: On Thu, 19 Sep 2002 16:50:16 +0200 [EMAIL PROTECTED] (Oliver Witt) wrote: Hi, Is there any way to read php source code? I didn't think so until I heard about people you have done that... Kind regards, Oliver If you mean php's source, download it ;) Well

Re: [PHP] Attachements

2002-08-25 Thread Oliver Witt
Fongming schrieb: Hi: the following is my easy way to send MIME mail with a attach files. It worked for my own mailing system. //---Make sure if a file upload or not... if(!empty($my_file)) { copy($my_file,files/$my_file_name); $fp=fopen(files/$my_file_name,r);

[PHP] .htaccess

2002-08-02 Thread Oliver Witt
Hi! Using an .htaccess file to limit access to some web files, is there a way to get the name and password into a variable used by a user to log on? Kind regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] uploading pictures

2002-07-27 Thread Oliver Witt
Alexander Kuznetsov schrieb: Hello Oliver, Thursday, July 25, 2002, 1:42:05 PM, you wrote: OW Alexander Kuznetsov schrieb: i think u should set write permissions to directory where u r trying to copy file OW Thank you for answering. OW But how do I set write permisisons? With a

[PHP] uploading pictures

2002-07-25 Thread Oliver Witt
Hi! I got a problem with uploading pictures. Using a script following this schema: if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) { copy($HTTP_POST_FILES['userfile']['tmp_name'], /place/to/put/uploaded/file); } else { echo Possible file upload attack. Filename: .