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
3answers
210 views

How to setup a fully functional “mirror” of a website? [closed]

PREMISES: I have a wordpress website hosted in a shared-hosting Since it's a shared hosting, I share the same ip with other GoDaddy customers A couple of times, some other customer got malware on ...
4
votes
2answers
74 views

Best process for upgrading a live server

I just recently started at a new company, and their live server has PHP v5.2.6 (yes, circa 2008). A site I recently designed for them actually wouldn't work on it because PHP is so old, so I've now ...
0
votes
1answer
167 views

Clicks counting and crawler bots

I am currently running a small affiliate-program for Facebook users. We use an auto-poster to publish links to fan pages. Every hit is stored in our database and we have included a 24 hour reload ...
1
vote
1answer
54 views

How Google ads add a pageview?

I'm having a trouble on my site. I have my own script which counts how many times the ads display in a page using PHP script, which always run every page refresh without any condition and it sums up ...
0
votes
1answer
23 views

How can I rewrite to my .htaccess in PHP? [duplicate]

How to rewrite my URL from http://www.mysite.com/listingsecond.php?ID=1 to http://www.mysite.com/listingsecond? How can I rewrite to my .htaccess in PHP to do this?
1
vote
4answers
86 views

How to perform a 301 redirect with .htaccess and PHP

The website I am referencing in my question is http://www.bgmenus.com. I have successfully created clean urls like this for my listings: http://bgmenus.com/five-guys/341 I rewrote those using this: ...
0
votes
0answers
38 views

How to Remove wpmp_switcher strings from Blog URLs

I was using WordPress mobile pack plugin which i have already uninstalled but there are too many URLs are indexed in Google with ?wpmp_switcher=desktop parameter. How can i fixed and no index kind of ...
0
votes
0answers
55 views

Apache: keep track of non-404 errors (e.g., 403, 500, et al)

In cpanel I always have the error log open ("This function will display the last 300 errors for your site.") which is nice for 404's but what about the rest? I'm working on a few things in htaccess, ...
1
vote
0answers
117 views

Apache HeaderName does not work in .htaccess

So I have a .htaccess file in a subdirectory that contains a list of folders. In the main directory I have a .htaccess file that contains: Options +Indexes IndexOptions FancyIndexing AddType ...
1
vote
1answer
108 views

Use a GET variable to see a referrer in Google Analytics

