RE: [PHP] [Fwd: Can you help me about the installation of apache/php/MySQl/ssl ?]

2002-07-30 Thread Peter
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 30 July 2002 4:17 PM To: [EMAIL PROTECTED] Subject: [PHP] [Fwd: Can you help me about the installation of apache/php/MySQl/ssl ?] Hello, Can you help me about this problem ? Thanks,

Re: [PHP] [Fwd: Can you help me about the installation of apache/php/MySQl/ssl ?]

2002-07-30 Thread Jason Wong
On Tuesday 30 July 2002 14:17, [EMAIL PROTECTED] wrote: Can you help me about this problem ? Try google. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Before

[PHP] MySQL password()

2002-07-30 Thread Liam MacKenzie
Hi all, I do this: dbconnect(); $query=SELECT * FROM users where username='$PHP_AUTH_USER'; $result=mysql_query($query); $list=mysql_fetch_array($result); if ($PHP_AUTH_PW !== $list[passwd] || == $PHP_AUTH_PW || all != $list[domain]){ Header(WWW-authenticate: basic realm=\EMM\);

[PHP] Re: Resetting ID

2002-07-30 Thread lallous
Save all the entries somewhere programmatically, then do DELETE * FROM tablename; re insert all the entries (of course do not enter the ID field, cause it will be auto assigned). gl, Thomas Edison Jr. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Glory! I

[PHP] Re: MYSQL natsort() ?

2002-07-30 Thread lallous
Well, you can do something like: SELECT * FROM tablename ORDER BY fieldname [ASC|DESC] = [ASC|DESC] optional, put either of theses without the brackets. //Elias. Joel Colombo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This is a mysql question, cause i

RE: [PHP] Resetting ID

2002-07-30 Thread David Freeman
What i want to do is delete the entire IDs and generate them again so that they are in one single order like 1,2,3,4,5... .like this. I suspect that if your table, as you use it, needs this ordering then you've got something wrong. It really shouldn't matter much what the internal IDs

Re: [PHP] MySQL password()

2002-07-30 Thread Liam MacKenzie
Mmm.. think you misinterpreted my question... http://www.mysql.com/doc/M/i/Miscellaneous_functions.html PASSWORD(str) how do you unPASSWORD(str) in PHP? - Original Message - From: Negrea Mihai [EMAIL PROTECTED] To: Liam MacKenzie [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

[PHP] Image out of LDAP

2002-07-30 Thread Manuel Vazquez
Good morning, I'm running a OpenLDAP database which includes JPEG photos for some entries. The purpose is to view these images on a web page. Unfortunately I do not have much experience with PHP so any help would be very appreciated. Thanks in advance, Manuel Vazquez -- PHP General Mailing

[PHP] php extension problem

2002-07-30 Thread p . williams
We've successfully installed and run PHP 4.0.6. However when we add an extension for win9x printing we get the message PHP Warning: Unable to load dynamic library 'c:\php\extensions/php_printer.dll' a device attached to the system is not functioning. The php.ini file has

[PHP] Re: MySQL password()

2002-07-30 Thread Lars Olsson
To my knowledge it isn't possible to decrypt the PASSWORD function in MySQL (you need to use MySQL ENCRYPT/DECRYPT for that). However, it's possible to use PASSWORD on the user-provided string too. You could try the following code: $query=SELECT * FROM users where username='$PHP_AUTH_USER'

[PHP] fullname

2002-07-30 Thread Mantas Kriauciunas
Hey php-general, is there some other easyer way to do in one line than this?: $fullname = $session[f_name]; $fullname .= ; $fullname .= $session[l_name]; P.S the thing is to add line in the middle of the first and last names :) Thanks -- Best regards, Mantas

Re: [PHP] fullname

2002-07-30 Thread Wee Keat
Is this easier for you? $fullname = $session[f_name]. .$session[l_name]; - Original Message - From: Mantas Kriauciunas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 30 July, 2002 7:11 PM Subject: [PHP] fullname Hey php-general, is there some other easyer way to do in one

RE: [PHP] MySQL password()

2002-07-30 Thread David Freeman
Mmm.. think you misinterpreted my question... http://www.mysql.com/doc/M/i/Miscellaneous_functions.html PASSWORD(str) how do you unPASSWORD(str) in PHP? Basically, you don't. Instead, what you do is use the password that was provided as user input. You create a suitable

RE: [PHP] fullname

2002-07-30 Thread David Freeman
is there some other easyer way to do in one line than this?: $fullname = $session[f_name]; $fullname .= ; $fullname .= $session[l_name]; $fullname = $session[f_name] . . $session[l_name]; CYA, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Image out of LDAP

2002-07-30 Thread Stig Venaas
Hi On Tue, Jul 30, 2002 at 09:00:09AM +0200, Manuel Vazquez wrote: Good morning, I'm running a OpenLDAP database which includes JPEG photos for some entries. The purpose is to view these images on a web page. Unfortunately I do not have much experience with PHP so any help would be very

RE: [PHP] Re: Table formatting -- PARTIALY SOLVED

2002-07-30 Thread Tim Ward
why would you expect a for loop to know whether there was an array returned from the mysql_fetch_array($result). you haven't told it to check this. This is why I suggested using the fetch_array() to control the loop and a counter to determine when to start and end rows - did you not get that?

Re: [PHP] Good books on sessions

2002-07-30 Thread Petre
Well, I have asked a couple of questions on this list, but they havn't really helped alot. Maybe you can help? My situation background is as follow: I have always written my apps in the following way: register_globals=on, so I allowed PHP to generate my variables for me on the action page,

Re: [PHP] Good books on sessions

2002-07-30 Thread Rasmus Lerdorf
Well, how exactly do you implement the back button? If it is a normal client-side back, then of course the previous value will be shown. If it is actually a forward-link to the previous page, then your logic on that target page is bogus. By the way, trans-sid is compiled in by default in PHP

Re: [PHP] Good books on sessions

2002-07-30 Thread Petre
Yes, it is a forward link to the page, but as mentioned, that page contains a form with the selection options, and on that form's action page is where I don't see the values change, so the question should probably be something like how do I change the value in the session_var with the newly

[PHP] Credit Card Validation With Expiration Date

2002-07-30 Thread Laurent Drouet
Hi the ML I'm looking for an algorithm or a free PHP Script which enable me to verify expiration date with a credit card number. Does anybody knows this ? Regards Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Credit Card Validation With Expiration Date

2002-07-30 Thread Craig Vincent
I'm looking for an algorithm or a free PHP Script which enable me to verify expiration date with a credit card number. Does anybody knows this ? It doesn't existcredit card number alogrithms do not use the expiry date in their formulas (at least I'm not aware of any that are). Also

Re: [PHP] Good books on sessions

2002-07-30 Thread Rasmus Lerdorf
The trick is to not name your form vars the same as your session vars. Keep them separate so you have full control of what ends up where. Also, note that if you are not relying on trans_sid or cookies then don't use SID. Call session_id() explicitly to get the session id. So, a quick little

Re[2]: [PHP] Re: need help with uploading images

2002-07-30 Thread Tom Rogers
Hi, Tuesday, July 30, 2002, 1:53:50 PM, you wrote: D This looks good but I just have one question about it if you don't mind, D what if someone was uploading a gif or a PNG file? can it be made to only D detect jpgs? D Thanks in advance D Deadsam Try it this way, it will check if it is a jpeg

[PHP] PHP Installation Problem

2002-07-30 Thread Mark Colvin
I have a development web server php 4.0.6 apache and mysql and everything works OK. I installed the same software onto a new server that will be the production server but I hit problems when my scripts try and hit the db on the new server. Comparing the phpinfo details for both, the new server

Re: [PHP] PHP Installation Problem

2002-07-30 Thread Rasmus Lerdorf
Well, how did you do the install? You really need to provide more details. Heck, any details. You don't mention your OS, whether you compiled from source, if so which configure flags, from packages, which packages, etc.. We are not mind readers. -Rasmus On Tue, 30 Jul 2002, Mark Colvin

Re: [PHP] PHP Installation Problem

2002-07-30 Thread Tyler Longren
I'm not sure exactly what you're saying, but it sounds to me like you didn't configure --with-mysql for the new server. You MUST do that. ./configure --with-apxs=/blah/blah --with-mysql If you don't have --with-mysql compiled into the php binary, mysql functions won't work. Tyler On Tue, 30

Re: [PHP] PHP Installation Problem

2002-07-30 Thread Jason Wong
On Tuesday 30 July 2002 16:34, Mark Colvin wrote: I have a development web server php 4.0.6 apache and mysql and everything works OK. I installed the same software onto a new server that will be the production server but I hit problems when my scripts try and hit the db on the new server.

Re: [PHP] Good books on sessions

2002-07-30 Thread Petre
Thanks, will work through this immediately. Just to be clear. If I DO stick with your suggestion of letting PHP do the url mangling, and taking your code below, I can simply remove the ini_set('session.use_trans_sid',false); and ?=$sid? from your code to make it work exactly as is? Thanks

Re: [PHP] Good books on sessions

2002-07-30 Thread Rasmus Lerdorf
Yup, get rid of both ini_set() calls and take out the $sid=... and ?=$sid? stuff and it should simply work. On Tue, 30 Jul 2002, Petre wrote: Thanks, will work through this immediately. Just to be clear. If I DO stick with your suggestion of letting PHP do the url mangling, and taking your

Re: [PHP] PHP 4.2.2 vpopmail

2002-07-30 Thread Jakub Zawierucha
Uz.ytkownik Jakub Zawierucha napisa?: I have little problem with vpopmail functions from PHP 4.2.2. When I use vpopmail_auth_user ( blah, foo.bar.pl, secret string ); I get no correct return value ( echo vpopmail_auth_user ( blah, foo.bar.pl, secret string ); - give me no result ). This

[PHP] Re: fullname

2002-07-30 Thread lallous
Even more, $fullname = {$session['f_name']} {$session['l_name']}; even $fullname = sprintf(%s %s, $session[f_name], $session['l_name']); etc Mantas Kriauciunas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey php-general, is there some other

[PHP] php 4.2.2 and 4.0.6

2002-07-30 Thread EdwardSPL
Hello, Does php 4.2.2 is better than 4.0.6 ? Thank for your telling ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] apache and php

2002-07-30 Thread EdwardSPL
Hello, Which version of apache and which version of php are good for work together ? Thank for your help... Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions - Informed Opinions

2002-07-30 Thread Danny Shepherd
Hello All, So, I've been using my own implementation of session handling which is mainly storing the userinfo in a cookie (an array, serialised and signed) but I'm starting to come around to the idea of storing this info on the server and just passing a session key about - but I have a couple of

Re: [PHP] apache and php

2002-07-30 Thread Danny Shepherd
For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2 The developer systems, I'd go for (indeed have gone for) Apache 2.0.39 + PHP4.2.2 HTH Danny. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 11:01 AM Subject: [PHP]

Re: [PHP] Sessions - Informed Opinions

2002-07-30 Thread Rasmus Lerdorf
So, I've been using my own implementation of session handling which is mainly storing the userinfo in a cookie (an array, serialised and signed) but I'm starting to come around to the idea of storing this info on the server and just passing a session key about - but I have a couple of

Re: [PHP] apache and php

2002-07-30 Thread EdwardSPL
Danny Shepherd wrote: For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2 They are good for work under Linux RedHat ( 6.x / 7.x ) system ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions - Informed Opinions

2002-07-30 Thread Danny Shepherd
Comments inline - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED] Cc: PHP-General [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 11:24 AM Subject: Re: [PHP] Sessions - Informed Opinions Assuming that sessions are stored on the

Re: [PHP] apache and php

2002-07-30 Thread Danny Shepherd
- Original Message - From: [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 11:30 AM Subject: Re: [PHP] apache and php Danny Shepherd wrote: For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2 They are

RE: [PHP] Re: libphp4.so

2002-07-30 Thread David Robley
Peter wrote: howdy, i've got it all configured correctly .. well it doesn't spit any errors out on make but when i got to view a web page it opens a down load box ..so i added this LoadModule php4_modulelibexec/libphp4.so to httpd.conf as per the manual and restarted apache

Re: [PHP] Sessions - Informed Opinions

2002-07-30 Thread Rasmus Lerdorf
3 How can I get a count of currently active (I.e non expired) sessions? Count the number of session files. Can I be sure that the count will only include active sessions though? By definition, if the session file is there, it is an active session. There is no such thing as counting

Re: [PHP] Sessions - Informed Opinions

2002-07-30 Thread Danny Shepherd
- Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED] Cc: PHP-General [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 11:52 AM Subject: Re: [PHP] Sessions - Informed Opinions 3 How can I get a count of currently active (I.e non expired)

[PHP] Re: Not a Valid File-Handle Resource

2002-07-30 Thread David Robley
Chris Carlson wrote: I am trying to create a php program and am getting an error in this area of my script: $dataFile = fopen(/home/blurredv/data/.$username.Contact.txt,w); fputs($dataFile, $line); fclose ($dataFile); These are the errors: Warning: Supplied argument is not a

RE: [PHP] Resetting ID

2002-07-30 Thread John Holmes
I have a table, with 4 columns. One of the column is ID, a Primary Key, which has Auto_Increment set on it. Now i have a lot of rows deleted and a lot of duplicate rows that will be deleted, and all sorts of stuff happening in the table.. the result is, that the IDs have become

RE: [PHP] Re: Not a Valid File-Handle Resource

2002-07-30 Thread Dave [Hawk-Systems]
$dataFile = fopen(/home/blurredv/data/.$username.Contact.txt,w); fputs($dataFile, $line); fclose ($dataFile); These are the errors: Warning: Supplied argument is not a valid File-Handle resource in /home/blurredv/public_html/redcarbon/update.php on line 34 Warning: Supplied

[PHP] PHP directives in httpd.conf problems

2002-07-30 Thread Markas
Hello, people. So the problem. I have apache running with php-module. Recently I've upgraded the 4.0.6 version up to 4.2.2. All my php configuration directives in httpd.conf (php_flag, php_admin_flag, php_value, php_admin_value) are not working now. When I change libphp4.so back to 4.0.6 the

[PHP] A somewhat unusual session question...

2002-07-30 Thread Lars Olsson
Hi all! The manual claims here (http://se2.php.net/manual/en/ref.session.php) that: /snip ...If session.save_path's path depth is more than 2, garbage collection will not be performed. /snip Anyone know why this is the case? And can you get around it? My scripts currently lives on a shered

RE: [PHP] need help reg. User Accounts

2002-07-30 Thread Simon Ritchie
I am using PHP-4.1.1 on Linux, I wanted to know the difference between nobody user and normal user of operating system. None. Nobody is an ordinary user. However, ordinary UNIX users can be set up in all sorts of ways. This question just came to mind when, neither nobody's directory nor

[PHP] Re: ORDER BY from 2 tables

2002-07-30 Thread Paul Dionne
I am not sure what exactly you mean. If you are talking about a regular query then: SELECT tblTable1.hits, tblTable2.hits FROM tblTable1, tblTable2 ORDER BY tblTable1.hits; If you are talking about combining the two tables so that all your 'hits' are in one column then there are a

Re: [PHP] fullname

2002-07-30 Thread Justin French
on 30/07/02 5:12 PM, Wee Keat ([EMAIL PROTECTED]) wrote: Is this easier for you? $fullname = $session[f_name]. .$session[l_name]; or $fullname = {$session['f_name']} {$session['l_name']}; Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Good books on sessions

2002-07-30 Thread Justin French
*shakes head a bit* I'm not REALLY sure what the problem is here, but let's take a step back. A session ID is a unique, random number assigned to a user as they kick around your site. To maintain state (a session) across multiple pages, you pass the session id around. This can be done with

[PHP] Re: fullname

2002-07-30 Thread Markas
Sveix. I guess if the space or any other character is needed between MORE than TWO strings, this is a good construction: $fullname = join( , array($session[f_name], $session[l_name],$session[middle_name], ...)); P.S. I sometimes use this construct for generating sql statements Mantas

[PHP] Problem of characters with xml_parse

2002-07-30 Thread Sebastien Mole
Hello, I have a question concerning characters : I use the function xml_parse on a standalone XML file with the encoding ISO-8859-1 and I want to parse it. It contains all types of characters (including control characters, so ASCII characters from x to x00FF) so as to send and receive

[PHP] Problem of characters with xml_parse

2002-07-30 Thread Sebastien Mole
Hello, I have a question concerning characters : I use the function xml_parse on a standalone XML file with the encoding ISO-8859-1 and I want to parse it. It contains all types of characters (including control characters, so ASCII characters from x to x00FF) so as to send and receive

Re: [PHP] Problem of characters with xml_parse

2002-07-30 Thread Analysis Solutions
On Tue, Jul 30, 2002 at 05:12:25PM +0200, Sebastien Mole wrote: but when I try to parse characters such as chr(#x0001) or chr(#x001F) (or others) the parser returns me an error Line wrapping... What a concept. In my PHP XML parsing tutorial,

[PHP] searching an array for words starting with 'p'

2002-07-30 Thread andy
Hi there, I am wondering how to search an array for words starting with a certain character. E.G: $word = array('alpha', 'beta', 'php'); I would like to check if there is a word in the array starting with p Is there alrready a function for this? Thanx, Andy -- PHP General Mailing List

[PHP] Coding PHP with register_globals off

2002-07-30 Thread Neil Freeman
Seeing as a question concerning register_globals seems to be posted every day - I thought this link might be useful to some: http://www.zend.com/zend/art/art-sweat4.php Neil -- -- www.curvedvision.com -- -- PHP General Mailing List

[PHP] Sorting Output

2002-07-30 Thread Brian V Bonini
I have a db with the following fields: id | month | company | title | name | role | show_company | show_title | show_month sql query is: select * FROM db ORDER BY month DESC; Output gets formatted like: month - company - title name role name role - title name role -

Re: [PHP] Sorting Output

2002-07-30 Thread 1LT John W. Holmes
How are you displaying it? Show us some code... ---John Holmes... - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: PHP Lists [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 11:52 AM Subject: [PHP] Sorting Output I have a db with the following fields: id | month |

Re: [PHP] Problem of characters with xml_parse

2002-07-30 Thread Rasmus Lerdorf
Can't you just use CDATA blocks? Personally I'd either use an entity reference or base64 the stuff. -Rasmus On Tue, 30 Jul 2002, Sebastien Mole wrote: Hello, I have a question concerning characters : I use the function xml_parse on a standalone XML file with the encoding ISO-8859-1 and I

[PHP] Hide the undefined offset error for the array?

2002-07-30 Thread Scott Fletcher
I have one of the website on windows and I get the undefined offset error, I don't have that problem on UNIX / Linux. Anyone know what method would work?? Here's the script! In this case, the $raw_data array is empty, so window complain of the empty data by displaying hte error message,

[PHP] Re: php 4.2.2 and 4.0.6

2002-07-30 Thread Scott Fletcher
Actually, PHP 4.2.2 just have more features than PHP 4.0.6. Example of those are more security and more functions as well as many of the other things. One disadvantage to it is some programming script will break because some PHP features is decommissioned, like functions or someting. [EMAIL

Re: [PHP] apache and php

2002-07-30 Thread Scott Fletcher
I wouldn't jump on Apache 2.0.39 for the production website and some PHP features does not work for that version. That apache is in beta testing stage, so it will be a while. Danny Shepherd [EMAIL PROTECTED] wrote in message

Re: [PHP] Hide the undefined offset error for the array?

2002-07-30 Thread Rasmus Lerdorf
Your default error reporting level must be set different on your Windows box. If you turn off E_NOTICE warnings on your Windows box it will act the same as your Linux box. But, in general, to write E_ALL clean code you would check if each exists first, or swallow the errors if you know that

[PHP] Re: A somewhat unusual session question...

2002-07-30 Thread Scott Fletcher
The session.save_path have nothing to do with it. I have that same problem with the default path, /tmp when the session became a garbage collection when the user quit the browser without logging off. When the user quit the browser then there's no way for the server to know that, so the session

[PHP] Re: What is REGEX ?

2002-07-30 Thread Mike Mannakee
Look for regular expressions in the manual. Regex is just a shortening of that. Mike Lord Loh. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello! I am new to REGEX. I tried to read several posts on REGEX. However none were descriptive. What is Regex ?

Re: [PHP] Re: php 4.2.2 and 4.0.6

2002-07-30 Thread EdwardSPL
So, do you know apache 1.3.22 and php 4.2.2 are good for work with IMP 3.x ( http://www.horde.org/imp ) under RH 6.2 system ? Scott Fletcher wrote: Actually, PHP 4.2.2 just have more features than PHP 4.0.6. Example of those are more security and more functions as well as many of the other

Re: [PHP] apache and php

2002-07-30 Thread EdwardSPL
So, which version of apache and php are the best for working together under any OS system ? Scott Fletcher wrote: I wouldn't jump on Apache 2.0.39 for the production website and some PHP features does not work for that version. That apache is in beta testing stage, so it will be a while.

Re: [PHP] apache and php

2002-07-30 Thread Rasmus Lerdorf
The latest stable versions of both. Apache 1.3.26 and PHP 4.2.2. On Wed, 31 Jul 2002 [EMAIL PROTECTED] wrote: So, which version of apache and php are the best for working together under any OS system ? Scott Fletcher wrote: I wouldn't jump on Apache 2.0.39 for the production website and

[PHP] how to debug mail() problem?

2002-07-30 Thread Kevin Porter
Hi, I have a loop that sends out a numbers of emails using the mail() function. -- Code start - for ( $i=0, $j=count($responders); $i $j; $i++ ) { $r = $responders[$i]; $headers = MIME-Version: 1.0\r\n; $headers .= Content-type: text/html;

[PHP] Re: Sendmail return-path from my virtual webhost

2002-07-30 Thread Al
I was hoping there was a way to fix it without having to modify my php scripts [e.g., phpBB2, postlister, etc.] Manuel Lemos wrote: Hello, On 07/29/2002 01:54 PM, Al wrote: Emails sent from my php scripts, using sendmail, all have a goofy return-path variable in the header. Is

[PHP] Re: how to debug mail() problem?

2002-07-30 Thread Manuel Lemos
On 07/30/2002 01:27 PM, Kevin Porter wrote: Hi, I have a loop that sends out a numbers of emails using the mail() function. -- Code start - for ( $i=0, $j=count($responders); $i $j; $i++ ) { $r = $responders[$i]; $headers = MIME-Version:

Re: [PHP] apache and php

2002-07-30 Thread Chris Garaffa
I'd recommend: http://www.apache.org/dist/httpd/Announcement.html -- Apache 1.3.26 -and- http://www.php.net/release_4_2_2.php -- PHP 4.2.2 Both include the latest bug fixes and are the latest stable releases. I've been running these on a RedHat 7.1 box (64MB RAM, 225mHz Pentium), with MySQL as

[PHP] Re: Sendmail return-path from my virtual webhost

2002-07-30 Thread Manuel Lemos
Hello, On 07/30/2002 01:30 PM, Al wrote: I was hoping there was a way to fix it without having to modify my php scripts [e.g., phpBB2, postlister, etc.] There is an explicit php.ini option for that but it only works under Windows. On Unix, you may also try defining the sendmail path added

RE: [PHP] Hide the undefined offset error for the array?

2002-07-30 Thread John Holmes
I have one of the website on windows and I get the undefined offset error, I don't have that problem on UNIX / Linux. Anyone know what method would work?? Here's the script! In this case, the $raw_data array is empty, so window complain of the empty data by displaying hte error message,

Re: [PHP] Re: php 4.2.2 and 4.0.6

2002-07-30 Thread Scott Fletcher
You may will want to use hte later version of Apache, the latest stable release is 1.3.26 due to one of hte security hole that affect the previous version, this security hole would allow the vrius, like worm virus or something to go through the security hole. We wouldn't want that. By the way,

[PHP] Re: how to debug mail() problem?

2002-07-30 Thread Lee Doolan
Manuel == Manuel Lemos [EMAIL PROTECTED] writes: [. . .] Manuel Anyway, if all else fails, you may want to try to use this Manuel class: Manuel http://www.phpclasses.org/smtpclass Manuel maybe in conjunction with this Manuel

[PHP] Re: A somewhat unusual session question...

2002-07-30 Thread Lars Olsson
I'm aware that the server cannot know whenever a user just quits without logging out, but I was under the impression that the flags session.gc_maxlifetime and session.gc_probability in php.ini would control when and how often leftover session files would be removed. If this isn't true, what

[PHP] Internationalization

2002-07-30 Thread Jeb A. Scarbrough \(home\)
Can someone provide a good source of information on what PHP can and cannot do in regards to making a site multi-lingual. I've found a little information about using gettext but that's about it. Do you have to using a certain charset? Do all functions work with different languages? String

Re: [PHP] Good books on sessions

2002-07-30 Thread Petre
Yes , I agree,But that is exactly where my problem comes in, when I link the person forward, it DOES NOT take the new value for the project_id, as it is a form element and it only becomes variable on the action page. This is where I'm unsure about how to initialize the variable. As mentioned

Re: [PHP] Credit Card Validation With Expiration Date

2002-07-30 Thread Tech Support
That is correct. As long as the expiration date is past present it's fine. I used to work for another hosting company who would just guess new expiration dates for monthly recurring customers who had not submitted a cancellation request but who's cards had expired. As long as the date was past

[PHP] Dynamic Web Pages

2002-07-30 Thread Rolando Morales
I would like to have the same page (test.php) have different text in it depending on a database entry. which is easy enough. but I want it to be on the fly. example list would be created on the fly depending on databse entries. which ever entry was picked (lets say STLT) it would open up my

[PHP] enabling mysql support

2002-07-30 Thread Joel Lopez
Hi, I would like to recompile php with mysql support. I am a newbie. I really don't want to have to reinstall RedHat just to be able to use MySQL with php. I ran: rpm -qa | frgrep php and I see these: php-4.0.6-15 php-imap-4.0.6-15 asp2php-gtk-0.75.17.1 php-ldap-4.0.6-15

Re: [PHP] enabling mysql support

2002-07-30 Thread Rasmus Lerdorf
Simply install the php-mysql rpm. On Mon, 29 Jul 2002, Joel Lopez wrote: Hi, I would like to recompile php with mysql support. I am a newbie. I really don't want to have to reinstall RedHat just to be able to use MySQL with php. I ran: rpm -qa | frgrep php and I see these:

[PHP] Re: A somewhat unusual session question...

2002-07-30 Thread Lars Olsson
Hm...seems it works after all...Tried extremely short session.gc_maxlifetime and a 100% session.gc_probability...works like a charm! Sorry for not checking this thoroughly enough before whining... ;) /lasso ([EMAIL PROTECTED]) Lars Olsson wrote: Hi all! The manual claims here

Re: [PHP] searching an array for words starting with 'p'

2002-07-30 Thread Tech Support
try preg_grep() http://www.php.net/manual/en/function.preg-grep.php example: ? $word = array('alpha', 'beta', 'php'); // match anything beginning with upper or lower case p $matches_array = preg_grep('/^(p|P).*/', $word); print_r($matches_array); ? Jim Grill Support Web-1 Hosting

RE: [PHP] searching an array for words starting with 'p'

2002-07-30 Thread Joseph Rosenblum
I don't think there's a builtin that does exactly what you are looking for, but this will do the trick: ?php $array = array ( pinaeapple, orange, passionfruit); $newar = array(); foreach ($array as $val) { if ($val{0} == p) { $newar[] = $val; } } ? -Joseph Rosenblum President,

[PHP] PHP4 and MS Excel?

2002-07-30 Thread Jason Caldwell
I would like to give my users the ability to send (to my website) a Microsoft Excel file, and then have my server (PHP code) extract that data and turn it into a TAB Delimited Text file -- is this possible with PHP? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: A somewhat unusual session question...

2002-07-30 Thread Tech Support
That last statement was not entirely true. The server does not have to know when someone leaves to clean up. You are right about session.gc_maxlifetime and session.gc_probability. if the maxlifetime is set to 1200 (20 minutes) and the probability is set to 1 that means that one percent of the

[PHP] Re: PHP4 and MS Excel?

2002-07-30 Thread Jome
I would like to give my users the ability to send (to my website) a Microsoft Excel file, and then have my server (PHP code) extract that data and turn it into a TAB Delimited Text file -- is this possible with PHP? http://groups.google.com/groups?hl=svlr=ie=ISO-8859-1q=data+from+excel+ph p

[PHP] PDF_function HELP again!!! :(

2002-07-30 Thread Jeffrey
Here we go again; I posted the message pdflib, NEED HELP with function problem (newby) and thank you to all that helped. Even after that help, seems I cant understand scope to well. Im trying to make a function that creates another page when I have reached the bottom of a page. For some reason

[PHP] Re: Dynamic Web Pages

2002-07-30 Thread Lars Olsson
Hi! Database queries and global variables are not related to each other. It usually just boils down to the following steps 1. Collect data that that's needed for the database query (via $_GET or $_POST) 2. Run the query against the database and store the results in some nice variables

[PHP] Re: PDF_function HELP again!!! :(

2002-07-30 Thread Jeffrey
Diregard the missing { bracket its not the problem, I dont why its missing from my post. Jeff Jeffrey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Here we go again; I posted the message pdflib, NEED HELP with function problem (newby) and thank you to all

[PHP] $row and alias

2002-07-30 Thread Saci
I would like to show some fields based on a Interbase database, everthing is working when i type the fields name usinf $row- field something like this while ($row = ibase_fetch_object($sth)) { echo TRTD$row-RAZAO_SOCI/TD; echoTD$row-ENDERECO/TD/TR\n ; } But I would like to make a generic

[PHP] Re: PHP4 and MS Excel?

2002-07-30 Thread Jason Caldwell
So -- it looks like I can connect to Excel via COM -- buuutt... anyone have any examples or can anyone point me to any -- that show how to save-out an excel file as a TEXT (.csv) TAB Delimited file? I guess if there is a way to see each ROW in the Excel Spreadsheet -- then I can grab that data

Re: [PHP] PDF_function HELP again!!! :(

2002-07-30 Thread Rasmus Lerdorf
Sounds like you didn't call pdf_end_page() before calling your next_page() function. -Rasmus On Tue, 30 Jul 2002, Jeffrey wrote: Here we go again; I posted the message pdflib, NEED HELP with function problem (newby) and thank you to all that helped. Even after that help, seems I cant

[PHP] Serialised Data DBs

2002-07-30 Thread Danny Shepherd
Hi, Is it necessary to perform addslashes() on serialised data before inserting it into a database? Thanks, Danny. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Serialised Data DBs

2002-07-30 Thread Rasmus Lerdorf
Yes, you would need to. serialize() does not encode any of the variable data. -Rasmus On Tue, 30 Jul 2002, Danny Shepherd wrote: Hi, Is it necessary to perform addslashes() on serialised data before inserting it into a database? Thanks, Danny. -- PHP General Mailing List

[PHP] how to apply php patch file: 4.2.1 - 4.2.2

2002-07-30 Thread gk
I couldn't find any adequate instructions on this anywhere on this list or on the php web site so here is for anyone who needs it. I had originally tried: patch patchfile but that doesn't work, even though file names don't require any stripping with -p option, it is still required: -p0 My php

[PHP] Mail Form

2002-07-30 Thread Kerry Gray
Can somebody please tell me why I keep getting this error when using this script... Parse error: parse error in /host/g/i/a/8/b/i/giapai3k.8bit.co.uk/mail.php on line 54 ?php // Read POST request params into global vars $to = $_POST['to']; $from= $_POST['from']; $subject =

  1   2   >