[PHP] PHP visual programming example
Hi, I have just put together a small visual programming example that generate PHP code for our Designer. Feel free to try. http://www.memention.com/designer/example/page.php Share and enjoy! Edward
[PHP] PHP programmers from hyderabad
hi! We are looking for PHP programmers from hyderabd. If you are an experienced PHP programmer, and have experience of developing calendar or dairy , message board application, please send your CV to [EMAIL PROTECTED] All PHP programmers aare welcome to apply!. Best regards, Vikram.
Re: [PHP] Fatal error 'Unable to read from thread kernel pipe' when using mail() function
I assume the lack of response to this means that nobody has come across this problem before? Any pointers would be helpful - I'm losing hair fast!! Cheers. -Stut On 16/12/05, Stut [EMAIL PROTECTED] wrote: Hi All, I've just upgraded the PHP port installation on my server to v4.4.1 and the mail function has stopped working. I created a script that simply calls the mail function to send a test email ad this is what I get when I run it... [EMAIL PROTECTED]:~$ php test.php Fatal error 'Unable to read from thread kernel pipe' at line 1100 in file /usr/src/lib/libc_r/uthread/uthread_kern.c (errno = 0) Abort trap (core dumped) The email gets sent successfully on the CLI despite crashing. When the mail function is called from a web page it never gets sent and the script never finishes. I've googled for this error and all references I found that related to PHP basically say that it's due to Apache and PHP being compiled in different threading modes. This cannot be the case in this instance since Apache is using the preform MPM and even if it wasn't it's happening on the CLI where Apache is not involved. Any clues people might have as to the cause of this problem would be gratefully received. FYI: OS is FreeBSD v5.2 and Apache if v2.0.55 Cheers. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Callbacks in XML Parser
Hi, Is there a way in PHP5 where I can use the xml_parser's xml_set_element_handler() inside a class definition like so: xml_set_element_handler($this-xmlParser, $this-startTag, $this-endTag); For me, this code doesn't seem to work. I have to use functions in the global scope. Regards, ah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and Apache 2.2.0
Hello, on 12/16/2005 12:36 PM Kevin McBride said the following: I am curious to know if there are plans to make a module for Apache 2.2.0. I couldn't find it in the anonymous CVS, but if it's already there, can someone point to me where it is? Use the same as for Apache 2.0 . -- Regards, Manuel Lemos Metastorage - Data object relational mapping layer generator http://www.metastorage.net/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Callbacks in XML Parser
xml_set_element_handler($this-xmlParser, $this-startTag, $this-endTag); xml_set_element_handler($this-xmlParser, array($this, 'startTag'), array($this, 'endTag')); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and Apache 2.2.0
Manuel Lemos wrote: Use the same as for Apache 2.0 . I get garbled code errors; tried it before I even posted to the list. Here's an excerpt from the Apache download page: Apache 2.2 add-in modules are not compatible with Apache 2.0 or 1.3 modules. If you are running third party add-in modules, you will need to obtain new modules written for Apache 2.2 from that third party before you attempt to upgrade from Apache 2.0. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and Apache 2.2.0
Hello, on 12/17/2005 04:58 PM Kevin McBride said the following: Use the same as for Apache 2.0 . I get garbled code errors; tried it before I even posted to the list. Here's an excerpt from the Apache download page: Apache 2.2 add-in modules are not compatible with Apache 2.0 or 1.3 modules. If you are running third party add-in modules, you will need to obtain new modules written for Apache 2.2 from that third party before you attempt to upgrade from Apache 2.0. I built PHP 5.1 with Apache 2.2 following these instructions and it works: http://ww.php.net/manual/en/install.unix.apache2.php -- Regards, Manuel Lemos Metastorage - Data object relational mapping layer generator http://www.metastorage.net/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Function Overloading
PHP does not support function overloading. So, is there any other way of getting a number of parameters(variables) passed to a function? aka. function fruits($apple, $banana, $kiwi, $grape){ #should (somehow) output 4 } OK. if it was an array, than I could use count($array), but now I'm stuck! Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Function Overloading
If all you want to do is pass an unknown number of arguments to a function, this looks like it demonstrates what you're doing: ?php function foo() { $numargs = func_num_args(); echo Number of arguments: $numargs\n; } foo(1, 2, 3);// Prints 'Number of arguments: 3' ? Found it at: http://www.php.net/manual/en/function.func-num-args.php = = = Original message = = = PHP does not support function overloading. So, is there any other way of getting a number of parameters(variables) passed to a function? aka. function fruits($apple, $banana, $kiwi, $grape) #should (somehow) output 4 OK. if it was an array, than I could use count($array), but now I'm stuck! Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problem on Instalation ~ several module unable to downl oad
Sorry, just reply it.. I was tring to put php.ini on c:\php or c:\windows, still fail to load several modules. Then, I'm check to load module by module and notified almost all of database module(mysql, mysqli,oracle,sybase,oci) unable to load when php start_up.(only postgreSQL is able to load). Meanwhile, other database module such as (mbstring, gd etc) is able to load. Anyone have experience like this? Thanks in advance Note : System configuration : PHP : PHP5.05 OS : XP SP2 Server : Apache 2.0 Database : MySQL4 and MySQL5 From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Sat 10-Dec-2005 04:14 To: Bagus Nugroho; php-general@lists.php.net Subject: RE: [PHP] Problem on Instalation ~ several module unable to downl oad [snip] Yes, all requested module is put on same folder which module which succesfully load. But, I don't understand why they say the module is not found? What operating system are you using? {/snip] Sorry, found the original post. Can you send the snippet for the php.ini where you set the extensions directory?
[PHP] Someone please help me with this PHP script.
I do not know why this isn't working, but it would be very helpful if someone looked over it. ? $defaultpage = http://lom.game-host.org/uploads/erik/;; If($page == NULL) { $page = one; } if($page == one) { Echo htmlheadtitlePage One/title/headbodyIt works!!bra href=\ . $defaultpage . index.php?page=two\Nice.../a/body/html; } elseif($page == two) { Echo htmlheadtitlePage Two/title/headbodyThis is page . $page . -- a href=\ . $defaultpage . index.php ?page=\;D/a/body/html; } elseif( ($page != one) or ($page != two) or ($page != NULL) ) { Echo htmlheadtitleUndefined!/title/headbodypage isn't defined correctly!/body/html; } if($page == ) { Echo brbrbrbrbrbrbrbra href= . $defaultpage . Main Page../a; } ? Thank you, Erik Johnson
Re: [PHP] Someone please help me with this PHP script.
On Sat, 2005-12-17 at 23:05, Erik Johnson wrote: I do not know why this isn't working, but it would be very helpful if someone looked over it. ? $defaultpage = http://lom.game-host.org/uploads/erik/;; If($page == NULL) { $page = one; } What is this magical $page variable? Did you conjure it from thin air? Or are you one of those coders still using a years old deprecated feature called register_globals who just upgraded their version of PHP to a version that disables it by default? Since you're the latter (yes I can read minds from afar), then what you really want is the following before you start using $page: $page = isset( $_GET['page'] ) ? $_GET['page'] : null; Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Someone please help me with this PHP script.
What is it doing, or not doing? Try changing the ? to ?php and see if that works. Robert Erik Johnson wrote: I do not know why this isn't working, but it would be very helpful if someone looked over it. ? $defaultpage = http://lom.game-host.org/uploads/erik/;; If($page == NULL) { $page = one; } if($page == one) { Echo htmlheadtitlePage One/title/headbodyIt works!!bra href=\ . $defaultpage . index.php?page=two\Nice.../a/body/html; } elseif($page == two) { Echo htmlheadtitlePage Two/title/headbodyThis is page . $page . -- a href=\ . $defaultpage . index.php ?page=\;D/a/body/html; } elseif( ($page != one) or ($page != two) or ($page != NULL) ) { Echo htmlheadtitleUndefined!/title/headbodypage isn't defined correctly!/body/html; } if($page == ) { Echo brbrbrbrbrbrbrbra href= . $defaultpage . Main Page../a; } ? Thank you, Erik Johnson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fatal error 'Unable to read from thread kernel pipe' when using mail() function
On Fri, Dec 16, 2005 at 03:07:20PM +, Stut wrote: Hi All, I've just upgraded the PHP port installation on my server to v4.4.1 and the mail function has stopped working. I created a script that simply calls the mail function to send a test email ad this is what I get when I run it... [EMAIL PROTECTED]:~$ php test.php Fatal error 'Unable to read from thread kernel pipe' at line 1100 in file /usr/src/lib/libc_r/uthread/uthread_kern.c (errno = 0) Abort trap (core dumped) This is a new one for me. I've googled for this error and all references I found that related to PHP basically say that it's due to Apache and PHP being compiled in different threading modes. This cannot be the case in this instance since Apache is using the preform MPM and even if it wasn't it's happening on the CLI where Apache is not involved. I'm thinking it has to do with the threading modes handled by the bsd kernel: libkse, libc_r, libthr. If say apache was compiled with libkse and php with libc_r, this is the kind of threading conflict i think could occure. Any clues people might have as to the cause of this problem would be gratefully received. FYI: OS is FreeBSD v5.2 and Apache if v2.0.55 If you are doing this on a cvsup'd port, there could have been major changes, you are using the portupgrade tool to install these ports right? I would search the bsd-ports or bsd-general mailing lists to see if this there is anything related, and also you could try the bsd specific google search: http://google.com/bsd HTH, Curt. -- cat .signature: No such file or directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Weird html - No real cr
On Sat, Dec 17, 2005 at 12:03:02AM +0100, Gustav Wiberg wrote: Hi there! Why do I get this kind of ... why don't cr work? There is now newline as when you view source in an ordinary html-file... I hope you guys understand what I mean... DOWN BELOW IS THE PHP CODE! :-) Are you serious?! posting 750+ lines of this, i gave up while seeing the same line repeated 10 times. Curt. -- cat .signature: No such file or directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php