EasyPHP
EN FR
>download >components >modules >blog >forum >faq >screenshots >introduction

For Windows Vista/Seven issues, please read the FAQ or leave a detailed message

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Warning: getimagesize(image/): failed to open stream: Permission denied avec getimagesize



Posted by: ledisciple1
February 10, 2009 01:16PM
____________________________________________________________________________
<?php
$num_news=$_GET["num_news"];
?>

<?
$sql_info="select
news.date_news as date_news,
news.categorie_news as categorie_news,
news.texte_news as texte_news
from news join img on news.num_news=num_img
where news.num_news ='$num_news'
group by news.num_news";

$req_info = mysql_query($sql_info) or die('Erreur SQL !<br>'.$sql_info.'<br>'.mysql_error());

while($data = mysql_fetch_assoc($req_info))
{
echo '<table width="100%"><tr><td> '.$data['date_news'].'</td><td>'.$data['categorie_news'].'</td></tr><tr><td>'.$data['texte_news'].'</td></tr>';
}

$sql_img="select
nom_img
from news join img on news.num_news=img.num_img
where img.num_img ='$num_news'";

$req_img = mysql_query($sql_img) or die('Erreur SQL !<br>'.$sql_img.'<br>'.mysql_error());

list($width, $height, $type, $attr) = getimagesize('image/'.$data['nom_img']);

$ratio_width=($width*10/100);
$ratio_height=($height*10/100);
?>


<?php
while($data = mysql_fetch_assoc($req_img))
{
echo '<tr><td><a target="blank" href="image/'.$data['nom_img'].'"><img width="'.$ratio_width.'" height="'.$ratio_height.'" src="image/'.$data['nom_img'].'" /> </a></tr></td></table>';
}
?>
____________________________________________________________________________

Bonjour a tous.

J'ai un problème. Losque j'essaye d'utiliser la fonction getimagesize avec easy 1.8 le message suivant apparait : Warning: getimagesize(image/): failed to open stream: Permission denied.

Les chemins d'accès sont corrects et j'ai les permissions sur les images. Donc je ne vois plus qu'easy pour me barrer le chemin.

merci pour votre aide


sorry for my bad english

hello everybody

i've a problem. When I try to use function getimagesize with easy1.8, i have a message : Warning: getimagesize(image/): failed to open stream: Permission denied.

Url(s) haven't any problem and i've all permissions on the pictures.

thank you for your help

Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.