Re: [PHP] issue a value on header, not working..

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 11:59:14 +0800, Louie Miranda [EMAIL PROTECTED] wrote: This outputs a filename on $catchresult, and im working on redirecting it to that file via header. But when ever i run this the value of $catchresult is not being pass to the header() on php. $catchresult =

[PHP] phpize missing files

2004-07-27 Thread Thijs Lensselink
Good day php people, Hope somebody can help me out a bit. I'm trying to compile 'apc' on my OpenBSd box. The install file reads: $ gunzip -c apc_x.y.tar.gz | tar xf - $ cd apc_x.y $ /usr/local/php/bin/phpize But when i try to run phpize i get some errors: /usr/local/bin/phpize

Re: [PHP] issue a value on header, not working..

2004-07-27 Thread Louie Miranda
ah ic, thanks. it now works fine. thanks also for the tip! :) On Mon, 26 Jul 2004 23:29:06 -0700, Justin Patrin [EMAIL PROTECTED] wrote: On Tue, 27 Jul 2004 11:59:14 +0800, Louie Miranda [EMAIL PROTECTED] wrote: This outputs a filename on $catchresult, and im working on redirecting it to

[PHP] Re: select * on all current?

2004-07-27 Thread Louie Miranda
ok, just removed the distinct syntax On Mon, 26 Jul 2004 23:51:43 -0500, mos [EMAIL PROTECTED] wrote: At 10:45 PM 7/26/2004, you wrote: if I understand you correctly, this should do it. select distinct office, max(dateposted) from table group by office Just one more thing. You don't

[PHP] Re: select * on all current?

2004-07-27 Thread Louie Miranda
now its working, i was wondering if we can do max(dateposted) on update? mysql update datafiles set status = '1' where max(dateposted); ERROR : Invalid use of group function hmm? seems, not to be working at all. On Tue, 27 Jul 2004 14:43:58 +0800, Louie Miranda [EMAIL

[PHP] Re: select * on all current?

2004-07-27 Thread Lester Caine
Louie Miranda wrote: now its working, i was wondering if we can do max(dateposted) on update? mysql update datafiles set status = '1' where max(dateposted); ERROR : Invalid use of group function WHERE dateposted = max(dateposted); Perhaps ( works in Firebird :) ) -- Lester

[PHP] Mail System Error - Returned Mail

2004-07-27 Thread nick
The original message was included as attachment -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] totally new to PHP

2004-07-27 Thread Paul Kain
I have never programmed anything I know html and really want to know php where is the best place to go for some really basic tutorials to start with ? Thank in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: totally new to PHP

2004-07-27 Thread Jason Barnett
phpfreaks.com and codewalkers.com Or check the mailing list archives, others have been mentioned before. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] totally new to PHP

2004-07-27 Thread Bruno Santos
Paul Kain wrote: I have never programmed anything I know html and really want to know php where is the best place to go for some really basic tutorials to start with ? Thank in advance Hello. There are a lots of tutorials around the net. www.phpbuilder.com --- Very nice site for developers

Re: [PHP] Retrieve The Last Record in a Table

2004-07-27 Thread Harlequin
Thanks for that Jason Any suggestions on how I would retrieve the next to last entry...? The last time prior to this session that the user logged in...? -- - Michael Mason Arras People www.arraspeople.co.uk - Jason Davidson [EMAIL

Re: [PHP] URGENT: Space char in rewriterule

2004-07-27 Thread Miroslav Hudak (php/ml)
I think, the point, Curt wanted to point out was, that URI CAN NOT contain SPACE character and all SPACE characters (ord 32) are converted to %20 ... thus, space character in rewrite rule will lead to bogus URI... thus, browser will send %20 instead and... dunno if apache will convert it to

[PHP] Re: Usng Session Vaiable in WHERE Statement

2004-07-27 Thread Sheawh
$MembersDataQry = SELECT * FROM MembersData WHERE UserID=' .$_SESSION['logname']. ' ; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Organising PHP projects

2004-07-27 Thread Howard Miller
I have come to PHP from Java and am finding managing large/enterprise projects using lots of includes and suchlike rather tricky and error prone. Are there any projects and/or best-practice documentation for describing a good way to organise large projects with lots of files and/or classes. I

[PHP] is there any function can list all files in a directory?

2004-07-27 Thread Sheawh
thanks all -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] phpmyadmin and UTF

