[PHP] I am trying to install PHP on a Windows box, but the PHPINFO page does not load up. Where could I be going wrong?

2010-11-18 Thread Kirti Kumar




I am trying to install PHP on a  Windows box, but the PHPINFO page does not 
load 
up. Where could I be  going wrong?



[PHP] I am a Windows programmer and getting started on PHP. What is the easiest way of getting started? Most of the stuff I encounter seems to be very Linux specific.

2010-11-18 Thread Keerat Singh
I am a Windows programmer and getting started on PHP. What is the easiest way 
of 
getting started? Most of the stuff I encounter seems to be very Linux specific.



Re: [PHP] I am trying to install PHP on a Windows box, but the PHPINFO page does not load up. Where could I be going wrong?

2010-11-18 Thread Aman Singh
This blog has details:
http://blogs.iis.net/donraman/archive/2009/11/15/troubleshooting-php-installation-on-windows.aspx?WT.mc_id=soc-c-in-loc--cfp
Hope this helps.


On Thu, Nov 18, 2010 at 3:11 PM, Kirti Kumar  wrote:

>
> 
>
>
> I am trying to install PHP on a  Windows box, but the PHPINFO page does not
> load
> up. Where could I be  going wrong?
>
>


Re: [PHP] I am a Windows programmer and getting started on PHP. What is the easiest way of getting started? Most of the stuff I encounter seems to be very Linux specific.

2010-11-18 Thread Aman Singh
Keerat - I've been in the same boat myself lately.
Microsoft provides an entire platform for PHP - that should be the easiest
way I guess. You can find more info on
http://learn.iis.net/page.aspx/773/how-to-install-the-microsoft-web-platform-for-php
?WT.mc_id=soc-c-in-loc--cfp
Hope this helps.


On Thu, Nov 18, 2010 at 3:38 PM, Keerat Singh
wrote:

> I am a Windows programmer and getting started on PHP. What is the easiest
> way of
> getting started? Most of the stuff I encounter seems to be very Linux
> specific.
>
>


Re: [PHP] I am trying to install PHP on a Windows box, but the PHPINFO page does not load up. Where could I be going wrong?

2010-11-18 Thread Richard Quadling
On 18 November 2010 09:41, Kirti Kumar  wrote:
> I am trying to install PHP on a  Windows box, but the PHPINFO page does not 
> load
> up. Where could I be  going wrong?

What webserver are you using? Or are you looking just at command line usage?

The PHP documentation covers a wide range of setups.

http://docs.php.net/manual/en/install.windows.php
http://docs.php.net/manual/en/install.windows.manual.php
http://docs.php.net/manual/en/install.windows.commandline.php

for example.

If you are using IIS7, then you can use Web Platform Installer (WPI)
to automatically install FastCGI and then PHP (I'd also add WinCache
and RewriteURL).

Richard.


-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

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



Re: [PHP] Is it possible to install PHP on IIS?

2010-11-18 Thread Richard Quadling
On 16 November 2010 13:30, Jay Blanchard  wrote:
> [snip]
> http://www.wampserver.com/en/
> [/snip]
>
> And yes, I know that this is Apache - I am just not a fan of IIS.
>
>

I quite like it. It probably does way so much more than I need or want
and I think I can do everything that I can on Apache.

IIS7 is certainly a massive leap ahead of the PWS I first tried to use.

IIS+FastCGI+PHP. Add the Rewrite plugin and the PHP extensions
WinCache and SQLSvr (PDO if you want it) and you have a well defined
simple setup.

Obviously, getting to grips with the administration UI is a bit
different to just editing a plain text config file, but IIS does use
an XML file for its config, so, once you know the xsd, you can do that
by hand also. Full docs on the xsd are available online, so really,
I'd guess in terms of ability, IIS and Apache are on-par.

Richard.



-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

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



RE: [PHP] I am trying to install PHP on a Windows box, but the PHPINFO page does not load up. Where could I be going wrong?

2010-11-18 Thread Tommy Pham
> -Original Message-
> From: Richard Quadling [mailto:rquadl...@gmail.com]
> Sent: Thursday, November 18, 2010 4:41 AM
> To: Kirti Kumar
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] I am trying to install PHP on a Windows box, but the
> PHPINFO page does not load up. Where could I be going wrong?
> 
> On 18 November 2010 09:41, Kirti Kumar  wrote:
> > I am trying to install PHP on a  Windows box, but the PHPINFO page
> > does not load up. Where could I be  going wrong?
> 
> What webserver are you using? Or are you looking just at command line
> usage?
> 
> The PHP documentation covers a wide range of setups.
> 
> http://docs.php.net/manual/en/install.windows.php
> http://docs.php.net/manual/en/install.windows.manual.php
> http://docs.php.net/manual/en/install.windows.commandline.php
> 
> for example.
> 
> If you are using IIS7, then you can use Web Platform Installer (WPI) to
> automatically install FastCGI and then PHP (I'd also add WinCache and
> RewriteURL).
> 
> Richard.
> 
> 
> --
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
> 

Another option for IIS7+ is PHP Manager [1].

Regards,
Tommy

[1] http://phpmanager.codeplex.com/documentation



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



RE: [PHP] Stripslashes

2010-11-18 Thread Tommy Pham


> -Original Message-
> From: Gary [mailto:gp...@paulgdesigns.com]
> Sent: Wednesday, November 17, 2010 2:17 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Stripslashes
> 


> I also assume that until php 6 is out and or I upgrade to it, I will have
to
> deal with magic_quotes?
> 
> Thank you for your help.
> 
> Gary
> 
Gary,

You'll have to wait a very long time for that. IIRC, the official word (via
windows list) is that PHP 6 is cancelled.  The next official release is 5.4.

Regards,
Tommy


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



RE: [PHP] I am a Windows programmer and getting started on PHP. What is the easiest way of getting started? Most of the stuff I encounter seems to be very Linux specific.

2010-11-18 Thread Tommy Pham
> -Original Message-
> From: Keerat Singh [mailto:professionalkee...@yahoo.in]
> Sent: Thursday, November 18, 2010 2:09 AM
> To: php-general@lists.php.net
> Subject: [PHP] I am a Windows programmer and getting started on PHP.
> What is the easiest way of getting started? Most of the stuff I encounter
> seems to be very Linux specific.
> 
> I am a Windows programmer and getting started on PHP. What is the easiest
> way of getting started? Most of the stuff I encounter seems to be very Linux
> specific.

It would help if you're more specific on your objective.  If you want to get 
started on developing projects based on PHP but you're using Windows, like 
myself, then you'll need to learn how set it up for Windows, either for IIS or 
Apache httpd.  Thereafter, deployment platform target is irrelevant except 
where your project(s) use platform specific extensions such as Wincache or IIS. 
 However, if you want to develop PHP extensions specifically for Windows, 
you're better off asking in the windows list (php-wind...@lists.php.net).

Regards,
Tommy


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



[PHP] Re: Approved document

2010-11-18 Thread ramesh . onefluencer
Your document is attached.


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

Re: [PHP] Stripslashes

2010-11-18 Thread Daniel Brown
On Thu, Nov 18, 2010 at 09:49, Tommy Pham  wrote:
>
> You'll have to wait a very long time for that. IIRC, the official word (via
> windows list) is that PHP 6 is cancelled.  The next official release is 5.4.

Well, not canceled, just postponed.  It goes back and forth all
the time, and has for years.  I wouldn't be surprised if we skipped
PHP6 and just released PHP7 (being facetious).

-- 

Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/

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



Re: [PHP] Securing Use of PHP site

2010-11-18 Thread tedd

At 4:51 AM -0800 11/17/10, Don Wieland wrote:

Hello all,

I have recently built a site using PHP. I was a little loose with 
GET and POST methods because I was using it for personal/private 
use. Now I am thinking of going public and allow different companies 
to use the site. I want to secure and hide as much data as possible 
to guard against user abuse.


I have several instances where I use the GET method to pass IDS. I 
can use a POST but even that is visible in the source. How does one 
allow for processing but never really let the user see that actual 
ID? Do I use a HASH for IDs? Do I need to get more familiar with 
SESSION VARS.


I am doing some experimenting. Any words of wisdom or resources 
would be helpful. Thanks!


Don Wieland


Don:

Buy: Essential PHP Security by Chris Shiflet

Well worth the money.

Cheers

tedd



--
---
http://sperling.com/

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



[PHP] Secure PHP Code

2010-11-18 Thread Kaushal Shriyan
Hi,

Can the php source code be secured ?

Thanks

Kaushal

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



Re: [PHP] Secure PHP Code

2010-11-18 Thread Daniel P. Brown
On Thu, Nov 18, 2010 at 12:12, Kaushal Shriyan  wrote:
> Hi,
>
> Can the php source code be secured ?

When you say "secured," what do you mean?  Obfuscated?  Encoded?
Compiled?  Tightened against attack?

Regardless, the answer is yes.  You just need to be specific about
your definition of "secured" and plug that into Google so you can help
yourself.

-- 

Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/

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



Re: [PHP] Secure PHP Code

2010-11-18 Thread Richard West
Be sure to compile with hardened suhosin patch...
RD
On Nov 18, 2010, at 12:12 PM, Kaushal Shriyan wrote:

> Hi,
> 
> Can the php source code be secured ?
> 
> Thanks
> 
> Kaushal
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


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



[PHP] PHP 5.2.15RC1 & 5.3.4RC1 Released for Testing

2010-11-18 Thread Johannes Schlüter
The first release candidates of 5.2.15 and 5.3.4 were just released
for testing and can be downloaded here:

http://downloads.php.net/ilia/php-5.2.15RC1.tar.bz2 (md5sum:
9b2c632427a533fdb3946081c7c382c2)

http://downloads.php.net/johannes/php-5.3.4RC1.tar.bz2 (md5sum:
2edb695f94ef41cc9cfa35777b2656ec)

The windows binaries are available at: http://windows.php.net/qa/

This is the first step in the release process of both versions and goal
is, depending on feedback, having a 2nd RC two weeks from now. We aim at
having final releases around mid December. Majority of the changes for
both versions are of the "bug fix" variety. To ensure that the release
is solid, please test this RC against your code base and report any
problems that you encounter. Please also note that 5.2.15 is supposed to
be the final release from that series.

Ilia Alshanetsky Johannes Schlüter
PHP 5.2 Release Master   PHP 5.3 Release Master



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



RE: [PHP] I am a Windows programmer and getting started on PHP

2010-11-18 Thread Daevid Vincent
> -Original Message-
> Subject: [PHP] I am a Windows programmer and getting started 
> on PHP. What is the easiest way of getting started? Most of 
> the stuff I encounter seems to be very Linux specific.
> 
> I am a Windows programmer and getting started on PHP. What is 
> the easiest way of 
> getting started? Most of the stuff I encounter seems to be 
> very Linux specific.

Personally, I would avoid XAMP and those hacks to run apache and PHP on
your XP (or vista or win7 or whatever). I'd say the vast majority of PHP
developers are LAMP developers so get used to Linux at least enough to move
around the file-system and know where to put files (/var/www/ or
~/public_html etc). With that in mind, I would look for either a pre-built
VM. VirtualBox is free and VERY easy/robust. Also VMWare is outstanding and
they have a free "player" and eight bajillion pre-made VM appliance setups:

http://www.virtualbox.org/
http://www.munkyonline.com/articles/lamp-ubuntu-server-on-virtualbox.html

http://www.vmware.com/products/player/
http://www.vmware.com/appliances/directory/cat/0?k=lamp

I also strongly suggest you setup your VM to use samba shares so it's easy
to edit/save/view your files without some tedious FTP or SCP step.

-Daevid.

P.S. I'd also limit your email subject lines to a simple sentence or less.
Not a paragraph!


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



[PHP] smary assign var

2010-11-18 Thread Tontonq Tontonq
hi guys
i have 2x sub value

[reduction] => 4
[price_without_reduction] => 22
[price] => 18

and i want to calculate how much i did reduction percent

{assign var='yuzde' value=$product.reduction*100}
{assign var='yuzde' value=$yuzde/$product.price_without_reduction}

-{$yuzde|truncate:3:''|escape:'htmlall':'UTF-8'}%
when i escape only 3 chars i see some products returns
like "-18.%"
when i escape only 2 chars
i get e result like
"-5.%"

so is there a way to round that value to int not float?


Re: [PHP] smary assign var

2010-11-18 Thread Ashley Sheridan
On Fri, 2010-11-19 at 00:59 +0100, Tontonq Tontonq wrote:

