...
das sagst du nur solang bis du ein neues Problem findest
Beiträge von Modula
-
-
Glaub nicht, dass das geht.
http://weblab.uni-lueneburg.de/weblab/seminar…fenster#anchor2
-
Zitat von Modula
Pack das ganz nach oben in die PHP dateien die fürs löschen / editieren zuständig sind: [...]
[php:1:84ff15e970]<?php
$mein_benutzername = "flo";
$mein_passwort = "PIEP";
if(!($_SERVER['PHP_AUTH_USER'] == $flo AND $_SERVER['PHP_AUTH_PW'] == $PIEP)) {
header("WWW-Authenticate: Basic realm=\"Administration\"");
header("HTTP/1.0 401 Unauthorized");
echo "401 Unauthorized";
exit;
}
?><html>
<head>
<title>Flat Calendar: Delete Event</title>
<META HTTP-EQUIV="refresh" content="1;URL=../calendar.php">
<LINK rel="stylesheet" type="text/css" name="style" href="../calendar.css">
</head><body bgcolor="#FFFFFF" text="#000000">
<?php
// Include the FFDB library
include("../ffdb.inc.php");//open db or create new db
$db = new FFDB();
if (!$db->open("../calendar"))
{
// Define the database shema.
// Note that the "last_name" field is our key.
$schema = array(
array("event_key", FFDB_INT, "key"),
array("event_name", FFDB_STRING),
array("event_description", FFDB_STRING),
array("event_submitted_by", FFDB_STRING),
array("event_month", FFDB_STRING),
array("event_day", FFDB_INT),
array("event_year", FFDB_INT)
);// Try and create it...
if (!$db->create("calendar", $schema))
{
echo "Error creating database\n";
return;
}
}...........[/php:1:84ff15e970]
Es darf keine leerzeile oder sonstirgendwas über dem Code sein welcher an den Browser gesendet wird, da sonst die header() Funktion nicht funktioniert.
-
kommt auf funktionsumfang und preis der einzelprodukte an - ich brauch IDR nur Dreamweaver und Fireworks wobei ich manchmal glaube, ich würd auch ohne DW auskommen...
-
statt $fp= fopen($file,"a"); nimmst du $fp= fopen($file,"w");
damit wird immer die GANZE datei überschrieben, so?
-
Ein einfaches Fenster was nen einfachen Text (also kein HTML etc.) enthält und die Buttons ja / nein anbietet oder irgendwas besonderes?
-
Nur mit HTML?
Nicht möglich.Optimal wäre eine Kombination aus MySQL und PHP (meiner Meinung nach).
Du hast solange du nur HTML hast nur STRG + F zur Verfügung.
-
-
-
*am Kopf kratzt*
Ich frag mich echt, warum die meine Bewerbung abgelehnt haben...Ich hab nicht gedacht, dass du erwartest dass wir dir den ganzen Code schreiben
Seite 1:
[php:1:6d8874a238]<title>
CLCM Database
</title>
<body bgcolor="#E7B725">
<form name="form2" method="post" enctype="multipart/form-data" action="picupload.php">
<?php include ("menu.php"); ?>
<map name="Map7">
<area shape="rect" coords="0,1,156,23" href="eingabemaske.php">
</map>
<map name="Map11">
<area shape="rect" coords="0,0,102,23" href="type.php">
</map>
<map name="Map12">
<area shape="rect" coords="1,1,133,23" href="producer.php">
</map>
<map name="Map13">
<area shape="rect" coords="2,1,104,24" href="user.php">
</map>
<map name="Map10">
<area shape="rect" coords="1,0,314,27" href="change_details.php">
</map>
<map name="Map9">
<area shape="rect" coords="0,1,312,27" href="add_data.php">
</map>
<map name="Map8">
<area shape="rect" coords="1,1,190,26" href="add_comment_url.php">
</map><table width="80%" border="0" align="center">
<tr>
<td height="24">
<div align="center">
<font size="5" face="Verdana">
Add
Picture to Standard:
</font>
</div>
</td>
</tr>
</table><table width="50%" border="0" align="center">
<tr>
<td>
If you do have a Picture for this device you are able to upload it here
</td>
</tr>
<tr>
<td>Use browse button and enter the new name of the file without extension
in the second field.</p>
</td>
</tr>
<tr>
</tr>
</table>
<table width="50%" border="0" align="center">
<tr>
<td width="31%" height="21" bgcolor="#FF6600">
Upload a Picture
</td>
<td width="69%">
<input type="file" name="uploadedfile" size="30">
</td>
</tr>
<tr>
<td height="21">
</td>
<td>
<input type="hidden" name="max_file_size" value="100000">
<input type="hidden" name="func" value="two">
<input type="hidden" name="id2" value="<?php print "$id"; ?>">
<input type="hidden" name="time" value="
<?php //definition of momental time and date
$ret= time(); print gmdate ("F, d Y H:i" );
?>
">
<input type="submit" value="Send">
</td>
</tr>
</table>
<table width="70%" border="0" align="center">
<tr>
<td>
<div align="center">
Please consider that it is not possible to add more
than one picture for each device.
</div>
</td>
</tr>
</table></p>
</form>
<map name="Map">
<area shape="rect" coords="1,1,77,27" href="bye.php">
</map>
<map name="Map2">
<area shape="rect" coords="1,1,31,38" href="bye.php">
</map>[/php:1:6d8874a238]Seite 2:
[php:1:6d8874a238]<title>
Roche CLCM Database
</title>
<body bgcolor="#E7B725">
<?php
//____________________________________________
//START OF CONFIGURATION
//____________________________________________
//relative path from this script to folder where images must upload
$dir='../pictures';
//apsolut URL path from begin of your site
$apsolut_dir="http://informatics.roche.com/pictures";
//____________________________________________
//END OF CONFIGURATION
//____________________________________________
//begin of code
if (!$func) {
$func = "one";
}
switch ($func) {
case one:
break;
case two:
//collect the name from POST VARS
//$ime="{$HTTP_POST_VARS['picname']}";
$ime = $_FILES['uploadedfile']['name'];
//get type of file
$ekst=$uploadedfile_type;
//get lenght of image type
$duzina=strlen($ekst);
//get part of file image to build image extension
$pos=strpos($ekst,"/")+1;
//build extension of image
$ekstenzija=substr($ekst,$pos,$duzina);
//correct errors with some images
//jpg
if($ekstenzija=="pjpeg"){
$ekstenzija="jpg";
}
//png
if($ekstenzija=="x-png"){
$ekstenzija="png";
}
//wmf
if($ekstenzija=="x-wmf"){
$ekstenzija="wmf";
}
//psd
if($ekstenzija=="octet-stream"){
$ekstenzija="psd";
}
//added in version 0.2
//if the name is empty copy name of image from your HDD
//that correct error if you do not enter new name of image
if (!$ime)
{
$ime=$uploadedfile_name;
}
//build new name of name that you specified, . and extension of image
else {
//$ime.=".".$ekstenzija;
}
//if image exist, upload it in correct dir and save to database
$pic="http://informatics.roche.com/clcm/pictures/".$ime;
//connect include
include ("connect.php");
//Insert Data into table....
$s= OCIParse ($c, "UPDATE TBL_STANDARDS SET PIC='$pic' WHERE ID='$id2'");
OCIExecute ($s, OCI_DEFAULT);
//insert data into tbl_time to enter the date and time from this moment
$s2= OCIParse ($c, "UPDATE TBL_TIME SET TIME='$time'");
OCIExecute ($s2, OCI_DEFAULT);
//commit to save changes...
OCICommit ($c);
if($uploadedfile<>"none") {
if(!copy($uploadedfile,"$dir/$ime"))
{
//display errors
print("Error: image did not send.
");
print("Image is too big or it does not exist.
");
print("Try again.");
}
//or finish
else {
//output
print("Image has been sent.
image location on server is: $apsolut_dir/$ime");
}
}
break;
}
?>
<form name="form1" method="post" action="add_data.php">
<input type="submit" name="Submit" value="go back to add more pictures">
</form>
[/php:1:6d8874a238]Und sag mal den Informatikern, dass der Code den sie da Fabriziert haben zwar stupid aber nicht simple ist
Grausam...
-
green rover war schneller...
-
Ich hab mich bei Roche beworben und die haben mich nicht genommen da meine Leistungen wohl deren meinung nach nicht ihren Erwartungen entsprechen... naja, hätten sie besser mal
Hier ein paar Hilfen:
http://de3.php.net/manual/de/rese…variables.files
http://de3.php.net/manual/de/feat…oad.post-methodWas du suchst wäre dann die variable $_FILES['userfile']['name']
-
Pack das ganz nach oben in die PHP dateien die fürs löschen / editieren zuständig sind:
[php:1:11c1f35dbc]<?php
$mein_benutzername = "Modula";
$mein_passwort = "passwort";
if(!($_SERVER['PHP_AUTH_USER'] == $mein_benutzername AND $_SERVER['PHP_AUTH_PW'] == $mein_passwort)) {
header("WWW-Authenticate: Basic realm=\"Administration\"");
header("HTTP/1.0 401 Unauthorized");
echo "401 Unauthorized";
exit;
}
?>[/php:1:11c1f35dbc] -
Schau mal ins Tutorial Forum
-
gerne doch - hab auch ne weile nach gesucht gehabt
-
Quick Time Starten - und dann anhand angehängter Screenshots
-
Was soll der Kalender denn können?
Für die meisten Forensysteme gibt es Kalender(-addons)
-
sag dem Provider des Webspace er soll den "Zend Optimizer" installieren - du kannst das (normal) eh nicht oder such dir webspace wo er bereits installiert ist.
Alternativ such dir ein nicht codiertes kalenderscript
-
nur e-mail adresse, kein Password?
Evtl. mal selbst bei sf.net suchen, da findet sich sicherlich etwas - zu not halt anpassen - und wenn du gar nichts findest nen einfaches ticket system hat man auch relativ schnell selbst programmiert
-
Zitat von Metal Militia
hab ich festgestellt dass mein Server irgendwie noch gar nicht php fähig ist
erstell mal eine ganz einfache datei mit folgendem inhalt auf deinem webserver mit der endung .php:
[php:1:66588fb2e1]<?php
phpinfo();
?>[/php:1:66588fb2e1]dann rufst du sie im Browser auf und sagst uns was du angezeigt bekommst