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?
Never had this problem till updated CPanel today? Maybe that is part the problem?
I only have the one php.ini file
# /usr/local/bin/php --info | grep php.ini
Configure Command => './configure' '--disable-cgi' '--disable-fileinfo' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml'…
I am using PHP FastCGI SAPI on my web hosting environment to run PHP applications. To spawn FCGI processes I use spawn-fcgi helper program. My problem is whenever I make a change to php.ini file, I have to kill and respawn each FastCGI server for the new configuration to take effect.
Is there a way to reload PHP configuration(ie. php.ini…
I am building PHP 5.3 rpm packages for our custom CentOS 5 yum repo. I am fairly new to building rpms to be honest, but I have had moderate success downloading the SRPMS for a given package and repackaging them using "rpmbuild --rebuild" command.
One thing that is throwing me off though is how to satisfy the php-devel package.. I…
I just created a new app using angular-fullstack yeoman generator, edited it a bit to my liking, and ran it with grunt on my localhost, and immediately upon starting up I get this flood of requests to paths that I haven't even defined.
Is this a hacking attempt? And if so, how does the hacker (human or bot) immediately know…
My php.ini says:
Additional .ini files parsed
/etc/php53/php.d/curl.ini,
/etc/php53/php.d/fileinfo.ini, /etc/php53/php.d/json.ini, /etc/php53/php.d/mysqli.ini,
/etc/php53/php.d/mysql.ini, /etc/php53/php.d/pdo_mysql.ini, /etc/php53/php.d/phar.ini,
/etc/php53/php.d/zip.ini
mysqli.ini is loaded..
But still i get…
I'm trying to diagnose a server where the website is loading very slowly, but unfortunately my client has only provided me with FTP access.
I've got FTP access so I can upload PHP scripts, but can't set up any other server side tools.
I have access to phpMyAdmin, but not direct access to the MySQL server. It is also…
04 LTS 64 bit. What I would really love to do is sudo apt-get install libapache2-mod-php5 but compile PHP with --enable-maintainer-zts so I could later install pthreads with pecl install pthreads. Sadly I understand that it is not possible. I know that the easiest way is to recompile PHP together with apache support…
I am trying to install a CRM on a Linux (Ubuntu 10.04) laptop to do some testing. Installing the current versions of Apache, MySQL and PHP, and getting the CRM to run is easy. It's when I try to go backwards and run it on a previous set of versions I run into problems. This is what I have done:
I have installed…
I'm trying to clean urls in NGINX using framework DooPHP.
This =
- http://example.com/index.php/something/more/
To This =
- http://example.com/something/more/
I want to remove (clean url) the "index.php" from the url if someone try to enter in the first form. Like a permanent redirect.
How to do this config on…
I keep getting dependency issues when I try to run yum install php-devel
yum install --skip-broken php-devel
....
--> Finished Dependency Resolution
php-5.1.6-32.el5.i386 from base has depsolving problems
--> Missing Dependency: php-common = 5.1.6-32.el5 is needed by package php-5.1.6-32.el5.i386 (base)…
I'm trying to install php-pdo but it always fails because of php-common
bash-3.2# yum install php-pdo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: fedora-epel.mirror.lstn.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package…
I'm currently working with Java / C++. I'm interested in web development and am planning to shift my stream. I heard that PHP is a good platform to start off and also it does not require that much of knowledge in technologies like JSP / Servlets or frameworks like springs / struts / hibernate.
I have basic…
Hey guys, I'm using recaptcha and I've got a problem, when a user clicks the signup button it redirects him to the sign up verification page, and here is the code, found on the very top of the web code, that checks the recaptcha entered data.
<?php
require_once('recaptchalib.php');
$privatekey = "***";…
I get this message regardless of the path used and even if I place the class file in the default directory location.
Zend_Controller_Action_HelperBroker::addPath('./Plugins/Helpers','Helper');
Sorry, An error has occured: Application Error:exception 'Zend_Loader_PluginLoader_Exception' with message…
PROBLEM UPDATED, READ BELOW
For some reason my CI fails silently when loading view.
Loading view is simply called from controller
$this->load->view('templates/default.php');
Now. There are some functions in the loaded view that are not defined unless a proper helper is loaded as well.…
60% des sociétés utiliseraient PHP pour des applications critiques
D'après Zend, qui édite des solutions PHP
Zend (« the PHP Company ») vient d'annoncer la sortie d'une étude sur « l'état de PHP en entreprise » qui porte sur la façon dont les décideurs utilisent ou vont utiliser PHP.
…
I'm having trouble with a multi-layout option on a wordpress theme sight http://sight.wpshower.com/
the traffic have the option of a grid or a list layout at the click of a button. at present the list layout is default. I am interested in making the grid layout default .
this is some of…
I'm not sure if this is a question for serverfault or stackoverflow but it seems like it has a lot to do with server config.
We have a server in chicago and the server's clock is on chicago time. But since the business is located in California, it would seem to make sense to use pacific…
Hey guys,
I'm trying to load this module: php_mcrypt.dll'
Everything in the php.ini file is correct, see for yourself:
extension_dir = "C:/PHP/5.2.13/ext"
extension=php_mcrypt.dll
The file exists in this path. And other modules are in there as well and are loaded successfully. It…
I know that Debian Squeeze won't let me compile a PHP version (prior to 5.3.0).
But I need them for migrating some tools: Joomla (1.0.10) and SugarCRM (4.2.1b).
Actually, Joomla 1.0.10 can run on PHP 5.2, and SugarCRM on PHP 5.1.
But both will complain running under PHP 5.3.
So,…
I have a page displaying blog posts (latest_posts.php) and another page that display single blog posts (blog.php) . I intend to link the image title in latest_posts.php so that it redirects to blog.php where it would display the particular post that was clicked.
latest_posts.php:
…
I'm stuck on how to write the test.php page result (after php has run) to a string:
testFunctions.php:
<?php
function htmlify($html, $format){
if ($format == "print"){
$html = str_replace("<", "<", $html);
$html = str_replace(">", ">",…
Hi,
I switched from Lighttpd server to WAMP and then found sockets in php are not working. But php is configured and working. (phpinfo() works) I removed the comment for the php_sockets.dll in php.ini @ C:\wamp\bin\php\php5.2.5.but still gives the error "Fatal error: Call to…