Re: [PHP] Re: problems with loaded extensions

2009-04-08 Thread Edgar da Silva (Fly2k)
Did you check the apache error log?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Zend (or other) Framework...where to start?

2009-01-15 Thread Edgar da Silva (Fly2k)
The question is interesting.

I do another question: Will PHP5 support PHP4 backward compatibility
forever? Ok I'm rediculous, forever not, but, until 5.3 or 6?

I really don't know how CI thinks about evolution, but I'm very
curious why don't use the new features that provide good evolution?

It's Works don't seem to me one good reason to not do evolution.
Mainly when some concepts are deprecated.

I'm don't talking that CI is not good or enough, just, I offer IMHO
some interesting questions.

On Thu, Jan 15, 2009 at 7:21 AM, Robert Cummings rob...@interjinn.com wrote:
 On Thu, 2009-01-15 at 09:57 +0300, Usamah M. Ali wrote:
 On Thu, Jan 15, 2009 at 1:59 AM, Paul M Foster pa...@quillandmouse.com 
 wrote:

  If you're going to go with a prebuilt framework, I'd recommend
  CodeIgniter for your first time out. If the docs look good to you (and
  they are pretty good), you'll probably do fine with it. It's about the
  lightest weight platform out there. It doesn't get in your way too much,
  but gives you the benefits of using a framework.
 

 I downloaded CI because of recommendations from this list as well, but
 was totally shocked when I discovered that its codebase is written in
 PHP4! I looked up for an alpha version that is written in PHP5 to no
 avail. I just can't understand why would they still be in PHP4 while
 Symfony, a framework born after CI, requires PHP5 since version one
 and takes full advantage of PHP5's advanced OO features!

 Does it work within a PHP5 environment? If so... why rewrite it?

 Cheers,
 Rob.
 --
 http://www.interjinn.com
 Application and Templating Framework for PHP


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
Abraços
Edgar Ferreira da Silva
Engenheiro de Software
Campinas - SP
(19) 8110-0733
http://edgarfs.com.br
-
Aprenda PHP, cole códigos, saiba das vagas de empregos:
http://www.manjaphp.com.br

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Zend (or other) Framework...where to start?

2009-01-15 Thread Edgar da Silva (Fly2k)
On Thu, Jan 15, 2009 at 9:48 AM, Robert Cummings rob...@interjinn.com wrote:
 On Thu, 2009-01-15 at 09:03 -0200, Edgar da Silva (Fly2k) wrote:
 The question is interesting.

 I do another question: Will PHP5 support PHP4 backward compatibility
 forever? Ok I'm rediculous, forever not, but, until 5.3 or 6?

 I think once PHP6 comes out we'll find that some PHP4 idiosyncracies
 currently tolerated by PHP5 will become fatal errors. At which point
 projects like CodeIgniter will probably cease PHP4 support and instead
 span their support across PHP5 and 6.

 I really don't know how CI thinks about evolution, but I'm very
 curious why don't use the new features that provide good evolution?

 I think that's partly a question of what one considers a good feature.
 Just because a feature exists doesn't mean it should necessarily be
 used.

I agree in parts. Things doesn't mean its should necessarlly is very
very relative. If we think in this way, like PHP is a simple language
(but very powerfull) we doesn't have to use OOP to build one
application, for example.

We need to think carefully about the life time of the application.
Mainly when we are talking about frameworks. Watch the evolution
walking aside is very important.

Another point, talking about frameworks, extending some feature in
some times is necessary. Doing in PHP4 using OOP to do this is extend
a real class that works like astract class, but there is no interface
class, its would be hard to provide reliability. What can do in PHP5.

Altough, I agree with you we don't need to implement all new features,
but, we need to be carefull with what features evolved. Again, It's
works isn't a good reason. Mainly in this case.


 It's Works don't seem to me one good reason to not do evolution.
 Mainly when some concepts are deprecated.

 I'm don't talking that CI is not good or enough, just, I offer IMHO
 some interesting questions.

 I don't know how CI works, just that I also maintain backward
 compatibility for my framework to PHP4. However, I'm finding now that
 there's not much point since almost all of my client applications are
 now running on PHP5.

 Cheers,
 Rob.
 --
 http://www.interjinn.com
 Application and Templating Framework for PHP





-- 
Abraços
Edgar Ferreira da Silva
Engenheiro de Software
Campinas - SP
(19) 8110-0733
http://edgarfs.com.br
-
Aprenda PHP, cole códigos, saiba das vagas de empregos:
http://www.manjaphp.com.br

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ArrayObject - Posibillity to add key = value pair per default?

