Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

clearing the complete templates_c - BIG PROBLEM

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
PSiegmund
Smarty Rookie


Joined: 04 May 2003
Posts: 6
Location: Berlin, Germany

PostPosted: Sun May 04, 2003 12:47 pm    Post subject: clearing the complete templates_c - BIG PROBLEM Reply with quote

Hi!

I've got a big problem with the files in the templates_c dir.
At first I started with the parameter "use_sub_dirs=true". In this way I had a writeproblem, so I created the needed dirs manually an cdmoded all to 777. After that it worked, but I decided to turn "use_sub_dirs" off. Now I can't delete the tpl-files in the subdirs of templates_c, because the owner ist "wwwrun" and not my ftp-login.
Does anybody have an idea, how to delete the files? The dirs are own by my ftp-account. So i only want to delete the tpl-files under templates_c subdirs.

Please help me. It's important. I have an ssl account, so i can access my page via putty, but only with my ftp-account.

CU
PSiegmund

PS: I used <?php unlink($file) ?>, but i can't access this files. Sad
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Sun May 04, 2003 12:52 pm    Post subject: Reply with quote

sounds like you aren't setting full paths for your directories ??

see: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=191&start=0

Can that post be made sticky?
Back to top
View user's profile Send private message
PSiegmund
Smarty Rookie


Joined: 04 May 2003
Posts: 6
Location: Berlin, Germany

PostPosted: Sun May 04, 2003 1:18 pm    Post subject: That was the first prob. Reply with quote

That was my first prob.
Later I changed the "use_sub_dirs" settings to false, but smarty has already created files in subdirs (which I created). How can i delete them? This is my prob. Sad
Back to top
View user's profile Send private message Visit poster's website
Wom.bat
Smarty Pro


Joined: 24 Apr 2003
Posts: 107
Location: Munich, Germany

PostPosted: Sun May 04, 2003 1:19 pm    Post subject: Reply with quote

do a $smarty->clear_compiled_tpl(), this erases everything under templates_c
Back to top
View user's profile Send private message
PSiegmund
Smarty Rookie


Joined: 04 May 2003
Posts: 6
Location: Berlin, Germany

PostPosted: Sun May 04, 2003 1:32 pm    Post subject: U R MY HERO Reply with quote

Thanks!!!!

U R MY HERO. It worked. Wink
Back to top
View user's profile Send private message Visit poster's website
Wom.bat
Smarty Pro


Joined: 24 Apr 2003
Posts: 107
Location: Munich, Germany

PostPosted: Sun May 04, 2003 1:34 pm    Post subject: Reply with quote

"Red Zac. You Are My Hero" Smile
Back to top
View user's profile Send private message
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Sun May 04, 2003 3:10 pm    Post subject: Reply with quote

Those animated forum avatars get really annoying
_________________
"Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP