[PHP] Re: PHP-5 book

2004-07-22 Thread Nadim Attari
Thanks you all for your recommendations !!! ~ nadim attari -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 5 and Implicit cloning

2004-07-22 Thread Jules
Hello all, I have a small issue with a PHP 4 developed application on PHP5. Current I get the following error message: PHP ERROR : , ERROR CODE: 2048, MESSAGE: Implicit cloning object of class 'testErrors' because of 'zend.ze1_compatibility_mode', FILE: c:\eclipse\workspace\myapp\index_test.php,

Re: [PHP] Re: change value of session variable?

2004-07-22 Thread Five
Sounds like an old bug in PHP. What version are you using? I've been trying to get it to work at: http://members.lycos.co.uk/primeooze/info.php I also have ( apache/php 4.3.4/mysql ) installed on my computer and I get much more satisfactory results on it. I have made progress and some of my

[PHP] Preventing static method calls in PHP4

2004-07-22 Thread Marcus Bointon
[repost, not sure if it worked last time] If I want to prevent a method from being called statically in PHP4, how can I do it? So far I've tried these techniques: ?php class A { var $Anotstatic; function A() { $this-Anotstatic = true; } function dynamic() { if (!isset($this) or

[PHP] adding *** on email address upon view

2004-07-22 Thread Louie Miranda
What command in php? can i convert certain text ex the [EMAIL PROTECTED] to [EMAIL PROTECTED] -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Most Efficient Query

2004-07-22 Thread Monty
I'm writing a simple search script in PHP and wasn't sure whether the best way to search for the records in MySQL was this way... SELECT * FROM db WHERE field1 LIKE var% OR field2 LIKE var% ... ...or would it be faster and more efficient to use fulltext indexes with MATCH() and AGAINST()? I

[PHP] Efficient way to filter this string

2004-07-22 Thread C.F. Scheidecker Antunes
Hello, I have an email string that sometimes has a name and the email address between and sometimes has the email adress right away. Two examples of the possible value of $address Joe Doe [EMAIL PROTECTED] [EMAIL PROTECTED] I need to convert this string always to the email address and discard

[PHP] Table in word document

2004-07-22 Thread Roman Duriancik
How can I create word document with table in php. I need insert some data from php script to the word document but i need inserted this data to the table. Thank you roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Efficient way to filter this string

2004-07-22 Thread Rory McKinley
C.F. Scheidecker Antunes wrote: Hello, I have an email string that sometimes has a name and the email address between and sometimes has the email adress right away. Two examples of the possible value of $address Joe Doe [EMAIL PROTECTED] [EMAIL PROTECTED] snip Off the top of my head - have you

RE: [PHP] using exec/system function within php/apache app

2004-07-22 Thread David Robley
On Thu, 22 Jul 2004 12:05, Bruce wrote: ok... if i simply use the shell commands exec/system/passthru without specifying a dir, ie exec(ls), then it works. however, if i specify exec('ls /foo') where foo is another dir, then i don't get a response. is there someplace where i can open up

Re: [PHP] trim() white space from record set

2004-07-22 Thread David Robley
On Thu, 22 Jul 2004 05:50, Msa wrote: aaah, simple for you.. I have to fit that line into the following: $colauthor_rsResults = 0; if (isset($_GET['Author'])) { $colauthor_rsResults = (get_magic_quotes_gpc()) ? $_GET['Author'] : addslashes($_GET['Author']); } and don't know how to

Re: [PHP] Efficient way to filter this string

2004-07-22 Thread Steve Edberg
At 2:18 AM -0600 7/22/04, C.F. Scheidecker Antunes wrote: Hello, I have an email string that sometimes has a name and the email address between and sometimes has the email adress right away. Two examples of the possible value of $address Joe Doe [EMAIL PROTECTED] [EMAIL PROTECTED] I need to

Re: [PHP] Table in word document

2004-07-22 Thread Marek Kilimajer
Roman Duriancik wrote: How can I create word document with table in php. I need insert some data from php script to the word document but i need inserted this data to the table. Thank you roman Create a html file, give it .doc extension and serve it as a word file. I hope you know how to

[PHP] Re: Most Efficient Query

2004-07-22 Thread David Robley
On Thu, 22 Jul 2004 17:44, Monty wrote: I'm writing a simple search script in PHP and wasn't sure whether the best way to search for the records in MySQL was this way... SELECT * FROM db WHERE field1 LIKE var% OR field2 LIKE var% ... ...or would it be faster and more efficient to use

