|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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); ?> |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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 --> |
|
#5
|
|||
|
|||
|
RE: include security
WHAT IS GOING ON HERE?!
*CONFUSED FACE* |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > include security |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|