Re: Re: [PHP] Full-Duplex communication

2002-05-22 Thread Evan Nemerson
Vinod, Interesting... Okay unless I'm mistaken, what you want to do can't be accomplished through PHP. However, you may want to take a look at libnet. http://www.packetfactory.net/Projects/Libnet/ I've always wanted someone to create a PHP interface for this- unfortunatly my C isn't quite

Re: Re: [PHP] Full-Duplex communication

2002-05-22 Thread Miguel Cruz
I don't think you're going to get Apache to hand you the socket. However, you can write a program using the standalone (CGI) PHP interpreter that will act like a server - check out http://php.net/socket_create_listen for more info. You could redirect from your standard web server to your

Re: Re: [PHP] Full-Duplex communication

2002-05-22 Thread Evan Nemerson
1st thing: sorry about the double-post. i don't know why that happened. If this one gets double posted too, i apologize in advance. 2nd: php.net/pcntl On Tuesday 21 May 2002 23:30 pm, Miguel Cruz wrote: I don't think you're going to get Apache to hand you the socket. However, you can

Re: Re: [PHP] Full-Duplex communication

2002-05-22 Thread Miguel Cruz
Ah, yes - http://php.net/pcntl_fork Well there you go, then - everything required to create a server in PHP. miguel On Tue, 21 May 2002, Evan Nemerson wrote: 1st thing: sorry about the double-post. i don't know why that happened. If this one gets double posted too, i apologize in advance.

Re: Re: Re: [PHP] Full-Duplex communication

2002-05-22 Thread Vinod Panicker
Thanks for the reply Miguel, but here i'm not trying to implement my own multi-threaded server - exactly the reason why i'm using Apache / PHP. I could have made a listening server which is based on a multi-threaded or multi-forked model, but the time and complexities involved would be huge.

Re: Re: [PHP] Full-Duplex communication

2002-05-22 Thread Richard Archer
At 5:55 AM + 22/5/02, Vinod Panicker wrote: I want the ability to write to a socket thats been created earlier - i want to steal it from Apache, so that i can use it when and where i like. Why not just keep your script running and have it send more data to the browser whenever it becomes

[PHP] Mcrypt: Blowfish or Twofish or no fish? Part 2

2002-05-22 Thread Jimmy Lantz
Thanx for the suggestions! Someone mentioned that I could use MD5 and then encrypt the hash, how would I ever decrypt that? Is'nt MD5 a 1-way thing only? Another question? Should I go for bigger keylength or bigger blocksize or both? What makes for the best encryption? / Jim (and before

Re: Re: Re: [PHP] Full-Duplex communication

2002-05-22 Thread Vinod Panicker
What i have at the other end is a Instant Messenger client :) Cant have the script running till the time the user logs out can i? And also, different activities are triggered on the server asynchronously (presence status, instant messages, notifications) which has to be sent to the client.

Re: [PHP] Mcrypt: Blowfish or Twofish or no fish? Part 2

2002-05-22 Thread Vinod Panicker
Yes Jimmy, you are correct. MD5 is a one-way hash. Its used for getting a unique fingerprint of some data (like files / passwords etc) so that it can be compared with another MD5 hash. Thats the point of a hashing algorithm like MD5 and SHA1 - you should never need to decrypt the data.

[PHP] Servers, servers and more servers

2002-05-22 Thread Stephen Tredrea
Title: Message I'm trying to put together an architecture for a web environment and have a newbie question regarding PHP and application servers... I have decided to use Apache and MySQL running on Linux, using PHP for server side scripting. Were does an application server fit into this

RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? Part 2

2002-05-22 Thread Ray Hunter
Jimmy, You could md5 something and send it encrypted and then verify the md5, something similar to sharing keys...md5 is similar to a key...i use it as something similar to kerberos... And yes, MD5 is a one-way hash...which comes in handy... Just remember that bigger is almost always better.

Re: [PHP] Servers, servers and more servers

2002-05-22 Thread Miguel Cruz
On Wed, 22 May 2002, Stephen Tredrea wrote: I'm trying to put together an architecture for a web environment and have a newbie question regarding PHP and application servers... I have decided to use Apache and MySQL running on Linux, using PHP for server side scripting. Were does an

RE: [PHP] Servers, servers and more servers

2002-05-22 Thread Ray Hunter
When referring to an application server many times people are refereeing to a server that is running something like J2EE or EJBs or .NET with XML. They are actual applications running behind a web server. Some examples are BEA, WebSphere, or Jonas for Java apps. I have no idea about .net, not

Re: Re: Re: [PHP] Full-Duplex communication

2002-05-22 Thread Richard Archer
At 7:01 AM + 22/5/02, Vinod Panicker wrote: What i have at the other end is a Instant Messenger client :) Which is presumably accepting some form of HTML or at least a stream of data sent over HTTP and displaying the data. If it's notdoing this, Apache is almost certainly the wrong

Re: [PHP] Full-Duplex communication

2002-05-22 Thread Vinod Panicker
Hi Richard, Thanks for your suggestion. Yes, Apache is the wrong platform for the server. What would be ideal is a custom designed TCP based multi-threaded server. Since we had lots of constraints, we went in for Apache / PHP. What i'm trying to do is to reduce the number of compromises

Re: [PHP] Full-Duplex communication

2002-05-22 Thread Miguel Cruz
On 22 May 2002, Vinod Panicker wrote: Instant is how the response should be. Thats why i'm clamouring for the socket so that i can send data directly to the client, from a C++ binary or maybe another script. If you're willing to write C code, I'd suggest posing your question in

RE: [PHP] Mcrypt: Blowfish or Twofish or no fish?

2002-05-22 Thread John Horton
Hi, I believe that twofish has been successfully broken, so use blowfish instead. Typically, for encrypting files you will use an algorithm like blowfish in cbc mode (as opposed to ebc mode) but I don't know if Mcrypt supports this. Also, when creating the hash of the file, it is probably best to

Re: [PHP] Full-Duplex communication

2002-05-22 Thread Miguel Cruz
On Wed, 22 May 2002, Miguel Cruz wrote: On 22 May 2002, Vinod Panicker wrote: Instant is how the response should be. Thats why i'm clamouring for the socket so that i can send data directly to the client, from a C++ binary or maybe another script. If you're willing to write C code, I'd

[PHP] check if image was clicked

2002-05-22 Thread andrew
Hi all, I have two images on my html form - one for submit and the other for skip with name=mode_skip. In my php script I want to check if user clicked on skip image but isset($_REQUEST[mode_skip]) and !empty($_REQUEST[mode_skip]) seems to always return true. In URL submitted I saw

Re: [PHP] check if image was clicked

2002-05-22 Thread Miguel Cruz
On Wed, 22 May 2002 [EMAIL PROTECTED] wrote: I have two images on my html form - one for submit and the other for skip with name=mode_skip. In my php script I want to check if user clicked on skip image but isset($_REQUEST[mode_skip]) and !empty($_REQUEST[mode_skip]) seems to always return

Re: Re: [PHP] Full-Duplex communication

2002-05-22 Thread Vinod Panicker
Just subscribed to comp.infosystems True, the listen-fork model would hardly be any lines of code, but the changes that will have to be done to the client and the server would be enormous. We are talking abt a production system here which needs to be optimised. I cant honestly go ahead

RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread Jimmy Lantz
I believe that twofish has been successfully broken, so use blowfish instead. Typically, for encrypting files you will use an algorithm like blowfish in cbc mode (as opposed to ebc mode) but I don't know if Mcrypt supports this. Also, when creating the hash of the file, it is probably best to

[PHP] php4isapi

2002-05-22 Thread Brian McGarvie
Hmm... When usig php4isapi some functions appear not to work, readfile for example? Using php.exe works fine. -Original Message- From: Ray Hunter [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 8:13 AM To: 'Jimmy Lantz' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mcrypt: Blowfish or

Re: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread Vinod Panicker
There is no use of hashing in file-encryption except to use it as a check - to see if the decrypted file matches the original file. To do this check, you can use either MD5 or SHA1. The choice is urs. If ur looking for a good encryption algorithm, you might want to consider AES (Rijndael).

RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread John Horton
File hashing is used to take a hash of the clear text. In this way, you can append the hash to the encrypted text. When decrypting, you remove this hash, decrypt the rest of the file, hash this decrypted file and see if the two hashes match up. If they don't then an incorrect key was used with

[PHP] Problem with install php 4.2.1

2002-05-22 Thread Roman Duriancik
I want install php 4.2.1 (download from www.php.net) on ma linux red hat 7.0 server. configure ran good with no errors but when i do make install i get this error message. make[3]: *** [gettext.lo] Error 1 make[3]: Leaving directory `/update/php-4.2.1/ext/gettext' make[2]: *** [all-recursive]

Re: RE: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread Vinod Panicker
And why not use AES, which is an industry standard and having being proven as the best encryption algorithm in recent times? http://csrc.nist.gov/encryption/aes/aesfact.html As far as ECB mode is concerned, I dont know what problems you are talking about. I'm aware that the data gets

[PHP] variables

2002-05-22 Thread Roman Duriancik
When are set in php.ini (php version 4.2.1 on linux) register_globals = Off how I read variables from html files with forms in other php file ? Thanks roman for example : html file : form action=query.php method=POST input type=text name=name1 value= input type=submit value = OK

RE: RE: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread John Horton
One of the reasons I like Blowfish is that I have used it for years, and there have been no successfull attempts to crack it. Why do you encrypt binary files in ebc and text files in cbc? JH -Original Message- From: Vinod Panicker [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 10:25 To:

[PHP] Executebale code from a databse

2002-05-22 Thread Peter
Hi. I'm changing my website to one based on My-SQL which will help with organization and searching etc. Hopefully, the code for all the pages will be stored in the database too. However, I cannot get PHP to parse / execute the code stored in the database. The script $query = mysql_query(SELECT *

Re: [PHP] Executebale code from a databse

2002-05-22 Thread Dan Hardiker
Use eval ... although beware of the serious security implications. Hi. I'm changing my website to one based on My-SQL which will help with organization and searching etc. Hopefully, the code for all the pages will be stored in the database too. However, I cannot get PHP to parse / execute

[PHP] Re: variables

2002-05-22 Thread Michael Virnstein
you can use $_POST['name1'] if you're using post vars $_GET['name1'] if you're using get vars Regards Michael Roman Duriancik [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When are set in php.ini (php version 4.2.1 on linux) register_globals = Off how

Re: RE: RE: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread Vinod Panicker
Thats why lots of people like Blowfish, including myself. I am using it in a production environment with PHP and mcrypt. In ECB mode, the blocks are encrypted independently, whereas in CBC mode, the blocks are encrypted with information based on the previous block. What this means is that

Re: [PHP] Re: variables

2002-05-22 Thread Eugene Lee
Also, it's good to read the press releases: http://www.php.net/release_4_2_1.php External variables We would also like to attend you on a big change in PHP 4.2.0 concerning variable handling. External variables (from the

[PHP] Smart Navigation

2002-05-22 Thread Fred Forsyth
Is there any way to emulate ASP.NET's smartNavigation trick? What it does it to maintain control state and scroll position between postbacks, as well as stopping the page from flickering when reloading. It makes a mostly static page look very cool. Anyone done this in PHP, or know how to use

[PHP] Re: Executebale code from a databse

2002-05-22 Thread Michael Virnstein
eval ('?'.$var.'?php'); if you want to eval usual php scripts. (We close the ? then comes the content of the php script which also can contain html and then we reopen ?php again) So if you have a file: ?php include('test.php'); ? and you say $var = ?php include('test.php'); ?; you'll result

Re: [PHP] Accessing PHP globals from a module.

2002-05-22 Thread Eric Veldhuyzen
On Tue, May 21, 2002 at 08:03:36AM -0700, Rasmus Lerdorf wrote: Depends a bit on what sort of globals you are after. If you mean a global variable set by the user in the global symbol table you would do: pval **tmp; if(zend_hash_find(EG(symbol_table), foo, 3, (void **)tmp) == SUCCESS)

[PHP] Re: JavaScript vs. Header redirect

2002-05-22 Thread Michael Virnstein
note: you should use $array[test] if test is a string and $array[test] if test is a constant. do not use $array[test] if you mean the string test. $array[test] will also work, if test is a string. Php then tries to look for a constant with name test, won't find one and evaluate test as string.

Re: [PHP] Smart Navigation

2002-05-22 Thread Justin French
Interesting topic, although highly off-topic. I just had a quick kick around, and found this page: http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/Downlo ads/samples/Internet/ASP_DOT_NET_ServerControls/SmartNav/default.asp Doesn't really say HOW it does it, but here's the

Re: [PHP] Smart Navigation

2002-05-22 Thread Justin French
I spoke too soon -- it looks like it's just a JavaScript library which I was able to download. I can't be bothered scanning through 16k of .js files to figure it out though :) Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Whats Function like response.redirect

2002-05-22 Thread RoyD
what function in PHP like response.redirect http://www.detik.com; in ASP ? Roy Daniel , ST IT Developer System - PT BERCA COMPUTEL My E-mail : [EMAIL PROTECTED] and : [EMAIL PROTECTED] / [EMAIL PROTECTED] My ICQNumber : # 103507581 My Phone Cell : 0816-1192832 My Web site:

Re: [PHP] Whats Function like response.redirect

2002-05-22 Thread 1LT John W. Holmes
header(Location: http://www.detik.com;); www.php.net/header Read the manual page... ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 21, 2002 5:12 AM Subject: [PHP] Whats Function like response.redirect what function in PHP

RE: [PHP] Whats Function like response.redirect

2002-05-22 Thread Jon Haworth
Hi Roy, what function in PHP like response.redirect http://www.detik.com; in ASP? header (Location: http://www.detik.com/;); HTH Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: substr....what does this mean? (newbie)

2002-05-22 Thread Michael Virnstein
Hi, first take a look at this page: http://www.php.net/manual/en/function.substr.php if (substr($text, -1) == .) substr($text, -1) will return the last character in string $text. if it is a . the if statement will evaluate to true and it'll do the following {$test = substr($text, 0, -1);}

[PHP] Session vs MySQL-dbase

2002-05-22 Thread Yves Daemen
Hi everyone, since I'm developing a PHP-based forum, and still improving it, I was wondering about some issue. I'm having registered users, and keep their data in a dbase. When they log in, data is retrieved from the database. Now some slight problem comes up. I'm working on an account on a

[PHP] Session vs MySQL-dbase

2002-05-22 Thread Yves Daemen
Hi everyone, since I'm developing a PHP-based forum, and still improving it, I was wondering about some issue. I'm having registered users, and keep their data in a dbase. When they log in, data is retrieved from the database. Now some slight problem comes up. I'm working on an account on

[PHP] ODBC for Informix

2002-05-22 Thread Kevin Meredith
Hi there. Could someone please tell me where I could get hold of the ODBC drivers to connect to Informix with PHP. Is there anything else I should know. Thanks Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] voting using text files

2002-05-22 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi all I have to build a php 'survey' app. but cannot use a db, clearly text files are the way but I wondered, before I start if any of you have done similar and might offer any words of wisdom? Are there any inherent problems I need be aware of

Re: [PHP] Accessing PHP globals from a module.

2002-05-22 Thread Rasmus Lerdorf
On Tue, May 21, 2002 at 08:03:36AM -0700, Rasmus Lerdorf wrote: Depends a bit on what sort of globals you are after. If you mean a global variable set by the user in the global symbol table you would do: pval **tmp; if(zend_hash_find(EG(symbol_table), foo, 3, (void **)tmp) ==

Re: [PHP] voting using text files

2002-05-22 Thread 1LT John W. Holmes
Use file locking, so only one instance of the script is writing to the file at a time... www.php.net/flock ---John Holmes... - Original Message - From: Nick Wilson [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 9:38 AM Subject: [PHP] voting using text

[PHP] Using the pdf tags.

2002-05-22 Thread Jeff Hatcher
Does anyone know of a way to rotate text in a pdf? I can rotate an image and rotate a page but can not seen to rotate text. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] read from flatfile and convert

2002-05-22 Thread r
Hey Guys, Heres the deal, I have a client who wants me to make a testimonials program for him, Which is no problem till now, but now he has come with some additional requirments that I dont know how to deal with... he has a flatfile with a crap load of entries and he wants me to export it into

RE: [PHP] in_array problems (another pair of eyes?)

2002-05-22 Thread Johnson, Kirk
Unless you are using PHP version 4.2 or higher, the first argument can't be an array. Kirk -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 11:46 AM To: [EMAIL PROTECTED] Subject: [PHP] in_array problems (another pair of eyes?) I don't think

Re: [PHP] read from flatfile and convert

2002-05-22 Thread Robert Cummings
r wrote: Hey Guys, Heres the deal, I have a client who wants me to make a testimonials program for him, Which is no problem till now, but now he has come with some additional requirments that I dont know how to deal with... he has a flatfile with a crap load of entries and he wants me to

Re: [PHP] read from flatfile and convert

2002-05-22 Thread 1LT John W. Holmes
How is the text file organized? Is it one testimonial per line? or is there some other kind of seperator? This should be easy. Use file() to read in the file, then do an insert for each line. one little loop will load the whole file for you. how large of a file is it? ---John Holmes... -

RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 4

2002-05-22 Thread J Smith
I always hate mentioning this 'cause I feel like an attention whore or something, but nevertheless, I can't get the thing tested thouroughly without a bit of whoring... I've been working on a crypto extension for PHP for a while now, and since you guys seem into the crypto thing, you might

[PHP] ereg_replace problems

2002-05-22 Thread Zac Hillier
I'm trying to replace values within a string with a value looked up from a database. I have a function that looks up the value in the database for me but I'm having trouble passing the value to the function because of the backslashes, is there a way around this? Code: $cntnt =

Re: [PHP] voting using text files

2002-05-22 Thread Justin French
Just have a look around for a counter script which uses file locking, then port it to suit your needs, or check out the flock() example that *i think* there is in the manual. phpbuilder.com or zend.com or the rest are bound to have a script. Justin French on 22/05/02 11:38 PM, Nick Wilson

Re: [PHP] Mcrypt: Blowfish or Twofish or no fish? Part 2

2002-05-22 Thread Thalis A. Kalfigopoulos
On Wed, 22 May 2002, Jimmy Lantz wrote: Thanx for the suggestions! Someone mentioned that I could use MD5 and then encrypt the hash, how would I ever decrypt that? Is'nt MD5 a 1-way thing only? Another question? Should I go for bigger keylength or bigger blocksize or both? What makes

[PHP] Help .. deprecated messages

2002-05-22 Thread Dtsig
Hello php-general, We have recently hand a system melt down sigh. After reinstalling apache, PHP4 and Mysql I then copied/restored from backup the files(data and all). Using phpmyadmin (2x) or infact any of my previous applications I get errors like the following .. Warning: mysql_db_query is

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-22 Thread D. D. Brierton
Following on from my mail yesterday, here are the results of testing Billy's multipart content method on Windows browsers (Windows 98 to be precise): * IE 6.0 displays the boundary markers and content-type headers inline and also the contents of myfile.foo instead of saving

[PHP] ini_set('display_errors',1) not working.

2002-05-22 Thread Jeff Bearer
I have the following in my php.ini file: display_errors=Off log_errors=On error_log=filename I want to turn on display_errors for developers, I'm attempting to use ini_set to do this. I made a script like: ?php ini_set('display_errors',1); ini_set('log_errors',0); ini_set('error_log',null);

[PHP] Online PHP training course

2002-05-22 Thread Simon Ritchie
Merrow Internet Services run online training courses. We use a web conferencing system to create a virtual classroom where we hold live interactive seminars. You can connect to the conference with an ordinary telephone modem, so you can take part at home or at work. Our Introduction to PHP

Re: [PHP] Help .. deprecated messages

2002-05-22 Thread 1LT John W. Holmes
It's just a warning, not an error. It's probably always been there, but your error reporting was set to a level that didn't display it. Turn your error reporting level up in php.ini. it's set lower in PHP 4.1+ than it has been in the past. Best fix is to of course not use the mysql_db_query()

[PHP] PHP PGP

2002-05-22 Thread Boaz Yahav
Hi I need to encrypt some fields in my mysql database. I need to ask a user for a pass when he enters the data, encrypt it and show him the data only if he enters the pass again. I know that pgp has a module that works with passwords instead of keys. I never tried this on Linux though.

RE: [PHP] PHP PGP

2002-05-22 Thread John Horton
calculate a hash of the pass the user enters and store that. When the user enters a pass again to get the data, then hash this pass and see if it matches the stored hash. If it does , then send the user the data. create a table that stores username, and hashed passwords for authentication. HTH

Re: [PHP] upload problem...

2002-05-22 Thread Jas
Yeah I tried that as well, no dice, however here is what I the code that DID work. Hope this helps anyone that is trying to accomplish much of the same. Jas ?php session_start(); //start the session if one hasn't been started if (isset($HTTP_SESSION_VARS['user']) ||

Re[2]: [PHP] Help .. deprecated messages

2002-05-22 Thread Dtsig
John, First thanks for the note. 1JWH It's just a warning, not an error. It's probably always been there, but your 1JWH error reporting was set to a level that didn't display it. Turn your error 1JWH reporting level up in php.ini. it's set lower in PHP 4.1+ than it has been 1JWH in the past. I

[PHP] Passing an array on

2002-05-22 Thread John Fishworld
Whats the best way to pass on array on in a link ? eg offset is where we are (what page) but state is an array, with a variable size href=joblist.php?offset=$offsetstate=$state thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP PGP

2002-05-22 Thread Manuel Lemos
Hello, On 05/22/2002 01:43 PM, Boaz Yahav wrote: Hi I need to encrypt some fields in my mysql database. I need to ask a user for a pass when he enters the data, encrypt it and show him the data only if he enters the pass again. I know that pgp has a module that works with passwords

[PHP] session.save_path

2002-05-22 Thread Wilbert Enserink
Hi all, I'm trying to install php/apache with phptriad. This worked fine, however when I'm using session variables the thing goes nuts: Warning: open(/tmp\sess_d22b57336449f89ad54b974794dd53f4, O_RDWR) failed: m (2) in C:\apache\htdocs\dm\wwwtest\phpincludes\session\session.php on line 2

[PHP] Re: Passing an array on

2002-05-22 Thread Girish Nath
Hi You could try : http://www.php.net/manual/en/function.serialize.php http://www.php.net/manual/en/function.unserialize.php Pass the serialized array in the URL, then unserialize it back when in the target page. Regards Girish -- www.girishnath.co.uk John Fishworld [EMAIL PROTECTED]

Re: Re[2]: [PHP] Help .. deprecated messages

2002-05-22 Thread Jason Wong
On Thursday 23 May 2002 00:12, Dtsig wrote: 1JWH It's just a warning, not an error. It's probably always been there, but your 1JWH error reporting was set to a level that didn't display it. Turn your error 1JWH reporting level up in php.ini. it's set lower in PHP 4.1+ than it has been 1JWH

Re: [PHP] voting using text files

2002-05-22 Thread Jason Soza
Using file locking, if two people tried to use the script at the same time, wouldn't there be an error for one of them? My first guess at defeating this is having the script write a file named after the voter's IP. Have the file written to a different directory for whatever choices they have,

Re: [PHP] voting using text files

2002-05-22 Thread Analysis Solutions
Nick: I have to build a php 'survey' app. but cannot use a db, clearly text files are the way but I wondered, before I start if any of you have done similar and might offer any words of wisdom? Everyone thus far has recommended file locking. Another way is to create a new file for each

Re: [PHP] unknown problem of script

2002-05-22 Thread begoƱa bevia
me estais mandando mensajes vuestros, - Original Message - From: erich [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 21, 2002 4:22 PM Subject: [PHP] unknown problem of script i run a install.php, the server says the following statement, Warning: Undefined index: install

Re: [PHP] ereg_replace problems

2002-05-22 Thread Analysis Solutions
Zac: $cntnt = eregi_replace(\[L=([a-zA-Z]+)].([a-zA-Z]+)\[EL], a href=\ . fndLnk(\\1) . \\\2/a, $cntnt); Put \\1 in double quotes so it gets evaluated as a substring. a href=\ . fndLnk(\\1) . \\\2/a, $cntnt); Enjoy, --Dan -- PHP classes that make web design easier

[PHP] unable to register session variables

2002-05-22 Thread Pushkar Pradhan
I am following example 4 on http://www.php.net/manual/en/ref.session.php code: if(!session_is_registered(layer) ) { session_register(layer); } I tried both and ''s. Doing a phpinfo() on the pg. doesn't show any $HTTP_SESSION_VARS I've both track_vars and register_globals enabled in my

Re: [PHP] Passing an array on

2002-05-22 Thread Jim lucas
you can use serialize() and unserialize() and make sure that you urlencode() and urldecode() the serialized string before attaching it to your URL. if you don't, you might find that some chars will not be right on the other end of the line. Jim Lucas - Original Message - From: John

Re: [PHP] unable to register session variables

2002-05-22 Thread Jim lucas
Are you starting the session first? ? session_start(); session_register('variable'); ? Jim Lucas - Original Message - From: Pushkar Pradhan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 10:19 AM Subject: [PHP] unable to register session variables I am

Re: [PHP] PHP PGP

2002-05-22 Thread Analysis Solutions
Boaz: On Wed, May 22, 2002 at 04:48:59PM +0100, John Horton wrote: calculate a hash of the pass the user enters and store that. FYI, by hash he means using the md5() function. Ciao! --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution

[PHP] Re: voting using text files

2002-05-22 Thread Peter
Text files are good providing the vote is simple. I would recommend using file locking, but to stop a user recieving an error if the file is in use you could get the script to retry after half a second or so. A good structure would be to have one file for each possible answer and each file

Re: [PHP] Using the pdf tags.

2002-05-22 Thread Miguel Cruz
On Wed, 22 May 2002, Jeff Hatcher wrote: Does anyone know of a way to rotate text in a pdf? I can rotate an image and rotate a page but can not seen to rotate text. You're using PDFlib? It works just fine, but you have to understand how PostScript works. Calling PDF_rotate rotates the entire

[PHP] Re: read from flatfile and convert

2002-05-22 Thread Peter
I copied some data from a web page straight into Excel then saved it as tab delimited which allowed me to import it into MySQL. Try opening the file in a spreadsheet program - it might understand the file! Alternatively, if the data was stored in a flat file previously, there must have been a

Re: [PHP] unable to register session variables

2002-05-22 Thread Pushkar Pradhan
Aren't there two method to register variables: 1. session_start() as you suggested with track_vars enabled 2. !session_is_registered() with register_globals enabled I tried session_start also but didn't work, phpinfo() doesn't show any $HTTP_SESSION_VARS Are you starting the session first? ?

Re: [PHP] voting using text files

2002-05-22 Thread Miguel Cruz
On Wed, 22 May 2002, Jason Soza wrote: Using file locking, if two people tried to use the script at the same time, wouldn't there be an error for one of them? The second session would just have to wait for the first to finish (which should be an infinitessimal amount of time). My first

Re: [PHP] unable to register session variables

2002-05-22 Thread Jim lucas
not that I am aware of. Jim Lucas - Original Message - From: Pushkar Pradhan [EMAIL PROTECTED] To: Jim lucas [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 10:43 AM Subject: Re: [PHP] unable to register session variables Aren't there two method to register

Re: [PHP] Problem with install php 4.2.1

2002-05-22 Thread Miguel Cruz
On Wed, 22 May 2002, Roman Duriancik wrote: I want install php 4.2.1 (download from www.php.net) on ma linux red hat 7.0 server. configure ran good with no errors but when i do make install i get this error message. make[3]: *** [gettext.lo] Error 1 make[3]: Leaving directory

[PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Joshua E Minnie
Hey all, I have a problem, that I can't seem to find the answer to. I have checked the archives and the website, but to no avail. I have installed PHP 4.2.1 on my local machine with IIS running W2K Pro. When I run php -i, I get the html output expected. But when I try to open the simple

[PHP] UTF-8/FormMail headaches

2002-05-22 Thread Peter Johansson
Hi all, I've got a problem with character encoding in combination with a FormMail-script (coded in PHP). Everything works fine as long as I stick to ISO-8859-1 as charset, but when I call the script from pages that use UTF-8 as encoding, special characters (e.g. those special chars with dots and

RE: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Bruce Vander Werf
Josh, Try just using ? as the opening tag. Make sure your php file has the extension php and make sure the php extension is setup as a CGI extension in IIS (pointing to php.exe). --Bruce -Original Message- From: Joshua E Minnie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002

Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Joshua E Minnie
Already tried the other tag, and php extension is setup as a CGI in IIS. That is why this is puzzling me so. -josh Bruce Vander Werf [EMAIL PROTECTED] wrote: Josh, Try just using ? as the opening tag. Make sure your php file has the extension php and make sure the php extension is setup

Re: [PHP] UTF-8/FormMail headaches

2002-05-22 Thread Miguel Cruz
For detection of encoding, perhaps you could include a hidden field with some shibboleth characters. Research how they are transformed by various encodings, and then just look at them to figure out what for that the rest of the data is in. miguel On Wed, 22 May 2002, Peter Johansson wrote:

Re: [PHP] voting using text files

2002-05-22 Thread 1LT John W. Holmes
A good structure would be to have one file for each possible answer and each file contains the number of votes it has recieved. Then: -- Open file for the chosen option as read only -- Read the value in the file -- Close the file -- Increase the value by one using ++ -- Open the file

Re: [PHP] session.save_path

2002-05-22 Thread 1LT John W. Holmes
You have to set the session.save_path to a path on your machine that PHP can write session files to. You can make a temp folder in your C: drive and then set the path to c:/temp or c:\\temp or create and set it to any other folder you want. Make sure (if you're using NTFS) that user

RE: [PHP] Using the pdf tags.

2002-05-22 Thread Jeff Hatcher
Yes I'm using the PDFlib. I understand the rotating of the page. So this is what I am doing: I am building a page $pdf. If I rotate the page then everything on the page rotates also. I need to put titles in a 45 degree angle. These titles can change and there can be between 3-6 depending on the

[PHP] Re: JavaScript vs. Header redirect

2002-05-22 Thread Hunter Vaughn
Okay, looks like I was stupid/lazy for including the pseudo code instead of something closer to what I was using. Also, perhaps I'm being dense, but I don't understand what Michael's response has to do with this situation. Can he or someone else enlighten me? Here's a more accurate/detailed

Re: [PHP] voting using text files

2002-05-22 Thread Rasmus Lerdorf
I think you guys are making this way more complicated than it needs to be. Anytime you start talking about locking files, you need to apply a huge reality check to yourself and sit down and approach the problem from a different direction. In this case could I suggest that you make use of the

Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Sqlcoders.com Programming Dept
Hi there!, In a word - script mappings. In the IIS administrator, you must associate the .php extension with the php interpreter. Use the IIS help wizard to tell you how, or: 1. Start Regedt32.exe and open the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC

Re: [PHP] Re: JavaScript vs. Header redirect

2002-05-22 Thread Sqlcoders.com Programming Dept
Hi there!, I've looked over this thread and from what I gather you want to know if you can/should use JavaScript for redirecting, my usual way of going about things is to put a JavaScript scriptlocation.href='page.aspx'/script call in the head of the document (putting JS in the head causes it to

  1   2   >