2009-01-14 Thread Edgar da Silva (Fly2k)
Did you try:

$a = new ArrayObject;
$a['sometest'] = 'somevalue';

?

On Wed, Jan 14, 2009 at 10:42 AM, Edmund Hertle farn...@googlemail.com wrote:
 Hey,
 I've just discovered the ArrayObject class, but it seems to not be well
 documented, so here is my problem:

 You can use ArrayObject::append() to add a new value to the array, but is
 there also a method to add a new key and value?

 And I know that I could extend the class and write my own method but isn't
 this quite a base method for arrays in php? So maybe I just missed a obvious
 point?

 Quick example:

 Without ArrayObject:
 1. $array[] = $value
 2. $array[$key] = $value

 With ArrayObject:
 1. $arrayObject-append($value)
 2. ???

 -eddy




-- 
Abraços
Edgar Ferreira da Silva
Engenheiro de Software
Campinas - SP
(19) 8110-0733
http://edgarfs.com.br
-
Aprenda PHP, cole códigos, saiba das vagas de empregos:
http://www.manjaphp.com.br

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Cannot Install mysql extension

2009-01-08 Thread Edgar da Silva (Fly2k)
What OS are you using?

On Thu, Jan 8, 2009 at 3:36 PM, Gary gwp...@ptd.net wrote:
 Just installed Apache 2.2 and PHP 5.2.8, am able to test, works fine.

 I am no able to get the mysql extensions to install.  I have gone in to
 reinstall, the dialog box says that 0bytes to be installed.

 Have searched, several forums have suggested to remove the ; from in front
 of the extension=mysql.so, but no such line exists in the php.ini

 Manually entered it, still no mysql extension show up in the info page.

 Any suggestions?

 Gary



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
Abraços
Edgar Ferreira da Silva
Engenheiro de Software
Campinas - SP
(19) 8110-0733
http://edgarfs.com.br
-
Aprenda PHP, cole códigos, saiba das vagas de empregos:
http://www.manjaphp.com.br


Re: [PHP] PHP friendly web software?

2008-11-25 Thread Edgar da Silva (Fly2k)
Have you tried Delphi for PHP?

So, mixing HTML and PHP code is a good choice when the PHP code is
only about how present the information.

If you are mixing your bussines logic and presentation you need learn
MVC layers.

2008/11/25 John Boy [EMAIL PROTECTED]:
 Can anyone recommend a wysiwyg web development software which is php
 friendly, i.e. you can design the page in wysiwyg and insert php code into
 the html without destroying the screen image preview. I've been using
 Frontpage to compose the page then dev-php to insert the php code. This has
 worked well but if layout changes need to be made Frontpage displays stuff
 all over the place. Just trying MS Expression but this shows blank page when
 any php code is present. Any ideas?



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
Abraços
Edgar Ferreira da Silva
Engenheiro de Software
Campinas - SP
(19) 8110-0733

-
Aprenda PHP, cole códigos, saiba das vagas de empregos:
http://www.manjaphp.com.br


Re: [PHP] Weird Syntax Error

2008-11-13 Thread Edgar da Silva (Fly2k)
Try:

$insert = INSERT INTO release_file_upload (upl_file_name, upl_file_type,
upl_file_size, upl_date, upl_by, upl_path, release_id) VALUES ('$filename',
'{$_SESSION['upload']['type']}', '{$_SESSION['upload']['size']}', now(),
'$username', '$path', '$release_id');

2008/11/13 Kyle Terry [EMAIL PROTECTED]:
 I keep getting this syntax error on the following string...

 syntax error unexpected T_ENCAPSED_AND_WHITESPACE expecting T_STRING or
 T_VARIABLE or T_NUM_STRING

 $insert = INSERT INTO release_file_upload (upl_file_name, upl_file_type,
 upl_file_size, upl_date, upl_by, upl_path, release_id) VALUES ('$filename',
 '$_SESSION['upload']['type']', '$_SESSION['upload']['size']', now(),
 '$username', '$path', '$release_id');

 --
 Kyle Terry | www.kyleterry.com




-- 
Abraços
Edgar Ferreira da Silva
Engenheiro de Software
Campinas - SP
(19) 8110-0733

-
Aprenda PHP, cole códigos, saiba das vagas de empregos:
http://www.manjaphp.com.br