Re: [PHP] Re: template and file read

2004-07-22 Thread Jason Barnett
Is the compiler cache a function of the my web host or my code? You can cache the PHP bytecode on the server (which is more what I meant originally), and you can also cache in your code. For an easy example of caching with your code you could check out PEAR's package Cache_lite. -- PHP

[PHP] Re: Unable To Gain Access to phpMyAdmin Through Internet Browser

2004-07-22 Thread Harlequin
Thanks Torsten. I basically deleted the HTACCESS files and then put them back with an added entry but the host in question hasn't got a clue about technical support so I'm using another host. Their loss. -- - Michael Mason Arras People www.arraspeople.co.uk

[PHP] DirectoryIterator

2004-07-22 Thread Jason Barnett
Hey guys, I'm getting some unexpected results when trying to use ArrayIterator - but since it's undocumented this might be correct. When I use a DirectoryIterator to traverse a directory I can't seem to create an array containing all of the directory elements. I've tried using references as

Re: [PHP] How to use reflection API?

2004-07-22 Thread Jason Barnett
See: http://www.php.net/manual/en/language.oop5.reflection.php Curt Oops, hadn't seen that yet. Great! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Unable To Gain Access to phpMyAdmin Through Internet Browser

2004-07-22 Thread Torsten Roehr
Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks Torsten. I basically deleted the HTACCESS files and then put them back with an added entry but the host in question hasn't got a clue about technical support so I'm using another host. Their loss. That's the only

[PHP] run perl script with php

2004-07-22 Thread Tassos T
hello, i faced a small problem i have a perl script but i want to execute that in a php script. unfortunately i cannot convert to php. please advice. regards Tassos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Preventing static method calls in PHP4

2004-07-22 Thread Jason Barnett
The easiest way I can think of to prevent static method calls is to use the $this pseudo variable in your method. A method *cannot* be used statically if the method requires use of $this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] what is difference between php and perl

2004-07-22 Thread php-list
PHP is more of a binding language that takes advantage of many different coding practices and puts them together. PHP is not jealous and does not separate or shun itself from other languages and borrows many of the ideas, schemes, similar libraries, etc. from these other languages. And yet, it is

Re: [PHP] adding *** on email address upon view

2004-07-22 Thread Jason Wong
On Thursday 22 July 2004 16:09, Louie Miranda wrote: What command in php? can i convert certain text ex the [EMAIL PROTECTED] to [EMAIL PROTECTED] If this is to protect people's email addresses then make it easy on yourself and just discard the whole domain. -- Jason Wong - Gremlins

[PHP] Re: run perl script with php

