Development Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsCommunityDevelopment Tutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 28th, 2003, 09:45 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
If anyone has any questions or comments, please feel free to post them here...

I'll be more than happy to answer!
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #2  
Old August 30th, 2003, 02:57 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
Glad to see you got the article down to only a handful of pages!

Reply With Quote
  #3  
Old August 30th, 2003, 07:12 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes


I try... LOL

Reply With Quote
  #4  
Old August 31st, 2003, 07:02 PM
farf farf is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Milky Way
Posts: 4 farf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Code layout

I've been trying to figure out how the code presented in the first article should be laid out.URL
URL Does all of it go in one file? Is this the "index.php" page referred to in the second article page? Do you have this already packaged up so I could d/l it?

Great subject, and clear explanations. I just need some help figuring out how it all ties together.

Thanks.

Reply With Quote
  #5  
Old September 4th, 2003, 04:30 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Hey Farf,

THanks for the feedback... I appreciate it!

The code in the first part goes into its own file, GallerySizer.php, which is the main class file used in the gallery application.

In the remaining articles, I indicate which files contain which code... So it's pretty straight-forward.

If you need help with anything, don't hesitate to ask!

Reply With Quote
  #6  
Old September 7th, 2003, 06:32 AM
rudi66 rudi66 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 2 rudi66 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello,
have some problems to create the mysql tables -
there was no dump inside the supported file.

With the tables, listed in Part 1 I get always errors:

SQL: INSERT INTO albums VALUES(0, '11', '11', 0, '', '')Error inserting record: Column count doesn't match value count at row 1

Have anybody the correct mysql dump for this album example ?

thanks,
regards

Udo

Reply With Quote
  #7  
Old September 7th, 2003, 11:38 AM
farf farf is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Milky Way
Posts: 4 farf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you make it look like this, it will probably work: SQL: INSERT INTO albums VALUES(0, '11', '11', 0).

That is one of several errors in the code I've found trying to make this work. Another one is in the "edit_albums.php" script. Notice the last 'addslashes' where the function name is misspelled.

// Retrieve album information
$sql = "SELECT album_id, album_name, album_desc FROM albums WHERE album_id = " . addslahes($_GET['album_id']);

Also, in the "del_albums.php" script, notice that the link points to a file called "edit_album.php" when the name of the script file is actually "edit_albums.php":

// Display error message to user
$msg .= "Album not selected. Please choose an album you wish to delete!";
$msg .= "<br /><a href=\"edit_album.php\">Edit albums</a>";

There's other stuff too. I like the idea of learning from these articles (that is the point, after all), but it would be nice if the code was actually tested before it was presented. It's a great idea, and I want to use this on my site (farfenoogan.com) . The small errors I've found mar what is otherwise a very good, and well-written tutorial. Keep 'em coming, but please test before publishing.

Reply With Quote
  #8  
Old September 9th, 2003, 07:58 PM
trystano trystano is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 45 trystano User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
GD????

Excuse my stupidity here, but what is GD? Is it a program/App I should download inorder to carry out this tutorial?
__________________
Tryst

Reply With Quote
  #9  
Old September 9th, 2003, 10:53 PM
farf farf is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Milky Way
Posts: 4 farf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
GD

GD should be compiled into PHP. Run the PHP script:

<?php

phpinfo();

?>

This will tell you if GD is enabled.

The file "gallery.php " calls a file called "functions.js" supposedly in the include directory. There is no mention of this file in the article, and is not part of the download available at the end of the article. Can anyone tell me where I can find this file?

Reply With Quote
  #10  
Old September 10th, 2003, 06:57 AM
trystano trystano is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 45 trystano User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
GD

I understand now. I have PHP 4.2.3. installed and unfortunately dont have it installed (I will start another thread asking for a simplified way to install GD within PHP).

Farf - Its good UR pointing out these glitches in these articles, as its one thing that annoys me when doing an interesting article and finding that its erroneous, thus pulling your hair out as its something that U would have really loved to have been able to do.

Reply With Quote
  #11  
Old September 10th, 2003, 08:14 AM
Stray Cat Stray Cat is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Kearns, Utah
Posts: 3 Stray Cat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problems with script

