[PHP] Grrrrr... Re: Returned mail: User unknown

2006-09-21 Thread Google Kreme
On 20 Sep 2006, at 22:47 , [EMAIL PROTECTED] wrote: - The following addresses had permanent fatal errors - [EMAIL PROTECTED] -Transcript of session follows - ... while talking to postoffice.local.: RCPT To:[EMAIL PROTECTED] 550 5.1.1 unknown or illegal alias: [EMAIL

[PHP] Re: storing function names in db and running them as row is output?

2006-09-21 Thread Kae Verens
blackwater dev wrote: First, the example I have is not the real situation, just an example so I don't want to get into why are you doing it like that, etc. Just want to see if it's possible. Basically, I want to store stuff in a text field in a db like this johns name is ucfirst('john adams')

[PHP] add functions to a class

2006-09-21 Thread Kelsang Tsenle
Hi all, I tried to add functions to a class, but it doesn't seem to work. Here's an example: ? class Test { function Test () { $funcName = 'writeFoo'; $$funcName = create_function ('', 'echo (foo.\n);'); $writeFoo (); $writeFoo2 = $writeFoo; $writeFoo2 (); $this-writeFoo =

[PHP] Re: Is there a list of all Timezones as an array or someting?

2006-09-21 Thread M. Sokolewicz
Mathijs van Veluw wrote: Hello there, I need to have a selectbox filled with the available timezones of PHP. We are using v5.1.x, and it supports the date_default_timezone_set() etc.. As value you can give a string to what timezone. I want all these strings within an array or something so i

[PHP] Extension in free pascal

2006-09-21 Thread Bronislav Klucka
Hi, does anybody know how to write extension in FreePascal? Brona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] add functions to a class

2006-09-21 Thread Thomas Munz
This will not work. $this-bla(); This is a PHP Syntax and tries to get the Class method, PHP dont look for a variable name at all! It seams me strange also, that you try this, you should create the method for the class itself, or extend it. But this shoul work: class Test { function Test

Re: [PHP] Is there a list of all Timezones as an array or someting?

2006-09-21 Thread Mathijs van Veluw
Christopher Watson wrote: Might also want to have a look-see at the Date_TimeZone class of the PEAR::Date package. It seems pretty comprehensive with regard to time zone coverage. -Christopher Thx.. i take a look at that.. But we have a strict rule. No PHP4 only PHP5 OO. So that is not

Re: [PHP] Extension in free pascal - OT

2006-09-21 Thread Thomas Munz
Pascal?? this is a PHP list, you are on the wrong place! on Thursday 21 September 2006 11:12, Bronislav Klucka wrote: Hi, does anybody know how to write extension in FreePascal? Brona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Extension in free pascal - OT

2006-09-21 Thread Bronislav Klucka
Of course I want to write extension for PHP :) but I want to write it in FPC... Brona Thomas Munz wrote: Pascal?? this is a PHP list, you are on the wrong place! on Thursday 21 September 2006 11:12, Bronislav Klucka wrote: Hi, does anybody know how to write extension in FreePascal? Brona

[PHP] How to write PHP extension in FPC

2006-09-21 Thread Bronislav Klucka
Sorry for previous question, was not that clear at all Does anybody know how to write PHP extension in FreePascal? Thnx. Brona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Extension in free pascal - OT

2006-09-21 Thread Thomas Munz
PHP is written in C. If you want to write a extension, you have to writte it in C. I dont think its possible, except you tranbslate the PHP C code to Pascal and start from scratch there :) So- no, not possible on Thursday 21 September 2006 11:22, Bronislav Klucka wrote: Of course I want to

Re: [PHP] Extension in free pascal - OT

2006-09-21 Thread Bronislav Klucka
Extensions are basically dll/so files. There is generally no problem to take dll file written in C and use it in program written in FPS and vice versa (it's all about rewriting function's headers). So my question is, if this is possible generally, can it be done for PHP? Thomas Munz wrote:

Re: [PHP] How to write PHP extension in FPC

2006-09-21 Thread Stut
On Thu, 21 Sep 2006 10:25:49 +0100, Bronislav Klucka [EMAIL PROTECTED] wrote: Does anybody know how to write PHP extension in FreePascal? It probably can be done, but you'd need to ensure that the .so/.dll you create conforms to all the requirements needed for the engine to use it.

Re: [PHP] Extension in free pascal - OT

2006-09-21 Thread Thomas Munz
Well, depends. If you wanna create build-in extensions ( as far as i know those works a bit faster ), you have to use C. In case you wanna make a dynamic extension it can work 'Theoretically'. But you need to load the PHP shared headers also so the compiler understand the DLLs as far as i know,

RE: [PHP] add functions to a class

2006-09-21 Thread Ford, Mike
On 21 September 2006 10:19, Thomas Munz wrote: This will not work. $this-bla(); This is a PHP Syntax and tries to get the Class method, PHP dont look for a variable name at all! It seams me strange also, that you try this, you should create the method for the class itself, or extend

Re: [PHP] Re: Most stable combination of AMP?

2006-09-21 Thread M. Sokolewicz
Pawel Miroslawski wrote: On 9/20/06, Kae Verens [EMAIL PROTECTED] wrote: James Tu wrote: Hi: I'm trying to setup a dev environment using Apache, MySQL and PHP...to develop an application that will go to production. What is the most stable versions of the AMP components should I can

Re: [PHP] php/css and .htaccess [SOLVED]

2006-09-21 Thread tedd
tedd wrote: I embedded php code inside css and changed my .htaccess to read -- FilesMatch \.(htm|html|css)$ SetHandler application/x-httpd-php /FilesMatch -- so that the css file would be processed and executed by php. The end result was that everything worked and did what I wanted.

Re: [PHP] Is there a list of all Timezones as an array or someting?

2006-09-21 Thread tedd
At 8:47 PM -0600 9/20/06, Google Kreme wrote: On 20 Sep 2006, at 06:15 , Chris Boget wrote: $timeZonesArray = array( 'GMT'= array( 'GMT' = +0 // GMT Er... ok, but that seems to be missing quite a lot. For example, I notice that India Standard Time (IST; UTC +5:30) is missing

Re: [PHP] php/css and .htaccess [SOLVED]

2006-09-21 Thread David Giragosian
On 9/21/06, tedd [EMAIL PROTECTED] wrote: tedd wrote: I embedded php code inside css and changed my .htaccess to read -- FilesMatch \.(htm|html|css)$ SetHandler application/x-httpd-php /FilesMatch -- so that the css file would be processed and executed by php. The end result

Re: [PHP] php/css and .htaccess [SOLVED]

2006-09-21 Thread tedd
At 10:37 AM -0500 9/21/06, David Giragosian wrote: On 9/21/06, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: -snip- Now, this header coupled with the above .htaccess allows php code to be embedded within a css file AND work for all popular browsers, including FireFox/Mozillia. -snip-

[PHP] Help understanding/debugging the following script:

2006-09-21 Thread Martin Bach Nielsen
Hi all. If you look at the code below, the return() does not produce any output. No errors were displayed on screen before I added 'error_reporting(E_ALL);'. (Error message: Notice: Undefined variable: this in /oop/test1/index.php on line 35, commented on below) Trying to echo/print ordinary text

Re: [PHP] Help understanding/debugging the following script:

2006-09-21 Thread Robert Cummings
On Thu, 2006-09-21 at 19:26 +0200, Martin Bach Nielsen wrote: Hi all. If you look at the code below, the return() does not produce any output. No errors were displayed on screen before I added 'error_reporting(E_ALL);'. (Error message: Notice: Undefined variable: this in /oop/test1/index.php

[PHP] Re: Frustrated trying to get help from your site

2006-09-21 Thread Michelle Konzack
Am 2006-09-18 14:43:12, schrieb Jon Anderson: As an aside, I think that the online and offline (downloadable) PHP documentation is probably the clearest, best organized and complete set of documentation for any programming language I've run into online. I wish, the downloadable

[PHP] Fatal error: session_start(): Failed to initialize storage module

2006-09-21 Thread afan
Hi, Fatal error: session_start(): Failed to initialize storage module in /home/vernoncompany.biz/includes/validations.php on line 2 validation.php: #1 ?php #2 session_start(); # ... Two weeks ago I got this essage first time. And since, I'm getting more often. Last three days at aleast once a

Re: [PHP] Grrrrr... Re: Returned mail: User unknown

2006-09-21 Thread Børge Holen
On Thursday 21 September 2006 10:09, Google Kreme wrote: On 20 Sep 2006, at 22:47 , [EMAIL PROTECTED] wrote: - The following addresses had permanent fatal errors - [EMAIL PROTECTED] -Transcript of session follows - ... while talking to postoffice.local.: RCPT

Re: [PHP] php/css and .htaccess [SOLVED]

2006-09-21 Thread Eric Butera
On 9/21/06, tedd [EMAIL PROTECTED] wrote: At 10:37 AM -0500 9/21/06, David Giragosian wrote: On 9/21/06, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: -snip- Now, this header coupled with the above .htaccess allows php code to be embedded within a css file AND work for all popular

Re: [PHP] Grrrrr... Re: Returned mail: User unknown

2006-09-21 Thread Dan Holevoet
How odd, I had no idea that the software on this list would forward my bounces to the group. I've been trying rather unsuccessfully to unsubscribe for about a month. I've tried both emailing the unsubscribe address manually, and replying to the auto-generated emails that the php.net site

Re: [PHP] Grrrrr... Re: Returned mail: User unknown

2006-09-21 Thread tedd
At 4:09 PM -0400 9/21/06, Dan Holevoet wrote: How odd, I had no idea that the software on this list would forward my bounces to the group. I've been trying rather unsuccessfully to unsubscribe for about a month. I've tried both emailing the unsubscribe address manually, and replying to the

[PHP] web browser shows blank page when accessing *.php file

2006-09-21 Thread Anna Barnes
We are publishing an ical calendar from a mac on a webserver running apache on solaris 8. However, its suddenly stopped working via webrowser. I have tried to stop and start the httpd to get it going again but to no avail. when I access through safari or explorer on OSX.4 the access_log

[PHP] +AFs-OT+AF0- Working with version control

2006-09-21 Thread Chris W. Parker
Hello, This is off topic but I wanted to get the list member's opinions on the subject as it will probably benefit someone else. Currently I don't use version control at all. What I do instead is have one directory that contains my development website and one directory that contains the live

Re: [PHP] +AFs-OT+AF0- Working with version control

2006-09-21 Thread Brad Bonkoski
Chris W. Parker wrote: Hello, This is off topic but I wanted to get the list member's opinions on the subject as it will probably benefit someone else. Currently I don't use version control at all. What I do instead is have one directory that contains my development website and one

Re: [PHP] web browser shows blank page when accessing *.php file

2006-09-21 Thread Martin Marques
On Thu, 21 Sep 2006 17:13:44 -0400, Anna Barnes [EMAIL PROTECTED] wrote: and the error_log file says [Tue Sep 19 15:53:57 2006] [error] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /websites/ical/functions/ ical_parser.php on line 494 What is there in line 494 of

Re: [PHP] +AFs-OT+AF0- Working with version control

2006-09-21 Thread tedd
At 2:21 PM -0700 9/21/06, Chris W. Parker wrote: Hello, This is off topic but I wanted to get the list member's opinions on the subject as it will probably benefit someone else. -snip- Is this a sound strategy or should I just realize that I can't publish until all current features

Re: [PHP] +AFs-OT+AF0- Working with version control

2006-09-21 Thread Robert Cummings
On Thu, 2006-09-21 at 18:11 -0400, tedd wrote: At 2:21 PM -0700 9/21/06, Chris W. Parker wrote: Hello, This is off topic but I wanted to get the list member's opinions on the subject as it will probably benefit someone else. -snip- Is this a sound strategy or should I just realize that

[PHP] Re: +AFs-OT+AF0- Working with version control

2006-09-21 Thread Colin Guthrie
Robert Cummings wrote: On Thu, 2006-09-21 at 18:11 -0400, tedd wrote: At 2:21 PM -0700 9/21/06, Chris W. Parker wrote: Hello, This is off topic but I wanted to get the list member's opinions on the subject as it will probably benefit someone else. -snip- Is this a sound strategy or

Re: [PHP] web browser shows blank page when accessing *.php file

2006-09-21 Thread Curt Zirzow
On 9/21/06, Anna Barnes [EMAIL PROTECTED] wrote: We are publishing an ical calendar from a mac on a webserver running apache on solaris 8. However, its suddenly stopped working via webrowser. I have tried to stop and start the httpd to get it going again but to no avail. when I access through

Re: [PHP] web browser shows blank page when accessing *.php file

2006-09-21 Thread anna barnes
Hi Curt and Martin, Thanks for getting back to me. I'll take a look at the exact line 474 tomorrow. The reason I didn't mention it specifically is that it's only suddenly stopped working and nothing in that code has changed. It doesn't work in any browser, netscape, IE, firefox etc on

[PHP] Help converting C to PHP

2006-09-21 Thread Tom Atkinson
Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3; main(j){for(;a[j=q=0]+=2,--k;) for(p=1+2*k;j337;q=a[j]*k+q%p*t,a[j++]=q/p) k!=j2?:printf(%.3d,a[j-2]%t+q/p/t);} I converted this to a more

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Kevin Waterson
This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. is this for codegolf? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Tom Atkinson
Yes, it is. Kevin Waterson wrote: This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. is this for codegolf? Kevin -- PHP General Mailing List

Re: [PHP] web browser shows blank page when accessing *.php file

2006-09-21 Thread Curt Zirzow
On 9/21/06, anna barnes [EMAIL PROTECTED] wrote: Hi Curt and Martin, Thanks for getting back to me. I'll take a look at the exact line 474 tomorrow. The reason I didn't mention it specifically is that it's only suddenly stopped working and nothing in that code has changed. It doesn't work in

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Curt Zirzow
On 9/21/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: heh.. nice little twist. Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Curt Zirzow
On 9/21/06, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3; main(j){for(;a[j=q=0]+=2,--k;) for(p=1+2*k;j337;q=a[j]*k+q%p*t,a[j++]=q/p)

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Kevin Waterson
This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a different pi. The goal of the codegolf.com challenge is to print pi to 1000 places. The programmer to do it in the least keystrokes

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Tom Atkinson
pi() does not give me enough decimal places, I need the first 1000. Curt Zirzow wrote: On 9/21/06, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3;

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Christopher Watson
Definitely looks like a grouping and/or precedence problem. Wish I had more time to examine it. Fine-tooth those parens again. -Christopher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help converting C to PHP

2006-09-21 Thread Tom Atkinson
I have solved the problem. The variables are declared as and forced to remain integers in C but PHP converts them to float during division. This messed up the maths. Also there was a slight difference in formatting for printf(). Tom Atkinson wrote: Hello, I am attempting to convert this