Re: [PHP] Reducing size of htm output

2005-05-06 Thread Prathaban Mookiah
Is it true that ob_start(ob_gzhandler) can cause problems on IE 5.5+? Since IE any-version is on the client side, it shouldn't cause any problems to ob_start(), in that case any other PHP function. In my experience output buffering functions can be bizzaire at times. Especially if you are

Re: [PHP] Re: Barcodes [Solved]

2005-05-06 Thread Jason Barnett
Mike Smith wrote: On 4/18/05, Eric Wood [EMAIL PROTECTED] wrote: - Original Message - From: Mike Smith I'm using a script to generate the barcodes (3 of 9 or Code39): http://www.sid6581.net/cs/php-scripts/barcode/ This script seems to limit the input barcode to 15 characters... um... -eric

Re: [PHP] Reducing size of htm output

2005-05-06 Thread Rasmus Lerdorf
Prathaban Mookiah wrote: Is it true that ob_start(ob_gzhandler) can cause problems on IE 5.5+? Since IE any-version is on the client side, it shouldn't cause any problems to ob_start(), in that case any other PHP function. That's not true. ob_gzhandler is extremely browser-dependant

Re: [PHP] Socket connection reset by pear

2005-05-06 Thread =?iso-8859-1?q?Mart=EDn_Marqu=E9s?=
OK, I found the error. Aparently, the message that I was sending didn't have a newline at the end, and so socket_read on the other end failed to complete it's task, and finds it self with a conection reset by pear when the client tries to write something else. I found out when looking at the

Re: [PHP] Reducing size of htm output

2005-05-06 Thread Kirsten
preg_replace('/s+/', ' ', $html); but watch out, this js code will work: var v alert(v) this one will not: var v alert(v) Sure but now: how do I access the htm output of the current executing script before it is send to the user? Thanks again 1) Is there any function to do

Re: [PHP] Reducing size of htm output

2005-05-06 Thread Marek Kilimajer
Kirsten wrote: preg_replace('/s+/', ' ', $html); but watch out, this js code will work: var v alert(v) this one will not: var v alert(v) Sure but now: how do I access the htm output of the current executing script before it is send to the user? output buffering -- PHP General Mailing List

Re: [PHP] How do I link to the root directory of the server?

2005-05-06 Thread Richard Lynch
You could just use relative links, or use a full path link, without the http://www.mydomain.com part. Or, you could change application.php to use data from $_SERVER to figure out what URL you should be using. ?php var_dump($_SERVER);? and pick through that data. Somewhere in there you will

Re: [PHP] multi dimensional arraySOLVED

2005-05-06 Thread Richard Lynch
On Thu, May 5, 2005 3:37 am, Angelo Zanetti said: this is quite weird but apparently on the one server if you user $user as a variable name thats what causes the problem. I simply renamed my variable to something else and it worked, I find it strange that it worked on 1 server and not the

Re: [PHP] Socket connection reset by pear

2005-05-06 Thread Richard Lynch
On Thu, May 5, 2005 5:20 am, Martín Marqués said: I'm trying to build some communication aside of the server thin client stuff, with a socket daemon and a socket client. The daemon is the same that everybody can find in the PHP docs (example 1). The client simply opens a connection to the

Re: [PHP] Function shall receive Pointer to Array

2005-05-06 Thread Richard Lynch
On Wed, May 4, 2005 3:29 pm, Fred Rathke said: how can a function get a pointer to an array? This does not work. I use PHP4. Technically, in PHP, they are references, not pointers. There are no pointers in PHP. The difference is too subtle for me to understand it, but there is apparently some

Re: [PHP] multi dimensional array

2005-05-06 Thread Richard Lynch
On Thu, May 5, 2005 2:08 am, Angelo Zanetti said: [sorry for the double-post...] the other server. Its running Apache 1 and the server that works is running Apache 2. Are you sure it's not the broken server running Apache 2?... And possibly PHP 5? And MySQL 4.1? Which means you need mysqli

[PHP] sort by date

2005-05-06 Thread William Stokes
Hello, I made a mistake and stored date information to DB as varchar values (dd.mm.yyy). When I read the DB is it still possible to sort the data by date with SQL query (ORDER BY date ASC)? Or is it nessessary to have the date information to be stored as a date in the DB? Will it work or is

Re: [PHP] Finding out their server type

2005-05-06 Thread Richard Lynch
On Wed, May 4, 2005 4:44 am, Computer Programmer said: I asked a question at Apache.org mailing list about how to hide my server type; and now I'm asking here how can I know someone's server type using PHP? Search http://php.net for headers and remote and you'll find a function or two that

Re: [PHP] XSL:FO + PHP

2005-05-06 Thread Dan Rossi
Have you tried this? It seems HTMLDoc is still free... I've used that tool also... pretty satisfied. http://www.htmldoc.org/software.php I have used htmldoc in the past for this, but feel its a workaround, htmldoc is purely for generating manuals, which is what it does best, i wonder if it

Re: [PHP] if then else

2005-05-06 Thread Richard Lynch
On Wed, May 4, 2005 12:20 am, Anasta said: Can anyone help with a statement, ive tried but it never works. I need to show a value if it is set to a specific value ie: At the moment If a user is logs in a record is updated from 'away' to 'online'---so i want an echo statement to show a value

Re: [PHP] PHP's auto_prepend_file inside an Apache Directory container

2005-05-06 Thread Richard Lynch
On Tue, May 3, 2005 10:38 pm, Dan Trainor said: Hello, all - I've been tinkering around with PHP's auto_prepend_file, specifying this from inside an Apache VirtualHost container, something as such: VirtualHost 1.2.3.4 blah blah blah php_value auto_prepend_file

Re: [PHP] is_numeric

2005-05-06 Thread Richard Lynch
On Wed, May 4, 2005 3:51 am, pete M said: not a php expert but have filed this bug report re validating is_numeric('3e0'); http://bugs.php.net/bug.php?id=32943 Now tried function isnumeric($n) { if (ereg(^[0-9]{1,50}.?[0-9]{0,50}$, $n)) { return true; } else {

Re: [PHP] Access files

2005-05-06 Thread Richard Lynch
On Tue, May 3, 2005 10:57 am, Don said: I am using php 4.3.11 on a RedHat Linux server running Apache. I have a requirement where I need to take a flat file containing formatted data and produce an Access 97 MDB file. Does anyone know of a class or library that will enable me to do this?

Re: [PHP] Check for doubleposts

2005-05-06 Thread Richard Lynch
On Tue, May 3, 2005 9:48 am, Fredrik Arild Takle said: what is the easiest way to check if a person i registered twice in a mysql-table. Lets assume that I only check if the last name is in the table more than once. This is in mysql 4.0 (subquery not an option). Do I have to use arrays and

Re: [PHP] sort by date

2005-05-06 Thread Marek Kilimajer
William Stokes wrote: Hello, I made a mistake and stored date information to DB as varchar values (dd.mm.yyy). When I read the DB is it still possible to sort the data by date with SQL query (ORDER BY date ASC)? Or is it nessessary to have the date information to be stored as a date in the DB?

Re: [PHP] sort by date

2005-05-06 Thread Petar Nedyalkov
On Friday 06 May 2005 08:42, William Stokes wrote: Hello, I made a mistake and stored date information to DB as varchar values (dd.mm.yyy). When I read the DB is it still possible to sort the data by date with SQL query (ORDER BY date ASC)? Or is it nessessary to have the date information to

[PHP] Re: sort by date

2005-05-06 Thread William Stokes
Ok tested this and it won't work. Next question is sql question but anyway... Can I use STR_TO_DATE() or GET_FORMAT(DATE,'EUR') to query and sort dates to web page as a date even if the data is just a string in the db? Probably with GET_FORMAT(DATE,'EUR') it wont work cause it's a varchar

[PHP] Array of objects

2005-05-06 Thread Thomas Hochstetter
Hi there, I need help with arrays. What I want to do is to have an array of the following structure: $mod=array( name=new NameObject()); Then later in the page I want to go $Site = $mod[$_GET[module]] (or something like that) to instantiate a new object.

Re: [PHP] sort by date

2005-05-06 Thread William Stokes
OK. I found that out from MySQL manual. I just don't know how to insert the date formatting function to the query: I quessI need to put STR_TO_DATE() in to the following SQL query: SELECT event_id,name,date,time,place,type,info FROM test_table WHERE (group = '$group') AND (type = 'Game' OR type

Re: [PHP] php/osx and firebird

2005-05-06 Thread Jochem Maas
James wrote: I've attempted to access a firebird database living on an osx/apache/php machine. When I'm running the following script, ?php ini_set(magic_quotes_sybase, On); $host = 'localhost:/Library/Frameworks/Firebird.framework/Resources/examples/employee.fdb'; for portability and

RE: [PHP] Re: sort by date

2005-05-06 Thread Mark Rees
I strongly recommend that you convert the db column to the datetime datatype if at all possible. However if you do wish to do it this way, read: http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html And if you can't get it to work, bear in mind that STR_TO_DATE() is available as of

Re: [PHP] multi dimensional arraySOLVED

2005-05-06 Thread Angelo Zanetti
thanks richard. In the PHP.ini its set to on but in the .htaccess file we've set it to OFF. could this still be causing the problem?? thanks again Angelo Zanetti Z Logic www.zlogic.co.za [c] +27 72 441 3355 [t] +27 21 469 1052 Richard Lynch wrote: On Thu, May 5, 2005 3:37 am, Angelo Zanetti

Re: [PHP] sort by date

2005-05-06 Thread Petar Nedyalkov
On Friday 06 May 2005 11:17, William Stokes wrote: OK. I found that out from MySQL manual. I just don't know how to insert the date formatting function to the query: I quessI need to put STR_TO_DATE() in to the following SQL query: What about DATE_FORMAT()? SELECT

Re: [PHP] sort by date

2005-05-06 Thread eoghan
William Stokes wrote: OK. I found that out from MySQL manual. I just don't know how to insert the date formatting function to the query: I quessI need to put STR_TO_DATE() in to the following SQL query: SELECT event_id,name,date,time,place,type,info FROM test_table WHERE (group = '$group') AND

[PHP] payment gateways slightly OT

2005-05-06 Thread Angelo Zanetti
Hi guys, I just want to find out from you which payment gateways you use and what experiences good and bad have you had with them. I'm looking for a reliable payment gateway to handle credit card processing Apologies for the OT post thanks in advance -- Angelo Zanetti Z Logic

Re: [PHP] Array of objects

