Re: [PHP] Faking Boolean

2006-04-07 Thread John Taylor-Johnston
Thanks! Your first appraoch seems to make clearer sense for me. Great pinch hit, John Paul Novitski wrote: If you're splitting your search string into discrete words, most search engine logic doesn't require quotes. Typically, quotation marks combine multiple words into single expressions,

[PHP] Creating a Photo Album

2006-04-07 Thread Paul Goepfert
Hi all, I am postilng pictures up on a website. So far I have a picture per page. This will get not be very efficient as time goes on. Is there anyway that I can have one page with only the image updating? Can this be done in PHP. If it can would someone explain it to me. The only thing I

[PHP] Re: Creating a Photo Album

2006-04-07 Thread Barry
Paul Goepfert wrote: Hi all, I am postilng pictures up on a website. So far I have a picture per page. This will get not be very efficient as time goes on. Is there anyway that I can have one page with only the image updating? Can this be done in PHP. If it can would someone explain it to

Re: [PHP] Creating a Photo Album

2006-04-07 Thread Chris
Paul Goepfert wrote: Hi all, I am postilng pictures up on a website. So far I have a picture per page. This will get not be very efficient as time goes on. Is there anyway that I can have one page with only the image updating? Can this be done in PHP. If it can would someone explain it to

[PHP] Is it a bug of CakePHP?