2004-07-22 Thread Ulitin S.S.
Tassos T [EMAIL PROTECTED] ???/ ? ?: news:[EMAIL PROTECTED] hello, i faced a small problem i have a perl script but i want to execute that in a php script. unfortunately i cannot convert to php. i think it is inpossible :-( -- PHP General Mailing List

Re: [PHP] Re: Preventing static method calls in PHP4

2004-07-22 Thread Marcus Bointon
on 22/7/04 10:49, Jason Barnett at [EMAIL PROTECTED] wrote: The easiest way I can think of to prevent static method calls is to use the $this pseudo variable in your method. A method *cannot* be used statically if the method requires use of $this. Unfortunately that doesn't work - it is

Re: [PHP] run perl script with php

2004-07-22 Thread Marcus Bointon
on 22/7/04 10:42, Tassos T at [EMAIL PROTECTED] wrote: i faced a small problem i have a perl script but i want to execute that in a php script. unfortunately i cannot convert to php. No problem, look at: http://uk2.php.net/manual/en/function.system.php

Re: [PHP] run perl script with php

2004-07-22 Thread John W. Holmes
Tassos T wrote: i faced a small problem i have a perl script but i want to execute that in a php script. unfortunately i cannot convert to php. virtual() -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals

[PHP] Re: PHP 5 and Implicit cloning

2004-07-22 Thread Jason Barnett
If you need a copy of an object (like the default in PHP4), you can explicitly do that with clone. $cErrorHandler = new testErrors(); $clone = clone $cErrorHandler; If you do this you shouldn't need zend engine 1 compatibility (unless you need that for other reasons). -- PHP General Mailing

RE: [PHP] what is difference between php and perl

2004-07-22 Thread Jurgen Stroo
End of the commercial break, we're going back to the news headlines But hey, what to expect on a PHP list, right? Well, at least a story that makes sense. This is crap, so to speak. Syed, I suggest you should search on Google (for example, search for PHP vs Perl on groups) and see what people

Re: [PHP] Table in word document

2004-07-22 Thread Marek Kilimajer
Please, keep the discusion on the list. [EMAIL PROTECTED] wrote: Thank you for your answer but thsi file isn't orignal word document. I need insert table to existing word document. Then you need to use COM functions. Roman Duriancik wrote: How can I create word document with table in php. I need

Re: [PHP] PHP5 - Weird Error - cannot find element in variable

2004-07-22 Thread Jason Barnett
Give us the exact error as it is displayed in your browser. Also did you try to print_r on every Add as was suggested to you earlier? To be honest, I'm starting to wonder if we haven't stumbled on a bug. I have had similar problems (in an entirely different context) and improper cloning may

[PHP] Re: Project-browser-function / required/included

2004-07-22 Thread Jason Barnett
Hmmm... this may be difficult to implement. For simple include/require trees it could be done quite easily... but __autoload opens up a whole other bag of worms. But now that I think of it I suppose you could create Reflections and get the location of class defintions from that. This might

[PHP] Re: PHP 5 and Implicit cloning

2004-07-22 Thread Jules
Jason, I need it for other reasons. This is not a new application that is causing this. It was built on PHP 4 and therefore has lots of non PHP 5 elements. So I'm pretty sure I need than on, unless someone has another idea... Thanks, Jules... Jason Barnett [EMAIL PROTECTED] wrote in message

[PHP] Re: adding *** on email address upon view

2004-07-22 Thread Jules
Use eregi_replace to match the text between the @ and the . and replace it with the text you want. You'll have to use pattern matching which can be tricky, but its more than possible. Jules... http://nl.php.net/manual/en/function.eregi-replace.php Louie Miranda [EMAIL PROTECTED] wrote in

Re: [PHP] run perl script with php

2004-07-22 Thread Fernando Michelotti
I never tried but i think it is possible using the pecl extension: http://pecl.php.net/package/perl Tassos T wrote: hello, i faced a small problem i have a perl script but i want to execute that in a php script. unfortunately i cannot convert to php. please advice. regards Tassos -- PHP General

[PHP] Re: newbie needs help in getting php and MySQL integrated

2004-07-22 Thread Chris Hunt
Hi, thanks for the help. I had removed the ; but had not moved the libmysql.dll to the C:\windows\system32 directory. Also found in the manual that MySQL is not included by default in MySQL 5.0.0 and hence you need to include the extension. All working hunky dory now. thanks again to those

Re: [PHP] Zend Enc and 0T Q

2004-07-22 Thread PHP Gen
--- raditha dissanayake [EMAIL PROTECTED] wrote: PHP Gen wrote: how about using SSH tunneling instead. Never tried it, any examples for a win2k pro machine? There are some tutorials on this topic search term may be 'ssh tunnel howto' you do need to have an SSH client

[PHP] Re: PHP 5 and Implicit cloning

2004-07-22 Thread Jason Barnett
Jules wrote: Jason, I need it for other reasons. This is not a new application that is causing this. It was built on PHP 4 and therefore has lots of non PHP 5 elements. So I'm pretty sure I need than on, unless someone has another idea... Thanks, Jules... Not sure what all your classes do, but

Re: [PHP] run perl script with php

2004-07-22 Thread Matt M.
I never tried but i think it is possible using the pecl extension: http://pecl.php.net/package/perl Here is a short tutorial http://www.zend.com/php5/articles/php5-perl.php?print=1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Alternative to file_exists()???

2004-07-22 Thread Scott Fletcher
I have decided to look for an alternative to file_exists() because it is taking too long. Is fopen() a good alternative or what? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mailing list spam protection?

2004-07-22 Thread bruce
regarding spamcease, what i had suspected appears to be the case. it appears that this is an app of some sort, looking for emails, or it's just a badly written/f*ed up app... i got a msg stating that i had signed up, using my email address, stating that i should enter my information, etc... i've

Re: [PHP] Alternative to file_exists()???

2004-07-22 Thread Matt M.
I have decided to look for an alternative to file_exists() because it is taking too long. Is fopen() a good alternative or what? maybe stat() http://us4.php.net/manual/en/function.stat.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] run perl script with php

2004-07-22 Thread bruce
Tassos, just what are you trying to do? if you're trying to run a perl app from a commandline php function, that's one thing. if you're trying to create a php/web based app, and you want to run an existing perl app that's sitting on your server, that's another. either way, it's

RE: [PHP] mailing list spam protection?

2004-07-22 Thread Skippy
Quoting bruce [EMAIL PROTECTED]: i got a msg stating that i had signed up, using my email address, stating that i should enter my information, etc... i've never signed up... as i stated before... if you get the msgs.. just delete and keep going... To me it seems like a company making

[PHP] searching through 2 text files

2004-07-22 Thread alantodd
I have 2 text files One has arp list IP Address MAC Address Type -- -- 165.166.182.204 00:0a:04:98:b5:d3 dynamic One file has a mac list Modem MAC Address IP Address

[PHP] background=#

2004-07-22 Thread Tobias Brasier
Hi all-- I subscribed to this list because I have an interest in PHP, but am more of a dabbler than an actual programmer; in other words, I never thought I would be posting a question to the list. So, the following is a problem I send on behalf of one of the programmers in my group, who is

[PHP] Re: searching through 2 text files

2004-07-22 Thread Torsten Roehr
Alantodd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have 2 text files One has arp list IP Address MAC Address Type -- -- 165.166.182.204 00:0a:04:98:b5:d3 dynamic

Re: [PHP] background=#

2004-07-22 Thread James E Hicks III
On Thursday 22 July 2004 10:23 am, Tobias Brasier wrote: The problem is that when I run the page, the log files show that the page was accessed twice. I would be looking for calls to the header() function or a meta refresh tag in the header of this program. Maybe there is an include() file

[PHP] Re: background=#

2004-07-22 Thread Torsten Roehr
Tobias Brasier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all-- I subscribed to this list because I have an interest in PHP, but am more of a dabbler than an actual programmer; in other words, I never thought I would be posting a question to the list. So, the following is a

Re: [PHP] run perl script with php

2004-07-22 Thread raditha dissanayake
Matt M. wrote: I never tried but i think it is possible using the pecl extension: http://pecl.php.net/package/perl Here is a short tutorial http://www.zend.com/php5/articles/php5-perl.php?print=1 Hey thanks that looks very interesting indeed. -- Raditha Dissanayake.

RE: [PHP] background=#

2004-07-22 Thread Michael Sims
Tobias Brasier wrote: I have recently noticed a problem with our code or our webserver (Apache) when I execute a .php file. I have taken all php code out, but within an html td tag, I use background=#, which is used for older browsers such as Netscape 4.7 if you have a background color or

Re: [PHP] background=#

2004-07-22 Thread raditha dissanayake
Tobias Brasier wrote: I have recently noticed a problem with our code or our webserver (Apache) when I execute a .php file. I have taken all php code out, but within an html td tag, I use background=#, which is used for older browsers such as Netscape 4.7 if you have a background color or

[PHP] mutiple copies of php with windows iis6

2004-07-22 Thread Petar [Lists]
I tried posting this to php-win a while back with no result so forgive the duplication. Under IIS6 (Windows 2003) you 'register' the file extensions in the web extensions manager which /appears/ to preclude running different binaries for PHP with the same file extension. Example 1: Sitephp

Re: [PHP] mutiple copies of php with windows iis6

2004-07-22 Thread Matt M.
If anyone knows how to setup IIS6 to allow the same .php extension to be used with dedicated copies of php.exe + ini files I would really appreciate the assistance. Maybe some clue I am missing about the behavior of the web extensions manager or a method of defeating it? Have you tried a IIS

Re: [PHP] mutiple copies of php with windows iis6

2004-07-22 Thread Petar [Lists]
- Original Message - From: Matt M. [EMAIL PROTECTED] To: Petar [Lists] [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, July 22, 2004 11:28 PM Subject: Re: [PHP] mutiple copies of php with windows iis6 If anyone knows how to setup IIS6 to allow the same .php extension to be

[PHP] Trouble with sin()

2004-07-22 Thread Marcus Strube
Hi, i'm working with PHP 5.0.0 (Linux) and have some trouble using function sin(). In PHPs opinion sin(20) is 0.912945250728 I have had a look at the bug.php.net, but couldn`t find anything. Is it a bug or am I just misunderstanding something?? Marcus -- PHP General Mailing List

Re: [PHP] Re: Project-browser-function / required/included

2004-07-22 Thread Frank Munch
Hi, thanks for your comment. Right, and similarly, it struck me that in case there are variable-names in the path, like in require_once $my_lib_dir . some_funcs.php; the variable $my_lib_dir could only be known at run-time and not by any simple script just scanning the source. Still, it would

Re: [PHP] Trouble with sin()

2004-07-22 Thread Ashwin Purohit
It's giving you sin(20) in radians, not in degrees (which is what you seem to want). It's not a bug. On Thu, 22 Jul 2004 12:17:19 -0400, Ashwin Purohit [EMAIL PROTECTED] wrote: It's giving you sin(20) in radians, not in degrees (which is what you seem to want). It's not a bug. On Thu, 22

Re: [PHP] Trouble with sin()

2004-07-22 Thread Ashwin Purohit
If you want it in degrees, use sin(deg2rad(20); On Thu, 22 Jul 2004 12:17:19 -0400, Ashwin Purohit [EMAIL PROTECTED] wrote: It's giving you sin(20) in radians, not in degrees (which is what you seem to want). It's not a bug. On Thu, 22 Jul 2004 17:40:21 +0200, Marcus Strube [EMAIL

Re: [PHP] Trouble with sin()

2004-07-22 Thread Marcus Strube
Thanks a lot. I've overseen a word in the manual. Now i got it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Preventing static method calls in PHP4

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 11:26:44 +0100, Marcus Bointon [EMAIL PROTECTED] wrote: on 22/7/04 10:49, Jason Barnett at [EMAIL PROTECTED] wrote: The easiest way I can think of to prevent static method calls is to use the $this pseudo variable in your method. A method *cannot* be used statically if

[PHP] looking for return status code workaround with pclose() and proc_close()

2004-07-22 Thread Jolyon Terwilliger
Here's the deal, if your PHP install is --enable-sigchild, pclose() and proc_close() do NOT return a proper exit status code. http://bugs.php.net/bug.php?id=29123 Currently illia at PHP.net are saying this WILL NOT be fixed until PHP 5.1 or so. Personally, I think this is bogus and SHOULD BE

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 13:31:20 +0200 (CEST), Jurgen Stroo [EMAIL PROTECTED] wrote: End of the commercial break, we're going back to the news headlines But hey, what to expect on a PHP list, right? Well, at least a story that makes sense. This is crap, so to speak. Syed, I suggest you should

[PHP] Re: looking for return status code workaround with pclose() and proc_close()

2004-07-22 Thread Jolyon Terwilliger
I would like to think that someone has found a semi-elegant way around this, since this bug has existed for so long: http://bugs.php.net/bug.php?id=14182 addendum: That was the first instance of this bug 3 years ago, which I guess was fixed in that version tree. The following bug is where I

RE: [PHP] Re: change value of session variable?

2004-07-22 Thread Ford, Mike [LSS]
On 22 July 2004 07:50, Five wrote: Sounds like an old bug in PHP. What version are you using? I've been trying to get it to work at: http://members.lycos.co.uk/primeooze/info.php According to this phpinfo(), that site has session.use_cookies=On and session.use_trans_sid=Off. This means

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Jason Davidson
Youll find knowing both languages will be handy in development. Im not a huge fan of having to program in perl, however, at times, its far easier to use perl than any other language. An example of that, would be to create a small server client program that possibly parses or extrapolates data

[PHP] interesting problem with zlib/ob_gzhandler compression

2004-07-22 Thread Christian Calloway
I have ran into a rather interesting problem while zlib or gzip compression is enabled on my site. I have an external javascript-php file (a javascript file that is dynamically generated as in filename.js.php) which is included in the main template using the script element (for example script

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Curt Zirzow
* Thus wrote Jurgen Stroo: End of the commercial break, we're going back to the news headlines ... Net), perl is not mature, limited or inflexible (why do you think perl was able to evaluate to incorpate full OO, oh well). #!/usr/bin/perl print HTTP/1.0 200\r\n; print Content-Type:

RE: [PHP] what is difference between php and perl

2004-07-22 Thread Dan Joseph
Hi, Or... #!/usr/bin/perl Use CGI; $q = new CGI; if ( $q-param_url(var) ) { Print $q-param_url(var) } Really, if you look at a lot of functions in PHP and Perl, they mimic each other, and other languages (C, etc..).. It's a personal preference choice. PHP was designed for

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 18:23:08 +, Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Jurgen Stroo: End of the commercial break, we're going back to the news headlines ... Net), perl is not mature, limited or inflexible (why do you think perl was able to evaluate to incorpate full OO,

[PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Astrum Et Securis, I'm using a PowerMac G5 machine, which has the MacOS X Panther. It comes with the Postfix mail server, which I'm now trying to use with PHP. I was able to define the sendmail_path to the Postfix sendmail in the PHP.INI .. Now what happens is, on my localhost when I run the

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Jason Wong
On Friday 23 July 2004 02:21, PHP Junkie wrote: I was able to define the sendmail_path to the Postfix sendmail in the PHP.INI .. And you restarted the webserver? Now what happens is, on my localhost when I run the website, and I run a php page that sends form data to email using the mail()

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 14:21:38 -0400, PHP Junkie [EMAIL PROTECTED] wrote: Astrum Et Securis, I'm using a PowerMac G5 machine, which has the MacOS X Panther. It comes with the Postfix mail server, which I'm now trying to use with PHP. I was able to define the sendmail_path to the Postfix

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Astrum Et Securis I used the Postfix Enabler software which sets up the mail server. How do I test the mail server? How can I determine if it actually sends mail? RSJ On 7/22/04 2:45 PM, Matthew Sims [EMAIL PROTECTED] wrote: Astrum Et Securis, I'm using a PowerMac G5 machine, which has

Re: [PHP] Trouble with sin()

2004-07-22 Thread Jonathan Haddad
as in 20 degrees? float *sin* ( float arg) *sin()* returns the sine of the arg parameter. The arg parameter is in radians. RADIANS. |sin(deg2rad(20)); | Jon Marcus Strube wrote: Hi, i'm working with PHP 5.0.0 (Linux) and have some trouble using function sin(). In PHPs opinion sin(20) is

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Matthew Sims
Astrum Et Securis I used the Postfix Enabler software which sets up the mail server. How do I test the mail server? How can I determine if it actually sends mail? RSJ On 7/22/04 2:45 PM, Matthew Sims [EMAIL PROTECTED] wrote: Astrum Et Securis, I'm using a PowerMac G5 machine, which

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Jason Wong
On Friday 23 July 2004 02:44, PHP Junkie wrote: I used the Postfix Enabler software which sets up the mail server. How do I test the mail server? How can I determine if it actually sends mail? You can usually use the command line program 'mail'. man mail for details. Refer to the postfix

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Brent Baisley
I'm betting that the problem is with security. By default, Apple ships the mail server configured to NOT be an open relay. Meaning, you need to provide a login name and password in order to send email. This is a very good thing, otherwise your machine would be used to send out spam. In order

[PHP] Compilation problem with PHP5 and MySQL 4.1

2004-07-22 Thread Rodolfo Gonzalez Gonzalez
Hi, I know that this should go to the php-inst ml, but I can not resubscribe (the error in the P.S.). I'm trying to install PHP 5 + MySQL 4.1.3 in Apache 1.3 and I'm getting these messages: (tons of first defined messages before, just pasted a sample below) ...

[PHP] Re: interesting problem with zlib/ob_gzhandler compression

2004-07-22 Thread Christian Calloway
Well 3 hours later I have a solution.. I turned off output_compression using the ini_set function, within the scripts dynamically generating javascript variables. This wasn't possible earlier, as I think there was a bug that didn't allow me to use ini_set on the zlib.output_compression directive.

[PHP] smpt server requiring authentication

2004-07-22 Thread Chris Hunt
Hi, anyone know how to configure php's outgoing mail to use a smtp server that requires authentication? thanks for any help, cheers, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] smpt server requiring authentication

2004-07-22 Thread Jason Wong
On Friday 23 July 2004 03:47, Chris Hunt wrote: anyone know how to configure php's outgoing mail to use a smtp server that requires authentication? You can't. Search the archives for the solutions to this FAQ. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software

Re: [PHP] smpt server requiring authentication

2004-07-22 Thread John W. Holmes
Chris Hunt wrote: anyone know how to configure php's outgoing mail to use a smtp server that requires authentication? Can't. Use an SMTP class from phpclasses.org (Manuel will be on here soon, I'm sure ;) or PEAR. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

[PHP] Flexy Template and IF condition statements

2004-07-22 Thread Adrian Madrid
Is there any way to test a condition other than true/false with flexy? I mean, how/can you test $x == 'hello' in flexy? Sorry about my ignorance, just trying to learn Flexy. BTW, are there any other resources besides the PEAR manuals? Thanks in advance, -- Adrian Madrid

RE: [PHP] smpt server requiring authentication

2004-07-22 Thread PHP User
I had the same problem and found a script - phpmailer-1.72 - that works great. Very little configuration to setup, and I have it working on a Linux and Windows platform. Beauford -Original Message- From: Chris Hunt [mailto:[EMAIL PROTECTED] Sent: July 22, 2004 3:48 PM To: [EMAIL

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Astrum Et Securis I tried using the mail command at the Terminal Window In fact it did have all my sent messages recorded there, but they are all giving an error... Which is something like this: __ Content-Description: Delivery error report Content-Type: message/delivery-status

[PHP] Best practice to re-write a tutorial website

2004-07-22 Thread EE
Dears, I am planing to rewrite my website. My site is tutorial-type site I wrote it, when I first learned php3, as an undergraduate research class. I think the code is sloppy as it is mixed with the HTML. I would like to rewrite the site utilizing the good things such OOP classes, template, etc.

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Brent Baisley
One way to reduce the amount of spam your server receives is to have it validate the domain of the sender. In this case, the mail server tried to lookup the domain rahul.local, which of course doesn't exist, so your mail was rejected. Read up on the mail() command, specifically the additional

Re: [PHP] Best practice to re-write a tutorial website

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 23:48:54 +0300, EE [EMAIL PROTECTED] wrote: Dears, I am planing to rewrite my website. My site is tutorial-type site I wrote it, when I first learned php3, as an undergraduate research class. I think the code is sloppy as it is mixed with the HTML. I would like to

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Sounds interesting and what I need to do, so let me try this first. Thanks A ton! RSJ On 7/22/04 5:03 PM, Brent Baisley [EMAIL PROTECTED] wrote: One way to reduce the amount of spam your server receives is to have it validate the domain of the sender. In this case, the mail server tried to

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Matthew Sims
One way to reduce the amount of spam your server receives is to have it validate the domain of the sender. In this case, the mail server tried to lookup the domain rahul.local, which of course doesn't exist, so your mail was rejected. Read up on the mail() command, specifically the additional

[PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Vern
I have a page where a user comes to the page and submits a form after filling it out with dropdown menus that are dynamically driven and get their info form out tables. Now there are times when some one needs to add to this drop down list so I have a separate page open up that allows the user to

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Matthew Sims
I have a page where a user comes to the page and submits a form after filling it out with dropdown menus that are dynamically driven and get their info form out tables. Now there are times when some one needs to add to this drop down list so I have a separate page open up that allows the

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Vern
POST data from form fields are usually only sent through a submit request. Maybe changing you Javascript refresh to a submit that redirects back to the same page might help? Is there a way to do that? Any examples? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Disk serial number

2004-07-22 Thread Rosen
Hi, Is there a way to get with PHP script ( maybe with some module) serial number of the hard disk? Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Matthew Sims
POST data from form fields are usually only sent through a submit request. Maybe changing you Javascript refresh to a submit that redirects back to the same page might help? Is there a way to do that? Any examples? I believe Javascript is capable of performing a submit...but if there's one

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 18:11:21 -0400, Vern [EMAIL PROTECTED] wrote: I have a page where a user comes to the page and submits a form after filling it out with dropdown menus that are dynamically driven and get their info form out tables. Now there are times when some one needs to add to this

Re: [PHP] Disk serial number

2004-07-22 Thread Matthew Sims
Hi, Is there a way to get with PHP script ( maybe with some module) serial number of the hard disk? Thanks in advance! If there's a command on your operating system to get this information, then use PHP's exec function. $serialNum = exec('command to get serial number'); -- --Matthew Sims

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Jason Davidson
Why not just use some javascript to put the new value right into the drop down, provided the db query went thru sucessfully, this shouldnt be an issue right. on the popup window, after you insert the new record, get the last inserted id, use php then to generate some JS that will push that new

Re: [PHP] Disk serial number

2004-07-22 Thread Rosen
Yes, on Linux there is a command to get this info, but on windows I think there'n no thath command. Is there a module for PHP to do this ? Thanks! Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Is there a way to get with PHP script ( maybe with some module)

  1   2   >