2005-05-06 Thread Jochem Maas
Thomas Hochstetter wrote: Spiraleye.Studios Hi there, I need help with arrays. What I want to do is to have an array of the following structure: $mod=array( name=new NameObject()); ^ -- looks like your single quotes got mangled in my email client. class Test { function Test($str

Re: [PHP] Re: Objects in Arrays (without the READ prompt)

2005-05-06 Thread Jochem Maas
Mathieu Dumoulin wrote: Stuart Nielson wrote: Sorry to everyone about the stupid READ notification on the posting. I some people on this list see it as sport/duty to send a reply to all read-notifications from list posts... I wonder how many you got :-) completely forgot that it was enabled.

[PHP] newsgroup

2005-05-06 Thread Anasta
Anyone know a good mysql newsgroup to compliment thid php newsgroup -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is this the correct syntax

2005-05-06 Thread Jochem Maas
Mathieu Dumoulin wrote: Prathaban look carefully, we are here to give acurate info and you are giving mistaken information. The $id thing is wrong, you'll actually create a parse error X| a more correct answer would have been: there is not way to know for sure whether the syntax is correct (

[PHP] compiling dynamic extensions without root access

2005-05-06 Thread Dan Rossi
I was going to ask, without the need of requesting our admins to recompile php all the time is there a way in the meantime to compile extensions and load them dynamically without the need for root access to some of the php libraries ? I have always compiled in personally so have never tried

Re: [PHP] newsgroup

2005-05-06 Thread Ryan A
Hey, Check out: http://lists.mysql.com/ Cheers, Ryan On 5/6/2005 1:49:18 PM, Anasta ([EMAIL PROTECTED]) wrote: Anyone know a good mysql newsgroup to compliment thid php newsgroup -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Array of objects

2005-05-06 Thread Jochem Maas
Thomas Hochstetter wrote: Hi Jochem, Thanks for that. The eval story was just a desperate attempt ... anyway, I know references a bit from my c++ times. I am not sure how that will help in this case though. Maybe you want to share with me your thoughts on that. well compare: $a = new Test; //

Re: [PHP] payment gateways slightly OT

2005-05-06 Thread Greg Donald
On 5/6/05, Angelo Zanetti [EMAIL PROTECTED] wrote: I just want to find out from you which payment gateways you use and what experiences good and bad have you had with them. I'm looking for a reliable payment gateway to handle credit card processing I've coded against Authorize.net (AIM and

Re: [PHP] newsgroup

2005-05-06 Thread Jochem Maas
Anasta wrote: Anyone know a good mysql newsgroup to compliment thid php newsgroup er... http://lists.mysql.com/ (google could have told you this) also [EMAIL PROTECTED] is a good list to ask questions specific to using DBs with php. that said you can often get away with posting mysql questions

RE: [PHP] Array of objects

2005-05-06 Thread Thomas Hochstetter
Thanks, will do ;-) (as of this mail) -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 06 May 2005 03:08 PM To: Thomas Hochstetter Cc: [php] PHP General List Subject: Re: [PHP] Array of objects Thomas Hochstetter wrote: Hi Jochem, Thanks for that. The eval story

Re: [PHP] newsgroup

2005-05-06 Thread bala chandar
check out www.mysql.com On 5/6/05, Anasta [EMAIL PROTECTED] wrote: Anyone know a good mysql newsgroup to compliment thid php newsgroup -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- bala balachandar muruganantham blog lynx

Re: [PHP] Valid email address syntax script?

2005-05-06 Thread Jochem Maas
JM wrote: Does anyone have a nice email address syntax checking script they'd like to share? Regular expression-based anyone? TIA. yes,yes,yes,cheers. the email regexp passes Richard Lynch's email addr (check the archives :-), have fun (sorry if the line wrapping craps out)... ?php /** *

Re: [PHP] payment gateways slightly OT

2005-05-06 Thread bala chandar
On 5/6/05, Angelo Zanetti [EMAIL PROTECTED] wrote: Hi guys, I just want to find out from you which payment gateways you use and what use paypal experiences good and bad have you had with them. I'm looking for a reliable payment gateway to handle credit card processing Apologies for the

[PHP] php.ini uploads

2005-05-06 Thread Jon Aston
this has got to be something easy but I was uploading to a folder on a windows PC c:\upload but I updated php and forgot to backup my ini file. I have tried with quotes without quotes as well as a relational address to the folder in my ini file and I cannot get any uploads into the folder. this

[PHP] array diff with both values returned

2005-05-06 Thread blackwater dev
Hello, Is there a good way to get the difference in two arrays and have both values returned? I know I can use array_dif to see what is in one and not the other but...I need it to work a bit differently. I have: $array1=array(name=fred,gender=m,phone==555-);

[PHP] Re: php.ini uploads

2005-05-06 Thread Mehdi Achour
Jon Aston wrote: this has got to be something easy but I was uploading to a folder on a windows PC c:\upload but I updated php and forgot to backup my ini file. I have tried with quotes without quotes as well as a relational address to the folder in my ini file and I cannot get any uploads into

[PHP] Re: php.ini uploads

2005-05-06 Thread Jon Aston
Yes I did restart apache after each setting change. - Original Message - From: Mehdi Achour [EMAIL PROTECTED] To: Jon Aston [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, May 06, 2005 9:38 AM Subject: Re: php.ini uploads Jon Aston wrote: this has got to be something

Re: [PHP] newsgroup

2005-05-06 Thread Jason Barnett
Jochem Maas wrote: ... ** as in 'people who compulsively want to help newbies', rather than 'people that are newly infected by the helping virus' (of which there are many on this list also ;-). Hey, I resemble that remark! :P -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: array diff with both values returned

2005-05-06 Thread pete M
http://uk2.php.net/manual/en/function.array-diff.php http://uk2.php.net/manual/en/function.array-diff-assoc.php Blackwater Dev wrote: Hello, Is there a good way to get the difference in two arrays and have both values returned? I know I can use array_dif to see what is in one and not the other

Re: [PHP] compiling dynamic extensions without root access

2005-05-06 Thread Greg Donald
On 5/6/05, Dan Rossi [EMAIL PROTECTED] wrote: is there a way in the meantime to compile extensions and load them dynamically without the need for root access to some of the php libraries ? You can compile/install extensions anywhere and load them with dl(). -- Greg Donald Zend Certified

Re: [PHP] php.ini uploads

2005-05-06 Thread bala chandar
On 5/6/05, Jon Aston [EMAIL PROTECTED] wrote: this has got to be something easy but I was uploading to a folder on a windows PC c:\upload but I updated php and forgot to backup my ini file. I have tried with quotes without quotes as well as a relational address to the folder in my ini file

Re: [PHP] compiling dynamic extensions without root access

2005-05-06 Thread bala chandar
On 5/6/05, Dan Rossi [EMAIL PROTECTED] wrote: I was going to ask, without the need of requesting our admins to recompile php all the time is there a way in the meantime to compile extensions and load them dynamically without the need for root access to some of the php libraries ? I have always

Re: [PHP] array diff with both values returned

2005-05-06 Thread Philip Hallstrom
Is there a good way to get the difference in two arrays and have both values returned? I know I can use array_dif to see what is in one and not the other but...I need it to work a bit differently. I have: $array1=array(name=fred,gender=m,phone==555-);

[PHP] php-snmp-4.3.11-2.5 for RH8?

2005-05-06 Thread Rob Kudyba
We are experiencing the 'usmAES192PrivProtocol in Unknown' error in the Apache error log due to a conflict between Net-SNMP 5.2.1 and the php-snmp package. Well of course, Fedora 3 has an update available at (and detailed) here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=155975 Check

[PHP] need class to send email w/attachments

2005-05-06 Thread Bosky, Dave
Any recommendations for PHP classes that will send email messages with attachments? Thanks, Dave HTC Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or

[PHP] Re: need class to send email w/attachments

2005-05-06 Thread Manuel Lemos
Hello, on 05/06/2005 01:44 PM Dave Bosky said the following: Any recommendations for PHP classes that will send email messages with attachments? This one is very popular and lets you send messages with attachments from local or remote files or from dynamically generated strings, with automatic

[PHP] Reducing size of htm output

2005-05-06 Thread Kirsten
I need to reduce the size of the HTM generated by a PHP script for faster transmission. I'm actually using ob_start(ob_gzhandler) but I also need some function to reduce the size of javascript blocks, deletion of unnecesary blanks, etc. For example, Code A: headscript function any(){ somecode;

[PHP] Re: need class to send email w/attachments

2005-05-06 Thread Matthew Weier O'Phinney
* Dave Bosky [EMAIL PROTECTED]: Any recommendations for PHP classes that will send email messages with attachments? PEAR::Mail + PEAR::Mail_Mime -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association|

Re: [PHP] need class to send email w/attachments

2005-05-06 Thread Philip Hallstrom
Any recommendations for PHP classes that will send email messages with attachments? http://pear.php.net/package/Mail http://pear.php.net/package/Mail_Mime or http://phpmailer.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need class to send email w/attachments

2005-05-06 Thread Rory Browne
Try www.phpclasses.org/phpmailer I've never used it but it's mentioned quite a lot. On 5/6/05, Bosky, Dave [EMAIL PROTECTED] wrote: Any recommendations for PHP classes that will send email messages with attachments? Thanks, Dave HTC Disclaimer: The information contained in this

Re: [PHP] need class to send email w/attachments

2005-05-06 Thread Mark Cain
You could try this link. I know that you will find something there: http://www.phpclasses.org/ Mark Cain - Original Message - From: Bosky, Dave [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, May 06, 2005 12:44 PM Subject: [PHP] need class to send email w/attachments

Re: [PHP] compiling dynamic extensions without root access

2005-05-06 Thread Rory Browne
yes you can do if u have compiled apache to support apache dynamic extensions. It doesn't matter how you compile apache. It's how you've configured PHP, and what type of server it's running on, how the server handles multiple clients. Zeus, and IIS don't AFAIK support dl(). I reckon it's safe

[PHP] Re: need class to send email w/attachments

2005-05-06 Thread Jon Aston
I have used PHPMailer. It is easy to use and works great. If you happen to be on a windows computer I did find that you may need to turn off the zend optimizer in your php.ini file. For some reason with the Zend turned on I was getting an error at the end of my script run but it had no affect

[PHP] Re: php.ini uploads

2005-05-06 Thread Jon Aston
It was as I suspected. Operator error. upload_tmp_dir = folder notice the space after the = as soon as I noticed and removed the space several of the variations that I had tried worked fine... Thanks for the suggestions. Jon Aston [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] this

Re: [PHP] need class to send email w/attachments

2005-05-06 Thread Rahul S. Johari
Ave, Try http://www.phpclasses.org/mimemessage I used it for my business application everyday, works great and is very efficient. Rahul S. Johari Coordinator, Internet Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909

Re: [PHP] Reducing size of htm output

2005-05-06 Thread Rasmus Lerdorf
Kirsten wrote: I need to reduce the size of the HTM generated by a PHP script for faster transmission. I'm actually using ob_start(ob_gzhandler) but I also need some function to reduce the size of javascript blocks, deletion of unnecesary blanks, etc. For example, Code A: headscript

Re: [PHP] multi dimensional arraySOLVED

2005-05-06 Thread Marek Kilimajer
Angelo Zanetti wrote: thanks richard. In the PHP.ini its set to on but in the .htaccess file we've set it to OFF. could this still be causing the problem?? run phpinfo() inside the directory thanks again Angelo Zanetti Z Logic www.zlogic.co.za [c] +27 72 441 3355 [t] +27 21 469 1052 Richard Lynch

Re: [PHP] Reducing size of htm output

2005-05-06 Thread Marek Kilimajer
Kirsten wrote: I need to reduce the size of the HTM generated by a PHP script for faster transmission. I'm actually using ob_start(ob_gzhandler) but I also need some function to reduce the size of javascript blocks, deletion of unnecesary blanks, etc. For example, Code A: headscript function

Re: [PHP] Socket connection reset by pear

2005-05-06 Thread =?iso-8859-1?q?Mart=EDn_Marqu=E9s?=
El Vie 06 May 2005 01:50, Richard Lynch escribió: On Thu, May 5, 2005 5:20 am, Martín Marqués said: I'm trying to build some communication aside of the server thin client stuff, with a socket daemon and a socket client. The daemon is the same that everybody can find in the PHP docs