[PHP] var_dump($POST)
Hello, var_dump($POST) returns now always NULL. Before it returned the POST variables and their values like it should, right? Is there something that the operator could have done in the server that causes this? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] var_dump($POST)
On Apr 13, 2006, at 12:16 AM, William Stokes wrote: Hello, var_dump($POST) returns now always NULL. Try var_dump($_POST); Note the underline between $ and P. Al Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] var_dump($POST)
oooppps :) sorry about that one... Albert Padley [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] On Apr 13, 2006, at 12:16 AM, William Stokes wrote: Hello, var_dump($POST) returns now always NULL. Try var_dump($_POST); Note the underline between $ and P. Al Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] var_dump($POST)
William Stokes wrote: Hello, var_dump($POST) returns now always NULL. Before it returned the POST variables and their values like it should, right? Is there something that the operator could have done in the server that causes this? try var_dump($_POST); The superglobals (except for 'global' for some reason) are $_ - ie $_GET, $_SESSION and so on. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] preventing duplicate rows?
Hello, I'm updating a table with following SQL statement $sql = INSERT INTO x_ikaluokat (ryhma, ikaluokka) VALUES ('$ryhma','$ikaluokka'); What would be the best way to test that similar rows doesn't get created to the table? I can't make both columns unique. Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Instalation Nightmares For Word Press Please Help
marvin hunkin wrote: Hi. yes did put the wp-Config.php file in the www folder in easy php 1-8, wp-config.php NOT wp-Config.php ?? but still get this error when trying to use the http://localhost/instal.php so how do i get round this one? ask the guys at wordpress I guess. we don't support specific application installation on this list really. oh and please don't post your questions directly at me unless: a, I ask you to. or b, I can bill you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] preventing duplicate rows?
William Stokes wrote: Hello, I'm updating a table with following SQL statement $sql = INSERT INTO x_ikaluokat (ryhma, ikaluokka) VALUES ('$ryhma','$ikaluokka'); What would be the best way to test that similar rows doesn't get created to the table? I can't make both columns unique. You could query before hand: $qry = select count(*) from table where field1='x' and field2='y'; $result = mysql_query($qry); $count = mysql_fetch_assoc($result, 0); if ($count == 0) { // do insert... } -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] preventing duplicate rows?
William Stokes a écrit : Hello, I'm updating a table with following SQL statement $sql = INSERT INTO x_ikaluokat (ryhma, ikaluokka) VALUES ('$ryhma','$ikaluokka'); What would be the best way to test that similar rows doesn't get created to the table? I can't make both columns unique. Can't you define a key in your sql table, to avoid similar raws ? otherwise, you can set an array with both values $my_array[$ryhma] = $ikaluokka; and test for each insert if ( !array_key_exists($ryhma,$my_array)) { $sql = INSERT ...; } elseif ( $my_array[$ryhma] != $ikaluokka ) { $sql = INSERT ...; } but if you have a lot of insert, the script needs a lot of memory to run properly. N F Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Framework alternative ...
Chris Shiflett wrote: Jochem Maas wrote: a. php will actually implement static late binding b. Zend Framework's 'DataObject' class will make use of said late binding to do cool things like Person::findAll( $myFilter ) with out having to actually implement a findAll method in the Person class I have read indications that this will eventually happen. For example, read Mike's comment here (scroll down): http://blog.joshuaeichorn.com/archives/2006/01/09/zactiverecord-cant-work/ From my perspective, it's not a big deal. What is a big deal to me is whether ZF will have an ORM solution at all. At the moment, it does not. I'd second that also .. then again I have an ORM based (only) on FirebirdDB which could really have done with late state binding ... 2.5 years ago ;-) I must say that I have questions regarding the 'real' reasons behind development of the ZF and also question (given the current state/contents of ZF) whether it's not destined to be JAFW I can only speculate like anyone else, but I feel like Zend's motivation is based on several things: 1. It wants PHP to remain competitive among J2EE and .NET. PHP's growth has been impressive for many years, but it seems like it's just now penetrating the enterprise companies. (Enterprise basically means large companies with more money than technical competence.) 2. Its customers have been demanding a supported component library and framework. Zend needed to develop this, so it could either choose the closed source or open source development model. It chose the latter. 3. Its customers demand IP accountability, because integrating projects with PHP is vastly different from using the PHP engine in terms of IP concerns. Thus, the CLA. It may be JAFW (just another framework, for anyone feeling left out), and in a way, I think Zend will consider that to be a failure. Given its ability to be used with other frameworks and/or component libraries, I think the ZF is good for PHP as a whole, regardless of whether it becomes any sort of standard. JAFW isn't so bad. :-) thanks for you words Chris, I certainly agree with you that whatever the details, politics, etc ZF is most likely going to become a positive inclusion to the world of php. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Framework alternative ...
Robert Cummings wrote: On Wed, 2006-04-12 at 19:23, Jochem Maas wrote: Robert Cummings wrote: I must say that I have questions regarding the 'real' reasons behind The most plausible real reason is to give Zend's name to a framework that will possibly rally interest behind a single framework rather than the multitude currently in existence. it will probably work more or less since they will probably be packaged with PHP (unless they are going to commercialize it -- in which case it will probably gain moderate corporate uptake and be JAFW :). development of the ZF and also question (given the current state/contents of ZF) whether it's not destined to be JAFW ... not that that's necessarily a bad thing (plenty of code already in ZF that serves as an excellent primer for how to write decent [OO] code if nothing else :-) given your InterJinn codebase you no doubt have an opinion about ZF too, dare to give your take on it? My InterJinn framework works exceptionally well for me and for my customers. this really is a big point: namely that regardless of the quality, flexibility, strength, etc of any given framwork one has to spend alot of time either writing it or learning how to use it. a fact that stops me from getting intimate with quite a few frameworks (lack of time :-( ). it was never wildly adopted, but then the free license is probably overly restrictive and the philosophy behind it isn't your run of the mill OOP (I use a service registry system). Regardless of what happens, InterJinn has one of the most non-intrusive footprints when it comes to general PHP code. I've had little trouble hooking it into or wrapping it around other frameworks and codebases. Additionally with the way it processes templates, I've been known to wrap other frameworks' templates and source code within TemplateJinn so that I can get at the custom tag functionality (I don't lose out on processing time since TemplateJinn compiles templates to PHP source, and compiled templates don't need to include InterJinn :) Either way, for me, ZF will be JAFW. If it has good stuff, I'll use it, I'll wrap it, I'll 0wn it -- but that's how any chunk of code should work :D lol. Cheers, Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Instalation Nightmares For Word Press Please Help
wtf is your username = localhost, and your password = root? that's probably where you messed up ;-) On 4/12/06, Jochem Maas [EMAIL PROTECTED] wrote: marvin hunkin wrote: Hi. yes did put the wp-Config.php file in the www folder in easy php 1-8, wp-config.php NOT wp-Config.php ?? but still get this error when trying to use the http://localhost/instal.php so how do i get round this one? ask the guys at wordpress I guess. we don't support specific application installation on this list really. oh and please don't post your questions directly at me unless: a, I ask you to. or b, I can bill you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html
Re: [PHP] Re: double lines
Barry wrote: clive wrote: Does the html textarea add in \r. Normally not. But the mailing function might do. Replace every \n with linbreak and every \r with linefeed with str_replace And probably you see where the problem is It's because of the operation system. Win32 and Linux works different. Linux adds extra line. Martin [Zend Certified] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] preventing duplicate rows?
You have several opportunities here : 1.If you use mysql 4.1.x you can use insert into .. on duplicate key update (check the correct syntax) 2.You can make unique key from the two columns and check for error number 1062 (duplicate key) like this : myusql_query($qins) or $errno=mysql_errno(); if ($errno==0)P OK! } elseif($errno ==1062){ Dupliacte! } else{ die(mysql_error()); } On Thursday April 13 2006 09:54, William Stokes wrote: Hello, I'm updating a table with following SQL statement $sql = INSERT INTO x_ikaluokat (ryhma, ikaluokka) VALUES ('$ryhma','$ikaluokka'); What would be the best way to test that similar rows doesn't get created to the table? I can't make both columns unique. Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RADICORE ramework released
Announcing the first public release of RADICORE, a Rapid Application Development toolkit for building administrative web applications which contains the following: a.. A true rapid application development framework which is based around Transaction Patterns. b.. A dynamic Menu system. c.. A Role Based Access Control system. d.. An Audit Logging system. e.. An activity based Workflow system. f.. A Data Dictionary. g.. Facilities for Internationalisation. It's even better than Ruby on Rails! Check it out at http://www.radicore.org -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: RADICORE ramework released
Tony Marston wrote: Announcing the first public release of RADICORE, a Rapid Application Development toolkit for building administrative web applications which contains the following: a.. A true rapid application development framework which is based around Transaction Patterns. b.. A dynamic Menu system. c.. A Role Based Access Control system. d.. An Audit Logging system. e.. An activity based Workflow system. f.. A Data Dictionary. g.. Facilities for Internationalisation. It's even better than Ruby on Rails! Check it out at http://www.radicore.org Locale is not defined in string '**UNDEFINED**' Tried the demo account. Doesnt work *shrug* -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: RADICORE ramework released
What do you mean it doesn't work? Do you mean my online demo, or when you try to run it on your machine? What are your settings? What language have you got defined in your browser? Where did you see the message Locale is not defined in string '**UNDEFINED**' If you cannot provide more information I will not be able to solve this problem. Everybody else seems to be able to use it OK, so you must have some peculiar settings in your browser. -- Tony Marston http://www.tonymarston.net http://www.radicore.org Barry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tony Marston wrote: Announcing the first public release of RADICORE, a Rapid Application Development toolkit for building administrative web applications which contains the following: a.. A true rapid application development framework which is based around Transaction Patterns. b.. A dynamic Menu system. c.. A Role Based Access Control system. d.. An Audit Logging system. e.. An activity based Workflow system. f.. A Data Dictionary. g.. Facilities for Internationalisation. It's even better than Ruby on Rails! Check it out at http://www.radicore.org Locale is not defined in string '**UNDEFINED**' Tried the demo account. Doesnt work *shrug* -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RADICORE ramework released
This one time, at band camp, Tony Marston [EMAIL PROTECTED] wrote: Announcing the first public release of RADICORE, a Rapid Application Development toolkit for building administrative web applications which **YAWN** -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: RADICORE ramework released
Tony Marston wrote: What do you mean it doesn't work? Do you mean my online demo, or when you try to run it on your machine? What are your settings? What language have you got defined in your browser? Where did you see the message Locale is not defined in string '**UNDEFINED**' If you cannot provide more information I will not be able to solve this problem. Everybody else seems to be able to use it OK, so you must have some peculiar settings in your browser. unfortunately not ^_^ Using Firefox 1.5 latest version standard settings. On a winXP system. I posted the error i got, so you are probably able to get that ^^ Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CURLOPT_BINARYTRANSFER
Hi Richard, On 4/12/06, Richard Lynch [EMAIL PROTECTED] wrote: I need the cookies and all that... There's a PHP implementation of an HTTP client at http://www.phpclasses.org/browse/package/576.html Even if you needed to tweak something, it should be easier to modify and debug good luck /ahmed
Re: [PHP] internationalization of web site
i put the files in one place for you. to do what you want. http://www.sirfsup.com/code/php/i18n_php/http_server_encoding 2006-04-12 (수), 16:24 -0300, Martin Alterisio El Hombre Gris 쓰시길: Ussually, the browsers send a header with information about the language preferences of the user. This header is HTTP_ACCEPT_LANGUAGE. You can retrieve its value in PHP through the array $_SERVER: $_SERVER['HTTP_ACCEPT_LANGUAGE'] Here you can find about the format of this header: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 Alain Roger wrote: Hi, Sorry to send this email on both mailing lists but as i suppose that both are concerned by it, i did. i would like to make my web site tune to user language. for that i was thinking to create some XML files where all words can be found and based on the icon (country flag) that user clicked, i will load a specific XML file to tune my PHP pages. i know from Java exprience that it exists also another possibility via browser setup for preference in language, but i do not know how it works in PHP. please, could you give me some tips, helps, or tutorial for such request ? thanks a lot, Alain -- my site a href=http://www.myowndictionary.com;myowndictionary/a was made to help students of many languages learn them faster. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: RADICORE ramework released
Barry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tony Marston wrote: What do you mean it doesn't work? Do you mean my online demo, or when you try to run it on your machine? What are your settings? What language have you got defined in your browser? Where did you see the message Locale is not defined in string '**UNDEFINED**' If you cannot provide more information I will not be able to solve this problem. Everybody else seems to be able to use it OK, so you must have some peculiar settings in your browser. unfortunately not ^_^ Using Firefox 1.5 latest version standard settings. On a winXP system. I posted the error i got, so you are probably able to get that ^^ I can access it from my Windows XP PC using IE6, Firefox 1.5 and Opera 8.5 without any problems. Any problems with locale are cased by having the language code in your browser set to something which cannot be matched up with the contents of the server's locale file. If it cannot find a match my software is supposed to keep the current default setting, whatever that is. What language do you have set in your browser? Can you try my site again to see if it still fails. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RADICORE ramework released
Kevin Waterson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This one time, at band camp, Tony Marston [EMAIL PROTECTED] wrote: Announcing the first public release of RADICORE, a Rapid Application Development toolkit for building administrative web applications which **YAWN** It sounds like it's WAY past your bedtime. Does your mother know you're up this late? -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: RADICORE ramework released
From: Tony Marston [EMAIL PROTECTED] Any problems with locale are cased by having the language code in your browser set to something which cannot be matched up with the contents of the server's locale file. If it cannot find a match my software is supposed to keep the current default setting, whatever that is. supposed to, but it doesn't look like it does what you say. I get this error too. My language prefs are (in that order) de-de, de, en-gb, en When I move en up to first place the demo works. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: RADICORE ramework released
Tony Marston wrote: Barry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tony Marston wrote: What do you mean it doesn't work? Do you mean my online demo, or when you try to run it on your machine? What are your settings? What language have you got defined in your browser? Where did you see the message Locale is not defined in string '**UNDEFINED**' If you cannot provide more information I will not be able to solve this problem. Everybody else seems to be able to use it OK, so you must have some peculiar settings in your browser. unfortunately not ^_^ Using Firefox 1.5 latest version standard settings. On a winXP system. I posted the error i got, so you are probably able to get that ^^ I can access it from my Windows XP PC using IE6, Firefox 1.5 and Opera 8.5 without any problems. Any problems with locale are cased by having the language code in your browser set to something which cannot be matched up with the contents of the server's locale file. If it cannot find a match my software is supposed to keep the current default setting, whatever that is. What language do you have set in your browser? Can you try my site again to see if it still fails. It works like a charm now. it was set to UTF-8 ^_^ -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: RADICORE ramework released
Hans Juergen von Lengerke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Tony Marston [EMAIL PROTECTED] Any problems with locale are cased by having the language code in your browser set to something which cannot be matched up with the contents of the server's locale file. If it cannot find a match my software is supposed to keep the current default setting, whatever that is. supposed to, but it doesn't look like it does what you say. I get this error too. My language prefs are (in that order) de-de, de, en-gb, en When I move en up to first place the demo works. This is very strange. I have just tried setting my browser language to de-de, de, en-gb, en and I can access my demo without any problem. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MS SQL extension not loading
Tim Huntley írta: Maybe this was already asked, but are you running 64bit Windows Server 2003 on that box? I've heard there's some wonkiness getting PHP and the various extensions to work on 64bit Windows. I'll ask this. c:\windows\system32\logfiles\W3SVC848989038\ Don't ask me why. :-) All IIS logfiles -- be they HTTP, FTP, or whatever -- go under \Windows\System32\LogFiles. The W3S... folder is named based on the site ID from IIS. You are either running multiple webs on that box, or you deleted the default web and recreated it at some point. I do run multiple websites. Thank you for the hint. Laszlo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: RADICORE ramework released
From: Tony Marston [EMAIL PROTECTED] Hans Juergen von Lengerke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Tony Marston [EMAIL PROTECTED] Any problems with locale are cased by having the language code in your browser set to something which cannot be matched up with the contents of the server's locale file. If it cannot find a match my software is supposed to keep the current default setting, whatever that is. supposed to, but it doesn't look like it does what you say. I get this error too. My language prefs are (in that order) de-de, de, en-gb, en When I move en up to first place the demo works. This is very strange. I have just tried setting my browser language to de-de, de, en-gb, en and I can access my demo without any problem. It is indeed very strange because it works for me now too. But I swear that I saw the error earlier :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: RADICORE ramework released
Tony Marston wrote: Hans Juergen von Lengerke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Tony Marston [EMAIL PROTECTED] Any problems with locale are cased by having the language code in your browser set to something which cannot be matched up with the contents of the server's locale file. If it cannot find a match my software is supposed to keep the current default setting, whatever that is. supposed to, but it doesn't look like it does what you say. I get this error too. My language prefs are (in that order) de-de, de, en-gb, en When I move en up to first place the demo works. This is very strange. I have just tried setting my browser language to de-de, de, en-gb, en and I can access my demo without any problem. probably something cookie or session related - i.e. you already had a valid lang set so the 'invalid' de-de etc is ignored. that also suggests that your not 'walking' through the list of preferred languages [properly]. don't you just love 'beta' ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RADICORE ramework released
A question for the folks who have tried it out: Is it better than Ruby on Rails? Thanks. -- Anas Mughal On 4/11/06, Tony Marston [EMAIL PROTECTED] wrote: Announcing the first public release of RADICORE, a Rapid Application Development toolkit for building administrative web applications which contains the following: a.. A true rapid application development framework which is based around Transaction Patterns. b.. A dynamic Menu system. c.. A Role Based Access Control system. d.. An Audit Logging system. e.. An activity based Workflow system. f.. A Data Dictionary. g.. Facilities for Internationalisation. It's even better than Ruby on Rails! Check it out at http://www.radicore.org -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anas Mughal
Re: [PHP] RADICORE ramework released
Tony Marston wrote: Kevin Waterson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This one time, at band camp, Tony Marston [EMAIL PROTECTED] wrote: Announcing the first public release of RADICORE, a Rapid Application Development toolkit for building administrative web applications which **YAWN** It sounds like it's WAY past your bedtime. Does your mother know you're up this late? SARCASM at=high volume it's not that it's just that Kevin is the most 'leet' php coder on the planet (other than Jasper Bryant Greene of course) and your stuff is just _s_ basic you f***ing noob. /SARCASM me I must be an idiot because I didn't even grok the demo too much - what exactly was the demo supposed to be showing me? ...although the workflow stuff you talk about makes we want to dive in and figure it out (somehow). any don't be put off - you obviously put lots of time and effort into your project and it looks like it has some interesting stuff in there! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how to convert 0.5 to 0.50
Hi there, I am searching for a command on how to format 0.5 to 0.50 thanx for any help, merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Internal Server Error
Ave, This is something I don¹t understand. I have 3 php scripts that run fine on my localhost server, but when I upload the 3 files to my Internet Server (Hosting Account), I get the 500 Internal Server Error. I am able to access them fine on my machine here (Running Apache Web Server)... But on my internet server, it just keeps giving me the 500 Internal Server Error. Any reason why it would be doing so? Rahul S. Johari Coordinator, Internet Administration Informed Marketing Services Inc. 500 Federal Street, Suite 201 Troy NY 12180 Tel: (518) 687-6700 x154 Fax: (518) 687-6799 Email: [EMAIL PROTECTED] http://www.informed-sources.com
[PHP] Re: how to convert 0.5 to 0.50
Merlin wrote: Hi there, I am searching for a command on how to format 0.5 to 0.50 thanx for any help, merlin sprintf(%.02f,$string); Or number_format() -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to convert 0.5 to 0.50
On 4/13/06, Merlin [EMAIL PROTECTED] wrote: Hi there, I am searching for a command on how to format 0.5 to 0.50 number_format('0.5', 2); -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to convert 0.5 to 0.50
?php print number_format('0.5',2,'.',''); // 0.50 ? Merlin wrote: Hi there, I am searching for a command on how to format 0.5 to 0.50 thanx for any help, merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Internal Server Error : Resolved
Well I did figure out the problem. The folder I was uploading the files to had special permissions (yeah I know, Duuuhh!). I kept thinking the files I'm uploading are having a permissions issue, it just skipped my mind that the folder I was uploading to had Special Permissions, not the files. I moved the files to another folder and it works! Well, sort of. I'm getting ye 'ol Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at... error. But I'll work it out. Nothing that I haven' dealt with before. Thanks, Rahul S. Johari Coordinator, Internet Administration Informed Marketing Services Inc. 500 Federal Street, Suite 201 Troy NY 12180 Tel: (518) 687-6700 x154 Fax: (518) 687-6799 Email: [EMAIL PROTECTED] http://www.informed-sources.com On 4/13/06 10:06 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: look at the apache error log on the hosting site. i suspect that you'll find that the configuration of your machine differs from that of your hosting provider, so you're using a function or capability that's not supported on their site. you should also turn your php error reporting up so that you see anything that's reported at that level. in short, without knowing the specific error information, there's not a lot that anyone can do to help -- so start with the logs. Original Message Date: Thursday, April 13, 2006 10:00:26 AM -0400 From: Rahul S. Johari [EMAIL PROTECTED] To: PHP php-general@lists.php.net Subject: [PHP] Internal Server Error Ave, This is something I don¹t understand. I have 3 php scripts that run fine on my localhost server, but when I upload the 3 files to my Internet Server (Hosting Account), I get the 500 Internal Server Error. I am able to access them fine on my machine here (Running Apache Web Server)... But on my internet server, it just keeps giving me the 500 Internal Server Error. Any reason why it would be doing so? Rahul S. Johari Coordinator, Internet Administration Informed Marketing Services Inc. 500 Federal Street, Suite 201 Troy NY 12180 Tel: (518) 687-6700 x154 Fax: (518) 687-6799 Email: [EMAIL PROTECTED] http://www.informed-sources.com -- End Original Message -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Internal Server Error
I have 3 php scripts that run fine on my localhost server, but when I upload the 3 files to my Internet Server (Hosting Account), I get the 500 Internal Server Error. I am able to access them fine on my machine here (Running Apache Web Server)... But on my internet server, it just keeps giving me the 500 Internal Server Error. Any reason why it would be doing so? Any chance you can get to the error logs on the other server? That will give you some hints about what's going wrong. Are you uploading a htaccess file? Maybe there's something in that not right for the live server.. but the easiest way to work it out is the logfiles. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to convert 0.5 to 0.50
At 3:59 PM +0200 4/13/06, Merlin wrote: Hi there, I am searching for a command on how to format 0.5 to 0.50 thanx for any help, merlin Check out: http://www.weberdev.com/sprintf tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Internal Server Error
Do you have access to server logs ? If yes, what they say ? PHP as module or as CGI/FastCGI ? When the error occurs ? immediately or after some time ? On Thursday April 13 2006 17:00, Rahul S. Johari wrote: Ave, This is something I don¹t understand. I have 3 php scripts that run fine on my localhost server, but when I upload the 3 files to my Internet Server (Hosting Account), I get the 500 Internal Server Error. I am able to access them fine on my machine here (Running Apache Web Server)... But on my internet server, it just keeps giving me the 500 Internal Server Error. Any reason why it would be doing so? Rahul S. Johari Coordinator, Internet Administration Informed Marketing Services Inc. 500 Federal Street, Suite 201 Troy NY 12180 Tel: (518) 687-6700 x154 Fax: (518) 687-6799 Email: [EMAIL PROTECTED] http://www.informed-sources.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how should MS Access DATETIME be handled in PHP?
Hello, We have a website which pulls data from its MS Access backend database and publishes the data using Cold Fusion. The Cold Fusion code has '#DateFormat(end_date, Mmmm d, )#'. 'end_date' is a table column of type DATETIME in the Access DB. Now, we need to use PHP instead of Cold Fusion to query the same Access database and display the data on the web. Here are the related PHP code snippets. Query the Access DB: $qry = odbtp_query(SELECT end_date,title,projectID FROM projects ORDER BY end_date DESC); Get the query results: while( ($rec = odbtp_fetch_array($qry)) ) { echo end_date is $rec[0]br; } The outputs of the above echo are: end_date is Object end_data is Object The date format I want the output to be is like 'March 31, 2005'. I've tried PHP's date() function using format 'F j, Y'. The format looks correct. But date() requires the time it's converting be a timestamp. So how should I output the 'end_date' in the 'F j, Y' format? I'd appreciate any help. Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RADICORE ramework released
Anas Mughal wrote: A question for the folks who have tried it out: Is it better than Ruby on Rails? is blue better than red? anyone care for a holy war? am I having a bad day? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how should MS Access DATETIME be handled in PHP?
Bing Du wrote: Hello, We have a website which pulls data from its MS Access backend database and publishes the data using Cold Fusion. The Cold Fusion code has '#DateFormat(end_date, Mmmm d, )#'. 'end_date' is a table column of type DATETIME in the Access DB. Now, we need to use PHP instead of Cold Fusion to query the same Access database and display the data on the web. Here are the related PHP code snippets. Query the Access DB: $qry = odbtp_query(SELECT end_date,title,projectID FROM projects ORDER BY end_date DESC); Get the query results: while( ($rec = odbtp_fetch_array($qry)) ) { echo end_date is $rec[0]br; apparently $rec[0] is a php object - try the following lines to find out what's inside: echo 'pre'; print_r($rec[0]); echo 'pre'; that will probably give you a clue as to how to extract some useful info from the object. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how should MS Access DATETIME be handled in PHP?
apparently $rec[0] is a php object - try the following lines to find out what's inside: echo 'pre'; print_r($rec[0]); echo 'pre'; that will probably give you a clue as to how to extract some useful info from the object. Excellent! Yes, it now does give me a clue to see what's actually in the object. print_r($rec[0]) shows: stdClass Object ( [year] = 2005 [month] = 8 [day] = 31 [hour] = 0 [minute] = 0 [second] = 0 [fraction] = 0 ) I've never dealt with object in PHP. Something new learnt today. I'm now able to use get_object_vars($rec[0]) to extract the info from the object. There is one thing I don't understand though. Is there anything wrong with the follow code snippet? The result of echo is 'using list, year is rather than 'using list, year is 2005'. == list($year,$month,$day,$hour,$minute,$second,$fraction) = get_object_vars($rec[0]); echo using list, year is $yearbr; == This one works. But I prefer using list. == $arr = get_object_vars($rec[0]); echo year is $arr[year]br; == Thanks, Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RADICORE ramework released
Tony Marston wrote: Kevin Waterson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This one time, at band camp, Tony Marston [EMAIL PROTECTED] wrote: Announcing the first public release of RADICORE, a Rapid Application Development toolkit for building administrative web applications which **YAWN** It sounds like it's WAY past your bedtime. Does your mother know you're up this late? H, a childish response to someone's response to your OFF TOPIC post. Didn't see that coming. How 'bout you take this and your little it works for me help discussion off this list, mmm 'K? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how should MS Access DATETIME be handled in PHP?
Bing Du wrote: apparently $rec[0] is a php object - try the following lines to find out what's inside: echo 'pre'; print_r($rec[0]); echo 'pre'; that will probably give you a clue as to how to extract some useful info from the object. Excellent! Yes, it now does give me a clue to see what's actually in the object. print_r($rec[0]) shows: stdClass Object ( [year] = 2005 [month] = 8 [day] = 31 [hour] = 0 [minute] = 0 [second] = 0 [fraction] = 0 ) I've never dealt with object in PHP. Something new learnt today. I'm now able to use get_object_vars($rec[0]) to extract the info from the object. There is one thing I don't understand though. Is there anything wrong with the follow code snippet? The result of echo is 'using list, year is rather than 'using list, year is 2005'. == list($year,$month,$day,$hour,$minute,$second,$fraction) = get_object_vars($rec[0]); echo using list, year is $yearbr; == This one works. But I prefer using list. I hate list. each to his own :-) try this (untested): list($year,$month,$day,$hour,$minute,$second,$fraction) = array_values(get_object_vars($rec[0])); no go and read the manual about what list does exactly and do some digging as to the wonders of php arrays (there are numeric indexes and there are associative indexes, and they can be mixed) as penance. then learn to love associative arrays (e.g. what get_object_vars() returns) because: a. they are everywhere in php. b. they are lovely (thats a fact - as stalin would say) ;-) == $arr = get_object_vars($rec[0]); echo year is $arr[year]br; oh and quote your keys when using associative arrays: echo year is {$arr['year']}br; or echo year is $arr['year']br; or echo year is ,$arr['year'],br; why you ask? turn on error reporting to full and or read the manual to find out. == Thanks, Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RADICORE ramework released
Jochem Maas wrote: Anas Mughal wrote: A question for the folks who have tried it out: Is it better than Ruby on Rails? is blue better than red? anyone care for a holy war? am I having a bad day? Is it a work day? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] interview
can you please send some interview questions for php i have in few days to inteview some people. -- madunix Communications Engineering (RWTH Aachen University) Systems and Network Engineer MCSE, IBM AIX System Specialist, CCNP, CCSP(SECUR,CSVPN)
RE: [PHP] interview
[snip] can you please send some interview questions for php i have in few days to inteview some people. [/snip] 1. How's you mum? 2. What is PHP? 3. Have you met any of the folks on that list? 4. Can you ask them questions about PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SQL result
Dear all, I remember that i use a func that it return an array what it consist of result of my sql query. Please name me that. Yours,Mohsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
Mad Unix wrote: can you please send some interview questions for php i have in few days to inteview some people. 1) If I use PHP, and you use PHP, and everyone on this list uses PHP... what colour is my car? 2) How do I avoid the number 42? 3) What time is it Eccles? HTH! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
Jay Blanchard wrote: [snip] can you please send some interview questions for php i have in few days to inteview some people. [/snip] 1. How's you mum? 2. What is PHP? 3. Have you met any of the folks on that list? 4. Can you ask them questions about PHP? 5. is blue better than red? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] SQL result
[snip] I remember that i use a func that it return an array what it consist of result of my sql query. Please name me that. [/snip] RTFM. You are now named mysql_fetch_array. http://www.php.net/mysql_fetch_array -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how should MS Access DATETIME be handled in PHP?
Hi! Bing Du wrote: Excellent! Yes, it now does give me a clue to see what's actually in the object. print_r($rec[0]) shows: stdClass Object ( [year] = 2005 [month] = 8 [day] = 31 [hour] = 0 [minute] = 0 [second] = 0 [fraction] = 0 ) I've never dealt with object in PHP. Something new learnt today. I'm now able to use get_object_vars($rec[0]) to extract the info from the object. You don't need get_object_vars(), you can simply use $rec[0]-year; Perhaps have a look at the docs: http://de3.php.net/oop5 And perhaps the following example is useful for you: http://odbtp.sourceforge.net/timetable.html#list regards Andreas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
Stut wrote: Mad Unix wrote: can you please send some interview questions for php i have in few days to inteview some people. 1) If I use PHP, and you use PHP, and everyone on this list uses PHP... what colour is my car? 2) How do I avoid the number 42? 3) What time is it Eccles? HTH! -Stut Can I employ you? cos I dont know PHP BTW what difference does it make if we give u legit questions, will YOU know the answer? Well done on making me smile =)) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] interview
can you please send some interview questions for php i have in few days to inteview some people. 1) If I use PHP, and you use PHP, and everyone on this list uses PHP... what colour is my car? Hamburger. Oh, wait... 2) How do I avoid the number 42? Trip over the number 41 and apologize to the number 43. 3) What time is it Eccles? 1:02:03am :p Thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
Mad Unix wrote: can you please send some interview questions for php i have in few days to inteview some people. Will PHP help me save money on my car insurance? -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Bar codes
Hi, I've never used bar codes before. And now I need to print out bar codes, and I've been told it should be in the format K39 Normal (I could have misunderstood since I can't find that on google. Maybe Code 39 Normal?). Any idea how to find that bar code font or what it's called? And what shall I use to print it out? Is it just as a regulat font, or do I need some special bar code lib? Thanks for your time Best regards Emil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] interview
[snip] Will PHP help me save money on my car insurance? [/snip] No, but a fifteen minute call to Geico will. Wait. That is an answer. I so suck at this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how should MS Access DATETIME be handled in PHP?
I hate list. each to his own :-) try this (untested): list($year,$month,$day,$hour,$minute,$second,$fraction) = array_values(get_object_vars($rec[0])); Magic! That works. In this case, I'd like to use list because I can use the vars directly (e.g. $year) rather than $arr['year']. I need to use the date as key to construct another associative array. It's easier for me to do $projects[$year] instead of $projects[$arr['year']]. Thanks also for your other advice. I appreciated it. Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Bar codes
HI, Any idea how to find that bar code font or what it's called? And what shall I use to print it out? Is it just as a regulat font, or do I need some special bar code lib? I have been using this lib for quite some time. http://www.mribti.com/barcode/ You will have to either set register globals to on or you will have to make a work around. I added this to the top of image.php and it works fine: foreach ($_REQUEST as $k = $v) {$$k = $v;} Bascially all you will need to do is make a link to the image.php?params=params and then you can print it out or do whatever with it. Hope it helps! -- Leonard Burton, N9URK [EMAIL PROTECTED] The prolonged evacuation would have dramatically affected the survivability of the occupants. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
Jay Blanchard wrote: [snip] Will PHP help me save money on my car insurance? [/snip] No, but a fifteen minute call to Geico will. Wait. That is an answer. I so suck at this. Great, now the interviewee will be able to cheat. Way to go Jay. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RADICORE ramework released
is blue better than red? anyone care for a holy war? am I having a bad day? Yes, yes, guess so My $0.2 Cheers! Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how should MS Access DATETIME be handled in PHP?
Hi! Bing Du wrote: Excellent! Yes, it now does give me a clue to see what's actually in the object. print_r($rec[0]) shows: stdClass Object ( [year] = 2005 [month] = 8 [day] = 31 [hour] = 0 [minute] = 0 [second] = 0 [fraction] = 0 ) I've never dealt with object in PHP. Something new learnt today. I'm now able to use get_object_vars($rec[0]) to extract the info from the object. You don't need get_object_vars(), you can simply use $rec[0]-year; Ah, great. Thanks much for the tip and the pointers. That's even better. Another question. It's not hard to do this mapping. But if given a month like '9', is there any PHP function that can convert it to a full text month name 'September'? Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] interview
[snip] Great, now the interviewee will be able to cheat. Way to go Jay. [/snip] *blush* I know. I wonder where we could apply, that way we can skew the results so that the cheating doesn't matter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: RADICORE ramework released
Hans Juergen von Lengerke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Tony Marston [EMAIL PROTECTED] Hans Juergen von Lengerke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Tony Marston [EMAIL PROTECTED] Any problems with locale are cased by having the language code in your browser set to something which cannot be matched up with the contents of the server's locale file. If it cannot find a match my software is supposed to keep the current default setting, whatever that is. supposed to, but it doesn't look like it does what you say. I get this error too. My language prefs are (in that order) de-de, de, en-gb, en When I move en up to first place the demo works. This is very strange. I have just tried setting my browser language to de-de, de, en-gb, en and I can access my demo without any problem. It is indeed very strange because it works for me now too. But I swear that I saw the error earlier :) That must have been those pesky gremlins. Glad it's fixed now, though. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RADICORE ramework released
You can't tell just by looking at it. You've actually got to use it to develop an application. -- Tony Marston http://www.tonymarston.net http://www.radicore.org Anas Mughal [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] A question for the folks who have tried it out: Is it better than Ruby on Rails? Thanks. -- Anas Mughal On 4/11/06, Tony Marston [EMAIL PROTECTED] wrote: Announcing the first public release of RADICORE, a Rapid Application Development toolkit for building administrative web applications which contains the following: a.. A true rapid application development framework which is based around Transaction Patterns. b.. A dynamic Menu system. c.. A Role Based Access Control system. d.. An Audit Logging system. e.. An activity based Workflow system. f.. A Data Dictionary. g.. Facilities for Internationalisation. It's even better than Ruby on Rails! Check it out at http://www.radicore.org -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anas Mughal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RADICORE ramework released
Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tony Marston wrote: Kevin Waterson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This one time, at band camp, Tony Marston [EMAIL PROTECTED] wrote: Announcing the first public release of RADICORE, a Rapid Application Development toolkit for building administrative web applications which **YAWN** It sounds like it's WAY past your bedtime. Does your mother know you're up this late? SARCASM at=high volume it's not that it's just that Kevin is the most 'leet' php coder on the planet (other than Jasper Bryant Greene of course) and your stuff is just _s_ basic you f***ing noob. /SARCASM I always thought that Marcus Baker (aka Lastcraft) was the coolest coder on the planet. At least that's what he keeps telling me :) me I must be an idiot because I didn't even grok the demo too much - what exactly was the demo supposed to be showing me? If you don't know then it would be a waste of time telling yo. ...although the workflow stuff you talk about makes we want to dive in and figure it out (somehow). I shouldn't bother. My style of coding is obviously not up to your impecable standards. any don't be put off - you obviously put lots of time and effort into your project and it looks like it has some interesting stuff in there! It's only interesting if you are developing an administrative web application and you want a dynamic menu system, role based access control, audit logging, workflow and internationalisation. It also supports RAD by using transaction patterns and a data dictionary which helps to generate code for the business layer. Apart from that it's totally useless :) -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RADICORE ramework released
Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anas Mughal wrote: A question for the folks who have tried it out: Is it better than Ruby on Rails? is blue better than red? anyone care for a holy war? am I having a bad day? Are brains better than brawn? Is PHP better than Java? Is anything better than .NET? -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] RADICORE ramework released
[snip] Is anything better than .NET? [/snip] Odd... I always thought it was .NOT --- http://chrome.me.uk -Original Message- From: Tony Marston [mailto:[EMAIL PROTECTED] Sent: 13 April 2006 17:26 To: php-general@lists.php.net Subject: Re: [PHP] RADICORE ramework released Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anas Mughal wrote: A question for the folks who have tried it out: Is it better than Ruby on Rails? is blue better than red? anyone care for a holy war? am I having a bad day? Are brains better than brawn? Is PHP better than Java? Is anything better than .NET? -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1487 (20060413) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
How about the Presidential election?!! On Apr 13, 2006, at 9:23 AM, Jay Blanchard wrote: [snip] Great, now the interviewee will be able to cheat. Way to go Jay. [/snip] *blush* I know. I wonder where we could apply, that way we can skew the results so that the cheating doesn't matter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
These are all very good questions. And, to top it all, here is a question that was recently posted to the list: How does apache improves PHP? Good luck!!! On 4/13/06, Jeffrey Pearson [EMAIL PROTECTED] wrote: How about the Presidential election?!! On Apr 13, 2006, at 9:23 AM, Jay Blanchard wrote: [snip] Great, now the interviewee will be able to cheat. Way to go Jay. [/snip] *blush* I know. I wonder where we could apply, that way we can skew the results so that the cheating doesn't matter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anas Mughal
Re: [PHP] interview
How much wood would a wood chuck chuck if a wood chuck could chuck wood?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] interview
[snip] How much wood would a wood chuck chuck if a wood chuck could chuck wood?? [/snip] Sub-question A; using a regular wood chuck? Sub-question B; using a PHP wood chuck? (Never mind the expense) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] how should MS Access DATETIME be handled in PHP?
On 13 April 2006 17:08, Bing Du wrote: Hi! Bing Du wrote: Excellent! Yes, it now does give me a clue to see what's actually in the object. print_r($rec[0]) shows: stdClass Object ( [year] = 2005 [month] = 8 [day] = 31 [hour] = 0 [minute] = 0 [second] = 0 [fraction] = 0 ) I've never dealt with object in PHP. Something new learnt today. I'm now able to use get_object_vars($rec[0]) to extract the info from the object. You don't need get_object_vars(), you can simply use $rec[0]-year; Ah, great. Thanks much for the tip and the pointers. That's even better. Another question. It's not hard to do this mapping. But if given a month like '9', is there any PHP function that can convert it to a full text month name 'September'? Yes. Oh, you want to know what it is? I expect there's actually several ways, although I'm thinking it's likely that none of them is blindingly obvious. Personally, I think I'd be inclined to do it like this: $mth = 9; echo date('F', mktime(12,0,0, $mth)); I'm sure you'll get other equally valid suggestions! Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
On Thu, 2006-04-13 at 12:56, Wolf wrote: How much wood would a wood chuck chuck if a wood chuck could chuck wood?? Canadian, American, or Other woodchuck? 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] interview
On Thursday 13 April 2006 11:13 am, Robert Cummings wrote: On Thu, 2006-04-13 at 12:56, Wolf wrote: How much wood would a wood chuck chuck if a wood chuck could chuck wood?? Canadian, American, or Other woodchuck? monty python Leave or we shall taunt you a second time! /monty python -- Joe Henry www.celebrityaccess.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] interview
How about questions they want to hear?: 1) Would you mind receiving a very large paycheck? 2) Do company cars offend you? 3) Would you like a scholarship offered for every one of your children? Ask those three questions, and you have hired them.that's all I know :) -Original Message- From: Mad Unix [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 9:22 AM To: php-general@lists.php.net Subject: [PHP] interview can you please send some interview questions for php i have in few days to inteview some people. -- madunix Communications Engineering (RWTH Aachen University) Systems and Network Engineer MCSE, IBM AIX System Specialist, CCNP, CCSP(SECUR,CSVPN) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SQL result
http://us3.php.net/manual/en/function.mysqli-fetch-row.php On 4/25/06, Mohsen Pahlevanzadeh [EMAIL PROTECTED] wrote: Dear all, I remember that i use a func that it return an array what it consist of result of my sql query. Please name me that. Yours,Mohsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
At 5:21 PM +0200 4/13/06, Mad Unix wrote: can you please send some interview questions for php i have in few days to inteview some people. -- madunix no offense meant If you know php, why are you asking us do your work for you? else What are you doing interviewing someone for a php position? How would you like it if someone who didn't have a clue as to your expertise, interviewed you and then judged you as to what you know? I took an interview one time where the interviewer had better things to do and sent in two teenagers to interview me. First, they didn't have a * clue as to what I was about nor what I could offer the company; Second, I had underwear older than them so they weren't too savvy in interview techniques. A week after the interview, I received a letter from the company telling me that I didn't have the qualifications they were looking for. Less than two years later the company folded -- no surprise there huh? Imagine a company having an interviewer who's clueless in judging the qualifications of an applicant. If I worked for a company like that, I would be looking for another position. /no offense meant tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] interview
If a coal cart could cart coal, how much coal would a coal cart cart... if a coal cart could cart coal? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
if PHP could PHP a PHP page, how much PHP would a PHP page take to PHP a PHP page? On 4/13/06, Ryan A [EMAIL PROTECTED] wrote: If a coal cart could cart coal, how much coal would a coal cart cart... if a coal cart could cart coal? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
Anthony Ettinger wrote: if PHP could PHP a PHP page, how much PHP would a PHP page take to PHP a PHP page? dunno. but it's sounds like a Pretty Hard Problem to solve. :-) I just envisaging the guy to be interviewed reading this list right now ... we should run a sweepstake on whether he bothers to turn up. ;-) On 4/13/06, Ryan A [EMAIL PROTECTED] wrote: If a coal cart could cart coal, how much coal would a coal cart cart... if a coal cart could cart coal? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] interview
[snip] How would you like it if someone who didn't have a clue as to your expertise, interviewed you and then judged you as to what you know? [/snip] Like upper management? ;) Dan --- http://chrome.me.uk -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 13 April 2006 19:49 To: Mad Unix; php-general@lists.php.net Subject: Re: [PHP] interview At 5:21 PM +0200 4/13/06, Mad Unix wrote: can you please send some interview questions for php i have in few days to inteview some people. -- madunix no offense meant If you know php, why are you asking us do your work for you? else What are you doing interviewing someone for a php position? How would you like it if someone who didn't have a clue as to your expertise, interviewed you and then judged you as to what you know? I took an interview one time where the interviewer had better things to do and sent in two teenagers to interview me. First, they didn't have a * clue as to what I was about nor what I could offer the company; Second, I had underwear older than them so they weren't too savvy in interview techniques. A week after the interview, I received a letter from the company telling me that I didn't have the qualifications they were looking for. Less than two years later the company folded -- no surprise there huh? Imagine a company having an interviewer who's clueless in judging the qualifications of an applicant. If I worked for a company like that, I would be looking for another position. /no offense meant tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1488 (20060413) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
Chrome wrote: [snip] How would you like it if someone who didn't have a clue as to your expertise, interviewed you and then judged you as to what you know? [/snip] Like upper management? ;) *ding ding ding* We have a winner! I love the 'deer in headlights' look our CEO gets when I explain to him how things work. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] how should MS Access DATETIME be handled in PHP?
I expect there's actually several ways, although I'm thinking it's likely that none of them is blindingly obvious. Personally, I think I'd be inclined to do it like this: $mth = 9; echo date('F', mktime(12,0,0, $mth)); Interesting. Thanks a bunch for the tip, Mike. Appreciate it. Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: interview
On 4/13/06, Mad Unix [EMAIL PROTECTED] wrote: can you please send some interview questions for php i have in few days to inteview some people. Well, a simple google search could have saved you all this http://www.google.com/search?q=php+interview+questions and do NOT try PHP at home! It's highly flammable ;) /ahmed
[PHP] Beginner Help - Array
This seems like it should work, but the option statement is just filling in one line of datahm... the names have multiple territories (ID's), so I want to have one name associated with one territory ID ( other stuff happens elseware...). //building list of names and their territory matching ID's while($getidsd = mysql_fetch_array($getidsr)){ if ($getidsd['employeeid'] != '990' $getidsd['employeeid'] != '991') { $salespersonsstor= Array(name=$getidsd['fname'].' '.$getidsd['lname'],idIS=$getidsd['employeeid']); } } asort($salespersonsstor); $salesmanactive=''; $salesmann=''; $ID1=''; foreach ($salespersonsstor as $key = $TheSalesManID) { switch ($key) { case name: $salesmann = $TheSalesManID; break; case idIS: $ID1 = $TheSalesManID; } If (($salesmann != '' $ID1 != '') ($salesmanactive != $salesmann)) { echo 'option value='.$ID1.''.$salesmann.'/option'; $salesmanactive=$salesmann; $salesmann=''; $ID1=''; } } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] serialize() function
Are there any tutorials and uses for serialize() ? I went to php.net and it isn't well documented as I would hope! ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] serialize() function
Nicholas Couloute wrote: Are there any tutorials and uses for serialize() ? I went to php.net and it isn't well documented as I would hope! ?php $o = new StdObject; $a = array(); $i = 1; $b = false; echo serialize($o),\n, serialize($a),\n, serialize($i),\n, serialize($b),\n, serialize(array(A=$o,B=$a,C=$i,D=$b)),\n, ? ... and yes there are uses for it. what do you want to do? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] serialize() function
Nicholas Couloute wrote: I was thinking of a news system with comments. fine. but what's that got to do with serialize() per se? or put another don't look at a function decide it might be useful and then force yourself to build an application with it cart before the horse and all that. On Thu, 13 Apr 2006 6:04 pm, Jochem Maas wrote: Nicholas Couloute wrote: Are there any tutorials and uses for serialize() ? I went to php.net and it isn't well documented as I would hope! ?php $o = new StdObject; $a = array(); $i = 1; $b = false; echo serialize($o),\n, serialize($a),\n, serialize($i),\n, serialize($b),\n, serialize(array(A=$o,B=$a,C=$i,D=$b)),\n, ? ... and yes there are uses for it. what do you want to do? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
On Thu, April 13, 2006 2:46 pm, John Nichel wrote: Chrome wrote: [snip] How would you like it if someone who didn't have a clue as to your expertise, interviewed you and then judged you as to what you know? [/snip] Like upper management? ;) *ding ding ding* We have a winner! I love the 'deer in headlights' look our CEO gets when I explain to him how things work. I made the mistake a couple months ago of explaining AJAX to our CEO, in such a way that he actually understood it. He know understands copy and paste and AJAX. Now, anytime something on a website, any website, is slow, he wants us to use AJAX on our site to make it seem faster. Sigh. When all you understand is a hammer... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how should MS Access DATETIME be handled in PHP?
On Thu, April 13, 2006 9:30 am, Bing Du wrote: $qry = odbtp_query(SELECT end_date,title,projectID FROM projects ORDER BY end_date DESC); While all the data-munging in PHP is very interesting... Might I suggest that you just use MySQL's date_format() function to ask MySQL to give you the data you want in the first place? Some purists would claim that the database is not the place to put presentation logic, of course. And for a large-scale library where other users might want to skin a different format, I couldn't agree more. But, really, for a small project, K.I.S.S. wins out, and having MySQL just hand you what you want instead of cluttering up your code with several lines (or a long multi-operation line) of PHP, seems like a cleaner solution. Not to mention that you'll have a lot less headaches like this one. http://mysql.com and search for date_format -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Join - Two Columns with the same name
This is probably basic, but I can't seem to find the answer. Is there a way to specify in a join a specific column when the two tables have columns with the same name? Something like: $row['table1.id'] vs $row['table2.id'] -- Kevin Murphy Webmaster: Information and Marketing Services Western Nevada Community College www.wncc.edu 775-445-3326 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
On Thu, April 13, 2006 10:21 am, Mad Unix wrote: can you please send some interview questions for php i have in few days to inteview some people. -- madunix Communications Engineering (RWTH Aachen University) Systems and Network Engineer MCSE, IBM AIX System Specialist, CCNP, CCSP(SECUR,CSVPN) Assuming any of that junk makes you technically competent in the first place... Which, frankly, with an MCSE leading them off, I have severe reservations... If you don't know PHP, then most of the decent questions we could send would have such complex answers that you wouldn't be able to compare the interviewee's answers to ours with any usefulness. I mean, a simple question like Why should register_globals be turned off requires quite a lot of study before you can understand it well enough to evaluate an answer. I'd guess ~70% of the readers on this list could not provide a correct, complete, cogent answer in an interview to the question, though many would have decent half-formed answers. You'll simply have to stumble along like everybody else looking at their portfolio and examining some of their source code and documentation to see what their work looks like. Presumably you can spot good code from bad, and see a well-designed software package and know it from utter junk, and review some documetation and see if it's at least organized well enough to be somewhat useful. If not, you're stuck with looking at how pretty their portfolio is and looking for buzzwords and big-name clients/employers in the past... Wow. Considering my own resume and portfolio, that's just a scary thought on several different levels and going all kinds of different directions. It DOES explain a few of the more clueless headhunters and interviewees I've had, though. :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] interview
On Thu, April 13, 2006 2:25 pm, Jochem Maas wrote: Anthony Ettinger wrote: if PHP could PHP a PHP page, how much PHP would a PHP page take to PHP a PHP page? One line: ?php require 'page.php';? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Join - Two Columns with the same name
Kevin Murphy wrote: This is probably basic, but I can't seem to find the answer. Is there a way to specify in a join a specific column when the two tables have columns with the same name? Something like: $row['table1.id'] vs $row['table2.id'] yes. http://dev.mysql.com/doc/ is a good place to starting reading up on SQL JOIN syntax. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CURLOPT_BINARYTRANSFER [SOLVED]
On Tue, April 11, 2006 3:56 pm, Richard Lynch wrote: First, I want to publicly THANK Pierre and Tony2001 for squashing not one, but *TWO* bugs I managed to stumble across in my latest endeavor. Their patience with my bumbling through bogus hypotheses and red herrings in my bug reports should be specially commendated. Next, I'm pretty sure I know what CURLOPT_BINARYTRANSFER is for, and am posting a [SOLVED] in case others stumble across this thread. I have trimmed out all my false conjectures, and left the Truth. Can anybody expand on the meaning and correct usage of: CURLOPT_BINARYTRANSFER [found on the net] That option is not an actual curl option, in fact -- it has something to do with PHP's own internals. [nb] Which would go a long way to explaining why I'm not finding BINARYTRANSFER documented on the curl site, eh? It's strictly a PHP internals thing? [/nb] But does make me wonder why my correct User Contributed Note encompassing much of the following was nuked... Oh well. Hopefully those in need find this post. #1. If you want to get binary data through curl, such as a JPEG/GIF or whatever, you need this so PHP will not treat the data as a null-terminated string, but will store it as a binary string internally. Note that flip-flopping BINARYTRANSFER from false/true/false... was (for me, at least, in CLI, at least) triggering a bug which has been fixed in CVS, so you may have troubles with that unless you upgrade. The fix is in 5.1 snaps, so I guess it will be in 5.1.3? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Join - Two Columns with the same name
Several methods are supported by mysql, here is the one I like, select * from table1 a, table2 b where a.col1 = b.col1 In this case the a and b are aliases of table1 and table2 respectively and the notation a.col1 and b.col1 refers to column col1 in table1 and table2 respectively. You can used the same notation in left and right joins if you don't want to use the hard join illustrated here. (In a hard join, if the value in table1 is missing from table2 no row is returned, even if one exists in table 1). hope this helps, Warren Vail At 03:29 PM 4/13/2006, Kevin Murphy wrote: This is probably basic, but I can't seem to find the answer. Is there a way to specify in a join a specific column when the two tables have columns with the same name? Something like: $row['table1.id'] vs $row['table2.id'] -- Kevin Murphy Webmaster: Information and Marketing Services Western Nevada Community College www.wncc.edu 775-445-3326 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] serialize() function
At 12:04 AM +0200 4/14/06, Jochem Maas wrote: Nicholas Couloute wrote: Are there any tutorials and uses for serialize() ? I went to php.net and it isn't well documented as I would hope! ?php $o = new StdObject; $a = array(); $i = 1; $b = false; echo serialize($o),\n, serialize($a),\n, serialize($i),\n, serialize($b),\n, serialize(array(A=$o,B=$a,C=$i,D=$b)),\n, ? ... and yes there are uses for it. what do you want to do? Jochem: Not that you don't know -- because I'm sure you do -- but for the benefit of others. One example, each domain has a limit of cookies (20) and you can use them up pretty quickly. However, if you place your data in an array, you could then serialize the array and save it as one long string (i.e., the cookie). Then you can read it back from the cookie and un-serialize it back to the array. tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Text database instead of MySql (Recommendations / Advise also welcome)
Hey, I have been asked to make a site that would be pretty high traffic... problem is, no MySql. Although i have messed around with php's file and directory commands I have never really made anything really big using them, I always used MySql, here I dont have that choice as the server itself does not have MySql installed. After a bit of seaching on the SEs I found quite a few links to have text databases and have kind of settled on this one: PHP Text DB (http://www.c-worker.ch/txtdbapi/index_eng.php) If anybody has any experience using the above, or would rather recommend another I would appreciate a reply from you. As usual; any advise / links would also be appreciated. Thanks, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php