php-general Digest 13 Jun 2013 06:51:23 -0000 Issue 8264

2013-06-13 Thread php-general-digest-help

php-general Digest 13 Jun 2013 06:51:23 - Issue 8264

Topics (messages 321373 through 321377):

Re: debugging remote PHP code in eclipse
321373 by: Jason P.

ZF developers in Spain
321374 by: Jason P.

Detect and Redirect Mobile Users
321375 by: dealTek
321376 by: Paul M Foster
321377 by: Tihanyi Péter

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---


I haven't tested yet but I've found yesterday some good tips that maybe 
could work.


1) Xdebug wizard. Simple paste there the output of phpinfo() and follow 
the steps.


http://xdebug.org/wizard.php

If you find problems with phpize, remember to run it inside the inner 
xdebug folder.


2) Go to your /etc/php5/apache2/php.ini and add the zend_extension for 
xdebug and its configuration.




This is the post I've been following:

http://www.cleancode.co.nz/blog/724/remote-php-debugging-eclipse-php-xdebug

It's possible (I don't know it for sure) that you may have to activate 
in Eclipse one specific option about Jit:


http://bogdan-albei.blogspot.com.es/2010/06/php-remote-debugging-with-xdebug-and.html


Hope this helps!




El 12/06/13 18:01, Rafnews escribió:

Hi everybody,

I have big trouble to correctly configure Eclipse/Xdebug to remotely
debug a PHP website.
When web server is local i have no problem, it works like a charm...but
in case webserver is not local, that's a real nightmare.

till now everything what i found on internet was about settings for a
local debugging.
few are about remote debugging... and after reading them i still have
trouble it's like something is missing...an important step...

so i would like to know if someone could help me.
If you already successfully setup  eclipse/xdebug for a remote
debugging, please let me know.

i feel like a local copy of website root folder must exist on my client
computer but is it true ? how to configure eclipse to be sure it will
run code with PHP server ?

so please, contact me if you already did it.

thx a lot


---End Message---
---BeginMessage---


Hi people!

I'm doing a personal research of Spanish freelancers and agencies that 
use ZF in his projects, version 2 preferably.


My summer purpose is to learn the basics of the new framework and I 
would like to find people using it to simply interchange knowledge or 
job opportunities ;)



Thanks.
---End Message---
---BeginMessage---
Hi all,

I'm curious of a simple, common, universal way to detect a mobile user so I can 
redirect them to a mobile directory...

What is best for this: Javascript - CSS - PHP?

I think for my purposes if I can detect screen size or mobile browser agent - 
that would be good enough for what I need right now.

Thanks in advance - Dave


--
Thanks,
Dave - DealTek
deal...@gmail.com
[db-3]

---End Message---
---BeginMessage---
On Wed, Jun 12, 2013 at 04:19:50PM -0700, dealTek wrote:

 Hi all,
 
 I'm curious of a simple, common, universal way to detect a mobile user so I 
 can redirect them to a mobile directory...
 
 What is best for this: Javascript - CSS - PHP?
 
 I think for my purposes if I can detect screen size or mobile browser agent - 
 that would be good enough for what I need right now.

This is not really a PHP question. I understand your asking it, though.
Does anyone know of a better list or whatever for generic web designer
questions?

To your question, there are two problems: 1) Looking for a browser
signature is a needle/haystack proposition, and the haystack is
enormous, and it gets bigger every time a new phone/tablet model comes
out; 2) Screen size used to be a good indicator, but as I feared when
people first started using screen resolution as the main indicator, the
screens on mobile devices have become progressively more and more
capable. Some of them are better than many desktops I've seen.

So I'd be interested in the answer to the question myself.

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com
---End Message---
---BeginMessage---

Hi,

It might be a good solution for your problem:
http://detectmobilebrowsers.com/

You can find php, js, apache, etc scripts for your problem.

Regards,
Peter Tihanyi

http://systream.hu


2013.06.13. 1:19 keltezéssel, dealTek írta:

Hi all,

I'm curious of a simple, common, universal way to detect a mobile user so I can 
redirect them to a mobile directory...

What is best for this: Javascript - CSS - PHP?

I think for my purposes if I can detect screen size or mobile browser agent - 
that would be good enough for what I need right now.

Thanks in advance - Dave


--
Thanks,
Dave - DealTek
deal...@gmail.com
[db-3]




---End Message---


php-general Digest 14 Jun 2013 04:22:06 -0000 Issue 8265

2013-06-13 Thread php-general-digest-help

php-general Digest 14 Jun 2013 04:22:06 - Issue 8265

Topics (messages 321378 through 321400):

Enabling the chroot() function in PHP 5.4
321378 by: Aaron Stephens
321393 by: Matijn Woudt

PHP is Zero
321379 by: BUSCHKE Daniel
321380 by: georg
321381 by: BUSCHKE Daniel
321382 by: Pete Ford
321383 by: BUSCHKE Daniel
321384 by: richard gray
321385 by: Pete Ford
321386 by: BUSCHKE Daniel
321387 by: BUSCHKE Daniel
321388 by: Samuel Lopes Grigolato
321389 by: Stuart Dallas
321390 by: Samuel Lopes Grigolato
321392 by: Alessandro Pellizzari
321397 by: Matijn Woudt

Re: Detect and Redirect Mobile Users
321391 by: raphael khaiat
321394 by: Matijn Woudt
321395 by: Matijn Woudt
321396 by: Camille Hodoul
321400 by: Dead Letter.Office

What is the name of the pattern that will ...
321398 by: Richard Quadling
321399 by: David Harkness

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---

Hi All,

Does anybody know how to enable the chroot() function in PHP 5.4?  
It was easy in PHP 5.3 as long as you were building the CLI by itself.  
In the PHP 5.4 configure script there is a new PHP_BINARIES variable 
being used instead of setting PHP_SAPI=cli and thus the #define 
ENABLE_CHROOT_FUNC 1 is never written to the output file.  I have been 
able to manually enable it by adding the define to the main/php_config.h 
after running configure.  The issue seems to be a line: if test 
program = program.  This comparison being true is what causes the 
configure script to add cli to the PHP_BINARIES variable instead of 
setting the PHP_SAPI variable.  The other prerequisites (HAVE_CHROOT and 
ZTS) are all at the required settings.  It is only the 
ENABLE_CHROOT_FUNC which is causing the function to not be compiled into 
the resulting binary.  Any information or explanation would be very helpful.


For the record, I know what the chroot() function does and does not 
do.  I am experimenting with using chroot() to isolate an already 
running script to a particular subset of the filesystem for file operations.


--

 - Aaron
---End Message---
---BeginMessage---
Hi Aaron,

It's better if you ask this question on the PHP internals list, there's
hardly anyone compiling it's own PHP here.

- Matijn


On Thu, Jun 13, 2013 at 9:55 AM, Aaron Stephens
aaron.t.steph...@gmail.comwrote:

 Hi All,

 Does anybody know how to enable the chroot() function in PHP 5.4?  It
 was easy in PHP 5.3 as long as you were building the CLI by itself.  In the
 PHP 5.4 configure script there is a new PHP_BINARIES variable being used
 instead of setting PHP_SAPI=cli and thus the #define ENABLE_CHROOT_FUNC 1
 is never written to the output file.  I have been able to manually enable
 it by adding the define to the main/php_config.h after running configure.
  The issue seems to be a line: if test program = program.  This
 comparison being true is what causes the configure script to add cli to
 the PHP_BINARIES variable instead of setting the PHP_SAPI variable.  The
 other prerequisites (HAVE_CHROOT and ZTS) are all at the required settings.
  It is only the ENABLE_CHROOT_FUNC which is causing the function to not be
 compiled into the resulting binary.  Any information or explanation would
 be very helpful.

 For the record, I know what the chroot() function does and does not
 do.  I am experimenting with using chroot() to isolate an already running
 script to a particular subset of the filesystem for file operations.

 --

  - Aaron

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


---End Message---
---BeginMessage---
Hi all,
I want to start a discussion about a PHP behaviour that drives me crazy for 
years. For the beginning I would like you to guess what the result of the 
following snippet will be:

var_dump('PHP' == 0); 

I know the difference of == and === but the result was unexcpected for me. And 
I hope it is also for you. The result is simply true. Why is it true? I guess 
this happens because of the conversion from 'PHP' to a number which will be 0 
in PHP. And of course 0 equals 0. There are several points that I just want to 
drop into this mailinglist to discuss about:

1. Why? :)
2. Why is PHP converting the String into a Number instead of converting the 
Number into a String? (If my guess concerning the behaviour is correct)
3. Why is PHP throwing data away which has the developer explicit given to the 
interpreter?
4. Why does var_dump(0 == 'PHP'); has the same result as the snippet above? 
This