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

[PHP] Session 3

2002-10-08 Thread Steve Vernon
Sessions problems in 4.2.3, with register globals off Ok I got an email that gave me where some code was wrong, I said thanks and never tested it! Fixing the code it still dont work. SO I thought id make a simple code to test sessions, and that don't work. What am I doing wrong??!! The followi

[PHP] PHP AND C

2002-10-08 Thread karthikeyan
Hi, I want to pass some 10 to 15 parameters as input to an C Program. Does passing it as command line argument through PHP using backquotes or system function is an effective way to solve this issue or there are some other alternative which does this without affecting the performance. Lo

[PHP] auth->check_feature and different expires

2002-10-08 Thread Giancarlo
I was now trying the snapshot with the aim of providing a different expire for eg user kris (admin), than anoter user (not admin). So I defined the Example_Auth (eg the admin only showoff) with a lifetime=1, and a example_default_auth with a lifetime of 3 minutes. But when I am visiting, as ad

[PHP] Re: MySQL back up

2002-10-08 Thread Andy
Why don't you just do a hard backup of the files from the db. Find out the location of the data folder where thd db saves its tables, perform a tar cvzf data_folder and then pipe it directly to the user for download via http. Havent tryed it that way, but should work. Another thing would be reoba

[PHP] Erase the cookie sessions

2002-10-08 Thread Max Buvry
Hi, I wish test the session. I use php 4.2.3 et session.auto_start is 1. My first example is : Session example "; echo "hello ! : $cpt times"; session_unset(); session_destroy(); } ?> I don't find the solution to use setcookie ; I try the two instructions above (the script is

[PHP] Re: Capitalizing names ... needs the final touch...

2002-10-08 Thread Ulf Rompe
"-<[ Rene Brehmer ]>-" <[EMAIL PROTECTED]> writes: >Firstname Middlename Last-name > > But I want the last namepart after the slash (-name) to also start > with a capital letter. Just read the comments on ucwords() in the PHP manual, especially the one from Joerg Krause. He writes: | None o

[PHP] Execute...

2002-10-08 Thread Bsantos PHP
Hi people: Can anyone tell me if I can execute windows calculator trought a PHP script on a web page to allow customers to check final prices?! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Execute...

2002-10-08 Thread Marco Tabini
Unfortunately no, because the calculator is a Windows application that runs on your local desktop and cannot be seen by your web-based users. If you need your customers to use a calculator through their browsers, you're probably looking for a Javascript calculator. Take a look at this as an examp

Re: [PHP] PHP AND C

2002-10-08 Thread Marco Tabini
Passing that many parameters shouldn't be a problem, I think...argv/argc parsing in the standard C library is pretty fast. On Tue, 2002-10-08 at 06:04, karthikeyan wrote: > Hi, > > I want to pass some 10 to 15 parameters as input to an C Program. Does passing it >as command line argument thr

Re: [PHP] Erase the cookie sessions

2002-10-08 Thread Marek Kilimajer
You miss closing } Max Buvry wrote: >Hi, > >I wish test the session. I use php 4.2.3 et session.auto_start is 1. > >My first example is : > > > >Session example > > >if ( !isset($_SESSION['count']) ) >{ > $_SESSION['count']= 1; >} >else >{ > $_SESSION['count']++; >} > >if ( $_SESSION['count'

RE: [PHP] Re: MySQL back up

2002-10-08 Thread John W. Holmes
> Why don't you just do a hard backup of the files from the db. Find out the > location of the data folder where thd db saves its tables, perform a tar > cvzf data_folder and then pipe it directly to the user for download via > http. > > Havent tryed it that way, but should work. Another thing wo

Re: [PHP] own session_name gc

2002-10-08 Thread Marek Kilimajer
$sess_session_name affects the name of cookie, get, or post var. If you wish to use it, you need to also reimplement the session creation routine. What is important here, is the $id, that is supposed to be hard to guess. Giancarlo wrote: >The manual gives an example: > >function destroy ($id

Re: [PHP] Erase the cookie sessions

2002-10-08 Thread Max Buvry
Marek Kilimajer wrote: > > You miss closing } > Thanks, but that's a copy-paste error and that's not my problem really. mb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-10-08 Thread John W. Holmes
Okay, I tried just a page with only session_start() in it and the page does send a no-cache, no-store header. output from wget D:\wget>wget -S http://coconut/usap/test.php --08:04:13-- http://coconut/usap/test.php => `test.php.2' Resolving coconut... done. Connecting to coc

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

2002-10-08 Thread John W. Holmes
Also, FYI, pages without session_start do not send that cache-control header. ---John Holmes... > -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 08, 2002 8:08 AM > To: 'Rasmus Lerdorf'; 'Tom Rogers' > Cc: [EMAIL PROTECTED] > Subject: RE: Re[

[PHP] Put an query in a DB field

2002-10-08 Thread Christian Ista
Hello, I change my code to catch error query. I have a table with 4 files (Query, Error_no, create_date, create_time). When I have an error on a query, I call a page and I add a row in a table log_query. The query (with error is like that) : $query=" SELECT auteur.NO AS AUTEUR_NOM, auteur.PR

[PHP] Function is_readable doesn't work correctly

2002-10-08 Thread Rudolf Wolf
Hello. I have compiled PHP 4.2.3 with Apache 2.0.42 and my problem is, that the function is_readable doesn't work as I expected. It is allways returning false and not check the current permission to file. For example: The result is: Script print to browser UNREADABLE and correctly include th

[PHP] how to invoke executables

2002-10-08 Thread Sharad Tiwari
dear all, can anyone tell me how can we invoke executables files using php script. Also can we link C librararies and use them with a PHP code. Thanking you all. Warm Regards, Sharad **Disclaimer** Information

[PHP] 4.2.2 > 4.2.3 - Incompatibility

2002-10-08 Thread Liam MacKenzie
Hi guys, I've found me a problem... A portion of a script is causing the child apache process to be terminated: [notice] child pid 23620 exit signal Segmentation fault (11) I never had a problem with this script until I upgraded to 4.2.3. The only other difference is that now I have PHP compile

[PHP] Image Problem

2002-10-08 Thread Mark Colvin
I have just upgraded php from 4.0.6 to 4.2.3. Everything works OK apart from the line below - echo ''; The thumbnail.php script uses php functions imagecreate, imagecreatefromjpeg, imagecopyresized. The script created a thumbnail OK before the upgrade and now I get no image. Is this because php

Re: [PHP] 4.2.2 > 4.2.3 - Incompatibility

2002-10-08 Thread Liam MacKenzie
Another note, phpMyAdmin causes a segmentation fault as well... APACHE: -- ./configure \ "--with-layout=Apache" \ "--sysconfdir=/home/nobody/conf" \ "--iconsdir=/home/nobody/icons" \ "--htdocsdir=/home/nobody/htdocs" \ "--cgidir=/home/nobody/cgi-bin" \ "--l

Re: [PHP] Chat with php

2002-10-08 Thread Thomas Weber
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: