Jump to content

Recommended Posts

Im trying to figure out why my installation of xcart, when I go to the /admin directory, it redirects to my live admin login page. I have a development (http://development.website.com) and a live (http://website.com) installation. When I go to http://development.website.com/admin it redirects me to http://website.com/admin. I'm trying to output the PHP code from the page after executing.

 

Isn't there someway to do something like echo __FILE_CONTENTS__; or something like that? If you have any input about my main problem any advice will be appreciated!

 

Mongoose

Link to comment
https://forums.phpfreaks.com/topic/254623-output-php-code/
Share on other sites

What do you mean exactly by it is "redirecting" you. Are you saying that is it initially loading the development admin site and then there's a page refresh that then loads the live admin page? Or, do you see that the dev URL is initially displayed int he URL address bar and then changes to the live URL when the page is loaded? How are you trying to access the admin site? Are you entering the URL directly or are you clicking a link in the app? If you are clicking a link check that the link is pointing to the correct URL. It could be that the URL is static or there is a problem in how it is dynamically generated.

Link to comment
https://forums.phpfreaks.com/topic/254623-output-php-code/#findComment-1305671
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.