wo liegt der fehler ?

Seite 1 von 1 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/wo_liegt_der_fehler_39102/page_1 - zur Vollversion wechseln!


Ezekiel schrieb am 25.06.2002 um 21:16

also, folgendes:
wenn ich eine datei erstelle und folgendes reinschreibe:

Code: PHP
$fp=fopen("threads/thread_$title2.php",'w');
		fputs($fp,"<html>
						<head>
							<title>The Holy Rams Clanhomepage</title>
							<link rel='stylesheet' type='text/css' href='styles.css'>
						</head>
						<body style='background-color:#a9a9a9;'>
							<table cellspacing=0 cellpadding=0 align='center' height=100% width=95%>
								<tr>
									<td valign='top' width=550 style='background-color:#003300' height=20>
										<h4>Forum</h4>
									</td>
								</tr>
								<tr>
									<td valign='top' marginwidth=10>
										<br>
										<table cellspacing=0 cellpadding=0 align='center' width=95% style='border: 0px'>
											<tr>
												<td width=100%>
													<table style='border:0px' width=100%>
														<tr>
															<td align='left'>
																<a href='home/usr/thr-clan/forum/forum.php'>Forum Index</a> &gt -thr- Allgemein &gt $title</a>
															</td>
															<td align='right'>
																<a href='newthread.htm'>New Thread</a>																				 				 </td>
														</tr>
													</table>
													<br>
													<table style='border: 0px' cellspacing=0 width=95%>
														<?php $fp=fopen('thread_$titel2.txt','r'); fpassthru($fp); ?>
													</table>
													<br><br>
													<hr width=100%><div align='center' style='font-size:9;'>© 2002 by The Holy Rams Clan</div>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</body>
		</html>");
		
	fclose($fp);
.... dann steht wenn ich mir das file am server anschaue immer statt "$fp" "ressource id#3" !
1.) woran liegt das ?
2.) kann ichs ändern ?

mfg und thx im vorraus


that schrieb am 25.06.2002 um 21:37

Entferne mal alle Zeilen, die mit dem Problem nichts zu tun haben, dann schaut sichs vielleicht wer an. Oder du kommst dann selbst drauf.




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025