2004-07-27 Thread Pete
Guten Morgen habe gerade im Apache den Default Zeichensatz auf UTF-8 gesetzt und in der phpmyadmin ebenfalls. In der phpadmin GUI habe ich de-utf-8 ausgewählt. Nun kommt folgende Fehlermeldung von phpmyadmin: Die PHP-Erweiterungen iconv und recode, welche für die Zeichensatzkonvertierung

[PHP] Re: is there any function can list all files in a directory?

2004-07-27 Thread Howard Miller
Sheawh wrote: thanks all http://www.php.net/manual/en/ref.filesystem.php ...have a look at the user submitted examples at the bottom of the page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: is there any function can list all files in a directory?

2004-07-27 Thread Sheawh
i found this one! http://hk2.php.net/manual/en/function.opendir.php Sheawh [EMAIL PROTECTED] ¦b¶l¥ó news:[EMAIL PROTECTED] ¤¤¼¶¼g... thanks all -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: phpmyadmin and UTF

2004-07-27 Thread Pete
Sorry, here is the English version: I have just set the Apache Default Char Set to UTF-8. Same thing in the phpmyadmin config file. I chose de-utf-8 in the phpmyadmin GUI. When I try to look at a particular database the following error comes up. Can not load iconv or recode extension needed

[PHP] Re: Organising PHP projects

2004-07-27 Thread Jason Barnett
One of the new options that I am playing with is the __autoload() handler. If you keep each of your main classes in a separate file then it will try to load the class file the first time you try to create an instance of an undefined class. There is a little bit of documentation out there about

[PHP] Creating a PHP5 RPM

2004-07-27 Thread Marcus Bointon
I normally compile PHP straight from the regular source, however, this means that RPM loses track of what PHP version is installed on RedHat Linux (EL3), causing dependency and version mismatch problems. So it appears that I need to build an RPM from the normal source, then install it with RPM.

[PHP] Printing using php script CRON

2004-07-27 Thread Vern
I hate to keep beating a dead horse, but this horse is not quite dead yet. I need to print a php script from a web site using CRON. I'm thinking something like this should work but I don't know enough about it to say that it would. I know that I can run a php script using CRON as such: lynx

RE: [PHP] Printing using php script CRON

2004-07-27 Thread Jay Blanchard
[snip] I hate to keep beating a dead horse, but this horse is not quite dead yet. I need to print a php script from a web site using CRON. I'm thinking something like this should work but I don't know enough about it to say that it would. I know that I can run a php script using CRON as such:

RE: [PHP] phpmyadmin and UTF

2004-07-27 Thread Jay Blanchard
[snip] Guten Morgen habe gerade im Apache den Default Zeichensatz auf UTF-8 gesetzt und in der phpmyadmin ebenfalls. In der phpadmin GUI habe ich de-utf-8 ausgewählt. Nun kommt folgende Fehlermeldung von phpmyadmin: Die PHP-Erweiterungen iconv und recode, welche für die

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
If you have a printer attached to the server from where the cron is running you might try lynx --dump http://yoursite.com/cronjob.php lpt1 or something similar. Not tested. Actually it's a netwotl printer and in order to print the job I need to type the following on the box: lpr -P

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Jason Wong
On Tuesday 27 July 2004 20:33, Vern wrote: If you have a printer attached to the server from where the cron is running you might try lynx --dump http://yoursite.com/cronjob.php lpt1 or something similar. Not tested. Actually it's a netwotl printer and in order to print the job I need to

[PHP] Status

2004-07-27 Thread renuka
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing using php script CRON

2004-07-27 Thread James E Hicks III
On Tuesday 27 July 2004 08:33 am, Vern wrote: Actually it's a netwotl printer and in order to print the job I need to type the following on the box:     lpr -P hp1300n myfilename.txt So I'm not exctaly sure how I can do that This works great for me. Except that I use lp -d printername

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
One would think this should be really simple but it's not. I need to retrieve the file somewhere on the internet. I read somewhere in order to read a php script's output you need to add the php command in front, as such: php http://yoursite.com/cronjob.php | lpr -P hp1300n however I am getting

RE: [PHP] Printing using php script CRON

2004-07-27 Thread Jay Blanchard
[snip] One would think this should be really simple but it's not. I need to retrieve the file somewhere on the internet. I read somewhere in order to read a php script's output you need to add the php command in front, as such: php http://yoursite.com/cronjob.php | lpr -P hp1300n however I am

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
I feel like I taking a hammer and well I'm sure you all know the feeling. cURL does help me to get the file and save the file somewhere locally, however printing a page like this gives me all the html code (i.e. html, etc) and I need the report that is being displayed to the browser in all

[PHP] MathML

2004-07-27 Thread EE
Dears, I wounder if PHP support MathML? I not really not sure if actually if it is browser function or server-side function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MathML

2004-07-27 Thread Yann Larrivee
Hi, I know there is an extension to render mathml with php4. You can find more information about it here. http://www.math.mcgill.ca/~drew/mathmlrender/ Yann Larrivee On Tue, 2004-07-27 at 09:50, EE wrote: Dears, I wounder if PHP support MathML? I not really not sure if actually if it is

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Ed Curtis
You could try this: http://marginalhacks.com/Hacks/html2jpg/ Save the page as an image, and then run it through the printer. It does have some overhead though to get it done. Hope it helps, Ed On Tue, 27 Jul 2004, Vern wrote: I feel like I taking a hammer and well I'm sure you all know

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
Seems to me that this needs XWindows or something install, am I incorrect? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php paypal

2004-07-27 Thread Mike R
Does anyone know if it is possible to pass a variable in the URL to the return page when using paypal? Meaning, when someone is done a transaction in paypal and they return the merchant's site, can a variable be passed all of the way through back to the merchant's site? :) -Mike -- PHP

Re: [PHP] Retrieve The Last Record in a Table