I have a system on my site that sends an email to a customer with a certain url in it (not a private url, just the info they've requested). The format of this url is just straight on: ...
0
votes
2answers
86 views

Cannot add DataTables.net javascript into Joomla 1.5

I've been having this problem where i couldn't add Datatables.net javascript into my Joomla article. I have been trying to include it through Jumi. To say that my editor strips of the tag is ...
3
votes
3answers
314 views

Generate a sitemap automatically, does it need to be XML?

I want to create an XML sitemap (for the sake of SEO), my first attempt to achieve this was by including the website main menu/navigation links using <?php include ("assets/includes/menu.inc"); ...
0
votes
2answers
364 views

WHMCS Fatal error: Out of memory while View Invoice PDF

I can log into WHMCS & can access everything I should be able to access, but if i try to click View PDF Invoice, the following error will occur, Fatal error: Out of memory (allocated 67633152) ...
0
votes
1answer
79 views

Good links somehow being converted to ones with a PHP redirect (not a virus)

This has happened to links we put on web pages and in emails. We might put www.oursite.org/work/ but when I view source it shows up as ...
0
votes
3answers
107 views

Using a front controller design pattern doesn't allow images to be served

I am currently using a front controller. All requests for my website go through it. I have a problem with image links like: <img src="img/image.jpg" /> Then my front controller will try to ...
0
votes
0answers
5 views

Webhosting server Frontcontroller support [duplicate]

I am currently using XAMPP to code my websites, but i want to host it online now. I came across some hosting servers and they had restrictions, one didn't allow the use of a PDO and another didn't ...
1
vote
0answers
12 views

How do google bots work for sites that are database driven? [duplicate]

I didn't see this question already asked but I also don't know if this may be called something in particular so my apologies. While learning SQL and PHP I was curious to know how do bots search a ...
1
vote
0answers
27 views

What is the feasibility of developing a phpBB-based barter bulletin board? [closed]

I've got a concept for a barter deal bulletin board and would like to know how feasible is it to implement the concept with phpBB. The main differences from a typical forum are the following: Users ...
0
votes
0answers
54 views

Google Analytics: How do I report a custom event programatically? [closed]

I am just learning GA as part of a new program our company is rolling out. I'm sending the following custom event whenever a user clicks on a button on our test site: <button ...
0
votes
1answer
67 views

How do I get thousands of PDF files “found” by google search

I have approximately 5,000 PDF files in 4 different categories on our Joomla website that are currently only accessible by via a PHP/mySQL seach script. The filenames (which are numbers) and file ...
0
votes
0answers
41 views

WHMCS Bulk Pricing Updater

Their is a Bulk Pricing Updater addon in WHMCS which works well to update hosting accounts pricing but I am unable to update the domain pricing through that every time it gives this message ...
2
votes
1answer
70 views

Inserting WordPress in a site with .htaccess Rewrite Rule

I want to insert a WordPress blog in a website which is programmed in PHP and that uses includes() to select what content to show, and that uses .htaccess Rewrite Rule to get friendly URLs. The ...
1
vote
1answer
130 views

Facebook Ads - after setting campaign it is not showing in ad manager

Description: I bought new campaign in facebook ads service. The type of it is Website Conversions. I implemented pixel (registering) sucessfully, redeemed created list of ads and inserted new card ...
1
vote
1answer
41 views

I have multiple versions of the same landing page. How can I tell Google Analytics which is being viewed?

I'm sending a link to a landing page to a number of different companies and need to be able to tell Google Analytics which company is viewing the page and when. I of course have my original link to ...
0
votes
1answer
91 views

How to make better RESTful links SEO on static content website with Apache and PHP Router

I have a pretty old website (running on Apache) that serves around 50 static HTML pages. And so I want to change it and add PHP Router to help me serve content in a RESTful way. Now I have tried ...
0
votes
1answer
48 views

Can a PHP generated main page be indexed by Google? [duplicate]

I generate an index.html file in a PHP script to avoid PHP code within HTML and to show content that is delivered by another script hourly. (Like next flights within an hour.) This script overwrites ...
2
votes
1answer
54 views

Google eCommerce tracking from PHP

Is some way to send eCommerce tracking to Google without JavaScript? I want to do that just with PHP.
0
votes
1answer
54 views

Undefined index: log in C:\xampp\htdocs\tutorials\home.php on line 20 [closed]

18 <?php 19 include("session/DBConnection.php"); 20 $user = $_SESSION['log']['username']; 21 $query = mysql_query("SELECT * FROM members WHERE username = '$user'"); 22 $display = ...
0
votes
0answers
15 views

Main index redirect to sub folder (e.g. domain.com/site) [duplicate]

Main index file is at mydomain.com/site I want to do a redirect from mydomain.com to mydomain.com/site. What is the most google-friendly way to do this?
1
vote
2answers
217 views

Cannot solve errors on W3C validator

I have found a webpage that can check for errors in my webpage's code. Here are the errors I couldn't solve: End of file seen and there were open elements. Unclosed element div. <div ...
2
votes
1answer
328 views

Curl not working with PHP 5.4.6

I'm trying to use Curl to send and receive XML information from my credit card company and it works great in a shared server (sandbox). However, now that I uploaded it to my dedicated server it does ...
2
votes
1answer
67 views

Will echoing content from a simple XML loaded with PHP cause the page to show up in search results (SEO)?

I want to know if I'm using PHP right to create search friendly content. I'd like my images to start showing up in Google for my website, so I'm passing an RSS feed to PHP file using the ...
1
vote
1answer
57 views

Effective upload to backend?

Let's say I have a website with frontend and backend. The website allows users to upload some data ranging from hundreds of MB to GB. How do you effectively upload this data? The easiest way would ...
0
votes
1answer
190 views

Uploading a file automatically for speed test?

I am building a Web UI for a device for internet connection and one of the requirements in it is a speed test. I know the basic concept of how speed test works. A file is downloaded for a limited time ...
2
votes
1answer
1k views

Apache VERY high page load time

My Drupal 6 site has been running smoothly for years but recently has experienced intermittent periods of extreme slowness (10-60 sec page loads). Several hours of slowness followed by hours of normal ...
0
votes
1answer
270 views

Google Analytics data Missing for 4 days

I used wrong tracking id in my E-commerce tracking code for Google analytics and missed the data for few days. To add that missing data in my account I have written a short script which manually send ...
0
votes
1answer
46 views

Webserver insists on opening “blog1.php” instead of “index.php”

I'm at my wits' end. I have just ripped out a website and in the process of rebuilding everything. Previously, the 'home page' of the website is a blog, with the address ...
0
votes
1answer
96 views

Changing to PHP 5-5.5

I've been using PHP-5.4.3 for about a month now, and today, I decided to make a switch to PHP-5.5.5, I downloaded the source code, and placed it in C:/php (also renaming the folder php-5.5.5 to php) ...
0
votes
1answer
17 views

Updating Pages after migration of website

My web site was coded in Coldfusion and over the years has obtained a good ranking. I recently migrated the front-end to a Wordpress site and wanted to know what is ideal way of updating Google and ...
0
votes
1answer
87 views

PHP web app hosting considerations and advice - high traffic expected from day 1 [duplicate]

I'm in the process of researching hosting providers for a high traffic Facebook application. The client has over 300,000 likes so we can expect quite a bit of traffic when posts are made about it and ...
2
votes
1answer
131 views

possibilites on uploading a file without login in mediawiki

In mediawiki, using api i can upload a file. its getting fine . But it will upload only logged in. i need to customize without login anybody can upload a file . I know without login cannot able to ...
0
votes
1answer
592 views

What does it mean to infect people with silent java drive?

I've got a weird contact message through my website, claiming they have found a security vulnerability and wonder if I have a bug bounty program. The details they shared: Only what I can say is ...
0
votes
0answers
34 views

Bing crawls my sitemap, but pages don't show in results [duplicate]

Before voting my question down, I must note that I have searched the forum. That being said: I have a sitemap, which is pretty large (25k pages). These are products for sale. The products are used ...
1
vote
1answer
45 views

PHP Clean Directory

Is there a way to clean a directory using PHP after a certain amount of days? I'd like to put the amount of days into a $Cleanup variable? I've tried and not been able to get it working.
0
votes
2answers
184 views

PHP not working : Ubuntu

I have a problem my test server loads html files fine but when I try to open a file like index.php it says The website encountered an error while retrieving http://localhost/. It may be down for ...
0
votes
2answers
81 views

How to solve intermittent fopen, fwrite, and fclose errors on shared hosting

Although I have many years worth of coding experience, I'm a complete n00b at managing sites. So I need help. Basically I have this new site on a shared hosting provider, and sometimes I get these ...
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
132 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
131 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
156 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 ...