Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1962 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

PHP Code not coming up online in source, but in local it's there

Thread title: PHP Code not coming up online in source, but in local it's there
Closed Thread    
    Thread tools Search this thread Display Modes  
10-22-2005, 06:38 PM
#1
Winters is offline Winters
Status: Member
Join date: Aug 2005
Location: Toronto, Canada
Expertise:
Software:
 
Posts: 213
iTrader: 0 / 0%
 

Winters is on a distinguished road

Send a message via AIM to Winters Send a message via MSN to Winters

  Old  PHP Code not coming up online in source, but in local it's there

Yeah I know a wierd problem, I added this PHP code into my index.php page in dreamweaver, and too prove it is there look at this:



Now after I upload it to this site www.imageuploader.org/index.php and I view source, that php line dissapears :S :



Anyone know where this code is 'dissapearing' too?

10-22-2005, 06:46 PM
#2
techo is offline techo
Status: Lurker
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 1,473
iTrader: 0 / 0%
 

techo is on a distinguished road

  Old

PHP doesn't show up when you view the source code in your browser. The source code hasnt 'dissapeared'. You can only view the PHP source when editing it.

10-22-2005, 06:52 PM
#3
Winters is offline Winters
Status: Member
Join date: Aug 2005
Location: Toronto, Canada
Expertise:
Software:
 
Posts: 213
iTrader: 0 / 0%
 

Winters is on a distinguished road

Send a message via AIM to Winters Send a message via MSN to Winters

  Old

Makes sense than. Thanks

10-22-2005, 09:31 PM
#4
Jako is offline Jako
Jako's Avatar
Status: Jakowenko.com
Join date: Jun 2005
Location: Michigan
Expertise:
Software:
 
Posts: 2,199
iTrader: 3 / 100%
 

Jako is on a distinguished road

  Old

This is because php is a server side script, not a client side script.

11-23-2005, 04:46 AM
#5
xFS.ShibSta is offline xFS.ShibSta
Status: Junior Member
Join date: Nov 2005
Location:
Expertise:
Software:
 
Posts: 31
iTrader: 0 / 0%
 

xFS.ShibSta is on a distinguished road

  Old

PHP is a code that is run through a processor that generates HTML code to display the page.
Therefore when you view script, not only is your code protected but also it can display varibles pulled from a database instead of displaying something like $username.

11-23-2005, 08:03 AM
#6
VistaDiscussion is offline VistaDiscussion
Status: Member
Join date: Nov 2005
Location:
Expertise:
Software:
 
Posts: 149
iTrader: 0 / 0%
 

VistaDiscussion is on a distinguished road

Send a message via MSN to VistaDiscussion

  Old

Php code is serverside programming, Therefore it is executed on the server.

11-23-2005, 05:54 PM
#7
Jen is offline Jen
Status: Member
Join date: Dec 2004
Location: Australia
Expertise:
Software:
 
Posts: 413
iTrader: 0 / 0%
 

Jen is on a distinguished road

  Old

PHP is serverside. HTML/CSS is clientside.

It must be dreamweaver's problem. When you save it and your code is disappearing or missing. Try copy all your original php codes and paste in a new notepad then save as index.php or whatever called.

Let me know how's it going.

11-23-2005, 07:09 PM
#8
Aros is offline Aros
Aros's Avatar
Status: Lurker
Join date: Jul 2004
Location: the Netherlands
Expertise:
Software:
 
Posts: 1,074
iTrader: 2 / 100%
 

Aros is on a distinguished road

  Old

This thread is over a month old and the question has been answered 5 times...

12-06-2005, 02:45 AM
#9
lcryan is offline lcryan
Status: I'm new around here
Join date: Dec 2005
Location: BOSTON
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

lcryan is on a distinguished road

Send a message via MSN to lcryan

  Old

Originally Posted by Winters
Yeah I know a wierd problem, I added this PHP code into my index.php page in dreamweaver, and too prove it is there look at this:



Now after I upload it to this site www.imageuploader.org/index.php and I view source, that php line dissapears :S :



Anyone know where this code is 'dissapearing' too?
hehe, yeah php needs to be protected because it can contain very important information like usernames passwords mysql info ect. that could cause mega problems if someone found that out. To make anything show in php just echo

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed