Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

see php code

cmsms
content management system made simple

is there a way to see the php code when logging on to admin using a browser
ASKER CERTIFIED SOLUTION
Avatar of Darude1234
Darude1234
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

I wish I could do that,
but I can only use the browser.

Do you mean that you don't have access to the server/php files?
You can only display the php-files if you have access to the server. It's not that you can view a php-file of a random website that is running php.
That would be a big security leak ;)
When a browser (called a "client") makes a request for a page from a server (called a "server") the server prepares a response string including headers and browser output.  Browsers use HTML to mark up and format the data from the server.  PHP scripts generate this HTML on the server, and then the server sends the HTML to the client machine.  The PHP code is never sent, just the HTML statements it generates.

But good news: http://www.cmsmadesimple.org/ is open source, so you can grab a copy and install it on your local machine.  Then you can see the PHP code.

My own IDE goes like this.  I use TextPad or NotePad++ to write PHP code.  When I am ready to test, I upload the PHP code to a URL on my server using an FTP client.  Then I visit the URL and see what the PHP code creates.  I do not need to see the PHP code on the server because I have a copy of it in front of me on my machine.

HTH, ~Ray
Avatar of rgb192

ASKER

May not be a security risk because i am Given browser admin access to files and filemanager. Could I download the php files and view them on my computer.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

one answer is to create a browser script another answer is to just use ftp.
both work, thanks