2006-04-07 Thread Pham Huu Le Quoc Phuc
I catch an error, could you tell me if you have some ideas? class Dsptraining extends AppModel { function GetDsptrainings() { return $this-findBySql(select max(start_date) start_date from tbl_dsptrainings); } } class DsptrainingsController extends AppController {

Re: [PHP] Is it a bug of CakePHP?

2006-04-07 Thread nicolas figaro
Pham Huu Le Quoc Phuc a écrit : I catch an error, could you tell me if you have some ideas? class Dsptraining extends AppModel { function GetDsptrainings() { return $this-findBySql(select max(start_date) start_date from tbl_dsptrainings); } } did you try your sql

Re: [PHP] Is it a bug of CakePHP?

2006-04-07 Thread Pham Huu Le Quoc Phuc
Thanks for relying! But, Do not have anyway to solve this problem. - Original Message - From: nicolas figaro [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, April 07, 2006 3:49 PM Subject: Re: [PHP] Is it a bug of CakePHP? Pham Huu Le Quoc Phuc a écrit : I catch an

Re: [PHP] how to kill session id without closing the window?

2006-04-07 Thread rich gray
[chop] How can I create new, other sesssion id (after I, for example, click on 'Log Out' button) without closing window? Thanks for any help. er .. session_regenerate_id() hth rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IF or SWITCH

2006-04-07 Thread Jad madi
Kevin, I'm just curious to know how to did you do that benchmark. On Fri, 2006-04-07 at 12:40 +1000, Kevin Waterson wrote: This one time, at band camp, Robert Cummings [EMAIL PROTECTED] wrote: I'm gonna go out on a limb here and say WRONG! Run yourself a benchmark. benchmarks can

[PHP] Problems with Arrays and print and echo

2006-04-07 Thread Michael Felt
Slowly I am getting the output I want. Trying to use dynamic arrays, does creat the array I want, but getting the info is sometimes surprising. I notice a difference between arrays used locally in a function, and arrays used as a 'var' in a class function (all in PHP 4 atm). Code snippet:

Re: [PHP] Creating a Photo Album

2006-04-07 Thread Gerry Danen
Sure you can, Paul. See http://www.lily-gallery.com/h/showlily.php?id=53div=1 for an example. There are 5 thumbnails and they all link to photo.php to display the larger version. On 4/7/06, Paul Goepfert [EMAIL PROTECTED] wrote: Hi all, I am postilng pictures up on a website. So far I have a

RE: [PHP] Creating a Photo Album

2006-04-07 Thread Jay Blanchard
[snip] I am postilng pictures up on a website. So far I have a picture per page. This will get not be very efficient as time goes on. Is there anyway that I can have one page with only the image updating? Can this be done in PHP. If it can would someone explain it to me. The only thing I

Re: [PHP] IF or SWITCH

2006-04-07 Thread Kevin Waterson
This one time, at band camp, Jad madi [EMAIL PROTECTED] wrote: Kevin, I'm just curious to know how to did you do that benchmark. Sure, use ab (Apache Benchmark) which comes with your build of apache. Simply create your file foo.php and give ab the command ab http://www.example.com/foo.php -n

[PHP] getimagesize()

2006-04-07 Thread Ed Curtis
Can you call getimagesize() multiple times in one script? I'm trying to use it multiple times but it only seems to work in the first loop I call it in. I read something in the docs about it cacheing the results and didn't know if this has something to do with it. I also tried creating an array

Re: [PHP] getimagesize()

2006-04-07 Thread John Nichel
Ed Curtis wrote: Can you call getimagesize() multiple times in one script? I'm trying to use it multiple times but it only seems to work in the first loop I call it in. I read something in the docs about it cacheing the results and didn't know if this has something to do with it. That

[PHP] make global variables accessible to functions?

2006-04-07 Thread Bing Du
Hello, We use PHP 4.3.9. 'register_globals = Off' is set in php.ini. I've heard using 'global' could cause security problems. Is using $GLOBALS still not more secure than using the 'global' keyword? How should function foo() obtain the value of $a? ?php $a = 'one'; foo(); function foo

[PHP] Re: make global variables accessible to functions?

2006-04-07 Thread El Bekko
Bing Du wrote: Hello, We use PHP 4.3.9. 'register_globals = Off' is set in php.ini. I've heard using 'global' could cause security problems. Is using $GLOBALS still not more secure than using the 'global' keyword? How should function foo() obtain the value of $a? ?php $a = 'one';

[PHP] echo, print and is_callable()/function_exists()

2006-04-07 Thread Chris Boget
Because both echo and print are language constructs and not actual functions, you can't seem to use either is_callable() or function_exists() on either to determine if they are valid 'function' calls. Is there any other way to determine to check to see if I can execute either or? I'm writing a

Re: [PHP] make global variables accessible to functions?

2006-04-07 Thread John Nichel
Bing Du wrote: Hello, We use PHP 4.3.9. 'register_globals = Off' is set in php.ini. I've heard using 'global' could cause security problems. Is using $GLOBALS still not more secure than using the 'global' keyword? How should function foo() obtain the value of $a? ?php $a = 'one';

Re: [PHP] echo, print and is_callable()/function_exists()

2006-04-07 Thread Hans Juergen von Lengerke
Just wrap it, like Example 1 of the manual shows function my_echo($array, $key) { echo $array[$key]; } array_walk_recursive($array, 'my_echo'); Date: Fri, 7 Apr 2006 15:42:40 +0100 From: Chris Boget [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] echo, print and

[PHP] Handling Large Select Boxes

2006-04-07 Thread Brad Bonkoski
Hello, I have a form for user interaction and part of it is a select box with a large number of options from a database ~12K options. Currently I have a function which queries the DB to get fresh data and loads the HTML (option value=XY/option) into a string, so the DB is only hit once, but

RE: [PHP] Handling Large Select Boxes

2006-04-07 Thread Jay Blanchard
[snip] I have a form for user interaction and part of it is a select box with a large number of options from a database ~12K options. Currently I have a function which queries the DB to get fresh data and loads the HTML (option value=XY/option) into a string, so the DB is only hit once, but the

Re: [PHP] IF or SWITCH (asinine?)

2006-04-07 Thread tedd
Ray said: I'm pretty sure he's ONLY talking about IF/ELSEIF and not IF in general. That's what I got from the message. Correct me if I'm wrong. Of course, you're absolutely right -- I said specifically IF/ELSEIF. My objection is not with the IF statement, of course I use that. In fact, I

Re: [PHP] Handling Large Select Boxes

2006-04-07 Thread Brad Bonkoski
Good point... Maybe the gods of usability can kick the user's in the butt to get them to clean up the data! Previously they used a free text field, which is why the problem is as bad as it is currently All the data has to be available, so the only other option I can think of is to select

[PHP] Completing forms offline with PHP/MySQL

2006-04-07 Thread Kevin Davies - Bonhurst Consulting
Hi, Apologies if this is the wrong place for this question, but I'm sure there are some experts out there who might be able to point me in the right direction... :) I'm doing some work at the moment where remote teams can submit reports through to our database when connected over the internet to

Re: [PHP] Handling Large Select Boxes

2006-04-07 Thread Paul Novitski
At 08:51 AM 4/7/2006, Brad Bonkoski wrote: I have a form for user interaction and part of it is a select box with a large number of options from a database ~12K options. Currently I have a function which queries the DB to get fresh data and loads the HTML (option value=XY/option) into a string,

[PHP] microtime questions

2006-04-07 Thread tedd
Hi gang: I'm getting elapsed time results I can't believe. Would anyone care to check out: http://www.xn--ovg.com/microtime.php And answer a couple questions posted there? Thanks. tedd -- http://sperling.com

Re: [PHP] Handling Large Select Boxes

2006-04-07 Thread Manuel Lemos
Hello, on 04/07/2006 01:06 PM Brad Bonkoski said the following: Good point... Maybe the gods of usability can kick the user's in the butt to get them to clean up the data! Previously they used a free text field, which is why the problem is as bad as it is currently All the data has to

Re: [PHP] microtime questions

2006-04-07 Thread Brad Bonkoski
Interesting... as for your first question... Know that PHP/Apache does not have free reign to your CPU, so the times could be different based on the scheduling going on in the OS kernel. As for the second one... No idea why you would get a negative number, I just copied and ran from the

RE: [PHP] Completing forms offline with PHP/MySQL

2006-04-07 Thread Jay Blanchard
[snip] Apologies if this is the wrong place for this question, but I'm sure there are some experts out there who might be able to point me in the right direction... :) I'm doing some work at the moment where remote teams can submit reports through to our database when connected over the internet

Re: [PHP] Completing forms offline with PHP/MySQL

2006-04-07 Thread Brad Bonkoski
If your users are using Windows, then something like http://www.hypervisual.com/winbinder/ might be good on the user side, as you can bundle the PHP binary and everything else needed into one executable (with some work of course) And then they can create a file formatted to your specifications

Re: [PHP] microtime questions

2006-04-07 Thread tedd
At 12:24 PM -0400 4/7/06, Brad Bonkoski wrote: Interesting... as for your first question... Know that PHP/Apache does not have free reign to your CPU, so the times could be different based on the scheduling going on in the OS kernel. As for the second one... No idea why you would get a

Re: [PHP] microtime questions

2006-04-07 Thread Brad Bonkoski
How is the CPU not in question? Does this script run on air? It may not be YOUR CPU, but it is still a CPU bound by the sceduling algorithm of the Operating System, so the time differentials are too be expected. -B tedd wrote: At 12:24 PM -0400 4/7/06, Brad Bonkoski wrote: Interesting...

RE: [PHP] Parsing variables within string variables

2006-04-07 Thread Kevin Davies - Bonhurst Consulting
David, Is this what you're looking for? $bar = 'Hello '.$bar HTH, Kevin -Original Message- From: David Clough [mailto:[EMAIL PROTECTED] Sent: 07 April 2006 17:37 To: php-general@lists.php.net Subject: [PHP] Parsing variables within string variables I've been bashing my head against

RE: [PHP] Parsing variables within string variables

2006-04-07 Thread Jay Blanchard
[snip] I have a variable containing a string that contains the names of variables, and want to output the variable with the variables it contains evaluated. E.g. $foo contains 'cat' $bar contains 'Hello $foo' and I want to output $bar as Hello cat The problem is that if I use

RE: [PHP] Parsing variables within string variables

2006-04-07 Thread Chrome
Or change the quote style to double () Just another option Dan (If I'm right this time... I really can't afford 88AUD/hr... :) ) --- http://chrome.me.uk -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 07 April 2006 18:12 To: David Clough;

Re: [PHP] Parsing variables within string variables

2006-04-07 Thread Paul Novitski
At 09:37 AM 4/7/2006, David Clough wrote: I have a variable containing a string that contains the names of variables, and want to output the variable with the variables it contains evaluated. E.g. $foo contains 'cat' $bar contains 'Hello $foo' and I want to output $bar as Hello cat

Re: [PHP] Parsing variables within string variables

2006-04-07 Thread Paul Novitski
I wrote: You need to EVALUATE the string coming from the database: Assuming that $sDataField contains the string 'Hello $foo': $foo = cat; $sText = eval($sDataField); RESULT: $sText = Hello cat http://php.net/eval I was assuming that you meant that the string Hello $foo --

Re: [PHP] Re: make global variables accessible to functions?

2006-04-07 Thread Bing Du
Thanks for the response. That way is secure and has nothing to do with register_globals ;) Good. That's what I wanted to hear. I know by default some pre-defined global variables can be accessed through $GLOBALS. If I don't want end users to add their own user defined variables in the

