Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cannot edit php files


naughtynix

Recommended Posts

Posted

Cannot seem to enable the function to edit the php files on my account? all I seem to get is 2 buttons "store files" or "Remove" as per the pic below

screenjr9.jpg

 

does this mean i do not have the required permissions to edit or is there something I can do to enable me to edit!!

 

Bought this off a guy on ebay and he configured it I just added products and item information, I have seen that you can add or change the PHP code but cannot find anyway of doing this myself? Unfortunately not in contact with the guy I bought it off as well

 

PLEASE HELP!!!

Posted

You really need to use something OTHER than the osC File Mangler Manager.

 

Login and use the File Manager in your sites Control Panel (NOT OSC!) or transfer the file to your PC and use Notepad or similar text editor (NOT WORD!)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Normally, you would ftp to your computer the file that you want to edit. You then edit edit the file using a pure text editor (free ones are available -use google to find one that suits you). Then you ftp the edited file back to the correct place.

 

So you bought on ebay, when osc id free to download and use.

Posted
You really need to use something OTHER than the osC File Mangler Manager.

 

Login and use the File Manager in your sites Control Panel (NOT OSC!) or transfer the file to your PC and use Notepad or similar text editor (NOT WORD!)

 

how do I login to my file manager other then OSC? i only ever used this thats why i cannot seem to find the way of editing it.

Posted

When you got your web space, did you not get a username/password and a place to login to to manage your account?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
how do I login to my file manager other then OSC? i only ever used this thats why i cannot seem to find the way of editing it.

I think Germ was referring to the filemanager in your web hosts control panel. Do remember to back up before making changes.

Posted
I think Germ was referring to the filemanager in your web hosts control panel. Do remember to back up before making changes.

Hi Jim, will leave it to you.

Posted

G'day Leslie.

:thumbsup:

 

Naughtynix, using FTP or your site's Control Panel - either one works better that the osC File Manager.

 

The major reason I can think of to familiarize yourself with your Control Panel is that you may need to use it to change file permissions because sometimes FTP can't do that.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
G'day Leslie.

:thumbsup:

 

Naughtynix, using FTP or your site's Control Panel - either one works better that the osC File Manager.

 

The major reason I can think of to familiarize yourself with your Control Panel is that you may need to use it to change file permissions because sometimes FTP can't do that.

That is true. I never have a problem changing permissions using filezilla, but the control panel is the fall back position.

 

I suggest filezilla (or similar) because it is easier to have a backup copy on the PC. Hell, I have the whole site backed up on my PC, and I do my edits in the site that is under wamp (wham, bang, thank you ma'am - instantaneously see the effects of errors I make). Sometimes I use winmerge, or dreamweaver, or ultraedit, or phpdesigner. I am not fussed, so long as it is easy.

Posted

Lucy,

 

Unless I'm missing the point of your question completely, you can edit the PHP files two different ways.

 

The first method in built into osc. If you can add products, you should have all the access you need. Log into the admin area (ex: www.mystore.com/store/admin) - you'll have to enter your ID and PW. When the Admin screen appears, click Tools and you will have to enter your ID and PW again. When the next window appears, click on Define Languages in the menu on the left side. A two-column list of some of the component-php files will appear. Click on the one you want to edit and it will open in an dialog box that allows you to edit that file. Why only certain of the component-php files appear and not others, I don't know.

 

The second method assumes that you can access your store site at your host's location. Assuming that is true, you can simply navigate to the file you want, FTP it back to your computer, make the edit changes you want and FTP it back to the host.

 

A lesson I learned the hard way. When you download a PHP file via FTP to edit locally, change the name of the copy on the host (something like: old-index.php). If by any remote chance you make a mistake in your editing, you can rename old-index.php and remove the 'old-' and you're back where you started from.

 

Dave

Posted
Lucy,

 

Unless I'm missing the point of your question completely, you can edit the PHP files two different ways.

 

The first method in built into osc. If you can add products, you should have all the access you need. Log into the admin area (ex: www.mystore.com/store/admin) - you'll have to enter your ID and PW. When the Admin screen appears, click Tools and you will have to enter your ID and PW again. When the next window appears, click on Define Languages in the menu on the left side. A two-column list of some of the component-php files will appear. Click on the one you want to edit and it will open in an dialog box that allows you to edit that file. Why only certain of the component-php files appear and not others, I don't know.

 

The second method assumes that you can access your store site at your host's location. Assuming that is true, you can simply navigate to the file you want, FTP it back to your computer, make the edit changes you want and FTP it back to the host.

 

A lesson I learned the hard way. When you download a PHP file via FTP to edit locally, change the name of the copy on the host (something like: old-index.php). If by any remote chance you make a mistake in your editing, you can rename old-index.php and remove the 'old-' and you're back where you started from.

 

Dave

Bad practice to rename to something.php, better of using something else as the extension.

 

If you keep using the filemanager is osc, it will bite you on the backside.

Posted

Coopco,

 

Please explain why do you say

Bad practice to rename to something,php, better of using something else as the extension.

I've done that for years in my database and web design work and have NEVER had a problem. I do the temporary renaming just as an expedient while testing code change. If the change works and I'm happy with it, I delete the 'old-' file. If there is an unexpected consequence from my code change, I can very easily back up to the previous version of the file.

 

Also, how (or why does using the psc fimemanager 'bite you on the backside'?

If you keep using the filemanager is osc, it will bite you on the backside.

I haven't had the osc (or php experience) to the degree you have, and I'm interested in learning, so I'd really like to know the reason behind these two comments.

 

Dave

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...