I have a database with reservations for items. All reservations have an: ID , item ID, personWhoBookedId, time_from (unixtime) , time-to(unixtime).
I like to display a day per day time schedual from hour to hour, and colour the timethat an item is booked and display the personWhoBookedID on that timeframe.
like:
room1:
5:00 - 6:00: ...
I have this code header("location:login_success.php");
The frame target code that I used in html doesn't seem to work, is there a counter part in php that you can define where the header("location:login_success.php"); will go?
This is in relation to designing the logout. I'm having problems because I have 3 frames. Is there any solution ...
I'm trying to build VERY basic model->controller->view structure with CodeIgniter. I'd rather use models (and model functions, more importantly) and controllers than executing queries within each view.
First off, here's the model:
class Leads extends Model {
function Leads()
{
parent::Model();
}
function fetch...
I know there are many posts about using CRON to run a php file. But, in the world of shared hosting, and ease of setup for a user, I don't want to have to mess with that.
I found another solution online that has to do with sockets. Just wanted to get everyones take on this, and tell me if this is a good or bad idea. Sounds like it wo...
Hi.
I'm running production server with 12 projects written in PHP and Python (Django framework).
The problem is that every time i commit something to svn i have to ssh to server and do svn update manually. I've made a simple shell script for this, but it's definitenly not an option.
I thought about capistrano+webistrano, but for this i'...
In my application, I have a number of controllers with the same prefix. For the sake of example, let's say they are:
my_posts
my_users
my_letters
The URLs generated for these are obviously:
/my_posts/view/1
/my_users/add
/my_letters/whatever
I'd like to set up some custom routing so that I can use the URLs like this:
/my/posts/vie...
Hi.
Researching various open source, web-based document management/version control systems. I've checked google/questions here, etc...
I'm looking for a lightweight web-based (apache) document mgmt/version control app that runs on top of SVN.
I need to have the ability to:
have multiple users checkin/checkout
have a workflow (when u...
Hi, I recently saw a website in which the url was formulated like this:
http://subdomain.domain.com/script/?var=value
I was wondering how to do this in IIS, and how he put a slash in between the script and the GET variables, and how he had the script with no extension in the first place. Any help?
...
Hi, I am planning to build a web app running on a single computer and exploit the hardware resources as efficient as possible. The logic of app will not be complex. The following is my design:
OS: Linux (CentOS 5)
Web Server: Nginx
Web script: PHP
Database: Tokyo cabinet + Tokyo Tyrant
Index: Sphinx
I am not going to use RDBMS such...
Hi,
I'm trying to build a functionality for the users of my site to "screen scrap" websites of their choice and I'm looking for a toolkit that allows me to do that OR a third party site that allows other sites (like mine) to use their interface.
Let me try explaining it better. I have customers on my site. These customers are intereste...
I have a typical database query:
$query = mysql_query('SELECT titulo,referencia FROM cursos WHERE tipo=1 AND estado=1');
and I can convert it in an array and print the data:
while ($results=mysql_fetch_array($query)): ?>
echo $results['referencia'];
// and so...
endwhile;
but in some cases I need to print the same data in another p...
My web application uses UserId almost throughout the entire application..
what is the most efficient way to secure a session variable in php?
Is session vulnerable to attacks?
Should i keep my encrypted value of UserId in session?
Any suggestion...
...
I have a web page that displays images that I don't know their size in advance. I was trying to use the GD functions to make the script resize and crop the images from me " Just before they are displayed.. I don't need caches" but I failed.
I need a script that I can call like this
<img src="display.php?src=blablabla&height=100&width=20...
So I've got all of this really neato PHP code and I've started doing some reuse with functions out of necessity. I'm debugging, trying to figure out why I can't delete comments on my website while I'm deleting folder (because who wants orphaned comments?)
So I have a call to deletefolder( $parent) inside a file called deletefolder.php....
Can someone explain me
what is Object Cloning in php?
When should i use clone keyword in php?
...
Is there a way to retain values of textfield/textbox when a user submits a form? i only want to retain values with errors or values I specify.
For example i am posting to 10 blogs and 1-9 gets posted succesfully so I only want to retain the value from 10 when a page load after form submission. Can I do that? how?
...
This question is about Dashboard.addNews and Dashboard.publishActivity
Facebook has told the public about its new Dashboard API, however it hasn't provided any updates on its library to use the new code.
So I followed the advice in this link
http://forum.developers.facebook.com/viewtopic.php?pid=197753
to add the new functions to the ...
Hi there,
I have the following php code below...
if ($username == 'fredk')
{ $fname = 'Fred'; }
else if ($username == 'arbonk')
{ $fname = 'Arbon'; }
else if ($username == 'arsalana')
{ $fname = 'Arsalan'; }
else if ($username == 'minhn')
{ $fname = 'Minh'; }
else if ($username == 'nathanielg')
{ $fname = 'Nathaniel'; }
$msg =...
I'm working on a PHP Real Estate catalog. I am working on the search part right now and I'm having trouble with the logic.
Should the default view show all items in the catalog or the search page? Should the code flow handle search first or individual view first?
Ideas, tips, links are appreciated. Thanks.
...
I have a excel i need to add some more sheets into the excel using PHP, i have used PEAR, there i tried only can write excel and read a file, not able to read and modify the file, guys can you help me in this?
Thanks in advance
Prabu
...