Results 1 to 5 of 5

Thread: How to view php codes

  1. #1
    Join Date
    Mar 2009
    Location
    Ghana
    Posts
    15

    How to view php codes

    I will like to konw to i will view a websites php codes. anybody to help me?

  2. #2
    Join Date
    Apr 2008
    Posts
    2,139

    Re: How to view php codes

    You can use this view only once PHP program along with your current PHP log-in program. This code will allow you to restrict access to a particular file. The user can view the resource only once within a pre-set ammount of time. The username, password, date and the users IP address are written to a logfile. The code compares the username and password combonations for a match and determines if the alloted time limit has expired. If all is well the function returns back to your actual log-in program. There is a few configuration options like if you want to be notified if the user attempts to log-in a second time. The ipLogFile.txt file will need to have writable permissions in order for the program to write the users data to the logfile.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: How to view php codes

    try this surely helpful to you Web developers text editor

  4. #4
    Join Date
    Dec 2008
    Posts
    202

    Re: How to view php codes

    Here is an example:

    PHP Code:
    <?php
        
    Echo "My PHP Page";
        
    ?>
    We can see that the PHP code is echoing the line My PHP Page, however, it is the server that reads this code and then knows to send My PHP Page to your browser. Since the rest of the code is just instructions for the server, it doesn't send anything else. So a view source or a save will simply be the text My PHP Page, that was sent to the browser from the server when it read our file.

    And to view source of any PHP build web site is not possible until an unless you have the privileges to work on its backend, but you are able to see the page source where you could find on which PHP version it is based on.

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How to view php codes

    Like many other languages, PHP is executed server side so your code never actually gets to the user's browser. Instead, the results of your PHP are sent to the user's browser. For this reason, if you try to view the source from your browser, or if you try to save the file from your browser, it just won't work. The browser never actually gets any PHP code.

Similar Threads

  1. Replies: 6
    Last Post: 24-09-2011, 01:32 AM
  2. Replies: 7
    Last Post: 17-09-2011, 11:35 AM
  3. Using view and subview ID in JSF Navigation <from-view-id>
    By Dingbang in forum Software Development
    Replies: 6
    Last Post: 23-07-2010, 06:05 AM
  4. How to switch from Form view to Design View?
    By AlienKing in forum Software Development
    Replies: 3
    Last Post: 24-09-2009, 12:29 PM
  5. PUK codes
    By bluediamond in forum Portable Devices
    Replies: 5
    Last Post: 03-06-2004, 04:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,830,010.86612 seconds with 16 queries