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
34 views

Does uploading index.php protect the other files that would normally be visible in that directory?

PHP is a mystery for me. In the FTP main directory of my website, I uploaded 2 files: a.txt and b.txt. If I enter my website address in my browser I can view both a.txt and b.txt. However when I ...
0
votes
0answers
16 views

Strange GET requests from an IP resolving to googlebot - or could this be a hacking attempt?

On a server with a Typo3 installation I have to manage on an interim basis I found lots of requests like GET /KYoUZ/NXLhZ/(x) where (x) is some CSS or JS resource file happily answered with 200 OK. ...
0
votes
1answer
14 views

Error 500 on new sub-domain

I have just uploaded a site on a sub-domain, In fact on the 3rd Sub-domain. All the 4 site ( 1 Main, and the 3 on SUB) are completely separate from each other. Now, the site was developed ...
0
votes
2answers
397 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
0answers
8 views

Looking for software to create/maintain/display a dynamic web catalogue of inventory for sale php/mysql [on hold]

I have an web inventory catalogue of items for sale that is currently maintained in html that I would like to dynamically generate. Items are presented line by line showing a short text description, ...
1
vote
1answer
36 views

Is it possible to install Piwik and send it fake data to test its features?

I found Piwik as a good open source solution for website analytics. Is it possible to run Piwik and see its features using fake data rather than a live site? Not only the demo version which is ...
0
votes
0answers
18 views

Is there a project sort of like Markdown, but to create webpages? [on hold]

So right now I use html/css/php on my LAMP server to create websites. I use php includes to sort of make page templates. I include a header, navigation, and footer, and use php to pass variables - for ...
-1
votes
0answers
15 views

Hiding and redirecting extensions on my webpage [duplicate]

I want to hide extensions on my webpage using the .htaccess file. I have managed to do it by using this code; RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php ...
0
votes
2answers
12 views

Hiding and redirecting extensions on my webpage

I want to hide extensions on my webpage using the .htaccess file. I have managed to do it by using this code; RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php ...
0
votes
0answers
2 views

CMS for a Localized (i18n) Webiste [duplicate]

I have a website that is using Php Gettext for localization capabilities and I have got to that part where I need to create a CMS for updating the content. I had initially hoped CUSHYCMS would do the ...
0
votes
0answers
15 views

Php form validation with fwrite() and fopen() [closed]

I want that php first validate the form and when the form is validated completely it runs fwrite script and when any field is empty, it returns an error and do not run frwite script. Am i doing right ...
2
votes
1answer
31 views

cPanel PHP open_basedir warning to root directory - Any solution?

I am currently hosting a simple multi-tenancy service on cPanel shared hosting, where customers who signed up will have a subdomain, directory and a database dynamically assigned to them (via XMLAPI): ...
0
votes
0answers
2 views

Ussing reCAPTCHA on HTML5 whit contact-form.php [migrated]

I have a website Html5 and try adding the reCaptcha still sending messages without activating the reCaptcha and last night I received over 300 messages a boot. Help me please how to add so that only ...
1
vote
1answer
153 views

Moving just the DokuWiki 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
40 views

How does mediawiki save the passwords?

I have mediawiki installed in my local machine. I had to use a form outside wiki which asks the user to upload files with the wiki username and password. In order to achieve this I went through the ...
1
vote
1answer
181 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 ...
1
vote
1answer
30 views

How to set permissions for DooPHP?

I have downloaded and installed DooPHP according the Installation instructions. However, there is no statement on how to set permissions. Also not in INSTALL.TXT which comes with the product. The ...
0
votes
0answers
49 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
3answers
2k 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 ...
1
vote
3answers
796 views

How to check if someone is using my website resources?

How can I check whether someone is using the resources hosted on my website? I have a website (coded in PHP) and I have uploaded a few images there. I want to know who is using those images on other ...
0
votes
0answers
5 views

Hosting solutions for image uploads. [duplicate]

I'm developing an application which will primarily deal in image uploads. Since the RESTful API is written in PHP I've been looking at options similar to fortrabbit.com for hosting the app itself. ...
1
vote
1answer
199 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
165 views

Is there any way to prevent the Google toolbar 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 ...
1
vote
0answers
20 views

Avoid storing a .pem security certificate insecurely on the sever under 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 ...
2
votes
1answer
47 views

Apache Unable to open logs: /Applications/MAMP/Library/${APACHE_LOG_DIR}/error.log

I am trying to run a project built in Ubuntu with PHP on fat-free framework. I am using MAMP on macOS Yosemite 10.10.1. I imported a database successfully through phpmyadmin & following these ...
2
votes
1answer
38 views

Sharing CodeIgniter installation between different servers

Current situation: I've got 2 different servers, each one hosting its own CI installation, and everything is working fine, except a lot of code is duplicated (custom libraries, some views, etc) My ...
1
vote
1answer
66 views

