Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 22-04-2009
Member
 
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?
Reply With Quote
  #2  
Old 22-04-2009
Member
 
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.
Reply With Quote
  #3  
Old 22-04-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: How to view php codes

try this surely helpful to you Web developers text editor
Reply With Quote
  #4  
Old 22-04-2009
Member
 
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.
Reply With Quote
  #5  
Old 22-04-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to view php codes"
Thread Thread Starter Forum Replies Last Post
Transferring field info from 'Gantt Chart' view to 'Resource Usage' view MikeCrayon Microsoft Project 6 24-09-2011 01:32 AM
BlackBerry Storm 9530: Not able to dial neither USSD codes / nor GSM codes Satruijt Portable Devices 7 17-09-2011 11:35 AM
Using view and subview ID in JSF Navigation <from-view-id> Dingbang Software Development 6 23-07-2010 06:05 AM
How to switch from Form view to Design View? AlienKing Software Development 3 24-09-2009 12:29 PM
PUK codes bluediamond Portable Devices 5 03-06-2004 04:37 PM


All times are GMT +5.5. The time now is 01:49 PM.