How to pass an array?
Hello! How could I pass an array with PHP by GET method? Thanks ...
Hello! How could I pass an array with PHP by GET method? Thanks ...
My script puts together a set of htaccess rules based on information passed into it and gives the user a downloadable text file with the rules printed out inside. The idea is that an administrator fills out some form information, clicks a downloadable link, gets a text file with the rules printed out inside, opens the file, copies the r...
I'm trying to write a simple PHP script which automatically sets up new etherpads (see http://etherpad.com/). They don't have an API (yet) for creating new pads so I'm trying to figure if I can do things another way. After playing around some, I found that if you append a random string to etherpad.com to a not-yet-created pad, it'll co...
Basically I have a single page on my site that I want any php erorrs, warnings, etc to be sent to me in an email every time the script is run. Edit: this must be code that is placed on the page, not an edit to php_ini or anything like that. Edit 2: this needs to catch ALL errors and send ALL errors in one email at the end of the script...
I've tried searching for this but it's pretty difficult to put into words. Basically, our site will run fine for most users without any issues. Sometimes though, those of us who use the site pretty heavily all day will suddenly get completely bogged down. Everything just spins in place. The site itself is still fine - everyone else c...
How can i convert a html page (via $curl or something) to a pdf file? ...
Hello, I currently have a working URL: http://example.com/security-services.php?service=fixed-camera-surveillance and then I have PHP say, $_REQUEST['service'] to do some stuff... But I'd like to achieve the same function if the URL looked like this: http://example.com/security-services/fixed-camera-surveillance Thanks! ...
I tried installing VS.PHP some time ago. I was intent on seeing how it works with my current setup. I immediately encountered trouble: none of my sites wanted to render. On windows, I'm using WAMP to run my PHP sites. VS.PHP seems to have installed its own Apache server. What I want is to have VS.PHP use my existing environment. How ca...
Hello guys. How to set a rewrite rule or PHP code for the following: A User requests a page like /samy.john. But this page does not exist, so he will get redirected to /index.html and in the headline of index.html there will be a message that says Hello Samy which is taken from the first part of the URL he requested. Any clues how to a...
Hi, can someone please check the PHP coding is correct for this script. It needs a fresh pair of eyes to check. Since this script is slightly older since I last worked on it, I can't remember what small change I made to fix it... So what's wrong with it? The checkbox permissions aren't being saved at this moment - not sure why :( if (...
I get a string from a db, then I remove all the HTML tags, carriage returns and newlines, before I put it in a csv. Only thing is I cant remove the excess white space from between the strings, any ideas? Thanks, Joe ...
I built a site a long time ago and now I want to place the data into a database without copying and pasting the 400+ pages that it has grown to so that I can make the site database driven. My site has meta tags like this (each page different): <meta name="clan_name" content="Dark Mage" /> So what I'm doing is using cURL to place th...
I'm working on an app in CodeIgniter, and I want to have admin pages for several of the objects in the application, and I'm wondering what would be the better way to put these into an MVC structure. Idea 1: In each controller, have an admin function, and add all of the admin pages I would like into that function. example URL: domain.co...
Ok so this is my situation...a web application in PHP uses a "config" file for various parameters. This config file is nothing but a php file, say config.php with a global array of the form $config['param_name'] = 'param_value'; $config['param_name2'] = 'param_value2'; Now I am currently writing an admin app that I want to use to cont...
Hello, I currently have a list of things to update in the given mysqli query: $insert = mysqli_query($db,"UPDATE `tbl_perms` SET `1` ='" . mysqli_real_escape_string($db,$_POST['permsA_1']) . "', `2` ='" . mysqli_real_escape_string($db,$_POST['permsA_2']) . "', `3` ='" . mysqli_real_escape_string($db,$_POST['permsA_3']) . "', ...
I'm using PHP to generate feeds, which is working perfectly fine on my local development sandbox. Once I upload to the server, I get a blank page. I know the programming is correct, because it works fine on my local box. What do you think the problem might be? I'm not using any extra libraries, atleast I don't think so. I put on error re...
I'm running getimagesize() to determine whether or not an uploaded file is a valid image and also it's MIME type. A user of my webapp reported that some of his images where getting an "invalid filetype" error after uploading them. So I asked him to send me some of them to check. Here's one. The error string itself is meaningless as it's...
I'm looking for suggestions on how to implement a simple Calendar app with my site. I need a data entry form that takes an event title, description, and date/time. Once an event is entered it becomes visible in two views: a list and a calendar. Is there any canned app out there that I can use (similar to survey monkey) that could serve ...
Back when I was learning HTML, I loved how easy it to build pages and arrange everything just the way I wanted using tables. Then I moved to CSS and learned that you could quickly swap designs without recoding your page. With just a few CSS changes your HTML designs could go from one theme to another and any element could become any oth...
Below I have included some HTML/CSS. The CSS looks fine in FF, but it is wrong in IE8. In IE8, the Home button appears on the line below the Balance and Turn values. It should appear on the same line. For comparison, you can view the page in both browsers (warning; potentially accesses FB profile) (This link leads to a Facebook app which...