Re: [PHP] microtime questions

2006-04-07 Thread Joe Wollard
Tedd, The only way that I can even think of this as being possible is if you call microtime() instead of microtime(true). The former will return 'msec sec' separated by a space which can produce a negative number because you've essentially got two different types of measurements there. IMHO PHP

Re: [PHP] microtime questions

2006-04-07 Thread Joe Wollard
I just realized that I could check your version, and it appears that we've found the problem. You're running PHP 4.3.10, so I'd suggest using the non PHP5 work around on php.net's site. Cheers! - Joe On 4/7/06, Joe Wollard [EMAIL PROTECTED] wrote: Tedd, The only way that I can even think of

Re: [PHP] how to run 'periodic'

2006-04-07 Thread Joe Wollard
Frank, It sounds like you need to run this as a job through crond. I'm not sure what the OSX version is (maybe they have a port of crond?) but you could set that up to execute the specific code, as root, whenever you want. As far as I can think, and maybe Chris Shifflet can confirm/deny this, you

Re: [PHP] IF or SWITCH (asinine?)

2006-04-07 Thread Ray Hauge
On Friday 07 April 2006 08:57, tedd wrote: Personally, as I said before, I use if/else for two conditions and switch for three or more. Your mileage may vary, but it's truly a matter of choice and is not one of asinine methodology. Thanks to all who replied. tedd --

