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 (htt

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 func

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 Ne

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 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 since it

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... -e

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 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 using it w

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

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:
Re: [PHP] multi dimensional arraySOLVED

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

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: > > > fun

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

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

[PHP] Re: php.ini uploads

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]

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

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 on

Re: [PHP] compiling dynamic extensions without root access

> 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

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

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: Sent: Friday, May 06, 2005 12:44 PM Subject: [PHP] need class to send email w/attachments Any recommendations for

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

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

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

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

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

* 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| ht

[PHP] Reducing size of htm output

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: function any(){ somecode; }

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

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 de

[PHP] need class to send email w/attachments

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] php-snmp-4.3.11-2.5 for RH8?

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

Re: [PHP] array diff with both values returned

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-"); $array2=array("name"=>"fred

Re: [PHP] compiling dynamic extensions without root access

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 a

Re: [PHP] php.ini uploads

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

Re: [PHP] compiling dynamic extensions without root access

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 Certifie

[PHP] Re: array diff with both values returned

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 but

Re: [PHP] newsgroup

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, visit:

[PHP] Re: php.ini uploads

Yes I did restart apache after each setting change. - Original Message - From: "Mehdi Achour" <[EMAIL PROTECTED]> To: "Jon Aston" <[EMAIL PROTECTED]> Cc: Sent: Friday, May 06, 2005 9:38 AM Subject: Re: php.ini uploads Jon Aston wrote: > this has got to be something easy but I was uplo

[PHP] Re: php.ini uploads

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 the

[PHP] array diff with both values returned

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-"); $array2=array("na

[PHP] php.ini uploads

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 i

Re: [PHP] payment gateways slightly OT

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

Re: [PHP] Valid email address syntax script?

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)... * @copyright Cop

Re: [PHP] newsgroup

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

RE: [PHP] Array of objects

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 stor

Re: [PHP] newsgroup

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 here

Re: [PHP] payment gateways slightly OT

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] Array of objects

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] newsgroup

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: ht

[PHP] compiling dynamic extensions without root access

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 it.

Re: [PHP] is this the correct syntax

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 ( le

[PHP] newsgroup

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] Re: Objects in Arrays (without the READ prompt)

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. This

Re: [PHP] Array of objects

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($st

[PHP] payment gateways slightly OT

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 www.zlogic.co.za

Re: [PHP] sort by date

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 (t

Re: [PHP] sort by date

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 event_id,name,date,t

Re: [PHP] multi dimensional arraySOLVED

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] Re: sort by date

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 MyS

Re: [PHP] php/osx and firebird

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

Re: [PHP] sort by date

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

[PHP] Array of objects

  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.

[PHP] Re: sort by date

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 fiel

Re: [PHP] sort by date

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 informati

Re: [PHP] sort by date

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? W

Re: [PHP] Check for doubleposts

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

Re: [PHP] Access files

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] is_numeric

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] PHP's auto_prepend_file inside an Apache Directory container

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: > > > blah > blah > blah > php_value auto_prepend_file /super_duper_

Re: [PHP] if then else

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 va

Re: [PHP] XSL:FO + PHP

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 ha

Re: [PHP] Finding out their server type

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 th