Questions tagged [php]

PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

PHP is an open-source general-purpose scripting language that is suited and popular for server-side Web Development. There is an excellent online manual and a wiki. The online manual is a complete reference for syntax, built in functions, and extensions. There are lots of extensions for PHP that most of them can be find in PECL.

If you want to post a question in PHP, check the error log or if errors are enabled, enter them from output of your script if any.

7887 questions
2
votes
2 answers

register_globals error in php

I was stuck up with the error directive 'register_globals' is no longer available in PHP in unknown on line 0 when tried to check the php version using "php -v" after enabling register_globals in php.ini file. I am not getting any php version info…
user145862
  • 41
  • 1
  • 2
  • 5
2
votes
1 answer

Can't make PHP work as FastCGI on Apache and Windows

I'm trying to run PHP as FastCGI with no success. I made a *.conf file such on mod_fcgid page but without a wrapper script. Here is my conf: # php5 as FastCGI executable FcgidMaxRequestsPerProcess 10000 # Uncomment the following line if…
paulodiovani
  • 121
  • 5
2
votes
1 answer

IIS/AppCmd - create new users remotely

Is there a way to add new users to IIS remotely? I want to create new users from another web site located on another server so that I can log on to the server with these accounts to add and edit (new) web sites. Ideally I want to do this without…
Tom
  • 121
  • 1
2
votes
5 answers

Anyway for PHP to retrieve "hostname:port" from apache2handler?

This is borderline programming, but i'm posting here first. Output of PHP info apache2handler Apache Version Apache/2.2.3 (CentOS) Apache API Version 20051115 Server Administrator root@localhost Hostname:Port localdomain.com:0 User/Group …
grufftech
  • 6,760
  • 4
  • 37
  • 37
2
votes
0 answers

Jail PHP to OpenBasedir or Document Root Debian

I have a VServer running with Debian Squeeze Debian Squeeze / Apache2 / FastCGI / MySQL / Froxlor. The administration of Customers, Domains and FTP Accounts are performed using Froxlor. Following problem: If I install an application like Roundcube…
Rubberducker
  • 121
  • 3
2
votes
1 answer

Install PHP 5.3 on Centos 6

I am setting up a staging server using CentOS and need to install PHP 5.3 to mirror my production server. Using the standard yum install php I'm sure will give me 5.4 - I've had a look and can't figure out how to specify a version number to install.…
bsod99
  • 123
  • 1
  • 1
  • 3
2
votes
2 answers

Install stomp via pecl on Fedora 16 failed (Cannot find OpenSSL's libraries)

I'm trying to install stomp php extension via pecl on Fedora 16 server. On centos I have similar problem but after installing openssl-devel everything went well and I installed stomp. On Fedora server (openssl, openssl-devel installed) I'm…
B14D3
  • 5,188
  • 15
  • 64
  • 83
2
votes
1 answer

OSX Default Apache + MacPorts PHP?

If possible, I'd like to retain the default Apache installation and simply direct it to use a different version of PHP built/installed using MacPorts. Is this possible (and if so, is there a straightforward process for setting this up)? I know…
Wilco
  • 365
  • 5
  • 17
2
votes
1 answer

Is there a good reason to change session.save_path?

On shared hosting, we had occasional problems when the server's /tmp directory was full. Our hosting company suggested we change the session save path to be unique for each site. ini_set('session.save_path', DOCUMENT_ROOT . '/_SESSIONS/'); Yes,…
TRiG
  • 1,181
  • 3
  • 13
  • 30
2
votes
1 answer

What sort of attack URL is this?

I set up a website with my own custom PHP code. It appears that people from places like Ukraine are trying to hack it. They're trying a bunch of odd accesses, seemingly to detect what PHP files I've got. They've discovered that I have PHP files…
Asker
  • 41
  • 1
  • 3
2
votes
1 answer

MongoDB PHP EC2 Setup Configuration

I am new to web development and server set up. I am looking for some advice or a link to a tutorial on setting up a production system up. Right now, I have a server (Ubuntu, Apache, MongoDB, and PHP). It receives a request, PHP queries Mongo, and…
w3rthl3ss
  • 135
  • 2
  • 7
2
votes
0 answers

AWS amazon SES stopped working suddenly

I am not able to send the mail from aws.amazon SES since from Monday (30-10-2012) previously it is working fine suddenly it stopped working. I got following is the errors A PHP Error was encountered Severity: User Warning Message:…
Soojoo
  • 121
  • 4
2
votes
1 answer

PHP File Lister Sub Directory 404 Error on Lighttpd

I just installed lighttpd today and I am having issues with lighttpd always returning a 404 error on the sub directories. I am trying to install this (h5ai) and I've followed the directions to the latter. This is the line in the configuration for…
Zane
  • 123
  • 4
2
votes
1 answer

Trouble with mod_rewrite and PHP Extensions - Help Making the Correct .htaccess File

I'm looking for a set of simple rules and redirects for my site. I've tried so many combinations that I'm starting to get confused. I'm not sure how to set this up. Generally, without mod-rewrite, I would use relative paths to link to files:
nicorellius
  • 585
  • 2
  • 5
  • 23
2
votes
1 answer

502 Bad gateway on big file uploads : Nginx + PHP-FPM

I'm running php-fpm on nginx I have my php.ini values set as follows upload_max_filesize = 100M post_max_size = 128M max_execution_time = 180 I have also set my client_max_body_size to 4G. When I try small uploads they work, but when I try a big…
ryan
  • 125
  • 2
  • 6