How do I set environment variables in WAMP
Hello, I am trying to get an environment variable to show up in $_ENV in my codeigniter app. How do i do this? ...
Hello, I am trying to get an environment variable to show up in $_ENV in my codeigniter app. How do i do this? ...
Hi all, I am currently working on a building community website in PHP. This contains forms that a user can fill right from registration to lot of other functionality. I am not an Object-oriented guy, so I am using functions most of the time to handle my application. I know I have to learn OOPS, but currently need to develop this website ...
Hello Guys i am trying to implemenet something like the read/unread in the email.How can i do so by using jquery , php and mysql. What i want to do in steps: 1- When i click on a row in html table i change the status of the this message in database. 2- And then change the background of this row but also if i logout and relogin the row ...
Hello All, I have implemented FB connect on a site for the users to take a quiz: The quiz can be accessed at this page: http://www.dirtytalk101.com/take-quiz/ Now I am witnessing two problems: 1: When somebody clicks on FB connect button and logs in the dialog box doesn't close, rather it redirects to same page site's page on the ve...
Hi, I am looking for a solution that will enable me to connect to a mailbox, obtain an email, apply specific modifications to the email body (for example, change the content), and then forward the newly modified email to a new email address. The trick is that such modification must not destroy the format and headers of the original emai...
I have to perform import-content functions from remote pages from my website using page urls provided by users. In short what digg, mixx, designfloat, etc do when we submit a story using the url. Only I have to do it with CodeIgniter. I would really appreciate if someone could please tell me the best way to do something like this within ...
What is your average php memory usage per request . I know lots of people will say that php memory usage depends on the application , but i just want to get general idea about your data.I just created simple php framework so i want to know that do i use needless memory or it is normal . Actually , the interesting point is about my data...
Hello, I want to use md5() and crypt() together in php login authentication. I tried to use md5(crypt(string),salt); but i can't login in mysql. Does anyone know how to use them together? Thanks a lot. ...
Hi , This is a pretty easy question but I would like some clarity on something. I have seen a number of different ways to connect and query a MySql Database using PHP but which is the best way to connect and create a query using php ? Hope this makes sense. Thanks ...
I am creating a classifieds website called 'mySite', and I want whoever searches for honda +mySite in google, to find all ads with the description 'honda' or headline 'honda' from my database. How is this done? (a htm page for every ad? which then loads the 'ad data' when user clicks to open the htm page?) I have an example for yo...
Can i pass a plist file with php and kind of get it into an array, like the $_POST[''] so i could call $_POST['body'] and get the string that has the <key> body ? ...
when I retrieve the data from the textarea in the form, <?php $editor_data = $_POST['editor1']; ?> this works fine locally, but the remote server returns the text mixing up the style with escape slashes. like this: <h3 style=\"color: blue;\"> Initial value.</h3> I've no idea what I'm doing wrong. do you have any idea? thanks! eg...
Which php library makes it easy to embed images into an email. ...
is there a way to write a program in php or javascript that can load a flash file and interact with it? (click on buttons and such) ...
Is there a simple way to get the total of all items in a PHP array? Also, how can I output the contents of an array for debugging purposes? ...
I have an sql query pulling a few results from different tables, one of the tables - "orders" - contains customer details with an order_id as a PK, another table - order_products - contains each product ordered, with reference to the order_id and another column as PK. Basically, I need to know how to query the database in such a way tha...
Hi, I own a community website of about 12.000 users (write heavy), 100 concurrent users max on a single VPS with 1Gb ram. The load rarely goes above 3 and response is quite good. Currently a simple file cache is used to store DB query results to ease the load on the DB, but the website still can slow down over 220 concurrent users (loa...
Hey guys! I'm looking to make a page wherein a user will make a selection for eg: "How old is your computer?" - "One year", "Two years" etc etc and the page will remove and add 'options' (which at the moment only need to be informative sections of text) Is there any way to do something like that? The technologies I'm using are PHP and...
Hi, I have a KML file defining several paths/routes (representing actual roads) enclosed in the <LineString><coordinates></coordinates></LineString> tags. Parsing the file to other formats (arrays/MySQL) is already in place, so that's not a problem. Given a point (longitude/latitude) I would like to be able to check if the point is on ...
What would be the most efficient way to clean a user input that is a comma seperated string made entirely on numbers - e.g 2,40,23,11,55 I use this function on a lot of my inputs function clean($input){ $input=mysql_real_escape_string(htmlentities($input,ENT_QUOTES)); return $input; } And on simple integers I do: if (!filter_v...