I'm having the same problems, have fixed some of them, but now I'm frustrated... it would be nice if there is a debugged script to download somewhere, does anyone have a working copy of this script? (I couldn't find the 'download at the end of the article')

Now that I've found Part 4, I have more of the files, but the script still has bugs.


Help anyone?

These articles should have forward and back links when possible.

I see that the script for BOTH tables have to have an "s" at the end of their names ('albums' and 'photos', not album and photo)

Modified sql:


CREATE TABLE albums (
album_id int(11) NOT NULL auto_increment,
album_name varchar(255) NOT NULL default '',
album_desc text NOT NULL,
album_cover varchar(255) NOT NULL default '',
PRIMARY KEY (album_id),
KEY album_name (album_name)
) TYPE=MyISAM;
CREATE TABLE photos (
photo_id int(11) NOT NULL auto_increment,
photo_title varchar(255) NOT NULL default '',
photo_desc text NOT NULL,
photo_date datetime NOT NULL default '0000-00-00 00:00:00',
photo_location varchar(255) NOT NULL default '',
thumbnail_location varchar(255) NOT NULL default '',
album_id int(11) NOT NULL default '0',
PRIMARY KEY (photo_id),
KEY photo_title (photo_title),
) TYPE=MyISAM;

Last edited by Stray Cat : September 10th, 2003 at 08:44 AM.

Reply With Quote
  #12  
Old September 10th, 2003, 02:17 PM
rudi66 rudi66 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 2 rudi66 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
have someone found the function get_page_load() ?

Without this main album part, the "View Gallery" crashed always:

Fatal error: Call to undefined function: get_page_load()
in /home/www/myserver/html/album/gallery.php on line 20


- udo

Reply With Quote
  #13  
Old September 10th, 2003, 11:10 PM
farf farf is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Milky Way
Posts: 4 farf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I gave up

When I read this article, I had high hopes for it. I would rather roll my own, with a little help on the hard parts, and that's what I thought this article would be. After finding, fixing, and finding more, and fixing more errors, I finally gave up. I downloaded the open source product called "Gallery". This system is excellent, and reasonably straight-forward to install and get working. Check it out at Farfenoogan.com .

Frank, I'm sorry, but you need a technical editor or someone to check your work before publishing more articles. One or two errors is understandable, but the level of errors exibited, not only in the article, but also the support files, is simply unacceptable. You obviously understand the material. I just can't figure it out.

DevArticles, shame on you for allowing this to get published without some quality control measures.

Reply With Quote
  #14  
Old September 11th, 2003, 07:27 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Hey Guys,

I wanted to apologize for the errors people are encountering... When I included the support file, I included one for a system I was working for on a client... Not realizing that some of the code wasn't intended for the article...

I've since made the appropriate changes, and will have the new support file added to the article...

The one thing I'm still having a hard time understanding is why you're experiencing problems with the MySQL...

The original support file should have had the MySQL dump file... I'm not sure why it wasn't there... I'm going to include the dump in this post... Hopefully this will eliminate any of the errors you're having.

To be honest, the "revised" support file only required a handful of changes. I'm condifent that this will solve all your problems, as I've fully tested it on my machine.

Once again, I apologize for the lack of "awareness" on my part. As I said, I mistakingly included some code that shouldn't have been in there, which is why several of the errors were occuring.

If you continue to have any problems, please post them here, and I will gladly address them.
Attached Files
File Type: zip album_sql.zip (608 Bytes, 1083 views)

Reply With Quote
  #15  
Old September 12th, 2003, 01:55 AM
Stray Cat Stray Cat is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Kearns, Utah
Posts: 3 Stray Cat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
No problem, really

Hello again...

farf, I've checked out Gallery. It's really high quality stuff, I particularly like to study the things they've done for security. I decided not to use it though, mainly because I needed something much simpler, and I couldn't seem to figure out the templates so I could make it look better.

FrankieShakes, I appreciate you putting the acticle together and sharing it with us. I for one have learned from it. I've almost got it working, but I think I'm missing the "display()" method from the class GallerySizer (and who knows what else?). I could probably finish it out from here, but it would really be nice to have the whole code...

Is there a place I can download the entire code from?

Reply With Quote
  #16  
Old September 12th, 2003, 12:40 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Stray Cat,

The support file has now been updated to include the latest version (fully tested and includes the MySQL dump file).

If you have any other problems, don't hesitate to let me know...

Reply With Quote
  #17  
Old September 12th, 2003, 01:31 PM
Stray Cat Stray Cat is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Kearns, Utah
Posts: 3 Stray Cat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks again

Hey FrankieShakes, I was having trouble finding Part 4, and in finding the support file... I looked a few days ago, but either didn't see it or it wasn't there. I have the support file now, so I can go back and mess with it some more. Thanks again.

Is it possible for you to add forward and backwards links between the various parts of your article? (I don't know how much control you as an author has over the presentation of an article on the website). If you try to find Part 4 by clicking on the PHP menu item on the left hand side, you wont' find it, and finding Part 3 doesn't help you find Parts 1, 2 or 4.

Last edited by Stray Cat : September 12th, 2003 at 02:36 PM.

Reply With Quote
  #18  
Old September 17th, 2003, 06:52 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Stray Cat,

Yeah... There was a problem with the 4th part showing up under the PHP category... That's been resolved.

As for linking the 4 together, I will see that it gets done... I know how frustrating it can be at times.

Hope you enjoyed the series...

Reply With Quote
  #19  
Old November 9th, 2003, 06:20 AM
siggy siggy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Cambridge UK
Posts: 2 siggy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Frankie,

I liked the tutorial, just what i need, all working fine so far with the exception of when i try to upload photo's i get the following error message.

Warning: copy(../photo/18Sig001.jpeg): failed to open stream: Permission denied in /home/virtual/site....../album/admin/create_thumbnails.php on line 22

Warning: imagecreatefromjpeg(../photo/18Sig001.jpeg): failed to open stream: No such file or directory in /home/virtual/site..../album/admin/GallerySizer.php on line 59
Still here!Images successfully converted and stored!
Click here to continue.

I have been following the threads ... and it would apear others have had this problem .. In fact have you got a fix for it ??

Regards
Siggy

Reply With Quote
  #20  
Old November 14th, 2003, 06:52 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
siggy,

It's actually related to a minor problem with shared hosting environments. The issue was discussed in this thread (http://www.devarticles.com/forum/t4914/s.html#post21037), and a fix was provided by eqjones (that link will take you directly to his fix).

When I wrote the article, I tested it out on my own box, which isn't on a shared hosting environment.

HTH!

Reply With Quote
  #21  
Old December 8th, 2003, 11:35 AM
juaganmu juaganmu is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Benissa
Posts: 2 juaganmu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
new_album.php

Excuse me, but I didn't found the code of the new_album. php.

Can somebody say me what's the code for this file?

Reply With Quote
  #22  
Old December 11th, 2003, 06:57 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
juaganmu,

new_album.php should be add_album.php. There may have been an error in the support file. What file/line is causing this error?

Reply With Quote
  #23  
Old January 1st, 2004, 05:35 PM
tommy_slash tommy_slash is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 tommy_slash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
support file?

Hi
I'm also working on this tutorial since three days now
without success - to much mistakes!
i've copied and pasted the source from the tutorial
as I couldn't find any support file -
please - it would be quiet urgent as I'll have a 4 week lasting trip in 2 weeks - until then I'd like to have the gallery running so that i could upload from anywhere in order to show some photos to my friends.
so does anyone have a running implementation?
greetings from austria
slash

Reply With Quote
  #24  
Old March 28th, 2004, 01:53 PM
SmokieUK SmokieUK is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: United Kingdom
Posts: 1 SmokieUK User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy

I've been trying to get this working, and frustratingly I can't.

Fatal error: Call to undefined function: copyimage() in /home/l/e/lewisc/public_html/m/create_thumbnails.php on line 29

PHP Code:
 29 if($thumb->copyImage()){ 


copyImage doesn't appear in GallerySizer, but copyThumbImage does. If I change copyImage to that, copyResize shows a fatal error instead. So, I change that to copyResizedImage (because it exists in GallerySizer), and it works, almost... lol.

It will resize and upload the thumb nail just fine, but the main image isn't resized, it's just uploaded in its original size. In the database the thumbnail location value somehow is being entered into both the main location and thumbnail location. Thus resulting in the thumbnail image being displayed but the main image not displayed. This area always returns false:

PHP Code:
if(!@chmod($this->thumbnail666))
{
echo(
"Error processing file... Please try again!");
return 
false;



What does this bit do anyway?

Also, the title and description data doesn't appear to be passed into variables, because these areas appear emtpy in the database.

So, if I change the above I get the above errors, but if I change nothing, I get that Call to undefined function: copyimage() error.

Any ideas? I don't think it's ever going to work .

Regards,
Craig.

P.S
I'm still learning and very much a novice, so please go easy lol.


Edit:
PHP Code:
class GallerySizer
{
var 
$img// Original image file object
var $thumb// Thumbnail file object
var $resize// Resized image file name
var $width// Original image width
var $height// Original image height
var $new_width// Resized image width
var $new_height// Resized image height
var $image_path// Path to image
var $thumbscale// Scale to resize thumbnail
var $image_file// Resized image filename
var $thumbnail// Thumbnail image file object
var $random_file// Resized image file name (random) 


Does the closing } appear after (random) or at the end of the GallerySizer script (I don't see one in the article)?
Thanks.

Reply With Quote
  #25  
Old June 9th, 2004, 10:00 AM
Jason Michael Jason Michael is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 Jason Michael User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cool Discussions on DevShed Articles

Hi, I'm a pretty new member here. In fact, this is my first posting.

There's an article here on DevShed that I think should have some followup discussion, by people who have actually tried to use the information it presents. This particular article talks about setting up a PHP Image Gallery using GD and MySQL. I'm sure alot of time went into the creation of the article, but I don't agree with how some of the class functions were put together, especially since they won't work for people actually trying to use the class on a server that has PHP in safe mode (i.e. files can't be written by the PHP script unless directory permissions are set to 777).

In the class function to copy a resized image to a file, it first tries to create the file in the local directory of the class, then copy it to the directory specified using a defined path variable using DEFINE (THUMB_BASE,"[whereever]/thumbs/");, and finally unlink the file... it would have been easier to just do the file creation in the THUMB_BASE directory to begin with. If someone's server is in PHP safe mode, THUMB_BASE directory will need permissions for 777, and then for security, turn off indexing for that directory, if desired.

Also in regards to the GallerySizer class function that is outlined in the first part of the series, I have looked high and low through the two part series of this article, and can't find any code where any of the class functions are used or called upon. Part 1 of the article lists the code and tells how it works. Part 2 talks about creating records in the MySQL database. That's it! The article seems to be missing a key ingredient - how to use the GallerySizer class in conjunction with the MySQL database - otherwise, how can there be a photo album?

In using the GallerySizer class, you have to use each class function in a specific order or it won't work - this is not mentioned in the article, but at least its implied. I sent this article to a friend of mine to look at, who isn't a skilled PHP programmer, but wanted to get a photo album together. Between troubleshooting code that wasn't copied correctly from the article, PHP safe mode / file permissions issues, and a general lack of completeness in the documentation, its been an ardurous process. I would recommend using the class, but changing the functions to create the new images for the thumbnail and the resized image to go directly to the specified paths that you predefine, and then use your own means (I have my own CMS system I've written) to do the photo gallery itself. Good luck.

Jason Michael

Reply With Quote
  #26  
Old June 9th, 2004, 12:38 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: UK
Posts: 160 edwinbrains User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 8 m 4 sec
Reputation Power: 11
Jason: I've merged your thread into the correct thread.

Reply With Quote
  #27  
Old September 24th, 2005, 06:44 AM
markhill markhill is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 1 markhill User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 54 sec
Reputation Power: 0
Thumbs down complete article?

to the author- have all problems been solved? corrections made? I found no support file, spelling errors for table names, and file names. But the bottom line is - is there a corrected version somewhere. I believe Dev Articles should either remove this article or include a clear disclaimer at the header of this article with a link to this forum so people realize what they are getting into to save some unneeded hair pulling. I can understand a few parse errors but incorrect filenames and table names? I dont mean to seem ungrateful but for people trying to learn its important for things to be correct. A wrong answer isnt helpful at all. Such is open source.

Reply With Quote
  #28  
Old September 25th, 2005, 02:44 PM
emmi emmi is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 1 emmi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 28 sec
Reputation Power: 0
Same Problem as SmokieUK

Hi It look like this thread started long time ago

But I'm trying to set up this Photo Album but I get the same Problems as SmokieUK (doesn't find these 2 functions so I solved that the same way as he did) but then I get this error:

!(@copy) Error processing file... Please try again

which is in copyThumbImage functionen in line:
PHP Code:
if(!@copy($this->thumbnailTHUMB_BASE $this->thumbnail))
{
  echo(
"(@copy) Error processing file... Please try again!");
  return 
false;
 } 


Do you know what the problem is?

Reply With Quote
  #29  
Old September 27th, 2005, 07:04 PM
Zoose Zoose is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 1 Zoose User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 3 m 47 sec
Reputation Power: 0
GallerySizer.php problem

Hi there!
Thanks for a nice tutorial. Found a cpl of minor problems that I managed to figure out. However I wasnt able to figure out this one.
when I try to upload my image or images I get this error.


Still here!Error processing file... Please try again!Error inserting record(s) into the database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


Hoopefully someone of you people here canhelp me out

Thanks again!

/ Zoose

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsCommunityDevelopment Tutorials > Article Discussion: Creating An Online Photo Album with PHP and GD: Part 1


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap