include .html in a .html
Hello, I used the script <!--#include virtual="dontate.html" --> to include a .html file into another .html file, but for some reason does not show up. Any reason as to why? I will be using WAMP and LAMP. Thanks Jean ...
Hello, I used the script <!--#include virtual="dontate.html" --> to include a .html file into another .html file, but for some reason does not show up. Any reason as to why? I will be using WAMP and LAMP. Thanks Jean ...
We have multiple load-balanced webserver machines running the same PHP webapp (LAMP) and I'd like to run slightly different code on each server (for testing purposes). I was hoping to use the $_SERVER['SERVER_ADDR'] super global to do something like this: if ($_SERVER['SERVER_ADDR'] == 'XXX.XXX.XXX.XXX') { echo "Do one thing"; } elsei...
I am developing an auction site that requires maintenance scripts to be run in the background to ensure smooth running. Things such as ending auctions, starting auctions, etc... There seem to be many options and no definite answers when I research the subject. Is there a standard for doing this sort of thing? My research so far has unc...
I ran "emerge apache" "emerge php" "emerge mysql" I set apache + mysql to run at launch I set the use flags for PHP, CGI, APACHE, MYSQL I went into httpd.conf and added "-D PHP" PHP scripts will not run. The contents of the script are just sent back to the web browser. That is the result of retrieving "test.php" from a web-brow...
I host my ecommerce site with a 3rd party hosting company (LAMP). When I check my error logs I have a lot of these warnings: [Wed Jul 07 23:39:17 2010] [warn] (43)Identifier removed: Failed to release SSL session cache lock Does anyone know what is causing this and if it's something I should be worried about? I checked with the host...
Hi all, I've just installed LAMP on my Ubuntu 9.10 machine, and everything works fine except when I copy my PHP files from another computer. The LAMP guides I've followed also made me create a phpinfo() test file, which works, but when I try to type in e.g. index.php absolutely nothing happens - just a blank page in FireFox. :( The fi...
I installed the lampp sever on my local in linux OS, but its giving error while opening phpmyadmin. #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) ...
I am storing my sitemaps in my web folder. I want web crawlers (Googlebot etc) to be able to access the file, but I dont necessarily want all and sundry to have access to it. For example, this site (stackoverflow.com), has a site index - as specified by its robots.txt file (http://stackoverflow.com/robots.txt). However, when you type h...
I have a list of events for example I wanna show on a page with the users that have created them which is all in a table and the user who has created them's unique id, now if I wanna show their username and avatar I would have to run 100 queries inorder to show 100 events! but I'm sure their is a easier way I don;t know! i have a table ...
Hi, So I have a server set up (LAMP) server, this proxy has access to the internal network and I need to give the outside world access to this proxy in order to perform tasks. For example, you should be able to call that proxy with a POST request with the right parameters and the proxy should return the status of that post. Now let's s...
Hello everyone, this is a basich question about properly setting up the lamp server to work with eclipse and xdebugger. I have lamp server installed and working properly. I have eclipse pdt as described here Eclipse plugin PPA for Ubuntu by Yogarine and it is properly installed. I have installed xdebugger and configure the xdebug.ini fil...
I'm a developer on an open source ERP project, it's web based and as you'd expect we have a requirement to print various reports. We currently use ezPDF but it means having to set a ridiculously high memory limit / execution time, and that is still limiting us to how many reports we can print. We liked the look of rlib however complicat...
Hi, I'm creating a php script that will capture certain information from the server and database at regular intervals. The server is running LAMP. Is there a way to output the server load, or other statistics that may indicate the performance or load on the server including mysql? Thanks :) ...
for some weird reason my CMS is logging out if the address bar does not have www before the full website name. for example, when we enter xyz.com, it takes me to the website but then it wont show as logged in and if i type in www.xyz.com it will find the cookie and show me logged in. What i want to do is, when user types in xyz.com, i w...
Hi, hope someone can help as I'm not sure what's going on here - I have a live site where I want to allow file uploads of over 2MB. I have set the standard config options in php.ini as follows (running phpinfo() shows these settings fine): upload_max_filesize 25M 25M post_max_size 25M 25M max_input_time 60 60 memory_limit 32M 32M...
I want to scale an e-commerce portal based on LAMP. Recently we've seen huge traffic surge. What would be steps (please mention in order) in scaling it: Should I consider moving onto Amazon EC2 or similar? what could be potential problems in switching servers? Do we need to redesign database? I read, Facebook switched to Cassandra fro...
I apologize if this is a basic question, however I have been searching on this and can't find anything of use, probably since I don't really know the proper terms.. I am wondering if there is a way to interpret the url that is called on the server, such as: http://mydomainname.com/site1/module1 and then using PHP (ideally), or some oth...
Hi everybody, I have thought a lot recently about the different hosting types that are available out there. We can get pretty decent latency (average) from an EC2 instance in Europe (we're situated in Sweden) and the cost is pretty good. Obviously, the possibility of scaling up and down instances is amazing for us that's in a really exp...
I am considering developing a php/MySql website on my Windows machine. But I am worried about complications when I go to put it on the the server at, say, GoDaddy and the issues that may arise from their LAMP (they would use LAMP, right?) stack. Are they too perilous and/or numerous to rationalize development with the XAMPP (what about ...
How do I register a new username/password on apache (.htaccess and .htpasswds) using php? ...