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
2answers
16 views

CMS with multiple of single database

I have a couple of questions concerning CMS that I need answered if possible. I need to create a site with a Database. This site will in due time have lots of traffic and many users if things go as ...
-1
votes
1answer
11 views

Block IP Address using php [on hold]

For my website i use this php code to block ip addresses. <?php $deny = array("111.111.111", "222.222.222", "333.333.333"); if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) { header("location: ...
1
vote
2answers
26 views

Site migration questions— PHP, link structure & SEO

I'm working on a massive site overhaul and the main structural change will be a move from static HTML to PHP. I work for an art gallery, and having the artist names in URLs is critical. We already ...
0
votes
0answers
10 views

how to resolve yum replace php-common --replace-with=php55w-common error? [migrated]

how to resolve yum replace php-common --replace-with=php55w-common error? on CentOS 6.5 root@server [~]# yum replace php-common --replace-with=php55w-common Loaded plugins: fastestmirror, replace, ...
0
votes
0answers
15 views

line monitoring of phonograms (songs) of radio [on hold]

I need to create a monitoring system of phonograms (songs) of radio and television online through streaming so on, but my team and know the way to develop this monitoring system, I know there ...
4
votes
2answers
66 views

Slow Migration is it possible with a PHP/SQL Driven site

I have a Joomla site that is operating on www.mysite.com, I want to migrate to WordPress but heres the thing, I have hundreds of pages and simply moving migrating them to a test site isn't ideal since ...
0
votes
0answers
11 views

When parsing multiple feeds with SimplePie in PHP, the $feed variable always holds the first feed, even though the URL has changed

I want to grab some data from a website where each page has its own feed. I therefore intend to grab all those feeds sequentially, like so: $maxPages = 5; for ($i = 1; $i <= $maxPages; $i++) { ...
0
votes
0answers
9 views

How to combine GZip + CDN for faster page loads? [duplicate]

I made a Speed Test on my site via online tool. The tool recommended enabling compression to speed up the site. As far as I understand this requires some changes on server (already done by hosting ...
1
vote
2answers
37 views

Why does .htaccess not prevent a php script from accessing a file

I ran into the following issue: On a website I want to prevent "unauthorized" access to a set of .xml files - the user has to authenticate first. Now it would be possible for an authenticated user to ...
0
votes
1answer
24 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 ...
0
votes
0answers
7 views

Getting product details from any e-trade site? [on hold]

We created a project. We aim for getting a product url -for example from Amazon- from user. And when user complete form, we want to get some information about this product. For example price, product ...
1
vote
1answer
54 views

Physical memory usage issues with WordPress plugins

Occasionally, my website that's hosted with GoDaddy is crashing due to physical memory overload. My host told me that PHP processes are overloading the server, and to try to find out which WordPress ...
0
votes
1answer
28 views

Check to see if emails are getting automatically sent

I have a Drupal site that is supiosed to send emails every time new content is created. The emails are sent to admin users so that they can check the content. None of the emails are making it to the ...
2
votes
2answers
87 views

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

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 ...
0
votes
0answers
11 views

create follow link on homepage but nofollow link on rest of pages (footer of clients websites) [closed]

I am wondering how to create a conditional statement. Basically I want to have a link back to my website in the footer of the clients site. But I want a rel"nofollow" for all pages except for the ...
1
vote
1answer
235 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 ...
-2
votes
0answers
13 views

Get specific value from array [closed]

I have a array of dates like this $dates = ('2014-01-21','2014-03-11','2013-01-21','2014-03-11','2013-07-21','2012-01-21'); I want to get array values where year is 2014. I mean when i change value ...
0
votes
1answer
120 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 ...
1
vote
1answer
120 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 ...
2
votes
2answers
205 views

I have “CMS” made by myself with PHP and I cannot make my websites appear on google

I have developed an Admin Panel that you can use to change conents on the website. It works basically like this: You use functions to generate HTML like menus, footers, side modules, etc. I use ...
0
votes
1answer
60 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 ...
3
votes
1answer
111 views

htacess seems to make the page load forever

I need to rewrite a URL of my server so the URL looks friendly. Like: site.com/var1/var2/var3/... to site.com/index.php?page=var1/var2/var3/... So I wrote this .htacess: RewriteEngine On ...
0
votes
2answers
123 views

WHMCS Fatal error: Out of memory while View Invoice PDF

I can logged in WHMCS & can access at all, But if i try to View PDF Invoice means, The following error will be appeared, Fatal error: Out of memory (allocated 67633152) (tried to allocate 76 ...
4
votes
3answers
75 views

Good practice for sending out test emails without being classified as a spammer

I am trying out some new ideas involving HTML emails that will be sent from my site. I am sending lots of test emails to my Gmail and Yahoo accounts, all of which go straight to the spam folder. ...
0
votes
1answer
26 views

two PHP sessions, same IP address, active at the same time? [closed]

Is it possible to have two sessions associated with the same IP address active at the same time?
0
votes
0answers
24 views

Can't install Phalcon extention on Ubuntu [migrated]

I'm trying to install Phalcon frameworks and I can't get this part done right Add the extension to your php.ini: extension=phalcon.so Finally, restart the webserver I've changed my ...
0
votes
1answer
63 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 ...
2
votes
1answer
53 views

WordPress injection?

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 ...
0
votes
1answer
38 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 ...
1
vote
3answers
41 views

external CSS file or CSS added to head via code?

I am building a website that uses a custom CMS. I am seriously considering not using external style sheets and adding all of the required CSS to the head of the pages that as needed (using PHP and ...
0
votes
0answers
20 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: ...
1
vote
2answers
173 views

Memcache alternative for cpanel hosting

Memcache is the best caching API for php, but it is not available on most of the hosting providers. Are there any alternatives to memcache which are available for most hosting providers(e.g. Godaddy)? ...
0
votes
0answers
3 views

Good HTML email template? [migrated]

Based on several different sources, I have compiles the following as my basic HTML email template. Please let me know if I have missed anything important. I am not sure if I am using the \n and \r\n ...
1
vote
1answer
27 views

How to add custom php code in Wordpress text widget

I cant make my PHP code work when I add it in WordPress text widget (without plugin). The same code works on main (index.php) , but not in widget. I searched for this question and found the answer - ...
1
vote
2answers
38 views

Redirect domain.com:81 to domain.com

I need to redirect www.domain.com:81/site/ to www.domain.com. I have used mod_rewrite a few times, is it possible to solve this in a similar way?
1
vote
1answer
189 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 ...
0
votes
0answers
35 views

Should I ask for additional CPU cores?

I have a website that has approximately 300 users and I get about 1000 hits per day. Due to an upcoming event next week, there is a possibility of all of a sudden getting between 20 and 25 thousand ...
0
votes
2answers
45 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 ...
1
vote
1answer
33 views

UTF-8 charset doesn't work for PHP mail form

I'm trying to solve the problem of reading special characters, (plus I cant get it on one of the Gmail) I get something like this "לדו×" and this "Ч“Ч•Чђ\"ЧњЧ“Ч•" sent from my WP blog I've tried ...
0
votes
0answers
6 views

On line email form hangs on php mail() function. What server issue could be causing this? [migrated]

I have a contact form on my website that has a dead simple php mail() function. I am 99% certain the php is not the issue as I have the exact same function on other sites that works fine. However, ...
3
votes
4answers
166 views

Are there any scripts to integrate social networking site's chat and posting features into a webpage

Are there any scripts to integrate social networking site's chat and posting features into a webpage using PHP or JS... for example a section with Facebook chat, a section to post to twitter and maybe ...
0
votes
0answers
19 views

What more to use for SEO? [duplicate]

I was wondering how I could optimise the Google results? when I type the name of my company it wil show up, but I would like it to also show up if I type (design langezwaag) or (webdesign langezwaag) ...
0
votes
1answer
48 views

Shorten URL with Regex

Here's an example URL to a user profile on my site: http://127.0.0.1:8080/overview/showuserprofile/user I want it to be: http://127.0.0.1:8080/user This is what I have for rewrite rules: ...
0
votes
1answer
32 views

In NginX what means location ^~

If I'm not wrong, location = / {} means "only the / folder, not the files inside, not the subfolders" location ~ / {} means "the / folder, all the files inside, all the subfolders and their subfiles" ...
4
votes
2answers
71 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 ...
3
votes
3answers
3k views

Enable gzip compression on Bluehost?

My website is loading large (~3mb) SVG file with jQuery. It takes quite a while therefore I decided to enable gzip compression. I have a hosting account with Bluehost which supports custom .htaccess ...
0
votes
1answer
134 views

Joomla theme only 1 page or module

Hi how can I theme only 1 page or module in joomla 1.5? And I don't mean change the css but change the php file, so I can choose to display the date above the title and not below. This should be very ...
0
votes
1answer
17 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
48 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
23 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 ...