ltwCalendar
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsProjectsltwCalendar

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old February 2nd, 2007, 10:13 PM
jtjohnston jtjohnston is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Quebec, Canada
Posts: 4 jtjohnston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
include security

I'm sure this is a security protocol problem I can switch off. My installation works:
http://www.stfrancisdistrict.qc.ca/calendar/calendar.php
But when I try to include it on:
http://www.stfrancisdistrict.qc.ca/index.html nothing happens.
include("/home/***/calendar/calendar.php");
Where is the switch?

Reply With Quote
  #2  
Old February 2nd, 2007, 10:40 PM
jtjohnston jtjohnston is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Quebec, Canada
Posts: 4 jtjohnston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: include security

To follow it up, I can get the calendar to display, but any other PHP I try to run after it does not display. It is as if your code kills any further instance of PHP.
http://www.stfrancisdistrict.qc.ca/

If I include something before, I get these errors in Apache.

[Fri Feb 2 17:09:21 2007] [error] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/calendar/items.php:24) in /home/***/public_html/calendar/private/ltwdisplaymonth.php on line 142
[Fri Feb 2 17:09:21 2007] [error] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/calendar/items.php:24) in /home/***/public_html/calendar/private/ltwdisplaymonth.php on line 143
[Fri Feb 2 17:09:21 2007] [error] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/calendar/items.php:24) in /home/***/public_html/calendar/private/ltw_header.php on line 9
[Fri Feb 2 17:09:21 2007] [error] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/calendar/items.php:24) in /home/***/public_html/calendar/private/ltw_header.php on line 10

I created item.php to do this:

<?php

$myconnection = mysql_connect($server,$user,$pass);
mysql_select_db($db,$myconnection);

$now = strtotime('yesterday');
$future = strtotime('+ 30 days');

$sql = "select * from `jtjohnston_stfrancis`.`events` order by `event_date`";
#echo $sql."<br>".$now."<br>".$future;

$news = mysql_query($sql) or die(print mysql_error());

while ($mydata = mysql_fetch_object($news))
{
$updated = strtotime($mydata->event_date);
if (($updated >= $now) and ($updated <= $future))
{
echo "<b>$mydata->name</b> (".date("l, F j, Y", strtotime($mydata->event_date)).")<br>.$mydata->event_date ($mydata->start_time))n<blockquote>".nl2br($mydata->description)."n<br>$mydata->location</blockquote><hr size=1>n";
}
}
mysql_close($myconnection);
?>

Reply With Quote
  #3  
Old February 2nd, 2007, 11:00 PM
jtjohnston jtjohnston is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Quebec, Canada
Posts: 4 jtjohnston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: include security

I figure there is a die command in here. I have fixed the header problem by commenting yours out.
I don't want to comment out die commands, unless I have to.

Reply With Quote
  #4  
Old February 3rd, 2007, 12:03 AM
jtjohnston jtjohnston is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Quebec, Canada
Posts: 4 jtjohnston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: include security

Problem fixed. it was your html. This line in ltwfooter.php must finish with "-->"

<!-- Close the table cell & row it is in -->

Reply With Quote
  #5  
Old February 3rd, 2007, 09:18 AM
Frazz Frazz is offline
The Frazzman
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Melbourne, Victoria, Australia
Posts: 126 Frazz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 54 m 58 sec
Reputation Power: 3
RE: include security

WHAT IS GOING ON HERE?!

*CONFUSED FACE*

Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > include security


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek