[PHP] I have pulled all my hair out - imap_sort still not working - please help!

2001-11-14 Thread richard phynga
Hello people out there, I have been tearing my hair out with this one, as I cannot get imap_sort to perform correctly. below is the piece of code that I use. of all the sort types, only SORTSIZE works. All the otheres give incorreclty sorted lists. to see an example of this please go to :

[PHP] Controlling length of table data

2001-11-14 Thread Gaylen Fraley
This is really a combination html/php question, I believe. The problem is that I have a table that displays a field of text that can be several hundred bytes long. If, however, someone holds down a key and produces 500 letter 'x' the table data then distorts the table! Since the length of the

RE: [PHP] Controlling length of table data

2001-11-14 Thread Martin Towell
if you're going to go the break string in words way, then try $words = explode( , $string); -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Controlling length of table data This is really a

[PHP] PHP 4.0.6 $PHP_SELF empty?

2001-11-14 Thread John Steele
Hello, I just updated to v4.0.6 on win9x. Suddenly all my form-action scripts using $PHP_SELF quit working, as it's empty. Anyone know how to fix this? Thanks, John -- /* SteeleSoft Consulting John Steele - Systems Analyst/Programmer * We also walk dogs... Dynamic Web Design

Re: [PHP] gd-lib and libjpeg issues

2001-11-14 Thread David Robley
On Thu, 15 Nov 2001 05:29, Bill Brennick wrote: Hi all... Having an issue with PHP recognizing the libgd and libjpeg libraries... I specifically downloaded the newest version(s) of those, and compiled the PHP 4.0.6 with: ./configure --with-mysql=/usr/local/mysql

Re: [PHP] PHP 4.0.6 $PHP_SELF empty?

2001-11-14 Thread John Steele
Hi David, No, I updated my php.ini manually (just to change the zend optimizer and add the DBG debugger. These two lines from php.ini haven't changed for sure: variables_order = EGPCS; register_globals = On; According to phpinfo, $PHP_SELF is set, but simply empty! John Hello, I

[PHP] Re: Controlling length of table data

2001-11-14 Thread Johan Holst Nielsen
This is really a combination html/php question, I believe. The problem is that I have a table that displays a field of text that can be several hundred bytes long. If, however, someone holds down a key and produces 500 letter 'x' the table data then distorts the table! Since the length of

[PHP] Re: Session help

2001-11-14 Thread Johan Holst Nielsen
Start at index.html. It goes to postcard.php. When I click on submit in postcard.php, if I change any of the values in the form, the session values received in send_mail.php do not change. Anyone have an idea what I have done wrong now? Try to make a session_unregister(), and make

[PHP] Re: mail() function

2001-11-14 Thread Johan Holst Nielsen
$mailheaders = From: \Do Not Reply\\r\nReply-To: Do Not Reply@Do Not Reply\n; If I use the above headers it says from Do Not [EMAIL PROTECTED] Does anyone know how to make it just say Do Not Reply? You cant... but try making it like this: $mailheaders = FROM: Do Not Reply

[PHP] PHP + apache .htaccess

2001-11-14 Thread EnriGA
Dear all I dunno this post is in right group or not.If no, please ignore. I am a user that use Linux, apache with PHP + mySQL. I have already written a member login security system with PHP to block any unathorized user to see my homepage. But unfortnately, I found that if ppl know the

[PHP] Re: PHP + apache .htaccess

2001-11-14 Thread Johan Holst Nielsen
After I research security issue from the web, I had found apache .htaccess which can solve my problem. What my problem is that, can .htaccess perform like a database system which can store users loginID and password, and also set those users have a expired time each ?? If you want to

[PHP] Re: PHP + apache .htaccess

2001-11-14 Thread EnriGA
then, can .htaccess store the user expried date ? like Peter is not allowed to login after 2Feb 2001, Sam is expired after 11Nov 2002.. and also, is it possible to maintain the .htaccess automatically ? like I write a shell script and run it schedully to delete those expired entry ? Johan

[PHP] Re: PHP + apache .htaccess

2001-11-14 Thread Johan Holst Nielsen
then, can .htaccess store the user expried date ? like Peter is not allowed to login after 2Feb 2001, Sam is expired after 11Nov 2002.. Yes and no. You just have to make a change in the .htaccess file. and also, is it possible to maintain the .htaccess automatically ? like I write a

[PHP] Session

2001-11-14 Thread jtjohnston
Hi, I have read: http://www.php.net/manual/en/function.session-register.php Could I ask you a question about how to set a session $vars in a FORM? It seems to be quite a mystery/controversy!! This is my problem: http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/test_session.php Type

[PHP] Re: PHP + apache .htaccess

2001-11-14 Thread EnriGA
Thanks very much ! I think I've got the way ! ^_^ Johan Holst Nielsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... then, can .htaccess store the user expried date ? like Peter is not allowed to login after 2Feb 2001, Sam is expired after 11Nov 2002..

[PHP] I suck at regular expressions!

2001-11-14 Thread Richard S. Crawford
I am trying to get the title of an html file... you know, the string between the title and /title tags... Here is the function I've got so far: function fileTitle($fileName) { $myFile = fopen($fileName, r); $myText=; while (!feof($myFile)) {

[PHP] how can I get the post content in php

2001-11-14 Thread Yorgo Sun
I mean post content string not a lot of variables etc: aaa.html post a=1b=2 to bbb.php I want use php to read the string a=1b=2 not $a and $b thanks -- Yorgo Sun Project Manager Technology Dept. Tom.com Email:[EMAIL PROTECTED] Mobile:13701243390 Phone:65283399-121 TomQ ID:yorgo

[PHP] Re: I suck at regular expressions!

2001-11-14 Thread Johan Holst Nielsen
Richard S. Crawford wrote: I am trying to get the title of an html file... you know, the string between the title and /title tags... Here is the function I've got so far: function fileTitle($fileName) { $myFile = fopen($fileName, r); $myText=; while

[PHP] Re: how can I get the post content in php

2001-11-14 Thread Johan Holst Nielsen
I mean post content string not a lot of variables etc: aaa.html post a=1b=2 to bbb.php I want use php to read the string a=1b=2 not $a and $b I not sure I understand you, but are you looking for $HTTP_SERVER_VARS['QUERY_STRING'] ?? Regards, Johan -- PHP General Mailing List

[PHP] Re: how can I get the post content in php

2001-11-14 Thread Yorgo Sun
$HTTP_SERVER_VARS['QUERY_STRING'] -- it just can read the content by GET method. I want POST content thanx -- Yorgo Sun Project Manager Technology Dept. Tom.com Email:[EMAIL PROTECTED] Mobile:13701243390 Phone:65283399-121 TomQ ID:yorgo http://www.ruisoft.com Johan Holst Nielsen [EMAIL

[PHP] Re: how can I get the post content in php

2001-11-14 Thread Johan Holst Nielsen
$HTTP_SERVER_VARS['QUERY_STRING'] -- it just can read the content by GET method. I want POST content Ah okay. Try this: $post_query = ; $keys_arr = array_keys($HTTP_POST_VARS); $keys_size = sizeof($key_arr); for($i=0; $i$keys_size; $i++) { if($i == 0) { $post_query .=

<    1   2