|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 13 Apr 2006 06:55:15 -0000 Issue 4069
php-general-digest-help
lists.php.net
Date: Thu Apr 13 2006 - 01:55:15 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 13 Apr 2006 06:55:15 -0000 Issue 4069
Topics (messages 233845 through 233860):
IIS,Apache
233845 by: Norman Huasebe - TICWARE
Re: internationalization of web site
233846 by: Martin Alterisio \"El Hombre Gris\"
C Debugger?
233847 by: Richard Lynch
233850 by: Jochem Maas
Re: MS SQL extension not loading
233848 by: Tim Huntley
Re: CURLOPT_BINARYTRANSFER
233849 by: Jochem Maas
PHP Framework alternative ...
233851 by: Jochem Maas
233852 by: Robert Cummings
233853 by: Jochem Maas
233854 by: Robert Cummings
233855 by: Chris Shiflett
var_dump($POST)
233856 by: William Stokes
233857 by: Albert Padley
233858 by: William Stokes
233859 by: Chris
preventing duplicate rows?
233860 by: William Stokes
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hi,
I've been working on PHP using windows IIS as web server but now that I
moved to Linux I'll use APACHE 2.x
I read about and every where I see that apache improves PHP
I would like to now specifics cases
Can anyone help me with this, please? Anybody got a clue to lend?
Thanks,
Norman Huasebe
attached mail follows:
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
>
>
>
attached mail follows:
Can anybody recommend a good C debugger fitting the following criteria:
FreeBSD 5.3
command-line based (no X)
intuitive enough for a guy who hasn't touched C in 20 years to not fail
plays well with PHP source C code/macros
installable and runnable by non-root user
TIA!
--
Like Music?
http://l-i-e.com/artists.htm
attached mail follows:
Richard Lynch wrote:
> Can anybody recommend a good C debugger fitting the following criteria:
>
> FreeBSD 5.3
> command-line based (no X)
so far: gdb
> intuitive enough for a guy who hasn't touched C in 20 years to not fail
> plays well with PHP source C code/macros
er? (coming from a guy that's never more than looked at C)
> installable and runnable by non-root user
don't know if that will be possible. and unless your running php as CLI
then you'll hsve to attach apache to the debugger which requires stopping
apache and then starting it via the debugger... not something you can usually
do as any other than root (as you know :-)
>
> TIA!
you certainly know how to ask bad-ass questions don't you ;-)
>
attached mail follows:
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.
> 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, too, run on the WIMP platform (Windows, IIS, MySQL, PHP). Heh.
Tim.
attached mail follows:
Richard Lynch wrote:
>
>
>
> On Wed, April 12, 2006 11:28 am, Jochem Maas wrote:
>
>>Richard Lynch wrote:
>>
>>>Can anybody expand on the meaning and correct usage of:
>>
>>hi Richard,
>>
>>been following your ordeal from a far, sorry to say I have
>>nothing useful to add regarding the curl problem ... but I was
>>wondering if a fopen() or file_get_contents() in conjunction
>>with allow_url_fopen wouldn't be a way to side step the problem?
>
>
> I need the cookies and all that...
>
> It's an anti-CAPTCHA ocr research thang...
I feared as much.
>
> I think my next step is to figure out how to run PHP source under a
> debugger. Yikes. It's been 20+ years since I've done that kind of
> thing...
a trial version of Zend Studio Server in combination with a trial version
of Zend Studio Client will be a very pleasant surprise for most debugging
tasks - so much so that you might find you do want to go back to what you
were using (i.e. I really think the money is worth it)
BUT the segfault issues you are having probably won't be tackled by that
alone, which means setting up a version of apache with debug symbols and
a debug build of php ... not exactly easy to setup (imho) and then install
gdb and run apache through that - I have managed to do it in the past based
on advice/tips given by none other than Rasmus himself (I can't remember
exactly where but I'm pretty sure it was in relation to using/debugging APC
- regardless a quick google/yahoo should turn up something useful :-)
good luck
>
attached mail follows:
no question here but for anyone wanting a totally different take
on php frameworks and some killer code examples ....
take a look at this:
http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html
in the immortal words of Quake3Arena: 'Impressive' :-)
attached mail follows:
On Wed, 2006-04-12 at 16:21, Jochem Maas wrote:
> no question here but for anyone wanting a totally different take
> on php frameworks and some killer code examples ....
>
> take a look at this:
> http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html
Rasmus is just suggesting you build your own framework instead of using
someone elses framework. That way you have the ideal framework for your
own needs by the time you have sufficient projects.
That's how most of us got started on our framework *lol*. Nothing new to
see here... just word mashing to make you think it's not a framework.
Out of curiosity, I'm curious where Rasmus stands on Zend's framework?
Or is he not a part of that process?
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. |
`------------------------------------------------------------'
attached mail follows:
Robert Cummings wrote:
> On Wed, 2006-04-12 at 16:21, Jochem Maas wrote:
>
>>no question here but for anyone wanting a totally different take
>>on php frameworks and some killer code examples ....
>>
>>take a look at this:
>>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html
>
>
> Rasmus is just suggesting you build your own framework instead of using
> someone elses framework. That way you have the ideal framework for your
> own needs by the time you have sufficient projects.
>
> That's how most of us got started on our framework *lol*. Nothing new to
> see here... just word mashing to make you think it's not a framework.
oh I got all that alright, I just chucked in the word 'framework' because:
a. I saw a couple of general questions regarding frameworks the last couple
of days/weeks.
b. it's garanteed to stir the pot so to speak ;-)
>
> Out of curiosity, I'm curious where Rasmus stands on Zend's framework?
> Or is he not a part of that process?
I second that, and if anyone in the know cares to comment on whether:
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.e. using a single generic
findAll method defined in whatever DataObject class Person is derived from ).
... please do :-)
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 ... 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?
>
> Cheers,
> Rob.
attached mail follows:
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. 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
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. |
`------------------------------------------------------------'
attached mail follows:
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 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. :-)
Chris
attached mail follows:
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
attached mail follows:
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
attached mail follows:
oooppps :)
sorry about that one...
"Albert Padley" <apadley
apadley.com> kirjoitti
viestissä:46BABDE2-0A8D-4242-944E-51419E231B0A
apadley.com...
>
> 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
attached mail follows:
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/
attached mail follows:
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
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]