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.

learn more… | top users | synonyms

1
vote
1answer
46 views

Use .htaccess to convert user ID's to usernames? [closed]

I want to use .htaccess to convert the urls that link to profile pages from an ID number to a name. For example, on Facebook, if you were to go to: https://facebook.com/profile.php?id=4 It would ...
-1
votes
2answers
141 views

How to set execute-only permission for a php script in a .htaccess file?

I'm really a newbie in web-technologies, so this question may be silly. I have a php script that accesses a database, therefore it stores a database password (tell me a better way to store this ...
2
votes
2answers
70 views

How to analyse website performance

I've tried searching a lot and basically here is the problem. I have a website but I'm unable to pin point the reasons of why the performance of the website is so slow. We have shifted to a high end ...
1
vote
1answer
56 views

PHP webpages in sub-directory cannot be accessed

I've got a university club website at thing.uni.ac.uk/meow/foobar which also has the domain foobar.co.uk. I don't have access to the config. I set up this website using HTML/CSS/JS alone and it's been ...
1
vote
1answer
79 views

?cid= and ?pid= pages need to be fixed

We have recently changed the platform and design of our website. Now I am having difficulty with url structure. Main product URL shows something like, /categories.php?cid=9 And internal product URL ...
1
vote
1answer
64 views

Page speed - Loading comments on an article/blog post

So I'm currently building a template page to use for articles that we will be purchasing from a content writer (so basically we are content marketing). I'm finishing up the layout on the comment ...
0
votes
0answers
20 views

Repeated site content in multiple php pages [duplicate]

I have 3 pages: a.php <p id="block1">text1</p> b.php <p id="block1">text2</p> c.php <? include('a.php'); include('b.php'); ?> So, we have access to ...
0
votes
1answer
109 views

How to run a PHP script on a shared hosting server from cPanel?

I'm trying to install Tinyboard (http://tinyboard.net/) on a shared hosting, I uploaded all of the files in a single folder, now I should run install.php, but I have no clue where that can be ...
1
vote
1answer
69 views

Mixed Content issue with WordPress, Cloudflare SSL and Genesis Framework

I have a WordPress which is based on the Genesis Framework and uses CloudFlare Flex SSL. The problem occurs in iOS Safari and Firefox mainly, the site gets loaded but without styles and everything ...
0
votes
1answer
95 views

HELP! my login session is returning the users password instead of their username! [closed]

I have my code set up to display the username in the nav bar however its displaying their password? nav.php <li> <a href class="userName"><?php echo $_SESSION['userName'];?></...
1
vote
1answer
100 views

How to set up a rel=canonical in PHP?

I'm trying to add the rel=canonical tag to only one page. In order to add the tag, I need to add it to the part, in the mod_header.php file. This will add the same rel canonical tag to all the pages ...
0
votes
0answers
16 views

Multiple touchscreen setup/display

I hope this is in the correct SE area. I have been tasked with designing a touchscreen interface for multiple display screens. I have successfully designed this using html, css & php (a simple ...
0
votes
0answers
6 views

Redirect asp to html page to page [duplicate]

i need to redirect 301 page from an old site in .asp(without www) to a wordpress site (with www). I try with htaccess and hosting control panel, but nothing works! Redirect 301 /page.asp htttp://www....
0
votes
0answers
140 views

Godaddy linux hosting The PDO extension is required for this adapter but the extension is not loaded

I'm getting following error on GoDaddy economy linux hosting. How to fix that. The PDO extension is required for this adapter but the extension is not loaded Error can be found at following ...
2
votes
1answer
90 views

Duplication of menu through javascript or PHP: Which is better for SEO and page performance?

I have a site with a typical desktop dropdown menu. For the mobile menu (and on touch devices), I am using javascript to slide it out onto the page from the right side by touching a menu button. The ...
2
votes
0answers
23 views

How to redirect sub-domain not found? [duplicate]

Suppose my site - example.com had a subdomain - subdomain.example.com which I have deleted. How do I redirect the not found error in PHP or the mod_rewrite (.htaccess)?
1
vote
1answer
37 views

Speed of prefork+ruid2 with more connections on limited memory

Currently I am using Apache in a server with WHM/Cpanel and I'm currently using Prefork MPM with Mod Ruid2 to process PHP pages. While the setup allows it to run very fast, I'm limited to processing ...
0
votes
0answers
11 views

ZF Tool 1.6.0 Windows 8 Permissions

I'm currently installing the Zend Framework onto a local 64bit Apache install with appropriate PHP ver. Localhost works fine and Apache Monitor is reporting correctly and identifying PHP just fine. ...
0
votes
0answers
12 views

How many visitors can my dedicated server handle at once? [duplicate]

I have a dedicated server with these specs: Processor: Intel Core i5 3.40GHz (3570) Memory: 2 x 4GB DDR3 Hard Disk: 2 x 1TB (Raid-1) Operating System: Microsoft Windows Server 2008 R2 Web 64bit ...
2
votes
2answers
91 views

Protecting video being from downloaded

First of all I know that I can't protect it completely but can you give me any tips to make it as secure as possible? And second thing I plan to store videos in seperate dedicated server and is it ...
1
vote
1answer
23 views

How to hide error log from hackers? [duplicate]

I'm a developer of self hosted web application. which creates the error log but others can access it rather than only admin of that application. is there any way to protect it from page other people ...
0
votes
1answer
187 views

Vanity URLs with .htaccess and PHP?

I need to create a vanity URL redirect using htaccess and PHP. My requirements are: If a user writes example.com/users/foobar The client will be redirected to for example: profile.php?user=foobar in ...
0
votes
0answers
278 views

Why is Apache 2.4.12 stop working randomly?

I have XAMPP installed on a Windows 2012 R2. We have a few Wordpress installations plus a custom LMS that is mainly java/tomcat. The site is SSL and uses openssl 1.01. The server can be up for a ...
1
vote
0answers
90 views

Parallels Plesk Apache dedicated server shared IP / A Address serving default page

My Website Works when you go to it, however Google Adwords is telling me that my site is redirecting/ not showing up properly to their bots. When you put the site into a website checker like GT ...
1
vote
1answer
214 views

Warning: session_start(): open(/tmp/sess_b825aec484a83d8c0edb0e08db897ec1, O_RDWR) failed: Disk quota exceeded (122)

I am getting this warning of disk quota on my website. I have searched a lot. Every where they say its due to the insufficient space. I checked through cpanel, the total space allotted is showing 40 ...
0
votes
1answer
46 views

What technologies do i need to learn to make a blog? [closed]

I am making my first website which will be my personal blog. My main purpose to make this is to learn website development. I know a fair amount of HTML, CSS and JavaScript. I understand these are all ...
0
votes
0answers
34 views

500 internal server error after deleting site URL in Wordpress [closed]

I'm getting a 500 internal server error whenever I try to load up my website. I made a mistake earlier when I was using Wordpress. I accidentally put an incorrect URL for my site in the in the admin ...
-2
votes
1answer
23 views

[PHP]Parse Error [closed]

I am using this code: <?php $pid=$_GET["pid"]; $pname=$_GET["pname"]; $pnamecheck=array("test") if ($pname == $pnamecheck[$pid]) { echo "You are using a Licenced Version of Program." } else { ...
5
votes
3answers
111 views

How do i make it difficult for users to make multiple accounts

I'm creating a website for my business and I want to offer free first deliveries for the first week but I'm afraid people will take advantage of that. I don't take any money or credit card info ...
2
votes
1answer
141 views

Internal Server Error 500 .htaccess

For years, I have been using the following .htaccess for PHP to execute within HTML on Apache at GoDaddy: AddHandler fcgid-script .html FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .html A few days ...
0
votes
1answer
195 views

In CakePhP what is the recommended method for having one sub-domain that's outside the CakePhP environment?

I have a CentOS VPS with LAMP installed. I set up CakePhP and I have my httpd.conf set up with 1 virtual host which points to my CakePhP directory. I have various sub-domains in my CakePhP environment,...
0
votes
1answer
62 views

How to fix generated email from BlueSpice Media Wiki for new users to supply actual name?

I have a standard install of BlueSpice on top of Media Wiki. When a new user is created I get an email with the body: The user http://wiki.example.com/index.php/User:NameHere with real name $2 ...
1
vote
2answers
178 views

“?” leading UTM codes causes longer page load time than “#”

I found and fixed a problem where my utm code was drastically slowing down page loads. The problem was the leading character was a ?. The solution was to change it to a #. Now, we have literally ...
1
vote
1answer
106 views

MediaWiki configuration - strange redirect behaviour after form POST

I've recently setup a wiki using MediaWiki but am having the toughest time getting the ShortURL configuration working properly (for example, so that pages appear as Main_Page instead of index.php?...
1
vote
1answer
75 views

Multiple SQLite3 Databases In A Single Web Application Viable?

This question was voted inappropriate for stackoverflow, so I'll ask here. I'm considering designing a CMS where content is centered around what the users submit. Built on polyglot, php, sqlite3 for ...
3
votes
1answer
319 views

with PHP: How to restrict access from one Addon domain to another?

With 000webhost (not with cPanel), whenever I add a new domain to my account, an entirely separate public_html is created and a separate FTP login. But with cPanel, all "addon domains" are created ...
1
vote
1answer
37 views

In httpd.conf why would you want AddType for phps?

We have an AddType as follows: AddType application/x-httpd-php-source .phps I was wondering what this was, and did some searching. It seems this is barely documented anywhere. Based on a hunch, I ...
1
vote
3answers
187 views

Is it possible to A/B test web servers using a PHP redirect and sub domains without breaking all the SEO goodness?

We're trying to figure out if a certain type of web server architecture is better than our current web server. We need to A/B test these 2 boxes with live traffic to really get a sense of which one ...
1
vote
2answers
160 views

Dynamically PHP-generated content and SEO

So I'm using a function in my functions.php file to add some text to all my posts. I was wondering if that will be used by Google when it indexes my website, and how that will affect my SEO ratings. ...
1
vote
2answers
67 views

Why does Google Analytics report that I have traffic at a calculator.php URL for my blog?

I frequently see this URL having traffic via Google Analytics although I don't have any page and with that strucuter either. URL - techanger.com/calculator.php?get=windows-8-1-download-link-product-...
2
votes
2answers
213 views

When and how do I remove temporary files on server left from abandoned forms?

I have a form on my site to submit posts, it features multiple file upload tool (Mini Ajax File Upload Form) which submits files to server as they are added (before actual post submission) and server ...
1
vote
3answers
147 views

Activation email from website could not be sent to Outlook.com accounts

On my website, I send an automated email using libmail.php for new sign-ups. Users put in their email address and they are sent an email to activate their account. This usually works for Gmail. ...
0
votes
1answer
43 views

Enabling URL rewriting for API

I'm new to configuring API web servers and I'm trying to enable URL rewriting for the server so that a user can go to my public DNS.com/getAlbum to access a method within my api.php file (assumption, ...
0
votes
1answer
196 views

Can Instant WordPress be used on a network drive?

I'm trying to put a site that I've just built onto my companies internal server so that everyone at the company can see the site and give feedback. However, I tried to install both WAMP and Instant ...
4
votes
1answer
184 views

How to avoid html tags in Google search summary

I am using CKEditor to let people describe their organization with all the styles and fonts. So when it saves in the database its like < gets saved as &gt and rest all you know for the html ...
0
votes
4answers
209 views

Add rel=nofollow to all links in rss feed

i wish to add a rel=nofollow in all links from an rss feed, including links in item description $rss = new DOMDocument(); $rss->load($xml); $feed = array(); foreach ($rss->getElementsByTagName('...
3
votes
2answers
195 views

Internal server error when using base64 encoded icon on the home page

I have an "index.html" (or .php - it makes no difference) file in the root / of my hosting space. That "index.html" file has this line of code in it: <link rel="icon" href="data:image/png;base64,...
1
vote
1answer
39 views

Is Image Spriting for Articles Images a good solution?

I am starting an online portal and I calculated that I need about 102 Images (based on the amount of articles), the problem is I want to keep the whole page below 800KB (Including all assets). I want ...
4
votes
3answers
516 views

PHP 5.6.6 loading but not interpreting in Apache2.4 64 bit Windows

I have installed Apache 2.4.12 (Win64) VC11 from Apache Lounge. Typing httpd -M tells me that php5_module is loaded and shared. I have PHP 5.6.6 win32 VC11 Thread Safe installed. The Apache server ...
3
votes
1answer
150 views

weird results from tests when trying to serve a fast image download page… why?

This is my php code. <?php ob_start(); echo file_get_contents("originalhighqualityphoto.jpg"); $dat=ob_get_contents(); ob_end_clean(); $dat=gzencode($dat,2); header("...