HipHop compiles PHP in a C executable. What happens with PHP errors ?
Is that harder to debug ?
edit : I looked through the documentation but didn't find anything
Hi guys, can you please help me. How to get an hierarchical php structure from a db table, in php array, or JSON, but with the following format:
[{ "attributes" : {"id" : "111"}, "data" : "Some node title", "children" : [ { "attributes" : { "id" : "555"}, "data" : "A sub node title here" } ], "state" : "open" }, { "attributes" : {"id" : "222"},…
I have a function that finds a regex thingy, then replaces with php code. I want to have it replace the found regex with php code on the screen, like have it echo out ". except when it echos that in the source, it shows all the
Hello.
I have this error appearing:
Parse error: syntax error, unexpected T_STRING in /home/ondesign/public_html/ywamleicester.org/index.html on line 1
Which I think is a php error. However, the site in question is an out of the box iweb design with no php in it.
I have no idea what could be doing it.
I'm looking for an equivalent of PerlCritic for PHP. PerlCritc is a static source code analyzer that qritiques code and warns about everything from unused variables, to unsafe ways to handle data to almost anything.
Is there such a thing for PHP that could (preferably) be run outside of an IDE, so that source code analysis could be automated?
Sorry for the silly question, but I ran across code that used:
<?=$MAP_OBJECT->printOnLoad();?>
<?=$MAP_OBJECT->printMap();?>
<?=$MAP_OBJECT->printSidebar();?>
Is there anything special about <?php= over <?php or just plain <? ?
Hello,
I've been trying to find a string in PHP that matches something like this:
Currently I've tried something like this;
<()\?php eval(^
but it dosen't seem to get the string correctly.
Hi,
My Apache/PHP installation is making me use instead of . Where is this found in the configuration file so that I don't need to do the former? I'm assuming it's in php.ini, but not sure what it would be called.
When i try to execute php file though CLI this message appear:
Exception: Zend Extension ./filename.php does not exist
But while run like this /usr/local/bin/php -q -r "echo 'test';" works as expected
I tried to figure out what causing this, no success yet. Here some information about enviroment may be usefull:
I have eaccelerator…
I'm running Ubuntu 8.04 on this server. I had PHP 5.2 installed via the package manager. I removed it to install PHP 5.3.1 by hand. I built the packages like so
./configure --prefix=/opt/php --with-mysql --with-curl=/usr/bin --with-apxs2=/usr/bin/apxs2
make
make install
This installed PHP 5.3.1 in /opt/php/
$ php -v
PHP 5.3.1 (cli)…
Hi I've been looking for answers for this all day and can find nothing to solve my issue.
I also came across a question about this port on serverfault that I just answered and will hopefully help someone else.
however my problem is this.
While running "make" in /usr/ports/security/pecl-ssh2
I get this error
=== Building for…
I have a CentOS 5.4 server with Apache 2.2.3, mod_fastcgi and PHP 5.2.11. Everything is working great, server is a production server and I've had no complaints. When I was looking in PHP's error log to diagnose a problem with a specific page, I saw the following periodically repeated over and over:
[03-May-2010…
I'm trying to install memcache on MAMP but I get the warning below, and when I continue it seems to complete properly. I add the line extension=memcache.so to the php.ini and restart MAMP but phpinfo() doesn't list the memcache extension.
$ ./pecl install memcache
downloading memcache-2.2.5.tgz ...
Starting to…
I have to install PHP 5.3 on my CentOS server. If I do yum install php, the base repository installs 5.1.6 which is too old for the applications I need to install. So I've been trying to use the IUS repository, following the official instructions from IUS:
root@linuxbox ~]# wget…
Any thoughts on this? We've had this happen twice recently. Basically, every page throws a fatal error, fixed by an apache restart. Here's what's in the log, repeated over and over.
[Tue Apr 13 15:18:12 2010] [error] [client 10.0.0.2] PHP Fatal error: Internal Zend error -…
Helo
I installed MAMP PRO on my Macbook Pro (10.6) some time ago. Now I would like to use zip functions in php. I found that I must add zip.so to my extension folder and edited php.ini.
On my computer I have two different versions of PHP one in MAMP folder and other in…
I'm trying to install memcache on MAMP but I get the warning below, and when I continue it seems to complete properly. I add the line extension=memcache.so to the php.ini and restart MAMP but phpinfo() doesn't list the memcache extension.
$ ./pecl install memcache…
I followed this tutorial to update PHP from 5.3 version to 5.4. My distro is CentOS 5.5.
after running following command:
yum --enablerepo=remi,remi-test install httpd php php-common
I get following error:
--> Missing Dependency: php-common = 5.3.13-1.w5…
I am trying to setup 2 versions of PHP on Centos 5.9 using this tutorial: http://linuxplayer.org/2011/05/intall-multiple-version-of-php-on-one-server. I have followed I have installed default 5.4.19, and I was trying to setup another 5.2.17 PHP version to be run…
I have a problem with php 5.3.6 using PHP-FPM and file uploads.
My Nginx runs as user nginx
PHP-FPM uses pools configured for each vhost. For example a user: test group : test runs one pool.
When the php file uploads to temp file it is owned by user test.…
I'm having problems getting the code-completion for the Ext 3.2 plugin to work, when working with .php files. I've also installed the php plugin for Aptana, and the same thing applies for php - I cannot access php code-completion when working with a…
This is related to my other question... but the situation is much worse now.
After updating to the most recent version of Virtualmin, when I create new accounts, Virtualmin sets up their VirtualHost entries as follows:
<Directory…
Hi folks, Even After I forced DreamWeaver CS5 to allow opening of .ast extensions as a MIME type of php5, which DreamWeaver now opens and colors correctly as described here, I still have trouble figuring out why it still discriminates…