Computing.Net > Forums > Programming > PHP image gallery

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP image gallery

Reply to Message Icon

Name: jus71n742
Date: February 8, 2009 at 20:16:14 Pacific
OS: Window XP x64
CPU/Ram: 2.31 /4GB
Product: Amd / kingston / Opteron 2356/4gb
Subcategory: General
Comment:

I am tinkering with a php script and I am having a hell of a time getting it to call the images correctly.
I am receiving the following errors.
Warning: fopen(.txt) [function.fopen]: failed to open stream: No such file or directory in /home8/roanekar/public_html/title.php on line 10

Warning: fgets(): supplied argument is not a valid stream resource in /home8/roanekar/public_html/title.php on line 11

Warning: fopen(.txt) [function.fopen]: failed to open stream: No such file or directory in /home8/roanekar/public_html/gallery.php on line 14

Warning: fgets(): supplied argument is not a valid stream resource in /home8/roanekar/public_html/gallery.php on line 15

I have the following code in gallery .php and title.php
location of error in lines 10/11 of Title.php
$fp = fopen($piclist, 'r');

while ($buffer= fgets($fp,4096)) {

$image[$y] = explode("|", $buffer);

$photo[$y] = str_replace(".", "_tn.", $image[$y][0]);

$y++;

and gallery.php
$fp = fopen($piclist, 'r');

while ($buffer= fgets($fp,4096)) {

$image[$y] = explode("|", $buffer);

$photo[$y] = str_replace(".", "_tn.", $image[$y][0]);

$y++;

}



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Error code message respon... Count comma in each line ...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: PHP image gallery

PHP + Images from MSSQL www.computing.net/answers/programming/php-images-from-mssql/7479.html

IE6 & Gif image problem www.computing.net/answers/programming/ie6-amp-gif-image-problem/7609.html

mapping a image (X and Y) with PHP www.computing.net/answers/programming/mapping-a-image-x-and-y-with-php/11366.html