Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
August 25, 2008 - Time to Vote for the August 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 30, 2008, 06:34:56 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Can I reload a .php file through cpanel  (Read 145 times)
twinthings
Trekkie
**
Offline Offline

Posts: 18


« on: July 24, 2008, 08:13:34 PM »

Hi
I am wondering if someone can tell me. I have an oscommerce site, and I have been advised to reload a new categories.php to my store as the preview page in my catalogue is messed up and i cannot edit new or pre existing products. I have never done a backup through my cpanel so I am wondering if this is what I was suppose to do for them to advise me to reload a new categories php.

Fiona
Logged
MichaelT
Support
Galactic Royalty
*****
Offline Offline

Posts: 283


« Reply #1 on: July 25, 2008, 04:49:40 AM »

Hi Fiona,

Yes, you can use the File Manager in cPanel to "reload" a php page (upload a new copy from your local computer). When you do it should overwrite the original page.
Logged

Michael Torrance
Customer Service Representative

Lunarpages Web Hosting
Lunarpages Forums
Lunarpapages Affiliate Program

Telephone: 1-714-521-8150
Fax: 1-714-521-8195
twinthings
Trekkie
**
Offline Offline

Posts: 18


« Reply #2 on: July 26, 2008, 05:01:55 PM »

When you say upload it from your computer, do you mean from my FTP. If so I have tried this and choose to 'overwrite' but still the same.

fiona
Logged
twinthings
Trekkie
**
Offline Offline

Posts: 18


« Reply #3 on: July 26, 2008, 05:18:48 PM »

I have also tried to upload it throught c panel, It still hasn't worked(that is if I have done it right).
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3237



« Reply #4 on: July 26, 2008, 07:54:40 PM »

Your file permission should be 644 (or maybe 755). If it's 444, it will fail to overwrite. You can view (and if necessary, change), the permission in cPanel > File Manager (the same place you tried uploading). Some FTP clients may be able to do that, too.
Logged

twinthings
Trekkie
**
Offline Offline

Posts: 18


« Reply #5 on: July 26, 2008, 08:18:06 PM »

Hi what I could see my permission was 644, changed to 755 and tried to upload but still have my messed up categories.php in my oscommerce site.

fiona
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3237



« Reply #6 on: July 26, 2008, 08:46:38 PM »

If categories.php on your server is either 644 or 755, you should be able to overwrite it. Are you sure you're uploading your new copy to the right place? If using cPanel > File Manager, be sure to click on the folder icon to the left of the name to navigate to that directory (and not on the directory name itself).

You're sure that you have a clean copy of the file that you're trying to upload, and not an old corrupted copy?
Logged

twinthings
Trekkie
**
Offline Offline

Posts: 18


« Reply #7 on: July 26, 2008, 08:52:09 PM »

That is a good point about the file may be an old corrupted file.
How do I know and how do I find a file that isn't corrupted. Sorry I am a newbie and trying to manage my oscommerce site with helps from forums.
Forgive me if this is a green question, I have never backed up though by c panel,
fiona
Logged
Raiden32992
Intergalactic Cowboy
*****
Offline Offline

Posts: 67


« Reply #8 on: August 01, 2008, 06:31:38 AM »

Anytime I update a PHP file, I renamed the current to php-file-1.html(yes .html to cease any php processes), and upload the new php-file.php.

Try that. Also, if the new one works you can(don't know if its recommended, I always do) delete php-file-1.html.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM