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

0
votes
0answers
13 views

Do GET variables have bad effects on a page? [duplicate]

I am developing my own site, and I want to add multilanguage to my site. My approach is to have a GET variable lang=LANG to handle different languages. So, my URLs will be as such: ...
1
vote
1answer
133 views

Adding an SMTP server that would result in more delivered emails

I am very curious, so sorry if I am asking this in the wrong way, but I can't find this info anywhere. I have a newsletter service installed in my Joomla 3.1 that allows me to send emails via PHP ...
-1
votes
1answer
137 views

How to display a logo in a printed web page that doesn't appear on-screen? [closed]

I have sales report I want to print with a logo, but I don't want it shown on the screen. I'm currently trying to use JavaScript to print a particular DIV from a page: <script ...
1
vote
1answer
158 views

Using a CDN for CMS software (multiple sites)

I'm currently researching ideas for the media management side of a CMS I'm writing. I was looking at having images served from a CDN which is fine on a single site, but I want all sites that run the ...
1
vote
1answer
36 views

Greater PHP version required

I have bought a new hosting plan and trying to install WordPress from the beginning. I am new with the installer I am using now. The error I get is unusual for me and i cant manage this problem. ...
0
votes
2answers
130 views

API demands & and not &amp;

So I recently changed where my site is hosted, and my yp.com API requests are being thrown off, perhaps by a new version of PHP. ...
0
votes
1answer
219 views

htaccess redirect pages that don't exist

I have a website that has a little over 100 members. Each member gets a replicated website, and by default the software we use sets up their replicated website at a url like: domain.com/?username ...
2
votes
3answers
591 views

Server Side Includes that work in HTML and PHP with IIS 7 on Windows Server 2008

We currently have SSI set up to work in our HTML pages as follows <!--#INCLUDE file="/includes/header.inc"--> We also use PHP on our server, and are trying to avoid creating two separate ...
1
vote
1answer
82 views

.htaccess problems with redirection

I apologize ahead of time that this might be a common question, however I've spent 3-4 hours already on solutions which don't quite fix the problem. I have a site and it is moving to a different ...
1
vote
1answer
159 views

Will Google index a PHP header redirect?

I have a new domain which has an index.php file. Inside this file, I get user's IP, save it and redirect to another page on another domain. So there is no output, only header info. Will Google index ...
0
votes
2answers
362 views

Does it make sense to throw a 404 error with PHP?

Problem Description Hi, The current setting of my .htaccess file does not allow any kind of 404 (as far as I know). I mean, it captures every kind of url like mysite.com/asfasfasf then sends it to ...
0
votes
2answers
202 views

Form validation - security and input specification

So I'm working on a register form and I have four fields: name, username, email and password. I pick up the values of these fields in jQuery and depending on if all the fields are filled, I pass them ...
1
vote
1answer
2k views

How do I upgrade the PHP MySQL Library?

My PHP MySQL Library version is out of date with my MySQL Vesion. How do I fix this? Server: CentOS 6.3 Steps Taken: FRESH machine originally installed with MySQL 5.1 and PHP 5.3 I uninstalled php ...
0
votes
2answers
170 views

Best way for beginner to learn JavaScript and PHP coding [closed]

I have a job interview coming up and in job description it states I need to be able to write JavaScript and PHP coding. Now its been a while since I did JavaScript and PHP coding. I am planning to use ...
0
votes
2answers
364 views

How can a Google crawlers see PHP dynamic content? [duplicate]

I'm reading the Google SEO starter guide and on page 11 it says you should prepare a site for users and one for search engines in XML. My site is about vehicles, and vehicle is not in a separate ...
2
votes
2answers
2k views

Mod-rewrite rule broken after host upgrade to Apache 2.4

I use the following code on my site to remove php extension from links: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
3
votes
1answer
3k views

PHP header redirect that maintains query parameters?

I am experimenting with the PHP redirect http://www.phpjunkyard.com/tutorials/php-redirect.php. Specifically the 301 redirect to create a self correcting URL to help with typos - there's a unique ID ...
1
vote
2answers
204 views

Serving proper 404/410 error codes on dynamic database driven site

a developer I'm working with is having a difficult time serving 404 errors on dynamically generated pages (they get created when the request is made by querying the database to see if the content ...
0
votes
3answers
208 views

Best way to replace/publish the restructured website in SEO friendly manner

I had a website which contains several subdomains. http://sub1.example.com/stories/23/job-done.html http://sub2.example.com/stories/23/job-done.html At present I decided to restructure my website ...
0
votes
0answers
107 views

Clean URL using index files or mod_rewrite

Is it better to make clean URL's using index files in directories or simply using mod_rewrite rules to remove the file extensions?
4
votes
2answers
170 views

Website hack resulting in auto redirect - where to start looking?

My website is being redirected to a non-existent page (/showpage.php) for some users when they hit the homepage. For other users, the site works fine. I have looked in the index.php files and some ...
0
votes
0answers
356 views

PHP5-FPM reload from web browser: Internal server error 500 [closed]

I am creating a free shared hosting service for fun and learning. I made a simple form where the user enters the subdomain and ftp password. When the user hits submit, a script generates a linux user ...
1
vote
1answer
133 views

How to Trigger GA Event for Every Single Pageview (of a certain type)

Thanks, edited my question. I need a reliable way to capture a GA event whenever the GA tracking code fires for a particular page only. Doing so because we want to assign a dollar value to simply ...
1
vote
1answer
40 views

Not able to see databases in symlinked folder

I created a folder on my Dropbox and then symlinked it to both of my computers that I use for development. The folder is working correctly and I can see all the files in it from both computers. The ...
0
votes
1answer
145 views

Issue in Google Analytics tracking code. [Status: Tracking Not Installed] [closed]

i am using Google Analytics tracking code for tracking site views but it shows Status: Tracking Not Installed here is my tracking code . <script> ...
1
vote
1answer
65 views

SEO consideration for downloadable files

I used to serve PDF files as static file: http://domain.com/pdf/file1.pdf and PDF files perfectly indexed by Google and other search engines. Then I decided to change my structure to place pdf ...
0
votes
1answer
131 views

Removing “Dirty URLs”

I have a site that apparently has "dirty URLs". For example a URL that I have goes something like this: www.website.com/article?articleID=2 or something along the lines of that. This, to me, seems to ...
2
votes
1answer
1k views

Problems using PHP on a Plesk Windows dedicated server

I'm having a few issues with my dedicated Windows server that has a Plesk panel: 1.) I can't send e-mail via PHP's mail() function, it always returns the following error: SMTP server response: ...
2
votes
2answers
230 views

How to do a JavaScript redirection to the same page without hurting my SEO?

I did something that does that when people land on my page for the first time, they get a JavaScript redirection to the same page, but with PHP $_GET URL queries, then this page redirect back to the ...
1
vote
2answers
284 views

HREF link for Excel Files Generated using PHP

I would like to get your inputs on the "preferred" way of linking to dynamically generated excel files using PHP. Using PHPExcel (or any other Excel writer for that matter) I have to generate a ...
3
votes
1answer
274 views

MediaWiki Error: Lua error: Internal error: The interpreter has terminated with signal “11”

I have a MediaWiki deployement at: http://wiki.tankpedia.org/ I have been importing templates from Wikipedia and am receiving a Lua error for the Convert template; the error is: Lua error: ...
1
vote
1answer
58 views

CMS fails at finishing setup with PHP-FPM and Apache, but why?

I have installed Apache and PHP-FPM by following this tutorial. Unfortunately when I try to set up Drupal or PHP-Fusion it simply fails at the end of the setup. I mean it accepts everything and at ...
1
vote
1answer
32 views

How to make an apDiv show up in same spot on all browsers

I'm pretty new to the whole webmaster stuff and am just trying to format a slideshow on my homepage to be in a certain area with an apDiv, but as soon as I use another browser it's in a different ...
2
votes
1answer
429 views

Site hack… but what is this?

My site have been hacked (i think) here is the code... the question, how to find what it does... <?php $zend_framework="\x63\162\x65\141\x74\145\x5f\146\x75\156\x63\164\x69\157\x6e"; ...
3
votes
1answer
905 views

Connecting to my local WampServer from mobile?

I want to make an app for file transfer between mobile and a web server. I don't have web space yet and want to simulate that. The mobile part is ok. I have the PHP code too, Is there anyway I can run ...
1
vote
1answer
88 views

How to add button on each MediaWiki article?

I would like a button to appear on each article on my MediaWiki site, to make it easy to flag articles that should be reviewed. When the button is clicked it should add the category "review", and if ...
5
votes
3answers
958 views

Do I really need to remove special characters in a URL?

I have an FTP account shared with friends where we upload underground music albums and then we use the links to share the downloads in a music forum. The problem is that the album names are in french ...
1
vote
1answer
58 views

PHP framework for this specific use case [closed]

I have to develop a site like http://www.monster.com with these standard set of features: Users should be able to register, login, create their profile, upload their resume and photo. Site Admin(s) ...
2
votes
1answer
413 views

Will Google crawl session based website

I have a website, it is split into 3 categories but using PHP its an all-in one kind of style. When a user chooses a category on the home page a session is set, this is then used to set the style and ...
1
vote
1answer
191 views

Getting the masked URL values in Mediawiki

I have successfully masked the URL in Mediawiki. By using the following scripts in .htaccess and localsettings.php files in Mediawiki, i.e.: .htaccess: Options +FollowSymLinks RewriteEngine on ...
1
vote
2answers
88 views

HTML: Images always getting reloaded from server

I am finding that my web pages' images are always getting loaded from my server, even though they never change. Since these are images, not pages, I can't include an expiration date for them... How ...
1
vote
4answers
558 views

Setting up a LAMP VM server for Development and Testing?

Info: I would like to set up a VM server on my local computer which will serve pages in the exact same way as my current hosting (but only to me on my local computer). I currently pay a big web ...
0
votes
1answer
69 views

Google Webmaster Stats

Google Webmaster Stats I'd want to show some stats much like the Google Webmaster Tools with the following things: crawl stats, links to your site, structured data, etc. What is the way to get ...
0
votes
2answers
187 views

How to double protect admin access in PyroCMS

I have read how to protect admin folder with .htaccess and .htpasswd file but in PyroCMS admin login (ex: example.com/admin) just only routing system (no admin folder yet). So, how can I double ...
0
votes
2answers
283 views

Issues with Apache and loading PHP files [ubuntu]

I just installed PHP and Apache2 on my laptop (ubuntu 12.04), but I can't get my PHP files to load. I have followed this tutorial: ...
3
votes
2answers
207 views

Track exit link and ads with PHP

I want to track exit links on my website and also exit ads like Google Adsense etc. I mean by exit ads is that when click on add I get ads dimension and ads type like Google or other ads. In short I ...
2
votes
0answers
59 views

Good security practice for writing a php/mysql web app [closed]

I'm about to create a web app that is php/mysql based. It should contain multiple users and two levels of admin accounts. It will most likely not be very likely to be attacked in any way. Still I am ...
2
votes
3answers
447 views

How to determine which files are used by website

I recently became responsible for a PHP / HTML / MySQL website. The document structure is full of duplicate files and folders making the site appear more complex than it is. Is there any tool I can ...
1
vote
1answer
70 views

SEO effects of intermix of WP blog, custom PHP site and FB app game

We're a melbourne tech company in the process of building a custom site in PHP. We plan to launch a "pre-launch" page which is also custom coded (CSS3 on twitter bootstrap framework + HTML5 front end ...
1
vote
1answer
14k views

Set the “servername” directive globally to suppress this message

I am setting up PHP for the first time and I am getting this error from the Apache server: Set the "servername" directive globally to suppress this message. This is the content of my httpd.conf ...