Ik krijg de volgende error.
Jelle Sturm
25/01/2009 15:36:00Strict Standards: Only variables should be passed by reference in /home/template/public_html/admin/inserttemplate.php on line 16
Wat kan ik doen om dit te fixen?
lijn 16:
Wat kan ik doen om dit te fixen?
lijn 16:
PHP hulp
06/11/2024 00:20:44Jesper Diovo
25/01/2009 15:40:00Jelle Sturm
25/01/2009 15:47:00ok.
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
include '../config.php';
ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);
$target = "../images/preview/";
$uploaded_Name = $_FILES['previewe']['name'];
$uploaded_Temp = $_FILES['previewe']['tmp_name'];
$previewe = "http://www.xxx.com/images/preview/".$uploaded_Name ;
// This is the temporary file created by PHP
$uploadedfile = $_FILES['previewe']['tmp_name'];
// Create an Image from it so we can do the resize
$ext = end(explode('.', $uploaded_Name));
if($ext == 'jpg'){
$src = imagecreatefromjpeg($uploadedfile);
}
else if($ext == 'png'){
$src = imagecreatefrompng($uploadedfile);
}
else if($ext == 'gif'){
$src = imagecreatefromgif($uploadedfile);
}
else
{
echo "No preview uploaded";
}[/code]
include '../config.php';
ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);
$target = "../images/preview/";
$uploaded_Name = $_FILES['previewe']['name'];
$uploaded_Temp = $_FILES['previewe']['tmp_name'];
$previewe = "http://www.xxx.com/images/preview/".$uploaded_Name ;
// This is the temporary file created by PHP
$uploadedfile = $_FILES['previewe']['tmp_name'];
// Create an Image from it so we can do the resize
$ext = end(explode('.', $uploaded_Name));
if($ext == 'jpg'){
$src = imagecreatefromjpeg($uploadedfile);
}
else if($ext == 'png'){
$src = imagecreatefrompng($uploadedfile);
}
else if($ext == 'gif'){
$src = imagecreatefromgif($uploadedfile);
}
else
{
echo "No preview uploaded";
}[/code]
- SanThe -
25/01/2009 17:12:00Jelle schreef op 25.01.2009 15:36:
Strict Standards: Only variables should be passed by reference
Lijkt mij duidelijk. Je hebt er nu een functie instaan.
Gewoon twee regels van maken.
Bas
25/01/2009 18:03:00als je nou eens van:
dit maakt:
ik weet niet of het helpt
dit maakt:
ik weet niet of het helpt