lamp

Properly navigating relative local paths in PHP

I'm having trouble specifically with the getimagesize function. I'm making the function call from /item/ajax/image.php relative to the domain's HTTP root. I'm trying to get the dimensions of an image stored at /portfolio/15/image.jpg. From what I understand, the function takes a filename as an argument, so I tried the following: getimag...

Need help finding a PHP e-Commerce package for virtual products/courses

Okay, I'm trying to figure out a good e-Commerce package for a client of mine, and it just isn't easy to find. I'm working on a LAMP system, so please try to restrict your software packages to that platform. (PHP 5 & MySQL 5 are easily available.) Don't mention Magento, that was a nightmare to attempt to install and maintain. I need ...

Can a software firewall cause issues with Apache, PHP, GD library, or etc?

Hi guys. A company I am working with recently installed a software firewall on their server. The unfortunate thing is that that coincided with a change that I made to one of their files. But, the only change that I made was a correction to a Smarty template file path inside a script. That's all. The backup file that I made is exactl...

What's a good piece of LAMP-stack source code for a simple blog w/ comments?

Hello I want to create a simple blog where users can post comments, but I don't really want to get into one of the heavier code generators or frameworks like Django or RoR or Wordpress. Reason is I need to learn this stuff from the inside out, given that my project will require a lot of programming "from basics" in the future (since it'l...

PHP/MySQL/Apache/JS with Visual Studio 2010?

I'm working on a project that uses a PHP, MySQL, Apache, and runs on a Linux server. Is there any plugin so that I can use Visual Studio as my IDE? Preferably, it would be something free, unlike VS.PHP which apparently costs $100/year. And, I'm running the VS 2010 beta. ...

HTML Upload Problem, Can someone tell me about requirements?

Literally, I am unable to upload anything to my server via the normal HTML file input type. Ok, Here's my setup. -Ubuntu 9.10 -LAMP configuration -File upload limit set to 50 mb in the php.ini file -All the files that I try to upload are less than a meg a piece. -I am using the standard HTML <input type='file' name='userfile' size=...

How might I improve my development and deployment strategy?

I am working on a web application that runs on the LAMP stack (Linux Apache Mysql PHP) and would like recommendations on improving my workflow. I have 3 environments: My local machine AKA my development environment A staging account on my dedicated server so that I can test the web app A production account on my dedicated server I d...

Shared Apache / MySQL / PHP setup on multiboot

In short: I have a multiboot machine with Win XP, Windows 7 and Ubuntu, and I would like my localhost web projects to be shared by all three OSes. Details: I finally want to get rid of Windows XP for my web development work, but my local Apache + PHP + MySQL stack is tied to my old OS, and I spent some time and thinking to tweak this se...

Ubuntu + SVN + Apache2

Hello Everybody, I am working on a new project, and for that i need to install a SVN server. This is done right now. At the moment i've running: - Ubuntu - Apache - PHP5/MySQL - A svn server I can call the SVN server at http:// 192.168.1.36/svn/projectname with ToirtoiseSVN, when check out i get all the files right. But I cann't visi...

what i need to do in my code of my website to use CDN servers

i am use a lamp environment , What things I need to pay attention during the development of the site, if the client wants to be ready to use CDN ? thanks ...

Is there a simple WISA version of a LAMP-in-a-box app such as apache2triad?

Is there a simple WISA version of a LAMP-in-a-box app such as apache2triad? ...

PHP/Apache REQUEST_URI different behaviour?

I am moving websites from one server to another. Both are on a similar variant of Centos 5 x64 with Apache 2.2 and PHP 5.2.X. Some of my scripts including Wordpress are behaving incorrectly. It turns out the issue is the difference between the REQUEST_URI global: On the older server: REQUEST_URI = /phpinfo.php On the new server: REQUES...

Java: Connect to SQL on Apache locally

I have a site running a Linux/Apache/MySQL/PHP stack. I would like to connect to the database from a locally run Java program. Is this possible? (Deploying the Java program to the server would be a great effort.) ...

LAMP Whitescreen on Magento

First off, sorry if this shouldn't be on Stack Overflow, and instead should be on Server Fault / Super User. I am pretty sure it is a programming issue... I am getting a whitescreen on a Magento install for a PDF generation script. I usually attribute whitescreens to memory issues on Apache, but: I am getting no visible errors (disp...

Only allow certain (dynamic) IP's to visit website director

OK I have 4 dynamic ips, in order to get those IP's I need run a gethostbyname('domain_name.com'); on 4 domain names I have that alwasy resolve to the only 4 IP's that are allowed to access this directory. This is very easy for me to do on a PHP script on a page, but I am confused as how I can do it to a directory? Thanks!! ...

what are the Advantages and disadvantages of running php on windows

the linux environment is natural to php, what are the Advantages and disadvantages with run php on windows ? Are there some limits in windows ? what is the best (lamp/wamp) in term of performance ? thanks ...

Looking for LAMP equivalent to ASP.NET

We have a fairly large system involving multiple applications running on Windows, written in .NET. These include a number of web applications using ASP.NET. We have a number of unrelated web applications written in LAMP - Linux/Apache/MySQL/Php. The greatest advantage we've seen in ASP.NET is the ease with which code can be shared bet...

What languages and frameworks should a freelance developer learn?

I already know all about Linux. I would like to start developing part-time, and be able to fall back on it full time if need be. I am a techie looking make money quickly with the least hassle, doing something vaguely related to my hobbies. I've been thinking about Python because it's beautiful, useful, and I will come closer to learning...

How to build a 'related questions' engine?

One of our bigger sites has a section where users can send questions to the website owner which get evaluated personally by his staff. When the same question pops up very often they can add this particular question to the Faq. In order to prevent them from receiving dozens of similar questions a day we would like to provide a feature si...

How to serve PHP dynamic images efficiently on a LAMP server?

Right now I'm running a PHP script on my LAMP (CentOS/Apache/MySQL/PHP) stack that generates dynamic images using GD. I'm caching them on the hard drive for 5 minutes. If a cached version exists, I pull that instead of generating a new one. This saves CPU time, but since Apache is still running the PHP file it generates a new Apache proc...