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
1answer
82 views

Dokuwiki: Moving Just the data directory on other server

I have installed dokuwiki on IIS7. As per my teams requirement we have to move just the Data directory to other server location. e.g - IIS7 installed Dokuwiki location: ...
0
votes
0answers
16 views

Codeigniter Permalinks [closed]

I want to develop a website in the CodeIgniter framework and add permalinks just like WordPress and Magento: www.sitename.com/category_type/category_detailpage How do I have to design the schema of ...
1
vote
0answers
15 views

Clean URLs won't work in Drupal 7 on IIS

I am using Drupal 7 and IIS 8 as my web server. When I click Clean URLs in the configuration, I check it and then click save, then it loads the page without the box checked. However I can type in ...
0
votes
0answers
14 views

Passing Arabic values in parameters results in % spaces

I have built an .htaccess clean URL, this part works perfect in my .htaccess: RewriteCond %{THE_REQUEST} /road.php\s [NC] RewriteRule . نقفورالثانيفوكاس/ [R=301,L] RewriteRule ^نقفورالثانيفوكاس/$ ...
1
vote
0answers
35 views

Unexplained long Time To First Byte

My wordpress blog is getting a grade F for TTFB on webpagetest.org: http://www.webpagetest.org/result/140905_20_PRX/ with a TTFB of over 800ms. I cannot explain it. Indeed, I use a CloudFlare CDN, ...
-4
votes
1answer
42 views

How to block all hacking? [closed]

The title explains most of my question. The OS is linux (Lubuntu). The servers are Apache2 (PHP5), MySQL 5.6 and FTP (Samba).
0
votes
0answers
4 views

PHP Caching Too Long [migrated]

I rolled out a pretty simple cache system on my site last week using a PHP class referenced in my sitewide template file. The cache system dramatically improved server response times (the template ...
0
votes
0answers
3 views

$_GET generates a white flicker [migrated]

I've got a menu, links within it are sending user to e.g. ?menu=home but there are many other links. I wanted to use $_GET[""]; to manage content of website by switch i.e. if ($_GET["menu"] == ...
1
vote
0answers
15 views

While loop causing website to vanish [migrated]

http://pastebin.com/V0tUrzwV Why doesn't this code work? If I do it maunally without database. You know, just thinking you're PHP and creating the code in HTML and CSS, it works. But as soon as you ...
0
votes
1answer
165 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 ...
0
votes
1answer
30 views

Can't change HTTP Vary header from PHP

I have a test server running CentOS, and changing the Vary header there through PHP via: header('Vary: Accept'); works as expected (it's added to the Accept-Encoding value that Apache already adds ...
1
vote
1answer
147 views

Is there any way to prevent Googlebar from breaking Friendly 404s

This might be considered a continuation of this question. If I output HTML after my 404 header, It displays properly in IE and FF unless the user has Google bar instaled. If I try header('HTTP/1.x ...
0
votes
0answers
6 views

PHP rounding issue [migrated]

We have a problem on our Google Shopping feed which seems to be a rounding issue. THis has caused Google to suspend our feed and the combined might of myself and 2 development agencies we use can not ...
0
votes
0answers
11 views

Azure Management from Wordpress

Microsoft has up to 3 additional slots aside from "production" now for Azure websites. I wanted to write a management page in php for allowing content administrators to swap between staging and ...
0
votes
0answers
19 views

Google Indexing PHP pages with and without backslash [duplicate]

How can we use the .htaccess file to only have our pages indexed by Google without the trailing slash. Right now both pages are being indexed.
5
votes
6answers
1k views

Adding a Forum to my site: build one from scratch or use existing open-source platform?

Note: I posted this originally to stackoverflow.com, had it closed, and was told to post it on programmers.stackexchange.com. So I posted it on programmers.stackexhange.com, had it cloased, and was ...
0
votes
1answer
46 views

Fatal PHP Data Objects (PDO) Error - But PDO is enabled?

I recently switched website hosts, however with the new hosts, we are encountering some PDO problems. Everything indicates that PDO is enabled on my server, however, when I test it through php, with a ...
0
votes
2answers
275 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) ...
3
votes
3answers
287 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
0answers
40 views

How to handle non-existent subdirectories?

I have a dynamic website with friendly URLs. Example: Instead of /user.php?id=123, I have /user/123 Instead of /index.php?category=fishes, I have /fishes But, how do I handle non-existent ...
0
votes
0answers
4 views

how to access mysql table from wamp database using this php code? [migrated]

how to access tables from database by using php in wamp server.i have done the following code but its not working for some reason.is there anything to put in 'action=""'.it is not giving any error but ...
0
votes
0answers
7 views

cURL works but PHP cURL fails to internet [migrated]

Trying to diagnose an issue using PHP to cURL to an Internet location on a RedHat Linux server. cURL is installed and working, and: <?php var_dump(curl_version()); ?> shows all the correct ...
0
votes
1answer
40 views

Pagination and duplicate content

I have an archive page that displays the number of articles published. Because there were so many, I ran a pagination script: for 127.0.0.1/archive/2/?p=x&pp=y where p is the page number and pp ...
0
votes
3answers
92 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 ...
3
votes
2answers
83 views

Switching to HTTPS - redirect question

Following the recent Google announcements about improved ranking for sites running on https we have a number of clients asking about this. Is it safe to just 301 redirect all pages to their SSL ...
0
votes
1answer
36 views

Problem with ipage server

I want to use PHP inside XML. I create some XML file and everything is OK on my local WAMP server. But online (on ipage server) just problem. I include AddHandler application/x-httpd-php .xml in ...
4
votes
1answer
40 views

Statically mapping a PHP script to another script using an .htaccess file results in 404 errors

After having read a lot of posts on the topic of URL rewriting, I still remain stuck with 404 status errors. My goal: A 'static' rewrite of URLs, as follows (user clicks or enters the one ...
1
vote
1answer
72 views

“PHP” is showing up in Browser + OS list in Google Analytics report

PHP is listed as a browser in Google Analytics. 50 sessions have been created. Obviously Analytics data is collected via Javascript executed in the visitor's browser so what is PHP (a server-side ...
0
votes
1answer
34 views

Function in class PHP [closed]

I am new to classes in PHP. I have a function in a class and I am wondering how I can call the function in the class. This is the class: <?php class dms { public function makedms() { ...
1
vote
2answers
23 views

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 ...
1
vote
0answers
19 views

PHP installation missing while opening website [closed]

All was working fine but then suddenly Your PHP installation appears to be missing the MySQL extension which is required by WordPress came when I try to my site. Hosting:Godaddy PHP version:5.4.26 ...
1
vote
3answers
191 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 ...
-1
votes
1answer
32 views

simple database edit webpage recommendations [closed]

It's been a long time since I've made something like this, I'm just wondering if I'm not re-inventing the wheel. My client currently has a bunch of data in an excel file and wants this to be on the ...
1
vote
1answer
22 views

Google pre-rendering causing double and triple events [duplicate]

Is it possible to detect google chrome and firefox prerendering on the server side, or in .htaccess, and defer the prerendering for the purpose of monitoring traffic and website events, or do I need ...
4
votes
2answers
233 views

Redirect page to symlink

So I have 2 URLs that basically link to the main url using a symlink maindomain.com englishdomain.com -> symlink to maindomain.com frenchdomain.com - > symlink to maindomain.com/fr ...
0
votes
2answers
68 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 ...
4
votes
6answers
2k views

How to tell Google that I have changed my website URLs?

I have done major updates to my website, and renamed all my URLs. How can I tell Google that I have renamed these URLs and let Google refresh its index? My website URL: http://www.pndmasr.com/ My ...
1
vote
1answer
42 views

The word “logo” is appearing in all my SERP, but it's not in my page titles

When I search for my website in Google, the word "logo" is being displayed in all the results, but I didn't specify the word "logo" in the titles of my HTML pages. See the following screenshot: ...
2
votes
1answer
265 views

Trouble with images in phppgAdmin on my Nginx VPS

this is my first time using Nginx or phppgAdmin, and after placing the phppgadmin folder into my public_html folder I find that the resources for the phppgadmin page are broken, images and css ...
0
votes
0answers
86 views

Saving a Google API-generated dynamic map to a static image

I have a series of coordinates data which I plot onto an API-generated heatmap visualization using Google Maps API. The data changes daily, and I'd like to capture the heatmap and save it as a PNG or ...
0
votes
2answers
53 views

Is using URL parameters bad for SEO? [duplicate]

I recently noticed that my web page have problems with Google and good search results. Many of the existing SEO tools suggests that my website uses bad URLs for SEO. I'm using a single PHP file that ...
2
votes
1answer
33 views

Problem with htaccess rewrite condition

I needed to redirect site.com/var1/var2/var3/... to site.com/index.php?myvars=var1/var2/var3/... This is the code I wrote myself: RewriteEngine On RewriteCond %{REQUEST_URI} !=/index.php ...
2
votes
2answers
98 views

WordPress keeps redirecting my users to install.php, Is it caused by an injection hack?

I don't really know how to express my problem, so bear with me. This is a bit hard to explain. I have a Wordpress installation, the latest, and often (once a day) my site redirects users to the ...
1
vote
2answers
56 views

Redirect to an affiliate using PHP or JavaScript redirect?

I was asked to introduce a unified self hosted URL-Shortener/Forwarder/Tracking Service for an website that earns money from affiliates. One example I found was one of the bigger german sites for ...
0
votes
1answer
135 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 ...
0
votes
1answer
37 views

Using an external mail sending provider for my websites?

Let's say I have made 20-30 websites, that send emails such as contact form responses, welcome emails, forgotten password reminders, and similar transactional emails. What is the benefit of using a ...
1
vote
1answer
51 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 ...
2
votes
1answer
35 views

Codeigniter not working after moving direcories

I just starting trying to learn CodeIgniter. From the user guide it suggests to move the application and system folder for security reasons. I now have this structure: ./public/index.php ./app/ ...
1
vote
3answers
177 views

File upload through webform failed, server config?

I'm in the process of moving my sites from a shared hosting to a VPS (running CentOS with Plesk 10). When testing on my VPS I noticed that all of the sudden I couldn't upload files through a webform ...
1
vote
2answers
40 views

should I learn html/css before php even for using database? [closed]

I saw lots of question about this topic and all of them were talking if someone want to use php for "building web pages", should learn html first or not. and most of them said yes, because most of ...