Is there a way to figure out which user it is that executes a php-script in a webserver using php-commands? (I don't have shell access to the server running httpd, so I cant use ps.)
Hi I use to debug with zend studio 7 with inner Web browser without new window open in firefox or another default browser I have now netbeans PHP 6.8 (on Ubuntu) because it free and good editor.
Can Nebeans debug with inner Web browser inside netbeans 6.8 PHP?
Thanks
I trying to find the best way to upgrade from PHP 5.1 to 5.3. The CRM software I am running on this server requires this upgrade or else I probably wouldn't even perform it, because it seems like it's going to be perhaps trickier than I hoped it would be. Being still new to the programming world, these routine upgrades are still worrisome to me.
I am running apache 2.2.6 (Fedora), PHP 5.1.6 and MySQL 5.0.27 on this server.
I recently upgraded my main development laptop to Lucid. Lucid upgraded PHP to 5.3 and as I'm mainly a PHP developer, this has caused quite a few problems. What's the easiest way to revert back to the the 5.2 series? Googling hasn't found any good solutions.
I am using the lib ssh2 module with PHP and calling the function ssh2_fingerprint() to get the keys fingerprint. According to all resources on the internet, I can get the fingerprint of a public key by executing:
ssh-keygen -lf id_rsa.pub
Which outputs something like:
2048 d4:41:3b:45:00:49:4e:fc:2c:9d:3a:f7:e6:6e:bf:e7 id_rsa.pub (RSA)
However, when I call ssh2_fingerprint($connection, SSH2_FINGERPRINT_HEX) in PHP with the same public key I get:
dddddba52352e5ab95711c10fdd56f43
Shouldn't they match? What am I missing?
Hello,
I have a php script that writes to a file.
But when I try to actually write to the file I get permission denied.
How can I tell what user name I need to add to the file permission in order for the php to write to it?
Thank you.
I have tried PHP's ftp_site($ftpStream, 'chgrp nobody '.$directory) but I cannot get it to work. Does anyone out there have any success changing a directories group via ftp_connect() in PHP? Thanks.
Hello,
I need to upgrade PHP to 5.2.x
Im referring here as how to do upgrade it:
http://wiki.centos.org/HowTos/PHP_5.1_To_5.2
http://www.securityhacking.tk/2010/02/install-upgrade-php-5-1-to-5-2-centos-5-4/
But that was testing repository. Is it safe to use it on live server?
Thank you.
I don't even know where to begin to be honest.
Trying to use an external API that requires SSL connections, I discover that SSL in needed on cURL, but this (apparently) requires PHP to be reinstalled and compiled with cURL / SSL support.
Not really experienced with compiling PHP, and I'm not sure if our server even has make or build, the only luck I've had is with rpm's before.
This really isn't in my job description. Any help most most welcome!
I'd like to be sure that cpanel/WHM is definitely NOT going to automatically update my PHP to 5.3 (it will cause all sorts of errors for legacy code).
So, please let me know where I should look (either in WHM control panel or via SSH) in order to satisfy myself that PHP definitely won't get upgraded to 5.3 without my say-so?
I am running mac 10.6.4 on an iMac and am using it as a developer server.
I have Apache and Entropy php5 installed, when i write my applications, some pages wont run when php has errors, however these are not recorded on a log file, I created one php_errors.log and entered the following on the php.ini file
error_log = /usr/local/php5/logs/php_errors.log
However errors are not written to this file and i have
log_errors = true
What could be the problem
Hello serverfault,
I would like to enable the PUT and DELETE methods to any .php script on my Apache web server.
Currently I only have this answer :
The requested method PUT is not
allowed for the URL /something.php
I'm running Apache2 / PHP5 on a Debian lenny.
I'm unable to find the directory listing of all PHP packages. I'm basically looking for the latest stable version of 5.3 utilizing some sort of script that will go out and check PHP's website.
If I can get a directory listing (can't seem to find one), I can do the rest.
Figured it out but seeing that someone else posted something similar but for Apache, he got blasted for puttig it on Stackoverflow. I figure I would save myself the trouble and post it here.
I see there are thousands of files in my "/tmp" directory (a CentOS machine) and almost all of them are PHP session files.
I'm worried about the possible impact this might have on my system.
Are those files ever deleted either by the OS, Apache or PHP? or I have to take care of it myself?
I'm running PHP through mod_fastcgi & mod_suexec, and I added Header set X-UA-Compatible "IE=edge env=best-standards-support" to my .htaccess file. It works fine for static content, but the PHP files lack the header. How do I fix this problem?
i have installed on my server and home server (xampp) memcached with the extions memcache.so / memcache.dll (MemCache)
and today i noticed that it gives MEMCACHED too, and i need to run memcached cause of the memcached command "append" which dont supports memcache
i googled all the day but didnt find any tut how to install memcached for php (most tuts are for memcache and not for memcached)
Can somebody help me with this problem (i want install it on my centos server and on my windows xampp server) My php version is 5x
Thank you very much!
I've posted the following question to SO, but thought there might be a server based solution.
http://stackoverflow.com/questions/9053964/php-script-with-sleep-does-not-exit-on-connection-close
I'm running an Ubuntu VPS to run this script, and I'm trying to get the script to die when the user closes the window/tab of his browser.
There are several PHP based functions to see if the connection is still open, but none works (trust me, tested them all).
Any creative ideas on how I can do this through the server maybe?
I have just installed CENTOS 6 on an internal network with no Internet Access.
Not very familiar with LINUX/CENTOS, I managed to get httpd service started and I believe PHP wasn't installed.
As the machine is not connected to the Internet, it will not be able to use YUM directly. How do I go about installing PHP and their dependencies, or the only way is to download the source codes and build it on my own?
The new iPhone 3GS has support for voice commands, stuff like "call Bill" or "play music by the strokes" and whatnot.
I was looking through the iPhone SDK, but I cannot find any references to this capability. All of the search keywords I choose seem to only find the new voice chat functionality.
Does anyone know whether Apple has added voice command APIs to the SDK, or whether it's yet another forbidden API? If it does exist, could someone point a particular class out to me?
I think there is no way to set the lock screen wallpaper on the iPhone programmatically (with ref to this question), but with the 3.2 SDK and the ability to set the wallpaper on the home screen on the iPad, does the SDK allow this to be done via APIs now?
I looked up the developer reference, but i could not find anything useful.
I have an existing client who has a fan page for their brand already. I need to create a Facebook Connect enabled website (so I'll be creating an application for it). I want the Facebook Connect application to post to the Fan page's wall as the brand. Is this possible? Is there a way to associate an application with a Fan page if I was an admin of both? Any direction would be much appreciated.
{
"error": {
"type": "OAuthException",
"message": "Invalid redirect_uri: The Facebook Connect cross-domain receiver URL (http://www.beta.neighborrow.com.com/callback) must have the application's Connect URL (http://www.beta.neighborrow.com/callback/) as a prefix. You can configure the Connect URL in the <a href=\"http://www.facebook.com/developers/editapp.php?app_id=2233125716\">Application Settings Editor</a>."
}
}
What should I use as my connect URL