Re: [PHP] EMPTY??

2007-10-23 Thread Nathan Nobbe
On 10/23/07, Dan Shirah [EMAIL PROTECTED] wrote: I made two variables for the same posted value because I believe empty() does not work with strtoupper in front of the value. It only works with a standalone variable, correct? no; strtoupper modifies its argument, that is all. empty evaluates

Re: [PHP] EMPTY??

2007-10-23 Thread Nathan Nobbe
On 10/23/07, Dan Shirah [EMAIL PROTECTED] wrote: doing a var_dump($_POST['comments']; returns string(0) So the value of $comments in $comments = $_POST['comments']; SHOULD be equal to 0 or , right? In which case when I do my original: if (!empty($comments)) { echo Do Something; }

Re: [PHP] EMPTY??

2007-10-23 Thread Nathan Nobbe
On 10/23/07, Dan Shirah [EMAIL PROTECTED] wrote: Correct, which is why in my original post I set two variables. $comments = strtoupper($_POST['comments']); //This is the value I want saved in my database. $check_comments = $_POST['comments']; //This is the value I am using to determine if

Re: [PHP] PHP Oracle Ebook Request.

2007-10-23 Thread Nathan Nobbe
On 10/23/07, Daevid Vincent [EMAIL PROTECTED] wrote: I have a garage full of paper books/manuals that I have no idea WTF to do with because they're all outdated and the recycle people won't take them b/c it's too heavy in the blue bin. maybe you could put them in there a few at a time ?

Re: [PHP] Slashes, include, AJAX?

2007-10-25 Thread Nathan Nobbe
On 10/25/07, Rodrigo Poblanno Balp [EMAIL PROTECTED] wrote: Hi everybody! I'm building a small ajax app which consists of only 3 php files. index.php which contains all the app and has a couple of links. When a link is clicked an Ajax request is sent to the server (using prototype) to the

Re: [PHP] Slashes, include, AJAX?

2007-10-25 Thread Nathan Nobbe
On 10/25/07, Rodrigo Poblanno Balp [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: On 10/25/07, Rodrigo Poblanno Balp [EMAIL PROTECTED] wrote: Hi everybody! I'm building a small ajax app which consists of only 3 php files. index.php which contains all the app and has a couple

Re: [PHP] Slashes, include, AJAX?

2007-10-26 Thread Nathan Nobbe
On 10/26/07, Rodrigo Poblanno Balp [EMAIL PROTECTED] wrote: I get something like divthis is the content\/div it seems like the '/' is being escaped, but I need it as HTML. how are you using the json object on the client-side after its sent by the server? below is a json snippet from an

Re: [PHP] Slashes, include, AJAX? {SOLVED}

2007-10-27 Thread Nathan Nobbe
On 10/26/07, Rodrigo Poblanno Balp [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: On 10/26/07, Rodrigo Poblanno Balp [EMAIL PROTECTED] wrote: I get something like divthis is the content\/div it seems like the '/' is being escaped, but I need it as HTML. how are you using the json

Re: [PHP] SPL

2007-10-27 Thread Nathan Nobbe
On 10/27/07, Børge Holen [EMAIL PROTECTED] wrote: I'm currently using RecursiveDirectoryIterator and RecursiveIteratorIterator. I'm using fwrite to write to a file while parsing throught the file structure, and was wondering if it is at all possible to sort alphabetical without going all

Re: [PHP] SPL

2007-10-28 Thread Nathan Nobbe
i suppose this is what youre looking for ? you can tailor it to your needs of course :) ?php $it = new RecursiveDirectoryIterator('.'); $isFirstDir = true; $fileList = array(); $dynfile = fopen('sortedFiles', 'w+'); $theRecursiveIteratorIterator = new RecursiveIteratorIterator($it,

Re: [PHP] Newline

2007-10-28 Thread Nathan Nobbe
On 10/28/07, magoo [EMAIL PROTECTED] wrote: Hi NG! I have switched to using single quotes, and found out that newline (\n) only works in double quotes. It looks kind of stupid using 'someString'.\n; and it`s kind of inconsistent using double quotes for some lines like someString\n;.

Re: [PHP] Newline

2007-10-29 Thread Nathan Nobbe
On 10/29/07, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Sunday 28 October 2007, magoo wrote: I have switched to using single quotes, and found out that newline (\n) only works in double quotes. It looks kind of stupid using 'someString'.\n; and it`s kind of inconsistent using double

Re: [PHP] Newline

2007-10-29 Thread Nathan Nobbe
On 10/30/07, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Monday 29 October 2007, Nathan Nobbe wrote: if you were going to do that you may as well use PHP_EOL its cross-platform and doesnt require an define directive. (php5 only) It's available in 4.3.10 as well, youre right about

Re: [PHP] Compilers

2007-10-30 Thread Nathan Nobbe
On 10/30/07, Richard Heyes [EMAIL PROTECTED] wrote: Wolf wrote: Anyone use compilers (linux based or Windoze) and which do you use? Looking for something free (best) or low cost as we are doing some investigation on what methods are best for some of the stuff we have, and I'm thinking

Re: [PHP] Re: Function variables in classes

2007-11-01 Thread Nathan Nobbe
On 11/1/07, Sebastian Hopfe [EMAIL PROTECTED] wrote: I think you should log it, because it seems to be, and you found this error. i would not consider this a bug. what paul is asking about is the variable function syntax in php. http://www.php.net/manual/en/functions.variable-functions.php

Re: [PHP] Re: Function variables in classes

2007-11-01 Thread Nathan Nobbe
On 11/1/07, Jochem Maas [EMAIL PROTECTED] wrote: Sebastian Hopfe wrote: I think you should log it, because it seems to be, and you found this error. it's not a bug - especially because nobody has bothered to mention the php version. this issue has the same implications in php4 and php5,

Re: [PHP] Function variables in classes

2007-11-01 Thread Nathan Nobbe
On 11/1/07, Eric Butera [EMAIL PROTECTED] wrote: I don't know if this has been said yet, but in 5.3 they added this: Dynamic static calls: $c = classname; $c::someMetod(); apparently it works in 5.2.4 as well: ?php class Foo { static public function staticMethod() { echo

Re: [PHP] Function return

2007-11-02 Thread Nathan Nobbe
On 11/2/07, Stut [EMAIL PROTECTED] wrote: Dan Shirah wrote: That is correct, the due_date field should only accept a valid date format, such as MM/DD/. To bypass the need for a validation check for this field I simply set the text field to disabled and supplied the user with a

Re: [PHP] Function return

2007-11-02 Thread Nathan Nobbe
On 11/2/07, Dan Shirah [EMAIL PROTECTED] wrote: Ah, okay. So I could probably simplfy it more by trimming it from the start like this?? $due_date = trim($_POST['due_date']); that works; i personally prefer to initialize a variable then only set it if the user input meets some conditions;

Re: [PHP] Function return

2007-11-02 Thread Nathan Nobbe
On 11/2/07, Dan Shirah [EMAIL PROTECTED] wrote: Okay, so instead I should probably use: if($due_date != ) $insert2.=, due_date='$due_date'; Instead of using empty() using emtpy is fine; just store the results of trim in a temporary variable: $trimmed = trim($due_date);

Re: [PHP] Function return

2007-11-02 Thread Nathan Nobbe
On 11/2/07, Dan Shirah [EMAIL PROTECTED] wrote: TGIF!! I have an insert statement that checks to see if a condition is met. If it is, then it adds that value to the insert statement. However, when I try to run it I get the error: Can't use function return value in write context Below

Re: [PHP] Function variables in classes

2007-11-02 Thread Nathan Nobbe
On 11/2/07, rohini [EMAIL PROTECTED] wrote: Hi paul, Why you are trying to use the scope resolution operator see you can use this way simply. Code: ** ?php class foobar { function bar2 () { echo Yep, in bar2() right now\n; } public function foo2 () {

Re: [PHP] Page cannot be displayed error in IE6

2007-11-03 Thread Nathan Nobbe
On 11/3/07, tanzeem [EMAIL PROTECTED] wrote: i have 3 php files pag1.php,page2.php,page3.php I posted to page2.php from page1.php Then again posted from page2.php to page3.php But when i click th back button from page3.php in IE 6.0 it displays a page cannot be displayed error. When i

Re: [PHP] $_POST superglobal empty, while readfile(php://input) does return data.

2007-11-03 Thread Nathan Nobbe
On 11/3/07, Mackatack [EMAIL PROTECTED] wrote: Hey all! Im trying to submit a very basic form to phpinfo(): form action='?' method='POST' input type='hidden' name='foo' value='bar' / input type='submit' / /form ?php error_reporting(E_ALL); echo

Re: [PHP] $_POST superglobal empty, while readfile(php://input)does return data.

2007-11-04 Thread Nathan Nobbe
On 11/4/07, Mackatack [EMAIL PROTECTED] wrote: I have not defined any limit tags in my httpd.conf and by default apache should accept all request methods. I've stripped my apache config down to: Listen 80 NameVirtualHost *:80 VirtualHost *:80 ServerName my.server.com

Re: [PHP] Question about php.ini file

2007-11-04 Thread Nathan Nobbe
On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Cristian: Thanks for the replies. In this case, what I've been noticing is that most of the values have gone DOWN (i.e., gotten smaller) after I placed my own php.ini file in place. For example, upload_max_filesize was 8M before

Re: [PHP] Looking for ways to prevent timeout

2007-11-04 Thread Nathan Nobbe
On 11/4/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi all: I'm hoping to find a solution to the problem I'm having with my script timing out while inserting records into a table. Overall, the process is pretty fast, which is impressive, but when it gets to the 22,000 to 23,000 record

Re: [PHP] Looking for ways to prevent timeout

2007-11-05 Thread Nathan Nobbe
On 11/5/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Nathan: No, I'm not familiar with Ajax. Where can I read up on it? More important, how can I find out if Ajax is implemented on the server? Or is it something I can add myself? if you arent familiar w/ ajax, no worries; the main

Re: [PHP] Page cannot be displayed error in IE6

2007-11-05 Thread Nathan Nobbe
On 11/5/07, tanzeem [EMAIL PROTECTED] wrote: Thanks nathan, But i cant use 'get' since the string being submitted is very big. i guess that is an ie6 limitation, im not sure it still exists in 7. I tried PHP headers as referred to by another website. This only produced warning message:

Re: [PHP] Looking for ways to prevent timeout

2007-11-05 Thread Nathan Nobbe
On 11/5/07, Jochem Maas [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: On 11/5/07, Jon Westcot [EMAIL PROTECTED] wrote: Hi Nathan: No, I'm not familiar with Ajax. Where can I read up on it? More important, how can I find out if Ajax is implemented on the server

Re: [PHP] Can I make a process run in background?

2007-11-06 Thread Nathan Nobbe
if youre running linux, you might also want to consider disown. -nathan

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-06 Thread Nathan Nobbe
On 11/6/07, Rahul S. Johari [EMAIL PROTECTED] wrote: I couldn't find an /etc/rd.d or rc3.d on my system at all. I've been manually mounting after each boot, so still looking for an automated mounting solution. look for /etc/fstab -nathan

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-06 Thread Nathan Nobbe
On 11/6/07, Rahul S. Johari [EMAIL PROTECTED] wrote: On 11/6/07 12:03 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On 11/6/07, Rahul S. Johari [EMAIL PROTECTED] wrote: I couldn't find an /etc/rd.d or rc3.d on my system at all. I've been manually mounting after each boot, so still looking

Re: [PHP] Disabling Functions And Clasess

2007-11-06 Thread Nathan Nobbe
On 11/6/07, Alberto García Gómez [EMAIL PROTECTED] wrote: Can I use -dissable_classes- and -dissable_functions- directives inside Apache virtual host configuration using php_value directive. all you have to do is check the doc on php.ini directives. the answer in this case to both directives

Re: [PHP] Local vs Master Configure values

2007-11-09 Thread Nathan Nobbe
On Nov 9, 2007 4:24 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I'm confronting a safe_mode problem and have a question. My PHP Info states that safe_mode is ON for local and OFF for master -- what does that mean? Does that mean I can turn it off for my scripts via something like:

Re: [PHP] Local vs Master Configure values

2007-11-09 Thread Nathan Nobbe
On Nov 9, 2007 5:01 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Nov 9, 2007 4:24 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I'm confronting a safe_mode problem and have a question. My PHP Info states that safe_mode is ON for local and OFF for master -- what does that mean? o i

Re: [PHP] Local vs Master Configure values

2007-11-09 Thread Nathan Nobbe
On 11/9/07, tedd [EMAIL PROTECTED] wrote: The only question that remains for me is what's the difference between Local and Master Configure values in php_info? Why two? as i mentioned the local column is for overrides that can be specified in one of several locations: httpd.conf .htaccess

Re: [PHP] Re: functions versus includes

2007-11-11 Thread Nathan Nobbe
On Nov 11, 2007 6:02 PM, Frank Lopes [EMAIL PROTECTED] wrote: No takers on this topic? Frank Lopes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just started using PHP and got to think... Without getting into the discussion of best practices, strictly from a

Re: [PHP] functions versus includes

2007-11-11 Thread Nathan Nobbe
On Nov 11, 2007 9:32 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-11-12 at 11:27 +1100, Chris wrote: Frank Lopes wrote: I just started using PHP and got to think... Without getting into the discussion of best practices, strictly from a performance perspective, what

Re: [PHP] functions versus includes

2007-11-11 Thread Nathan Nobbe
On Nov 11, 2007 11:52 PM, Chris [EMAIL PROTECTED] wrote: As I said, it's a micro-optimization *shrug*. 0.0004 seconds difference over 10 iterations - wow ;) actually it was just one iteration; the output isnt very clear, but thats the value of a variable. anyway, i was surprised to see the

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Nathan Nobbe
On Nov 14, 2007 1:39 PM, Daniel Brown [EMAIL PROTECTED] wrote: If you don't know how it works, you can bitch about the syntax manuals being too vague. im going to take the opportunity here and bitch about the documentation for the DateTime object built into php5; it sucks :-O -nathan

Re: [PHP] CURL efficiency?

2007-11-16 Thread Nathan Nobbe
On Nov 15, 2007 4:41 PM, Michael McGlothlin [EMAIL PROTECTED] wrote: I make use of CURL to talk to a back-end system and I'm calling it several times per requested page and there are several page requests a second. Is there anything I can do to make this process more efficient? Does keep

Re: [PHP] tell me :which book is good for newman??

2007-11-17 Thread Nathan Nobbe
php|architect's Zend PHP 5 Certification Study Guidehttp://www.amazon.com/architects-Zend-Certification-Study-Guide/dp/0973862149 is solid; even for people whove programmed in php for a little while. i learned a few things in there. its a great starting point; and not too long either. -nathan

Re: [PHP] submitting forms with ajax

2007-11-18 Thread Nathan Nobbe
json is just a terse way to create objects anonymously as well as other data structures in javascript. http://json.org/ to build a json response with html essentially all you need to do is create a javascript array in php and put the html you want for the next page in that. then you use the

Re: [PHP] PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Nathan Nobbe
On Nov 28, 2007 10:48 AM, Daniel Brown [EMAIL PROTECTED] wrote: Good morning (/afternoon/evening) all; This is more or less an RFC-type email, hence the subject line. I would like to see your comments on this case, and maybe we can forge some sort of agreement or unofficial treaty or

Re: [PHP] Curl doesn't handle memory stream

2007-11-29 Thread Nathan Nobbe
On Nov 29, 2007 7:56 AM, Peter Smit [EMAIL PROTECTED] wrote: On Nov 27, 2007 11:43 PM, Peter Smit [EMAIL PROTECTED] wrote: Hello, I've got quite a strange problem with the curl library. The following code does output Content||\Content instead of Content|example.orgoutput|\Content

Re: [PHP] Calling parent function with call_user_func_array

2007-11-29 Thread Nathan Nobbe
On Nov 29, 2007 7:22 PM, Tommy Baggett [EMAIL PROTECTED] wrote: Here's the exact code I tried: class Walker_NavBar extends Walker { ... function walk($elements, $to_depth) { $args = func_get_args(); ... // call base class implementation

Re: [PHP] Re: how do i get a printout of original multipart post data

2007-12-01 Thread Nathan Nobbe
On Dec 1, 2007 2:13 PM, Olav Mørkrid [EMAIL PROTECTED] wrote: thanks, but that won't work. i need to see post data from other people out there, not my own data. still a mystery to me why php doesn't let developers see incoming raw data. i think this is what youre looking for:

Re: [PHP] Banned from #php

2007-12-03 Thread Nathan Nobbe
couldnt you always like come back w/ a different username? i mean seriously; how are those bans structured anyway? -nathan

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread Nathan Nobbe
On Dec 5, 2007 11:33 PM, Steve Finkelstein [EMAIL PROTECTED] wrote: Basically what I'm asking is, am I going to be end up being a jack of all trades, master of none, if I continue pursuing design AND development? Is there plenty of work out there for folks who just stick to development? if

Re: [PHP] Seeking overlap algorithm

2007-12-06 Thread Nathan Nobbe
On Dec 6, 2007 4:59 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: This post is related to the zip lat/long request I recently made and received such an overwhelming response -- many thanks to all. In any event, let's say we have a end-user who is looking for services within his zip-code AND

Re: [PHP] Seeking overlap algorithm

2007-12-07 Thread Nathan Nobbe
On Dec 6, 2007 9:14 PM, tedd [EMAIL PROTECTED] wrote: At 6:07 PM -0500 12/6/07, Nathan Nobbe wrote: On Dec 6, 2007 4:59 PM, tedd [EMAIL PROTECTED] wrote: The problem is, could you guarantee to a preferred service provider that they would receive top-listing 25 percent of the time? Keep

Re: [PHP] Seeking overlap algorithm

2007-12-07 Thread Nathan Nobbe
On Dec 7, 2007 10:12 AM, Ford, Mike [EMAIL PROTECTED] wrote: On 07 December 2007 02:14, tedd wrote: Now, what I need is a way to analyze the distribution of the current service providers to see if a given location is open to being sold as a preferred position -- do you see what I mean?

Re: [PHP] LoadXML trouble

2007-12-10 Thread Nathan Nobbe
On Dec 10, 2007 4:48 AM, Dani Castaños [EMAIL PROTECTED] wrote: Hi list! I have a problem with DOMDocument loadXML method. I used Windows to develop my applications, and nothing happens on it when i do something like $xml = new DOMDocument(); $xml-loadXML( $request ); Obviously, request

Re: [PHP] LoadXML trouble

2007-12-10 Thread Nathan Nobbe
On Dec 10, 2007 11:40 AM, Dani Castaños [EMAIL PROTECTED] wrote: I've checked $request previously and is not empty... it has something like: ?xml version=1.0? response ticketID1197026188_ec76/ticketID statusKO/status errCode500/errCode errMsgInternal Server Error/errMsg /response

Re: [PHP] LoadXML trouble

2007-12-10 Thread Nathan Nobbe
On Dec 10, 2007 12:08 PM, Dani Castaños [EMAIL PROTECTED] wrote: Yep, it works when i do saveXML, but not on loadXML step... did the loadXML() method work in the test script i sent over in my last post? if it does then something else is going on when loadXML() is called in the context of your

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-10 Thread Nathan Nobbe
On Dec 10, 2007 2:37 PM, Stephen Johnson [EMAIL PROTECTED] wrote: True randomization is only really possible in nature, so I am not sure you ever be completely happy with programming random numbers... But it may help you get better results if you include srand() in your randomization code.

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-10 Thread Nathan Nobbe
On Dec 10, 2007 2:28 PM, AmirBehzad Eslami [EMAIL PROTECTED] wrote: Dear list, For some computer-based simulation, i need to generate random numbers that have a normal distribution. It seems that PHP's rand() and mt_rand() functions return uniformly distributed numbers which is not

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-10 Thread Nathan Nobbe
On Dec 10, 2007 5:29 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-12-10 at 14:22 -0600, Jay Blanchard wrote: [snip] Can you say for certain nature is truly random? Just because the seed may have occurred 13.7 billion years ago and we don't know what that initial state was

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-10 Thread Nathan Nobbe
On Dec 10, 2007 5:56 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-12-10 at 17:45 -0500, Daniel Brown wrote: On Dec 10, 2007 5:39 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-12-10 at 16:32 -0600, Jay Blanchard wrote: [snip] Without order there cannot be

Re: [PHP] LoadXML trouble

2007-12-11 Thread Nathan Nobbe
On Dec 11, 2007 3:52 AM, Dani Castaños [EMAIL PROTECTED] wrote: If i use your script like this: $xml = '?xml version=1.0? response ticketID1197027955_8310/ticketID statusOK/status errCode200/errCode errMsg/errMsg /response'; $obj = new DOMDocument(); $obj-loadXML( $xml ); echo

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Nathan Nobbe
On Dec 11, 2007 4:11 PM, Per Jessen [EMAIL PROTECTED] wrote: I can't remember what sort of environment the OP was in, but if any sort of organised testing is done, the use of two different APIs will just about double the test-effort. Which is why I still think the best option is to mandate

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-12 Thread Nathan Nobbe
On Dec 12, 2007 4:47 AM, Per Jessen [EMAIL PROTECTED] wrote: Robert Cummings wrote: I can't remember what sort of environment the OP was in, but if any sort of organised testing is done, the use of two different APIs will just about double the test-effort. Which is why I still think the

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Nathan Nobbe
On Dec 12, 2007 1:16 PM, tedd [EMAIL PROTECTED] wrote: At 10:17 AM -0500 12/12/07, Robert Cummings wrote: In my ancient past I worked with a x-ray detector and we simply truncated to the tens digit -- that was pretty random. Random seeming you mean. As mentioned in the original post,

Re: [PHP] apc and cli

2007-12-12 Thread Nathan Nobbe
On Dec 12, 2007 2:33 PM, Ravi Menon [EMAIL PROTECTED] wrote: Hi, We have long running daemons written in php ( cli, non-apache contexts) with the typical pattern: while( !$shutdown ) { $c = new SomeClass; $c-process(); } For performance reasons, would it help if apc.enable_cli

Re: [PHP] How to look for unused methods/functions and variables/constants.

2007-12-14 Thread Nathan Nobbe
On Dec 12, 2007 4:21 AM, Mathijs van Veluw [EMAIL PROTECTED] wrote: Hello there, We have a large project with lots of classes. Now i am wondering if there is a way to let something check all those files and tell me which methods/functions variables/constants etc.. arn't used anymore. Or

Re: [PHP] How to look for unused methods/functions and variables/constants.

2007-12-14 Thread Nathan Nobbe
On Dec 14, 2007 2:49 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-12-14 at 14:09 -0500, Nathan Nobbe wrote: On Dec 12, 2007 4:21 AM, Mathijs van Veluw [EMAIL PROTECTED] wrote: Hello there, We have a large project with lots of classes. Now i am wondering

Re: [PHP] 'Define vs const' or 'file vs class'

2007-12-17 Thread Nathan Nobbe
On Dec 17, 2007 8:15 AM, Johannes Skov Frandsen [EMAIL PROTECTED] wrote: Hi everybody This post is not so much a question to solve a problem but more in the direction: what would you do and why. I'm starting a new project and is preparing the basic layout for the application. In all my

Re: [PHP] XML Extraction

2007-12-17 Thread Nathan Nobbe
On Dec 17, 2007 10:44 PM, VamVan [EMAIL PROTECTED] wrote: Hello, I receive an output as an XML File. Please provide some scripts that I can use for extraction of the values. For Example: titlehello/title titlehello2/title titlehello3/title are 3 different records in the XML File.

Re: [PHP] About PHP Implements

2007-12-18 Thread Nathan Nobbe
On Dec 18, 2007 5:45 PM, Chris [EMAIL PROTECTED] wrote: Jim Webber wrote: Hello I have a PHP4 server and I'm trying to figure out how to do implements on classes. Is there an analogous way to do this without PHP5 installed? If you're using inheritance and child classes you could do it in

Re: [PHP] Re: php sockets

2007-12-19 Thread Nathan Nobbe
figured id top-post on this one, since the original message was so long.. i recommend debugging with a tool like wireshark. that way you can see whats in the packets going over the wire and hopefully it will lead to a solution. -nathan On Dec 19, 2007 12:54 AM, vixle [EMAIL PROTECTED] wrote:

Re: [PHP] About PHP Implements

2007-12-19 Thread Nathan Nobbe
On Dec 19, 2007 11:17 AM, Andrew Ballard [EMAIL PROTECTED] wrote: On Dec 18, 2007 4:58 PM, Jim Webber [EMAIL PROTECTED] wrote: Hello I have a PHP4 server and I'm trying to figure out how to do implements on classes. Is there an analogous way to do this without PHP5 installed? It isn't

Re: [PHP] Using require instead of redirect architecture

2007-12-19 Thread Nathan Nobbe
On Dec 19, 2007 3:55 PM, Robert Erbaron [EMAIL PROTECTED] wrote: 1. p1.php would post to itself. Do data validation. After data validation upon error, include p1.php again with included error messages upon success, redirect to p3.php with congrats. Yeah, I could do

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-21 Thread Nathan Nobbe
On Dec 21, 2007 2:46 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-12-21 at 12:35 -0600, Philip Thompson wrote: On Dec 20, 2007, at 11:24 AM, Sancar Saran wrote: Hello All, Thanks for joining the conversation. It seems there where no real technical dead end for

Re: [PHP] vim/php color scheme

2007-12-27 Thread Nathan Nobbe
On Dec 27, 2007 11:00 AM, OOzy Pal [EMAIL PROTECTED] wrote: Anyone have a nice color scheme for php syntax highlighting in vim? I am using elflord and it is nice but the comment color is like the function color which makes it confusing. torte is my favorite; w/ a dark background. murphy is

Re: [PHP] vim/php color scheme

2007-12-27 Thread Nathan Nobbe
if you want to try out all the colorschemes on your system you can do so pretty quickly and easily, with the following keystrokes: 1. Esc 2. (type) :colorscheme 3. space 4. tab through the available colorschemes -nathan

Re: [PHP] vim/php color scheme

2007-12-27 Thread Nathan Nobbe
On Dec 27, 2007 2:32 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Dec 27, 2007 2:27 PM, OOzy Pal [EMAIL PROTECTED] wrote: Daniel, Sweet! Mine is version 7.x but I got it. I will check under vim7x. I post if I have further questions. Thank you You're welcome, but try to keep

Re: [PHP] Unix date

2007-12-28 Thread Nathan Nobbe
On Dec 28, 2007 10:46 AM, tedd [EMAIL PROTECTED] wrote: Hi gang: Using: $unix_in = 1255845600; echo(date(M d, Y h:i:s a,$unix_in)); On one sever, produces: Oct 18, 2009 02:00:00 am But on another sever, produces: Oct 18, 2009 12:00:00 am This difference appears to be a combination of

Re: [PHP] Re: [PHP-DEV] Sayonara PHP

2007-12-29 Thread Nathan Nobbe
On Dec 28, 2007 11:17 PM, Martin Alterisio [EMAIL PROTECTED] wrote: 2007/12/26, Colin Guthrie [EMAIL PROTECTED]: 3) I'm not so sure anymore if PHP is profitable as a language choice for web development. The small and medium projects market is becoming infested with developers who I cannot

Re: [PHP] Question regarding linking PHP Parser library into my private Http server

2007-12-30 Thread Nathan Nobbe
On Dec 30, 2007 4:02 AM, Talya Nevo [EMAIL PROTECTED] wrote: Hi, I am porting my software from Linux to µC/OS-II OS. On Linux I ran the Boa Web server with PHP. The µC/OS-II has a basic open source Http Server that does not support PHP or CGI. What I was able to do - is from the Http

Re: [PHP] Question about sqli class

2007-12-30 Thread Nathan Nobbe
On Dec 30, 2007 2:11 PM, alvaro [EMAIL PROTECTED] wrote: I don´t know if this is the correct place to ask this questions but I haver some doubts about using mysqli class in php. I am designing a web place using wamp2 (php5, mysql 5.0.x ). My databases have been done using phpmyadmin so

Re: [PHP] Question regarding linking PHP Parser library into my private Http server

2007-12-30 Thread Nathan Nobbe
On Dec 30, 2007 7:57 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Sun, December 30, 2007 3:02 am, Talya Nevo wrote: I am porting my software from Linux to µC/OS-II OS. On Linux I ran the Boa Web server with PHP. The µC/OS-II has a basic open source Http Server that does not support PHP

Re: [PHP] simplexml problem

2007-12-31 Thread Nathan Nobbe
On Dec 31, 2007 7:11 AM, Dani Castaños [EMAIL PROTECTED] wrote: Hi all! I'm using simplexml to load an xml into an object. The XML is this: ?xml version=1.0? request customerID3/customerID appNameagenda/appName ticketTypecticket_agenda_server/ticketType ticketTypeID1/ticketTypeID

Re: [PHP] simplexml problem

2007-12-31 Thread Nathan Nobbe
On Dec 31, 2007 10:09 AM, Dani Castaños [EMAIL PROTECTED] wrote: Thanks! Problem fixed... But I think PHP must do the cast automatically. I think it's a bug fixed in a further version than mine as I've read no problem; but just fyi, its not a bug; the behavior is as expected per the manual:

Re: [PHP] PHP5 Speed Issues

2007-12-31 Thread Nathan Nobbe
On Dec 31, 2007 3:37 PM, Michael McGlothlin [EMAIL PROTECTED] wrote: Richard Lynch wrote: On Sat, December 22, 2007 12:25 pm, Sascha Braun wrote: Hi Fellows, I figured out, that PHP5 runs faster when I am not inherit classes, I hope I use the right word. I mean the class

Re: [PHP] PHP5 Speed Issues

2007-12-31 Thread Nathan Nobbe
On Dec 31, 2007 3:47 PM, Michael McGlothlin [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: On Dec 31, 2007 3:37 PM, Michael McGlothlin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Richard Lynch wrote: On Sat, December 22, 2007 12:25 pm, Sascha Braun wrote: Hi

Re: [PHP] Which file called the function?

2007-12-31 Thread Nathan Nobbe
On Dec 20, 2007 7:06 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-12-20 at 19:54 +, George Pitcher wrote: On Thu, December 20, 2007 8:37 am, Christoph Boget wrote: Let's say I have the following 3 files global.php ? function myFunc() { echo __FILE__; }

Re: [PHP] best way for PHP page

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 2:17 AM, Alain Roger [EMAIL PROTECTED] wrote: Hi, i would like to improve my coding quality when i use PHP code and for that i would request your help. in my web developer experience, i have to confess that i've never succeeded in spliting PHP code from HTML code. i mean

Re: [PHP] automatic caller

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 12:23 PM, blackwater dev [EMAIL PROTECTED] wrote: I'm working on a prototype now and was wondering if anyone new of a service where I could pass in text and a number and the service would call the number and read the text. I know I can do this with asterisk and it's php api

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: I have a $submit = $_POST['submit']; The string contains: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) How can I strip out the nbsp; from the $submit string leaving A? I've

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 1:55 PM, tedd [EMAIL PROTECTED] wrote: At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote: On Jan 2, 2008 1:34 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; (it's there to make a submit button wider) why dont you

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
i wonder what the record will be this year for the number of identical responses to a question in a single thread ;) looks like this one is already out in front! -nathan

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 2:05 PM, tedd [EMAIL PROTECTED] wrote: At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd [EMAIL PROTECTED] wrote: from this: nbsp; nbsp; nbsp; nbsp;Anbsp; nbsp; nbsp; nbsp; to this A ? // Your existing code here $submit =

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Nathan Nobbe
On Jan 2, 2008 2:27 PM, Jim Lucas [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: i wonder what the record will be this year for the number of identical responses to a question in a single thread ;) looks like this one is already out in front! -nathan problem is, most

Re: [PHP] how to use php from mysql to xml

2008-01-05 Thread Nathan Nobbe
On Jan 5, 2008 5:14 AM, Yang Yang [EMAIL PROTECTED] wrote: hi,everyone,i am a newbuy for php world and i have a problem when i study php i want to make a script,it works for: a mysql table,like title authorcontentdate a1a2 a3 a4 b1b2 b3

Re: [PHP] global address collection

2008-01-07 Thread Nathan Nobbe
On Jan 7, 2008 1:13 PM, tedd [EMAIL PROTECTED] wrote: Hi: What would be a good form (i.e., fields) for collecting global addresses and phone numbers? In other words, in the USA we ask for name, address, city, state, zip, and phone number. What would be a global equivalent that could cover

Re: [PHP] global address collection

2008-01-08 Thread Nathan Nobbe
On Jan 8, 2008 10:42 AM, tedd [EMAIL PROTECTED] wrote: At 10:18 AM -0500 1/8/08, Eric Butera wrote: On Jan 8, 2008 10:08 AM, tedd [EMAIL PROTECTED] wrote: I just finished a credit card portion for a site where the programmer before me required the customers to enter their credit card

Re: [PHP] global address collection

2008-01-08 Thread Nathan Nobbe
On Jan 8, 2008 2:04 PM, Richard Heyes [EMAIL PROTECTED] wrote: this is not only convenient from a user perspective in the user interface, but also on the server side. It's not so convenient when you consider Google (and presumably others) toolbars auto fill. fortunately i dont have

Re: [PHP] global address collection

2008-01-08 Thread Nathan Nobbe
On Jan 8, 2008 2:23 PM, Per Jessen [EMAIL PROTECTED] wrote: Richard Heyes wrote: Nathan Nobbe wrote: On Jan 8, 2008 2:04 PM, Richard Heyes [EMAIL PROTECTED] wrote: this is not only convenient from a user perspective in the user interface, but also on the server side. It's not so

Re: [PHP] PHP SOAP Client formats

2008-01-09 Thread Nathan Nobbe
On Jan 9, 2008 10:45 PM, Tim Traver [EMAIL PROTECTED] wrote: Bastien, I want to use PHP's built in classes for this so I don't have to manually send xml to the api... writing the xml by hand would be madness... i didnt want to spend all night screwing around w/ it, since i dont have any

  1   2   3   4   5   6   7   8   9   10   >