Not receiving email sent from PHP mail() after cPanel migration?

I just moved my site example.com from one host to another by cPanel account backup and restore. Name servers are changed a few hours ago. info@example.com is hosted at Google apps with MX records ...
2
votes
1answer
4k views

What is the best currency API out there? [closed]

I may be asking an odd question, but webmasters seem like a decent place to post this. I'm in the search for an accurate, easy API (such as using JSON or XML) so I can use my web application. I've ...
1
vote
0answers
44 views

Trying to include a file from parent domain in subdomain?

I am trying to include a php file from a parent domain in a subdomain. In subdomain.parentdomain.com/test.php i have include ('/var/www/vhosts/parentdomain.com/website/wp-blog-header.php'); My ...
1
vote
1answer
31 views

How can I pass optional URL parameters through my rewrite rule?

I created a CMS that identifies if the GET value of url is defined, and if it is, it returns the html contents of the page from the frontend template on index.php. This ideally is to make a templating ...
2
votes
1answer
34 views

How to get multiple form field values in Google Analytics site search report?

I'm wondering how I can get multiple form field values into Google Site Search. For instance, I have a search form that has a drop down for year, make and model. Once submitted I would like those ...
3
votes
9answers
10k views

Need to Stop Bots from Killing my Webserver

I am having EXTREME bot problems on the some of my websites within my hosting account. The bots utilize over 98% of my CPU resources and 99% of my bandwidth for my entire hosting account. These bots ...
4
votes
4answers
5k views

What is the best way to exclude bots from view counts?

My website is counting visitor views on certain pages. I noticed that Google and other Bots are "clicking" to my site like crazy and some of the pages get unrealistic view counts (compared to those ...
1
vote
1answer
53 views

Non existent image files are not being handled by PHP as they should due to ngnix configuration

I am currently building a web application. In order for it to work properly I wrote this rule: location / { if (!-e $request_filename) { expires 168h; add_header Pragma public; ...
1
vote
0answers
10 views

Alternative to Ebay Open Source [duplicate]

I'm looking for an auctioneering cms which is basically a copy of Ebay, but just more modern and open source. I would love it if it would already have a connector to a Big Data DB like Hadoop. Does ...
0
votes
1answer
74 views

How do I determine if I should ask for additional CPU cores on my web server?

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 ...
1
vote
1answer
31 views

Delay Loading of Webpage Content / Debounce Cache

Background: I am implementing a custom cache handler in PHP. The cache script is triggered on-demand by website traffic. I want to intelligently handle an influx of simultaneous requests. To do this, ...
2
votes
1answer
57 views

Whats the use of mysql.safe_mode in php.ini file?

I've seen some website on security recommend to enable mysql.safe_mode in php.ini # Enable SQL safe mode sql.safe_mode = On When I searched hard to find info on this, I found this: If the SQL ...
0
votes
2answers
93 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 ...
3
votes
2answers
133 views

CloudFlare Not Sending If-Modified-Since Headers

I'm trying to reduce my server load by providing 304 Not Modified responses for content where appropriate. CloudFlare is my middle man, so they should be sending If-Modified-Since headers whenever a ...
5
votes
1answer
169 views

How can I protect my PHP source code from a client when installed on a client's server?

I have done a PHP web application and my client request to host it at their server. How can I protect my PHP code so that it will not be viewed, study, or take it for any other usage by my client?
3
votes
10answers
1k views

How to check if person doesn't have multiple account?

I have two users in my website with the same IP. I asked them or him, idk, why does he have 2 accounts. He said that other account is owned by his roommate. His roommate uses other computer in my ...
1
vote
0answers
33 views

How can you use Apache .htaccess to specify the location of the PHP binary on shared hosting?

I'm using shared hosting, can create .htaccess and php.ini and have access to ssh. I have PHP 5.6 installed to ~/public_html/php56 and can use this path with ssh, cron and exec() but not on the web. ...
2
votes
2answers
102 views

Browser will not cancel the request if routed through PHP

I have a site which has a feature that causes Apache to route all requests for files in a particular directory through a PHP script via .htaccess. A problem has come up that I'm not sure how to ...
2
votes
1answer
96 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, ...
1
vote
0answers
29 views

How to optimize a dynamic website [duplicate]

I know there is already an answer on Webmasters to a part of this question (SEO for Dynamic website) , which has been very helpful with How to build a controller that creates an xml sitemap? on SO ...
0
votes
1answer
87 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
1answer
61 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 ...
2
votes
2answers
1k views

Where to find my website's source code?

My company ordered a website and we were given all usernames and passwords but I can't find the PHP source files and this is my first website assignment. I have no prior exposure to web technologies ...
0
votes
0answers
16 views

Search Engine Optimize a photography website? [duplicate]

Because most photography websites are mostly photo galleries, I'm at a loss on how to code my new site. You can choose a friendly url, use alt tags for every image, include language set, meta tags, ...