Questions tagged [php]

PHP is a free server-side, general-purpose scripting language that is especially suited for web development. Originally PHP stood for Personal Home Page, now it stands for PHP: Hypertext Preprocessor.

1169 questions
8
votes
2 answers

Where to find PHP version usage stats?

My original question was: what percentage of sites are using php 5.4.x? (As it has some very interesting new features.) With secondary questions like how many of the cheap web hosting places have upgraded, which versions of the linux distros include…
Darren Cook
  • 183
  • 7
3
votes
1 answer

PHP Dom Extension - Can I disable it

Can I disable the PHP Dom Extension temporarily (for debug reasons), without having to reinstall / recompile PHP? I want to install the module and I'm looking for a way to temporarily turn it off, so that I can turn it back on at another time.
Lokomotywa
  • 171
  • 1
3
votes
2 answers

Subdomains and Site

didn't know how to put this into to a title. Ok my idea is to have any subdomain working on my site, and for example if I type: what.example.com (my site has a unique folder for every subdomain, and within that folder, there is just a simple config…
alfonsoo
  • 31
  • 1
3
votes
1 answer

fsockopen() error : Network is unreachable port 43 in php

i've writed some Php code that lookup for domain (whois) but it fails !! this is some of my code : function checkdomain($server,$domain){ global $response; $connection = fsockopen($server,43); fputs($connection, "domain " . $domain .…
hamid
  • 133
  • 3
3
votes
2 answers

Fix PHP Timezone warning

After installing a php application my site loads the app with a warning overlayed on the page Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or…
Drai
  • 777
  • 7
  • 21
3
votes
1 answer

Install PHP5 with Tomcat 7 on Windows?

Can't find anything on this, what are the steps or instructions for installing PHP with Tomcat 7 on Windows?
Teivere
2
votes
1 answer

Todo with user input

I'm searching for a todo-list application like this one http://diggan.se/todo/ but with a function so the users could add todo's that would look like requests. Me (the webmaster) can later choose which request I should start working on or trash…
2
votes
1 answer

Webmatrix fails to connect PHP website to MySQL

I downloaded the latest versions of Webmatrix and MySQL. I downloaded a PHP-MySQL Connector: http://dev.mysql.com/downloads/connector/php-mysqlnd/ In the "Databases" Workspace I pressed "New Connection" button and choose "MySQL Connection" In the…
Roni
  • 21
  • 1
2
votes
2 answers

Strange issue with Wordpress sites, is it PHP Memory?

This has happened to me twice with the same host and I want to know the real cause. I have multiple wordpress sites hosted on a shared server. One day when I attempt to visit any of the sites, the webpage simply downloads the index.php file. It…
Drai
  • 777
  • 7
  • 21
2
votes
1 answer

Use PHP 5.6 for a site under Control Web Panel Pro rather than the global PHP 7.3

I'm using PHP 7.3 on a CWP Pro installation. Most of the domains are fine with 7.3 but on one I'm using PHP 5.6 installed with PHP selector V2. .htaccess: AddHandler application/x-httpd-php56 .php The CMS I'm using has a WebsocketChatServer which is…
dftd
  • 31
  • 4
1
vote
4 answers

Software with a blog, CMS and a forum all-in-one?

Requirements: PHP (5+ Preferably) MySQL (5+ Preferably) Apache (2+ Preferably)
Karl
1
vote
2 answers

Using ini_set() to change memory lmit for individual PHP scripts

I have had trouble in the past with memory issues caused by individual scripts on a website using more memory than they should. I have tackled this problem by lowering my PHP memory limit from 512MB (the requirement of one script on the site) to…
Steve Glick
  • 213
  • 1
  • 6
1
vote
2 answers

Do Not Track feature of IE10

One of our clients is getting a bit worried about the new "Do Not Track" feature of Internet Explorer 10. Her site is heavily dependent on php sessions (as I imagine many other sites are). This was what she was…
Pete Herbert Penito
1
vote
1 answer

Folder as parameter in PHP

I want to create a script that pass every folder requested in a website as a parameter. For example, if someone requests: www.example.com/foo ...that will be redirected to the main index.php and passed as a parameter, getting the same result when…
Andres
  • 111
  • 2
1
vote
2 answers

chmod 700 and htaccess deny from all enough?

I would like to protect a public directory from public view. None of the files will ever be viewed online. I chmoded the directory to 700 and created an htaccess file that has "deny from all" inside it. Is this enough security or can a hacker…
John Jenkins
1
2 3