I'm trying to understand the process for enabling an a core extension (dom) in php. When I run phpinfo, I see '--disable-dom' in the configure command. Am I supposed to re-install PHP?
I've installed php fastcgi for Apache2 by this doc:
http://library.linode.com/web-servers/apache/php-cgi/ubuntu-9.10-karmic
Pages is opening fine. But I don't understand why I can't see php5-cgi process [ top ]
Looks like apache run php5-cgi for each request, but processes should be already run.
Could you help me to find the problem?
I'm looking for a PHP Library / PHP Script that allows me to calculate an accurate bounding box for a given center point (lat/lon).
Using an ellipsoid formula (f.ex. WGS84) would be great. I know, there have to be a library but I'm not able to find one.
I was wondering if anyone else has figured out how to solve this problem. Whether I install the extension via PECL or compile it by hand, I get the same error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/gearman.so' - dlopen(/usr/local/zend/lib/php_extensions/gearman.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/gearman.so: mach-o, but wrong architecture in Unknown on line 0
I have no idea how to fix this problem and I can only bang my head into my desk so many times.
<?php
$url = 'http://google.com/';
header('Location: ' . $url);
The xdebug setting in php.ini is:
zend_extension=path_to_xdebug.dll
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
The above header() redirection will work as long as I remove the xdebug setting.
Anyone met this problem?
Hi to all,
is there any free php code that, once installed, allows you to browse and edit files (with html, javascript, php and css highlight) on the server where it's installed? The aim is to code online, browser based. I've tried http://phpanywhere.net/ that can make this possible, but it is buggy and moreover it requires an external (ftp) access to your server that is quite different (and less secure) that working directly on the server.
Thanks in advance
Is it more efficient to use PHP's include_once or require_once instead of using c-like include with a header guard?
i.e,
VERSUS
//contents of init.php
if (!defined('MY_INIT_PHP')) {
define('MY_INIT_PHP', true);
...
}
?
I am using Google translate with PHP to translate text. 99% of the text comes back with the expected encoding. However, A few characters become malformed and appear to be encoded incorrectly. How can I account for this encoding using PHP?
Hierdie is \u0026#39;n
This is in afrikaans, but other languages are also affected.
What's the best way of converting PDF docs to Microsoft Word format in PHP? This can be either as a PHP script or calling a (Linux) executable (with proc_open()). It just needs to be relatively fast and produce quality Word documents (in 97/2000/2003 format).
Commercial software is OK.
Hey,
I'm searching for an open source Question and Answer System that's writting in php/mysql.
The only one I found is http://www.question2answer.org but it lacks important features like deleting a question/user...It's still in its beginnings.
I know that there is http://osqa.net and http://shapado.com but they are not written in php.
Anybody can help me out?
Thanks!
Hello All,
I want to hide url, like I dont want to write /register.php directly in href tag, I want to write /register/ so It will open the register.php page directly, like that i want to do for all the webpages. Please help me and tell me how to do this.
Thanks,
Manoj
In .NET
The Process class contains several useful properties/methods that allow developers to access process relative information.
Have you any equivalent method or class in php.
Have any equivalent method in php like c# method "Process.Start()".
Does anyone know of a good object-relational-mapping library for PHP? I know of PDO/ADO, but they seem to only provide abstraction of differences between database vendors not an actual mapping between the domain model and the relational model. I'm looking for a PHP library that functions similarly to the way Hibernate does for Java/.Net.
Hi All,
I am an experienced .NET developer (C#/ASP.NET) looking to broaden my skills to the PHP/MySQL arena. I would like get recommendations on books for learning PHP/MySQL that are geared towards someone who is already familiar with object oriented programming and web development. I do realize that there are lots of online material out there but I am looking for an actual print book I can read. Thanks a bunch.
I would like to be able to read XMLHttpRequest that is sent to a PHP page. I am using prototype's Ajax.Request function, and I am sending a simple XML structure.
When trying to print the POST array on the PHP page, I don't get any output.
Any help appreciated.
I got this code
/* Popup for hot news */
$(document).ready(function() {
var $dialog = $('<div></div>')
.html('text to be shown')
.dialog({
autoOpen: false,
title: 'Tablica nowosci'
});
This code is in my js files included by header.php.
How to pass php output to this function ?
Inputing in .html('') above doesnt solve anything.
Please help.
Hi Everybody,
I am new to PHP,I need to create Webservices using PHP.Can anybody provide me the sample coding and the procedure steps to proceed?
Thanks in Advance,
Meena
Hello,
I think this script is of big interest to any noob around here :) including me :)
What I want to create is a little code that I can use in any file and will generate a breadcrumb like this:
If the file is called "website.com/templates/index.php" the breadcrumb should show:
Website.com Templates
^^ link ^^plain text
If the file is called "website.com/templates/template_some_name.php" the breadcrumb should show:
Website.com Templates Template Some Name
^^ link ^^link ^^plain text
I am grateful for any reply, thanks!
Does anyone know do there have any way that I can encrypt the array in php??
for example:
$arr_value = array("1","2","3","4");
any way that I can encrypt $arr_value, also decrypt it later ini php?
The Twitter Search api returns results in ATOM/XML format which look like this:
<author>
<name>username (Friendly Name)</name>
<uri>http://twitter.com/username</uri>
</author>
In my PHP I can get the name field as a variable, so it would look like this:
$names = "username (Friendly Name)"
But I want to use PHP to extract them as seperate variables, like this:
$username = "username"
$friendlyName = "Friendly Name" (without parantheses)
TIA!
I am trying to write a program in PHP which I had already written in Java.
I had used the following statements to setup proxy in Java
System.setProperty("http.proxyHost",proxyhost);
System.setProperty("http.proxyPort",proxyport);
How do I do the same for PHP?
Hi,
I want my web server to notify me through a php page when an event occurs at a another TCP server, to which the php page has successfully connected via a socket. The event is like the TCP server want to send a message to the web server, etc. Is there any way to accomplish this and/or any references on how to do it???
Thank You!!
Recently I switched hosting from one provider to the other and I have problems displaying Cyrillic characters. The characters which are read from the database are displayed correctly, but characters which are hardcoded in the php file aren't (they are displayed as question marks).
The files which contain the php source code are saved in utf-8 form. Help anybody?