Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | need help with pointing to an ubuntu directory. Using LAMPP

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

need help with pointing to an ubuntu directory. Using LAMPP
Reply
 
Thread Tools
Old 25-03-2009, 14:25   #16
Raistlin
Inactive
 
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Raistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered starsRaistlin is seeing silvered stars
Re: need help with pointing to an ubuntu directory. Using LAMPP

No worries, just glad you're sorted

(actually I'm secretly surprised I was able to help at all, I know nothing about PHP )
Raistlin is offline   Reply With Quote
Advertisement
Old 25-03-2009, 14:26   #17
TheDon
Inactive
 
Join Date: May 2007
Posts: 1,567
TheDon has reached the bronze age
TheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze age
Re: need help with pointing to an ubuntu directory. Using LAMPP

Quote:
Originally Posted by funkyCable View Post
What if a picture has been removed or the link in the table is old as the file has been moved to another location?

Do you know if you can create sceduled jobs in mysql like you do with ORACLE?

So I should perhaps have a temp directory that I use to pick up the files/directories
create a reference and store it in the table and once this is done successfully move it to the relivant permanent folder where the image will reside.
It depends how you want to deal with adding and deleting items.

One option is to manually delete the row in the table, which will throw out the indexes but that's pretty trivial to fix, but constantly editing the table can be time consuming.
The other easy option is to drop and rebuild the table anytime you make changes, this will ensure that you aren't missing any indexes, and that everything is up to date, but is the more resource heavy option.

As long as you're not making changes too often I'd personally go with the less hassle 2nd option.

You don't need mySQL to do scheduled jobs, you could just have a cron job running a php script that does the work for you. But even then, you don't really need to schedule it as I assume you'll only be editing the pictures yourself? so you can just run it manually once you've added or removed some pictures.

Alternatively, you could use a filesystem monitoring daemon to automatically run the script when changes in the directory are detected, but that would definitely be overkill.
TheDon is offline   Reply With Quote
Old 25-03-2009, 14:33   #18
funkyCable
Inactive
 
Join Date: Aug 2005
Location: Canvey Island, Essex
Services: SERVICES FROM 26/08/05 TV XL services 2MB BROADBRAND UNLIMITED TALK PACKAGE V+ Service (Since 18
Posts: 1,195
funkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nicefunkyCable is just really nice
Re: need help with pointing to an ubuntu directory. Using LAMPP

I was thinking along the lines of option 2 and thought if there is such a schedule/cron job then it could run over night or once a week or something when there is less traffic so I dont need to remember to do it.
funkyCable is offline   Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:00.


Server: lithium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum