[PHP-WIN] Re: [PHP-INSTALL] RE: first request

2008-10-31 Thread Daniel Brown
On Fri, Oct 31, 2008 at 4:33 AM, michael glancy
<[EMAIL PROTECTED]> wrote:
> HI Daniel
>
> I installed Xampp last night but it still didnt have those extensions
> installed.
>
> was there something else I should have done ?

For the benefit of others now and in the future (through the
archives and web searches), please keep replies on the list.
(Forwarded to the Windows PHP list as well.)

Here's a quick run-down for all of the extensions you mentioned
needing for Magento.  Note that, with XAMPP on Windows, php.ini is
probably in one of the following locations (where X:\ is the drive
letter on which XAMPP or XAMPPLite is installed):
X:\xampp\apache\bin\php.ini
X:\xampp\php\php.ini
X:\xampplite\php\php.ini

1.) To get pdo_mysql working on Windows with XAMPP, edit your
php.ini file and make sure the following lines exist and are
uncommented (don't have a semicolon [;] in front of them):
extension=php_pdo.dll
extension=php_pdo_mysql.dll

2.) For mcrypt to work, you have to do the same thing as above -
edit the php.ini file - making sure this time that these lines exist
and are uncommented:
extension = php_mcrypt.dll
extension=php_mcrypt_filter.dll extension =
php_mcrypt_filter.dll
extension=php_mhash.dll extension = php_mhash.dll

3.) For cURL, it's much of the same.  Edit your php.ini file and
make sure this line is there, and that it's not commented:
extension=php_curl.dll

4.) For GD, once again, edit the php.ini file and make sure this
line is there, and that it's not commented:
extension=php_gd2.dll

5.) Restart Apache and try your Magento installation again.


TIPS:

a.) Google is your friend.  Always search for your answers
there before sending a question to the list.  Often searching for what
you want to do, along with the keyword `howto` or separate words `how
to install` will give you the answer you need with the first result.

b.) For the official page on installing Windows extensions for
PHP, go to:
http://www.php.net/manual/en/install.windows.extensions.php

c.) To find out where your extension directory is, create a
file in the web root of XAMPP (it should be the `htdocs` (without
quotes) subdirectory within the XAMPP installation directory, by
default).  Name it phpinfo.php and put only the following code into
it:

 then access that page by going to
http://servername/phpinfo.php and finding the field named
"extension_dir" in the `Configuration->PHP Core` section.

d.) When you know your extension directory, check that to make
sure the extensions mentioned above in the installation instructions
(the .dll files) actually exist in the extension directory.

e.) Any time you make changes to php.ini or httpd.conf
(Apache's configuration file), you must ALWAYS restart Apache to have
these changes take effect.

-- 

http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!

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



Re: [PHP-WIN] there must be better way to handle "Null" undefined variables

2008-12-08 Thread Daniel Brown
For future reference, Fred, please only include the relevant code,
not the entire script.

On Mon, Dec 8, 2008 at 11:46 AM, Fred Silsbee <[EMAIL PROTECTED]> wrote:
[snip!]
>
> Under windows, the first page has an error Notice:  Undefined 
> variable: ExercisePrice in C:\Inetpub\wwwroot\new_black_scholes.php on 
> line 198

This is just a matter of the INI settings error_reporting and/or
error_display being different.  It's not an OS thing at all.  You can
change php.ini on the offending system to this:

error_reporting = E_ALL | ~E_NOTICE
; Note that the | is the pipe character.

Preferably, though, the variable on line 198 should be defined.
It doesn't absolutely *NEED* to be, but good coding standards beg that
you do.

[snip!]
>value="" />
[snip!]

There's your problem.  $ExercisePrice is called (within the  tags), but was never defined before this.

-- 

http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
50% Off Hosting! http://www.pilotpig.net/specials.php

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



Re: [PHP-WIN] there must be better way to handle "Null" undefined variables

2008-12-08 Thread Daniel Brown
On Mon, Dec 8, 2008 at 1:24 PM, Fred Silsbee <[EMAIL PROTECTED]> wrote:
> if you read my original post you'd see that I already know this!

Fred, I read your original post (the whole thing, which - if you
read the rules of these mailing lists, you'd see - you sent wrong, as
usual).

> The question is again "Is there a better way?"

The BETTER way is doing it the RIGHT way, and not being so
abrasive with every single post you make to the mailing lists.  If you
already know the problem and how to fix it, then what's the issue
here?  Fix it.

-- 

http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
50% Off Hosting! http://www.pilotpig.net/specials.php

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



[PHP-WIN] Re: [PHP] 64 bit binary ?

2009-07-05 Thread Daniel Brown
On Sun, Jul 5, 2009 at 15:43, loki wrote:
> Hello
>
> Is it plane to release 64 bit binary for php on windows ?

Pierre?

-- 

daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig

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



[PHP-WIN] Re: [PHP] 64 bit binary ?

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 06:21, loki wrote:
> no

Not you.  ;-P

Note that I forwarded the message to the appropriate list --- the
php-windows@ mailing list --- where Pierre Joye hangs out.  He'd be
the one to help you.

-- 

daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig

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