> hi guys
> i have 2x sub value
> 
> [reduction] => 4
> [price_without_reduction] => 22
> [price] => 18
> 
> and i want to calculate how much i did reduction percent
> 
> {assign var='yuzde' value=$product.reduction*100}
> {assign var='yuzde' value=$yuzde/$product.price_without_reduction}
> 
> -{$yuzde|truncate:3:''|escape:'htmlall':'UTF-8'}%
> when i escape only 3 chars i see some products returns
> like "-18.%"
> when i escape only 2 chars
> i get e result like
> "-5.%"
> 
> so is there a way to round that value to int not float?


Is there any PHP in there, because I'm not seeing it...

Thanks,
Ash
http://www.ashleysheridan.co.uk




RE: [PHP] smary assign var

2010-11-18 Thread admin
Taking what I understand from C, I think you are looking for this equivalent
in php.

$product = array('reduction'=>'4','price_without_reduction'=>'22','price
'=>'18')
$yuzde = $product['reduction']*100;
$yuzde = round($yuzde / $product['price_without_reduction']);


Echo $yuzde;
This is no reason to truncate or escape html since the strings do not
contain them.
I might suggest you read 
http://www.php.net/manual/en/function.round.php
for a better understand the precision options with round.




Richard L. Buskirk


-Original Message-
From: Tontonq Tontonq [mailto:root...@gmail.com] 
Sent: Thursday, November 18, 2010 6:59 PM
To: PHP General Mailing List
Subject: [PHP] smary assign var

hi guys
i have 2x sub value

[reduction] => 4
[price_without_reduction] => 22
[price] => 18

and i want to calculate how much i did reduction percent

{assign var='yuzde' value=$product.reduction*100}
{assign var='yuzde' value=$yuzde/$product.price_without_reduction}

-{$yuzde|truncate:3:''|escape:'htmlall':'UTF-8'}%
when i escape only 3 chars i see some products returns
like "-18.%"
when i escape only 2 chars
i get e result like
"-5.%"

so is there a way to round that value to int not float?


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



[PHP] PHP Sockets, problem with remote execution (exec/system)

2010-11-18 Thread Ronny Tiebel
Good Morning List ;)

ive allready postet my question on the german phpbar mailinglist, but no
responses from anyone yet. i hope someone on that list could give me an
advice or hint.

i'm writing a php-daemon which will run on a debian lenny/squeeze.
this daemon should listen to a specific port of a
vpn-interface/ip-address (it creates a socket)

if the daemon script recieves a string from my management webinterface
(other server) it should run some code e.g. exec('/etc/init.d/apache2
restart'); or system('something'); or whatever.

i got it working, but there is a (for me) strange behavior. After the
daemon has restarted the apache2 service for example and the php daemon
is stoped, the apache2 process takes over the socket. that means, in
`netstat -tulpen` or `netstat -anp` i first can see something like that:

tcp0  0 10.0.0.1:8133   0.0.0.0:*LISTEN  29168/php
tcp6   0  0 :::80 :::*   LISTEN  29155/apache2

after the daemon has restarted apache2 and stops itself (or i have to
kill him), netstat shows up the following:

tcp0  0 10.0.0.1:8133   0.0.0.0:*  LISTEN  31490/apache2
tcp6   0  0 :::80 :::* LISTEN  31490/apache2

so i cant restart the daemon because apache uses that port/ip (or socket?)

after invoking "/etc/init.d/apache2 restart" on the shell, everything is
fine again and im able to start the daemon. btw, the same with the
openvpn service. (mysql doesnt act like apache or openvpn).

Am i missing something? Or is that the default behavior of
linux/apache/php/sockets ???

Additional Information about OS etc.

Server/Client   Debian LennyApache 2.2.9PHP 5.2.6-1+lenny9 with
Suhosin-Patch 0.9.6.2 (cli) (built: Aug  4 2010 06:06:53)

Client/Server   Ubuntu LucidApache 2.2.14   PHP 5.3.2-1ubuntu4.5 with
Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46)


Ive tested it both way: Ubuntu as Server, Debian as Client and vice versa.

The Ubuntu System (my workstation) is in our Office and the Debian
System is in the datacentre@ our provider...


Any help would be great!

Thanks in advance,

kind regards
Ronny

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