Re: [PHP] Parsing variables within string variables

2006-04-07 Thread Dave Goodchild
Use double quotes/ On 07/04/06, David Clough [EMAIL PROTECTED] wrote: I've been bashing my head against the wall on this, and would be glad of help to stop. I have a variable containing a string that contains the names of variables, and want to output the variable with the variables it

Re: [PHP] Creating a Photo Album

2006-04-07 Thread Jason S. Motes
Jay Blanchard wrote: [snip] I am postilng pictures up on a website. So far I have a picture per page. This will get not be very efficient as time goes on. Is there anyway that I can have one page with only the image updating? Can this be done in PHP. If it can would someone explain it to me.

Re: [PHP] IF or SWITCH (asinine?)

2006-04-07 Thread Robert Cummings
On Fri, 2006-04-07 at 11:57, tedd wrote: Ray said: I'm pretty sure he's ONLY talking about IF/ELSEIF and not IF in general. That's what I got from the message. Correct me if I'm wrong. Of course, you're absolutely right -- I said specifically IF/ELSEIF. My objection is not with the IF

[PHP] Re: Here is a silly question

2006-04-07 Thread Michelle Konzack
Am 2006-04-03 11:58:39, schrieb Wolf: I tend to stick /nav/header.php in for my includes, since I control the server. As long as the site translates root to the main directory of your website and not somewhere else, you can always have your links be /menu.php as server-speak / means rootme.

[PHP] PHP Book Recommendation

2006-04-07 Thread Paul Goepfert
Hi all, Can anyone tell me a good php book to buy. I already have Web Database Applications with PHP MySQL by O'Reilly. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] code obfuscating

2006-04-07 Thread Zouari Fourat
Hello, Am seeking for a solution to obfuscate php code on the server side, so if i decide to sell php closed source applications, i can encode the source code. Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Book Recommendation

2006-04-07 Thread Jay Blanchard
[snip] Can anyone tell me a good php book to buy. I already have Web Database Applications with PHP MySQL by O'Reilly. [/snip] Core PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] code obfuscating

2006-04-07 Thread Jay Blanchard
[snip] Am seeking for a solution to obfuscate php code on the server side, so if i decide to sell php closed source applications, i can encode the source code. Thanks for your help [/snip] No problem, we are always glad to answer questions. You're welcome. Did you google?

Re: [PHP] Completing forms offline with PHP/MySQL

2006-04-07 Thread Miles Thompson
At 01:06 PM 4/7/2006, Kevin Davies - Bonhurst Consulting wrote: Hi, Apologies if this is the wrong place for this question, but I'm sure there are some experts out there who might be able to point me in the right direction... :) I'm doing some work at the moment where remote teams can submit

RE: [PHP] code obfuscating

2006-04-07 Thread Miles Thompson
At 04:05 PM 4/7/2006, you wrote: [snip] Am seeking for a solution to obfuscate php code on the server side, so if i decide to sell php closed source applications, i can encode the source code. Thanks for your help [/snip] No problem, we are always glad to answer questions. You're welcome.

RE: [PHP] code obfuscating

2006-04-07 Thread Jay Blanchard
[snip] [snip] Am seeking for a solution to obfuscate php code on the server side, so if i decide to sell php closed source applications, i can encode the source code. Thanks for your help [/snip] No problem, we are always glad to answer questions. You're welcome. and the truly useful suggestion

[PHP] Parse Error on SQL Insert

2006-04-07 Thread Tom Chubb
I'm working on an insert record page with a multiple file upload script of which I understand the fundamentals. However, on submission I am getting the following error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread John Nichel
Tom Chubb wrote: I'm working on an insert record page with a multiple file upload script of which I understand the fundamentals. However, on submission I am getting the following error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Brad Bonkoski
why do you have single quotes around year? -B Tom Chubb wrote: I'm working on an insert record page with a multiple file upload script of which I understand the fundamentals. However, on submission I am getting the following error: Parse error: syntax error, unexpected

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Joe Henry
On Friday 07 April 2006 1:37 pm, Tom Chubb wrote: $insertSQL = INSERT INTO cars (model, `year`, details, price, image1, Not sure if this is your problem, but those look like backticks around year instead of single quotes. Should there even be quotes there? HTH -- Joe Henry

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Tom Chubb
Complete code... ?php require_once('../Connections/damotors.php'); ? ?php function GetSQLValueString($theValue, $theType, $theDefinedValue = , $theNotDefinedValue = ) { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue; switch ($theType) { case text:

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Ray Hauge
On Friday 07 April 2006 12:53, Joe Henry wrote: On Friday 07 April 2006 1:37 pm, Tom Chubb wrote: $insertSQL = INSERT INTO cars (model, `year`, details, price, image1, Not sure if this is your problem, but those look like backticks around year instead of single quotes. Should there even be

RE: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Chrome
Backticks (`) encapsulate table or database names I was thinking maybe if the array references were encapsulated in curly braces {}: $_POST['model'] to {$_POST['model']} Of course if the field in the DB isn't numeric this would be '{$_POST['model']}' Dan ---

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Brad Bonkoski
thanks for the clarification, I guess the other solution would be to avoid using names with special meaning for column names... -B Ray Hauge wrote: On Friday 07 April 2006 12:53, Joe Henry wrote: On Friday 07 April 2006 1:37 pm, Tom Chubb wrote: $insertSQL = INSERT INTO cars (model,

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread John Nichel
Tom Chubb wrote: Complete code... snip $insertSQL = INSERT INTO cars (model, `year`, details, price, image1, image2, image3, forsale) VALUES ($_POST['model'], $_POST['year'], $_POST['details'], $_POST['price'], $_FILE['image']['name'][0], $_FILE['image']['name'][1],

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Ray Hauge
On Friday 07 April 2006 12:56, Chrome wrote: Of course if the field in the DB isn't numeric this would be '{$_POST['model']}' Dan That's what I was thinking. Even if data is a number, I still generally put quotes around it to make sure I don't have an issue. -- Ray Hauge

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Satyam
Mi vote goes to the curly braces The error is given by php, not by SQL When exploding variables within double quotes it is hard for php to distinguish when a variable end unless it is a simple variable like $foo. When it is an array element and even worst, when it is an element of a

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Joe Henry
On Friday 07 April 2006 1:56 pm, Chrome wrote: Backticks (`) encapsulate table or database names I was thinking maybe if the array references were encapsulated in curly braces {}: $_POST['model'] to {$_POST['model']} Of course if the field in the DB isn't numeric this would be

[PHP] Help with a complex scenario

2006-04-07 Thread Robert Fitzpatrick
I have an order table that we are trying to figure out a way to find the best (cheapest) scenario to sending to vendors to fill the orders. Let's say we have 10 parts ordered, if we split that amongst vendors, even paying a higher shipping cost in some cases can be cheaper. We can send 2 of those

[PHP] Zend Certification

2006-04-07 Thread Ray Hauge
Hello All, I've been thinking about taking the ZCE test. I want to, but I also want it to be current for as long as possible. Should I wait for it to be revised for PHP5, or are they even going to update it? I just don't want to end up taking it and then a few months later have it be

[PHP] Re: Parsing variables within string variables

2006-04-07 Thread David Clough
Thanks for all these responses, but unless I'm missing something none of them work for what I need. Quotes are irrelevant: with the string Hello $foo in $bar echo $bar echo $bar both produce Hello $foo and echo '$bar' produces $bar I can't use any of the answers like

Re: [PHP] Parsing variables within string variables

2006-04-07 Thread David Clough
Dear Paul, this is exactly the problem: the string including the dollar sign comes from the database. The problem I have is that the echo statement parses the $bar reference, but not the $foo reference within it. So echo $bar generates Hello $foo which is better than $bar but

Re: [PHP] Zend Certification

2006-04-07 Thread Jad madi
If taking the exam now makes different to you then go for it, actually I scheduled the exam 29 April bluntly just for the sake of salary increment heh On Fri, 2006-04-07 at 14:33 -0700, Ray Hauge wrote: Hello All, I've been thinking about taking the ZCE test. I want to, but I also want it

Re: [PHP] Zend Certification

2006-04-07 Thread Rory Browne
My info may be dated but AFAIK the exam is $200 - so what if you have to take one one month and another the next? That (assuming PHP5 was the same price) would still only be $400. I don't want to sound petty, but what's another $200 for a second certification - having both will give you that

Re: [PHP] Zend Certification

2006-04-07 Thread Ray Hauge
On Friday 07 April 2006 15:24, Rory Browne wrote: having both will give you that long_time_user status. Good point. Thanks :) -- Ray Hauge Programmer/Systems Administrator American Student Loan Services www.americanstudentloan.com 1.800.575.1099 -- PHP General Mailing List

[PHP] Problem with require_once

2006-04-07 Thread Pablo L. de Miranda
Hey Guys, I have the code below: $file = $_SERVER['HTTP_REFERER'].'util/ClassUtil.php'; echo $file.'br'; require_once($file); $service = ClassUtil::loadClass('service.FormularioService'); And the output in browser: http://localhost/egressos/util/ClassUtil.php Fatal error: Class 'ClassUtil'

Re: [PHP] Zend Certification

2006-04-07 Thread Jad madi
in my case the salary increment is more valuable than the $400 On Sat, 2006-04-08 at 00:24 +0200, Rory Browne wrote: My info may be dated but AFAIK the exam is $200 - so what if you have to take one one month and another the next? That (assuming PHP5 was the same price) would still only be

[PHP] xsl / xslt in php 4+

2006-04-07 Thread jonathan
I'm working on a piece of an application that we'd like to distribute to other sites. Basically, it would be a REST application where the client would transform the xml into html. I'd like to xsl for the transformation but was curious about how prevelant xsl is installed in a shared

Re: [PHP] Re: Parsing variables within string variables

2006-04-07 Thread Paul Novitski
At 02:41 PM 4/7/2006, David Clough wrote: I have to parse the string 'Hello $foo' as it comes from the database: I don't get to construct it. I did hold out more hope for the eval function, but it seems to me that this is for PHP code in a database, not to evaluate variables. David, please

Re: [PHP] Argument passed by reference?

2006-04-07 Thread tedd
At 1:24 PM -0500 4/6/06, Chris Boget wrote: Is there a way to test to see if a function argument was passed by reference instead of by value? thnx, Chris Chris: As I am sure you know, passing by reference is simply passing the memory address of the variable to a function instead of it's

Re: [PHP] Argument passed by reference?

2006-04-07 Thread tedd
At 1:52 PM -0500 4/6/06, Chris Boget wrote: The way I understand it, pass by reference in php is determined in the function definition and not the function call. Something like: You used to be able to pass by reference at run time. But I see that is no longer allowed... :| So I guess that

Re: [PHP] Creating a Photo Album

2006-04-07 Thread tedd
At 12:13 AM -0700 4/7/06, Paul Goepfert wrote: Hi all, I am postilng pictures up on a website. So far I have a picture per page. This will get not be very efficient as time goes on. Is there anyway that I can have one page with only the image updating? Can this be done in PHP. If it can

Re: [PHP] getimagesize()

2006-04-07 Thread tedd
At 9:14 AM -0500 4/7/06, Ed Curtis wrote: Can you call getimagesize() multiple times in one script? I'm trying to use it multiple times but it only seems to work in the first loop I call it in. I read something in the docs about it cacheing the results and didn't know if this has something to

Re: [PHP] Help with a complex scenario

2006-04-07 Thread tedd
At 4:59 PM -0400 4/7/06, Robert Fitzpatrick wrote: I have an order table that we are trying to figure out a way to find the best (cheapest) scenario to sending to vendors to fill the orders. Let's say we have 10 parts ordered, if we split that amongst vendors, even paying a higher shipping cost

Re: [PHP] how to kill session id without closing the window?

2006-04-07 Thread tedd
At 9:19 PM +0200 4/6/06, [EMAIL PROTECTED] wrote: Hi to all, session_start(); $_SESSION['sessid'] = session_id; echo $_SESSION['sessid']; will show e.g. 699e506bd42ea402985dce24a0ef9 After: unset($_SESSION['sessid']); $_SESSION['sessid'] = session_id(); I'm getting the same SID again. I

Re: [PHP] xsl / xslt in php 4+

2006-04-07 Thread Anthony Ettinger
My ISP has php5 with all the xml goodies installed, I'm not sure if that's typical or not, php5 is still relatively new for shared hosting providers to rollout. My previous ISP only has php 4. On 4/7/06, jonathan [EMAIL PROTECTED] wrote: I'm working on a piece of an application that we'd like

Re: [PHP] Problem with require_once

2006-04-07 Thread Anthony Ettinger
can you do a dump of what $file is? Seems the path is incorrect. On 4/7/06, Pablo L. de Miranda [EMAIL PROTECTED] wrote: Hey Guys, I have the code below: $file = $_SERVER['HTTP_REFERER'].'util/ClassUtil.php'; echo $file.'br'; require_once($file); $service =

Re: [PHP] Zend Certification

2006-04-07 Thread Anthony Ettinger
if it's job related, you may even get your co. to pay for it. On 4/7/06, Jad madi [EMAIL PROTECTED] wrote: in my case the salary increment is more valuable than the $400 On Sat, 2006-04-08 at 00:24 +0200, Rory Browne wrote: My info may be dated but AFAIK the exam is $200 - so what if you

Re: [PHP] IF or SWITCH (asinine?)

2006-04-07 Thread tedd
Personally, as I said before, I use if/else for two conditions and switch for three or more. Your mileage may vary, but it's truly a matter of choice and is not one of asinine methodology. tedd I think that's a fairly good methodology to follow. I usually do that... except when I

Re: [PHP] Problem with require_once

2006-04-07 Thread chris smith
On 4/8/06, Pablo L. de Miranda [EMAIL PROTECTED] wrote: Hey Guys, I have the code below: $file = $_SERVER['HTTP_REFERER'].'util/ClassUtil.php'; echo $file.'br'; require_once($file); $service = ClassUtil::loadClass('service.FormularioService'); And the output in browser:

Re: [PHP] IF or SWITCH (asinine?)

2006-04-07 Thread tedd
Anyways, I think this debate is pretty much pointless now, you've clarified your point of view (sort of) and I'll just run with the final though that you limit your use of switch to case where elseif would be needed... and to clarify on my part once more, I did not call that asinine. Cheers,

Re: [PHP] int to string

2006-04-07 Thread tedd
At 10:50 PM -0400 4/6/06, sgsweb wrote: Hi Tanner, Here's a completely working piece of code that I got from my hosting company. This looks like it does exactly what you want to do. I am also including the output in the bottom of this e-mail. sunil. Was that for php 5? I couldn't get it

Re: [PHP] IF or SWITCH (asinine?)

2006-04-07 Thread Ray Hauge
On Friday 07 April 2006 16:41, tedd wrote: Note, it's not actually required to have a variable to be evaluated for each case statement. Each case statement stands on it's own independent from the evaluation. This has always worked for me in other languages and I am assuming that it works the

[PHP] Ajax please....

2006-04-07 Thread Ryan A
Hey, Just been googleing and trying out different AJAX frameworks..: From PEAR HTML_AJAX Gauva My-Bic AjaxAC and quite a few moreand it happened, I confused myself :-( For some reason HTML_AJAX is not working on my local machine (windows based, I am getting runtime errors with the examples)

Re: [PHP] Re: make global variables accessible to functions?

2006-04-07 Thread tedd
At 12:35 PM -0500 4/7/06, Bing Du wrote: Thanks for the response. That way is secure and has nothing to do with register_globals ;) Good. That's what I wanted to hear. I know by default some pre-defined global variables can be accessed through $GLOBALS. If I don't want end users to add

Re: [PHP] microtime questions

2006-04-07 Thread tedd
-B At 12:51 PM -0400 4/7/06, Brad Bonkoski wrote: How is the CPU not in question? Does this script run on air? I did not say that. I said that it was not MY CPU that was involved and it isn't. It may not be YOUR CPU, but it is still a CPU bound by the sceduling algorithm of the Operating

Re: [PHP] Creating a Photo Album

2006-04-07 Thread Paul Goepfert
updating by user click for now. I might change that in the future to update by interval. Paul On 4/7/06, tedd [EMAIL PROTECTED] wrote: At 12:13 AM -0700 4/7/06, Paul Goepfert wrote: Hi all, I am postilng pictures up on a website. So far I have a picture per page. This will get not be

Re: [PHP] Problem with require_once

2006-04-07 Thread chris smith
On 4/8/06, Pablo L. de Miranda [EMAIL PROTECTED] wrote: I has modified my code to this, notice wich all directories that I refer is in the root of application: // File Controller.php in directory controller: $file = '../util/ClassUtil.php'; echo $file.'br'; include $file; $service =

[PHP] Re: Ajax please....

2006-04-07 Thread Manuel Lemos
Hello, on 04/07/2006 09:21 PM Ryan A said the following: For some reason HTML_AJAX is not working on my local machine (windows based, I am getting runtime errors with the examples) and it seems quite If that is XMLHttpRequest based, that is not surprising. Under IE6, XMLHttpRequest objects are

Re: [PHP] Handling Large Select Boxes

2006-04-07 Thread Brad Ciszewski
Perhaps try implementing some AJAX on the page. Therefore, once the page has loaded, the select tag is populated with different options, without actually lagging the page. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I have a form for user interaction and part

[PHP] mail() and exim

2006-04-07 Thread Webmaster
Hello, I'm not sure if this is the right list to ask this on or not Here's the situation... my php scripts were generating emails as expected. I was shocked when they told me that exim was not responding to requests on port 25 and had to be restarted. So, PHP communicates with exim

[PHP] Re: mail() and exim

2006-04-07 Thread Manuel Lemos
Hello, on 04/08/2006 12:11 AM Webmaster said the following: I'm not sure if this is the right list to ask this on or not Here's the situation... my php scripts were generating emails as expected. I was shocked when they told me that exim was not responding to requests on port 25 and

  1   2   >