2004-07-27 Thread Jason Davidson
You could LIMIT 2, using the order on a column, the first record would be last, the second would be second last. Kinda dirty way to do it, however, off hand, cant think of an alternative, ill post it if i do think of one though. Jason On Tue, 27 Jul 2004 09:59:21 +0100, Harlequin [EMAIL

[PHP] mysql and mysqli

2004-07-27 Thread Marcus Bointon
I've got mysql 4.1.13 installed on RH EL 3 and I'm trying to build PHP5 against it with both mysql and mysqli extensions. It's quite happy to config and make with --with-mysql=/usr/local or --with-mysqli, but if I specify them both together (in either order), I get thousands of errors like this:

RE: [PHP] php paypal

2004-07-27 Thread Jason Merrique
You mean like the credit card number? :\ -Original Message- From: Mike R [mailto:[EMAIL PROTECTED] Sent: 27 July 2004 16:12 To: [EMAIL PROTECTED] Subject: [PHP] php paypal Does anyone know if it is possible to pass a variable in the URL to the return page when using paypal?

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Burhan Khalid
Vern wrote: One would think this should be really simple but it's not. wget -O -q - http://www.domain.com/file.php | lpr -P hp1300n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php paypal

2004-07-27 Thread Jason Davidson
Might be easier to use session vars to track whatever it is your tracking. Jason On Tue, 27 Jul 2004 11:11:31 -0400, Mike R [EMAIL PROTECTED] wrote: Does anyone know if it is possible to pass a variable in the URL to the return page when using paypal? Meaning, when someone is done a

Re: [PHP] Retrieve The Last Record in a Table

2004-07-27 Thread JOHN MEYER
Or you could retrieve that information prior to inserting the login information, say, as soon as they type in their login name, store that, then present it. From: Jason Davidson [EMAIL PROTECTED] To: Harlequin [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] Retrieve The Last Record

RE: [PHP] php paypal

2004-07-27 Thread Mike R
That's trueI didn't even think of that. Not a cc number, but, say, an invoice number that the person starts with before they go off to paypal and return from paypal with the same invoice number so that I can then do more things with the user (the invoice number being unique). :) Thanks,

[PHP] Installing PEAR on Windows

2004-07-27 Thread webmaster
I've had no luck with the PEAR General List... so... I've successfully manually installed PEAR onto my windows server after trying many attempts at installing it properly - however, it's prooving a pain in the arse to upgrade the packages, and install any new ones. So, can anyone assist in why

[PHP] Re: php paypal

2004-07-27 Thread Steve Douville
If you have a business account there, you can use the PayPal API which does return values to you when the transaction is complete. Take a read through the PayPal docs, it's pretty well laid out there. Mike R [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anyone know if it is

RE: [PHP] php paypal

2004-07-27 Thread Vail, Warren
Did you think of saving the information (invoice number) in a session or cookie before sending them off to paypal, for use when the user returns? Warren Vail -Original Message- From: Mike R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 8:51 AM To: Jason Davidson Cc: [EMAIL

[PHP] Re: PHP5 for Fedora Core 2

2004-07-27 Thread PHPDiscuss - PHP Newsgroups and mailing lists
C.F. Scheidecker Antunes wrote: Hello all, Are there any pre compiled rpm packages from Fedora Core 2 yet? If not, I will most likely built it myself. Thanks. Any chance you can send it to me when you finish? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Retrieve The Last Record in a Table

2004-07-27 Thread Curt Zirzow
* Thus wrote Harlequin: I would like to retrieve the last entry in a login table and present that to a user so they can verify the date we have when they last logged in. retrieving the last record is a lot of overhead, instead add a 'last logged in' field to the user table. retrieve the field

Re: [PHP] Installing PEAR on Windows

2004-07-27 Thread Matt M.
Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\ www\pear\Archive\Tar.php on line 21 Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line 21 pear is

[PHP] Re: Creating a PHP5 RPM

2004-07-27 Thread Chris Martin
Marcus Bointon wrote: I normally compile PHP straight from the regular source, however, this means that RPM loses track of what PHP version is installed on RedHat Linux (EL3), causing dependency and version mismatch problems. So it appears that I need to build an RPM from the normal source, then

[PHP] Re: php paypal

2004-07-27 Thread Chris Martin
Vail, Warren wrote: Did you think of saving the information (invoice number) in a session or cookie before sending them off to paypal, for use when the user returns? Warren Vail -Original Message- From: Mike R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 8:51 AM To: Jason

Re: [PHP] Re: Creating a PHP5 RPM

2004-07-27 Thread Brent Clements
The easiest thing to do is to take the existing Redhat EL3 php source rpm, install and get the php spec file. Edit that spec file and modify it for php5. Then copy the php 5.0 tar.gz file over to /usr/src/redhat/SOURCES and then run rpmbuild -bb php.spec or whatever you named your php spec file.

Re: [PHP] Re: JavaScript conversion to PHP code...

2004-07-27 Thread Scott Fletcher
Good thinking... I like without the substr() because substr() take more time than we want it to be FletchSOD Matt M. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --snip-- $char_code = strpos($char_set,(substr($input,$loop,1))); --snip-- even a little shorter $char_code

Re: [PHP] Extra byte added to PDF streaming file

2004-07-27 Thread Larry E . Ullman
I've seen cases where extra buffer content gets added to the downloaded file. The problem was fixed by deleting any existing buffer before sending the file to the client. Not sure that will solve the problem but it's worth a shot. How does one delete an existing buffer? ob_end_flush();?

Re: [PHP] Apache 2 and PHP for Production?

2004-07-27 Thread Marten Lehmann
Hello, And following the last line - I'm still running Apache2 with PHP5 on Windows on an increasing number of sites, without a single problem to date ;) I switched to Apache 2 and PHP 5.0.0 a week ago and hand no problems so far (several hundred thousand hits each day). Apache 2 is running in

[PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Gianni Pirini
Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? If i want to redirect 300 pages, for example, to one page index.php?id=32 and include in this page, in base of the id value, 300 different pages, i can have some

[PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Gianni Pirini
Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? If i want to redirect 300 pages, for example, to one page index.php?id=32 and include in this page, in base of the id value, 300 different pages, i can have some

Re: [PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 15:36:13 +0200, Gianni Pirini [EMAIL PROTECTED] wrote: Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? If i want to redirect 300 pages, for example, to one page index.php?id=32 and

Re: [PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread raditha dissanayake
Gianni Pirini wrote: Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? Depends on what you are trying to achieve. But if you have a lot of cases in your switch - that probably means your design can be

Re: [PHP] Extra byte added to PDF streaming file

2004-07-27 Thread Scott Taylor
Larry E. Ullman wrote: I've seen cases where extra buffer content gets added to the downloaded file. The problem was fixed by deleting any existing buffer before sending the file to the client. Not sure that will solve the problem but it's worth a shot. How does one delete an existing buffer?

[PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Gianni Pirini
Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? If i want to redirect 300 pages, for example, to one page index.php?id=32 and include in this page, in base of the id value, 300 different pages, i can have some

[PHP] xored TruStudio PHP Editor

2004-07-27 Thread Daryl Meese
Does anyone know how to get the hover functionality working in xored's webstudio/trustudio for PHP. TIA, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a brian I can pick?

2004-07-27 Thread Rory McKinley
Tom Ray [Lists] wrote: Hey all- I've run into a small bump in some code I'm writing for a membership database. The first thing that needs to be done is an index of all states in the US with members. The fun part is that the state information is stored as the abbreviation in the database (ie MI,

[PHP] destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
See the following example: ?PHP $oObjectA = array(); $oObjectB = array(); for(i=0;i10;i++) { $oObjectA[$i] = new foo(); $oObjectB[$i] = $oObjectA[$i]; } ? How do I remove an element in the oObjectA array without destroying the object? I do not want to clone any object. If I call

[PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
I am correcting myself... ?PHP class foo {} $oObjectA = array(); $oObjectB = array(); for($i=0;$i2;$i++) { $oObjectA[$i] = new foo(); $oObjectB[$i] = $oObjectA[$i]; } unset($oObjectA[1]); var_dump($oObjectA); var_dump($oObjectB); ? will output: array(1) { [0]= object(foo)#1 (0) { } }

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Matt M.
On Tue, 27 Jul 2004 21:22:05 +0200, Erik Franzén [EMAIL PROTECTED] wrote: I am correcting myself... ?PHP class foo {} $oObjectA = array(); $oObjectB = array(); for($i=0;$i2;$i++) { $oObjectA[$i] = new foo(); $oObjectB[$i] = $oObjectA[$i]; } unset($oObjectA[1]);

[PHP] freeTDS

2004-07-27 Thread Edward Peloke
My web host recompiled php with the freeTDS library for me so that I can use the php mssql extensions but it still doesn't seem to work. He has told me that I can change the configuration file...what needs to be done? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] freeTDS

2004-07-27 Thread Matt M.
My web host recompiled php with the freeTDS library for me so that I can use the php mssql extensions but it still doesn't seem to work. He has told me that I can change the configuration file...what needs to be done? any error messages? Can you use tsql to connect to the mssql databases?

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
$oObjectB[$i] = $oObjectA[$i]; The above statement does not matter, because in PHP5 objects are referenced by handle, and not by value. Look at this example: ?PHP class foo {} $a = new foo(); $b = $a; unset($a); var_dump($b); ? This will output: object(foo)#1 (0) { } The object is not destroyed!?

RE: [PHP] freeTDS

2004-07-27 Thread Edward Peloke
I was simply using a script which attempts to use the mssql_connect function yet I still get the error that it is undefined http://mwvre.ht-tech.net/dbtest.php -Original Message- From: Matt M. [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 3:52 PM To: Edward Peloke Cc:

Re: [PHP] freeTDS

2004-07-27 Thread Matt M.
I was simply using a script which attempts to use the mssql_connect function yet I still get the error that it is undefined http://mwvre.ht-tech.net/dbtest.php if you do a phpinfo() do you see any mssql information? php needs to be compiled with freetds http://us4.php.net/mssql -- PHP

Re: [PHP] exists max number of case block in switch steatment ?

2004-07-27 Thread Alister
Gianni Pirini wrote: Hello !! First of all, sorry for my english... I've one question, what is a reasonable max number of case block in a switch steatment? If i want to redirect 300 pages, for example, to one page index.php?id=32 and include in this page, in base of the id value, 300 different

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Matthew Sims
The object is not destroyed!? How do I destroy it without calling unset($b)? Not sure if this is your solution but have you looked in to destructors? Half down this page it explains: http://us4.php.net/migration5.oop -- --Matthew Sims --http://killermookie.org -- PHP General Mailing List

Re: [PHP] freeTDS

2004-07-27 Thread James E Hicks III
On Tuesday 27 July 2004 03:54 pm, Edward Peloke wrote: My web host recompiled php with the freeTDS library for me so that I can use the php mssql extensions but it still doesn't seem to work. He has told me that I can change the configuration file...what needs to be done? Just guessing here,

RE: [PHP] freeTDS

2004-07-27 Thread Edward Peloke
no, I don't see any mssql info...and yes, they said they did recompile with freetds. If there anything I have to change in the freetds conf file or in php.ini? -Original Message- From: Matt M. [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 4:05 PM To: Edward Peloke Cc:

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Curt Zirzow
* Thus wrote Erik Franzn: $oObjectB[$i] = $oObjectA[$i]; The above statement does not matter, because in PHP5 objects are referenced by handle, and not by value. This is not true. PHP 5 passes objects by reference to functions only. Assignments are treated the same way as php4 externally.

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Matthew Sims
This is not true. PHP 5 passes objects by reference to functions only. Assignments are treated the same way as php4 externally. ?php /* note: no $f */ function testfoo($f) { $f-foo = 'testfoo'; } class foo { public $foo; } /* object is passed by reference */ $a = new foo();

Re: [PHP] freeTDS

2004-07-27 Thread John Nichel
Edward Peloke wrote: no, I don't see any mssql info...and yes, they said they did recompile with freetds. If there anything I have to change in the freetds conf file or in php.ini? snip Then either : A) It hasn't been compiled with FreeTDS or, B) The web server hasn't been restarted. -- John C.

Re: [PHP] freeTDS

2004-07-27 Thread John Nichel
Edward Peloke wrote: no, I don't see any mssql info...and yes, they said they did recompile with freetds. If there anything I have to change in the freetds conf file or in php.ini? snip Then either : A) It hasn't been compiled with FreeTDS or, B) The web server hasn't been restarted. -- John C.

[PHP] perl LWP for PHP?

2004-07-27 Thread Marten Lehmann
Hello, I'm familiar with perl's LWP library. Today I searched through the PHP documentation, but the only thing I found that was somewhat similar to LWP was file() and some socket-functions to do http-GET/POST calls to a foreign server. Are any higher level functions available so I don't have

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
I get: # wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n --16:49:59-- http://www.comp-wiz.com/index.html = `-q' Resolving www.comp-wiz.com... done. Connecting to www.comp-wiz.com[207.234.154.95]:80... connected. HTTP request sent, awaiting response... 200 OK Length:

Re: [PHP] perl LWP for PHP?

2004-07-27 Thread Matt M.
I'm familiar with perl's LWP library. Today I searched through the PHP documentation, but the only thing I found that was somewhat similar to LWP was file() and some socket-functions to do http-GET/POST calls to a foreign server. Are any higher level functions available so I don't have to

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
Thanxs for the help Curt!! Thats a tricky solution, but it works... This is almost motivating a new method in PHP5: $foo-__destroy() which will destroy the object once and for all... :) /Erik Curt Zirzow wrote: * Thus wrote Erik Franzn: $oObjectB[$i] = $oObjectA[$i]; The above statement does not

Re: [PHP] freeTDS

2004-07-27 Thread Josh Close
Well, they're going to have to install php with mssql support also ./configure --with-mssql --with-freetds there are examples in the freetds.conf file of what you need to do. Basically just telling it where to connect. -Josh On Tue, 27 Jul 2004 16:49:37 -0400, John Nichel [EMAIL PROTECTED]

[PHP] Sessions Timeout

2004-07-27 Thread Enda Nagle - Lists
Hi Guys, I have a problem with a site where I¹m using sessions. Basically, I have it so that someone enters the site and their session (shopping cart ref) is created on entry (unless it already exists) and all variables are stored in the session. Problem is that when someone goes so far in the

[PHP] Sendmail Return-Path

2004-07-27 Thread Enda Nagle - Lists
Hi Guys, I¹m using PHP¹s mail() function on several sites, but have difficulty sometimes with the mails being tagged as SPAM. I want to have the Return-Path set to the site admin, but can¹t see where to do this. I know that it can be done at server root level but I can¹t really do that as its a

[PHP] Array assistance

2004-07-27 Thread Alex Hogan
Hi All, I have a page where I'm collecting answers from a series of questions. The questions are entered into the array one at a time so I can keep track of paging. $arans = array($_POST); $_SESSION['arans'][$pageid] = $arans; Then I want to check the sum of the array for scoring

Re: [PHP] Sessions Timeout

2004-07-27 Thread Jason Davidson
I would put a timelimit on the session, create a session var called time, or loginTime or something, and compare it to time() with php, give a leyway of an hour or something. This is a standard securty measure to prevent people from leaving the pc with a session running all day, and someone else

Re: [PHP] Sessions Timeout

2004-07-27 Thread Matt M.
Problem is that when someone goes so far in the ordering process, and then (for whatever reason) leaves the site, and comes back hours, seconds or whatever later, and goes again to place an order, the details are different (time), and the session stays the same so the order entry is entered

Re: [PHP] Array assistance

2004-07-27 Thread Jason Davidson
I would simply build the array more specifically, so that it doesnt include things you dont want. Jason On Tue, 27 Jul 2004 16:20:02 -0500, Alex Hogan [EMAIL PROTECTED] wrote: Hi All, I have a page where I'm collecting answers from a series of questions. The questions are entered into the

Re: [PHP] Sendmail Return-Path

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 22:07:52 +0100, Enda Nagle - Lists [EMAIL PROTECTED] wrote: Hi Guys, I¹m using PHP¹s mail() function on several sites, but have difficulty sometimes with the mails being tagged as SPAM. I want to have the Return-Path set to the site admin, but can¹t see where to do

Re: [PHP] Array assistance

2004-07-27 Thread Matt M.
Ten separate arrays with an array at 0 that has the data I'm after. This is where I'm getting stuck. How can I get to the keys that are either 'mc' or 'truefalse' and sum them? foreach my man http://us2.php.net/foreach foreach ($_SESSION['arans'] as $arans) { $truefalse +=

[PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Oatham
Hi, If I have a html textarea for inputting text into a database text field how can I keep the formatting of the entered text? i.e. on the html textarea if the user enters carriage returns i.e. a new paragraph I want that to go into the database then when I retrieve it and display it on a

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
Hi, If I have a html textarea for inputting text into a database text field how can I keep the formatting of the entered text? i.e. on the html textarea if the user enters carriage returns i.e. a new paragraph I want that to go into the database then when I retrieve it and display it on a

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Enda Nagle - Lists
I usually leave the string intact in the database because if you need to show it in an admin area or something, you don¹t need to convert it back again before populating the text area. Suppose it just comes down to personal preference... Or is there a specific benefit to doing it this way?

Re: [PHP] Sendmail Return-Path

2004-07-27 Thread Curt Zirzow
* Thus wrote Enda Nagle - Lists: Hi Guys, I¹m using PHP¹s mail() function on several sites, but have difficulty sometimes with the mails being tagged as SPAM. I want to have the Return-Path set to the site admin, but can¹t see where to do this. I know that it can be done at server root

[PHP] Re: Sendmail Return-Path

2004-07-27 Thread Manuel Lemos
Hello, On 07/27/2004 06:07 PM, Enda Nagle - Lists wrote: I¹m using PHP¹s mail() function on several sites, but have difficulty sometimes with the mails being tagged as SPAM. I want to have the Return-Path set to the site admin, but can¹t see where to do this. I know that it can be done at server

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Jason Davidson
i keep the string intact as well, for that exact reason, when you want to edit dynamically, i dont want all sorts of html tags in my textarea. So, the solution i found works, is to use the php funtion nl2br(). use that when displaying the info in html., that way you dont actually change the

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
i keep the string intact as well, for that exact reason, when you want to edit dynamically, i dont want all sorts of html tags in my textarea. So, the solution i found works, is to use the php funtion nl2br(). use that when displaying the info in html., that way you dont actually change the

Re: [PHP] Sendmail Return-Path

2004-07-27 Thread Enda Nagle - Lists
Hi Justin, I just tried this code: $headers .= MIME-Version: 1.0\n; $headers .= Content-type: text/html; charset=iso-8859-1\n; $headers .= From: Webstore [EMAIL PROTECTED]\n; $headers .= To: $email_address\n; $headers .= Bcc: [EMAIL PROTECTED]; $headers .= X-Priority: 1\n; $headers .=

  1   2   >