I want to up the time my users will stay logged into my site without getting automatically logged out after a period of inactivity. I'm tracking the logged in status using PHP sessions.
Was having trouble tracking down a definitive source for how to do this. Any ideas?
EDIT:
OH! One more thing is, I want to control this from my .htacc...
I'm quoting on a project that is using patTemplate. I'm wondering if anyone has used it and what they think of it?
I'm not a fan of PHP templating systems because PHP is basically a templating system itself, but wondering how bad patTemplate is.
...
Using PHP and MySQL, I have a forum system I'm trying to build. What I want to know is, how can I set it so that when a user reads a forum entry, it shows as read JUST for that user, no matter what forum they are in, until someone else posts on it.
Currently, for each thread, I have a table with a PostID, and has the UserID that posted ...
In my forum that I am building, I want to get information about users that make the posts in a thread. For example, a signature, their forum rank, number of posts, etc, from a table, ForumSettings. I have the list of threads in a table with an ID, and I have the posts in a separate table with a threadID column that links to the ThreadLis...
How do I benchmark the performance of my web applications?
Is there a way to find out the bottlenecks in a web application?
EDIT: I am not asking about any front end tweaks like images, css etc. What I want to know is how to profile the back end of the application so that I will know which methods/queries to modify to increase the perf...
The closest I've seen in the PHP docs, is to fread() a given length, but that doesnt specify which line to start from. Any other suggestions?
...
Hi
I currently have a php script that reads email messages sent from phones and then it posts them on the internet...
I want to do the same thing but instead of reading emails, I would like to process the data through a SMS.
so, if someone sends a sms to X number, my program would get the message through this X number and use it in th...
I'm trying to sort some data by two columns, but it doesn't seem to be working. What I want are articles sorted by highest ratings first, then most recent date. As an example, this would be a sample output (left # is the rating, then the article title, then the article date)
50 | This article rocks | Feb 4, 2009
35 | This a...
I have the following code, which is the basis for pagination in a larger application. However, it does not work, as although I should be obtaining the value of pg from the url, pg never goes higher than 2. For some reason, next = pg+1; seems to always see pg as 1, regardless of what is passed on the url. It is a similar problem with last...
Is there any way to retrieve the comments from an XML file?
I have an XML file, with comments in it, and i have to build an user-interface based on each node in this file, and the associated comments.
I can't seem to find a way to get those comments. I was able to get 'some' of them using simpleXML, but it didn't work for the root node...
At my company we have a group of 8 web developers for our business web site (entirely written in PHP, but that shouldn't matter). Everyone in the group is working on different projects at the same time and whenever they're done with their task, they immediately deploy it (cause business is moving fast these days).
Currently the develop...
I'd like to be able to edit some static pages using a WYSIWYG editor, such as FCKEditor or TinyMCE. I was wondering if there's any software which can scan a list of webpages in a folder, and then allow certain tagged areas to be edited. Ideally a PHP-based solution would be best.
Thanks.
...
I am trying to output records from a mysql db with simple pagination, however no information is output at all, and no errors are displayed. The error seems to be with the $data query and using mysql_num_rows, as it worked(aside from paginating) before this. Is there some basic error in my logic?
<?php
$query ='';
if (isset($_GET["query...
I have a MySQL table holding lots of records that i want to give the user access to. I don't want to dump the entire table to the page so i need to break it up into 25 records at a time, so i need a page index. You have probably seen these on other pages, they kind of look like this at the base of the page:
< 1 2 3 4 5 6 7 8 9 >
For ex...
I'm working at an app which would make a POST ajax request to a PHP script on my server. The script would query the database and return a row of records, as an array. (One array for each row, containing elements such as id, title, etc). I then want to use json_encode() to encode this array, and pass it back to the javascript which will u...
Hello,
I have the following simple mysqli php application, which should work fine. $pk is accepted perfectly and is a valid ARTICLE_NO, and the query works perfectly when executed directly by mysql. I have put output statements after every event and all except tetsing while executes. The while loop is never entered, and I am unsure why....
I'm looking for a small (not more, than a few megs) web server, which must be capable of running PHP code (with external PHP installation). I would strongly prefer one where it is very easy to change the root directory often. My OS is Windows XP.
I saw these related SO questions:
http://stackoverflow.com/questions/508909/portable-usb-...
Source texts (7):
give 4 cars
ga 5 cars
GA 5 Cars @mustang six exhausts are necessary
Give -1 Cars @mustang
Give Cars @mustang
Give 3 Cars @ford
Give 5 Cars @cobra_gt
The ones which should be successful ate 1,2,3,6,7
preg_match('/Give (\d+) Cars @(\w+)|GA (\d+) Cars @(\w+)/i', $a->text, $output);
print_r($output); produces:
Arra...
I have a website hosted on a provider which doesn't give me with a fixed ip adress so I cannot use https. I would like to edit some page using a webform but in a secure fashion.
The client would be an iphone type device, so a java or flash applet would be out of the question.
Is there a way to still have a secure connection between th...
There was an interesting question in a practice test that I did not understand the answer to. What is the output of the following code:
<?php
class Foo {
public $name = 'Andrew';
public function getName() {
echo $this->name;
}
}
class Bar extends Foo {
public $name = 'John';
public function getName() {
F...