PDA

View Full Version : More Problems with Code Editor in cPanel


skeezix
12-03-2007, 10:57 AM
Using cPanel 11.11, I can select a file (a php file) and then click either of the edit file options. A browser window opens with the selected file and I an edit it. However, I have no option to save my changes, other than using the File, Save As in the browser menu bar.

Doing this lets me specify a LOCAL filename on my HD, not one that is at my host.

It wasn't always that way, usually I get a Save and Return to Editor button near the top of the window I can click. I'm overlooking something but cannot figure out what it may be. Can somebody perhaps jog my memory?

Basil
12-03-2007, 11:07 AM
The Save Changes button should be at the top of the page, next to the text box containing the name of the file you're editing.

skeezix
12-03-2007, 11:15 AM
Right you are. But I think I have the problem because neither the "Edit file with Code Editor" nor the "Edit file" options allow a php file to be edited online.

If I use them to edit an html file, then I see the Save Changes button.

If that is indeed the case, how does one edit a php file online using cPanel?

Basil
12-03-2007, 11:22 AM
http://img220.imageshack.us/img220/3294/editorre3.gif

Here's the thing, the textbox doesn't resize itself, and it will push those two buttons off the right side of the page if your browser window isn't wide enough. Other than that I'm not sure why you wouldn't be able to see it.

skeezix
12-03-2007, 01:30 PM
And here's what I see:

http://pipsisiwah.home.bresnan.net/images/example.jpg


No Save Changes button, no Open button. Only if the file is an html file will I get those.

Strange, huh?

Early Out
12-03-2007, 02:54 PM
Not strange at all. It appears that there's a line of code in there (line 4, to be precise) that's long enough to blow out the right-hand margin of the window. I'm guessing there's a horizontal scroll bar at the bottom, and if you scroll all the way to the right, the other buttons will magically appear.

skeezix
12-04-2007, 10:47 PM
Ah yes, the old horizontal scroll bar trick.

I think I've been spending too many hours sitting in front of the monitor.

Thanks. That was it!