Question about The PHP Group PHP

2 Answers

PHP Source When I open the source of my PHP web page, there's no PHP code. Where did my code go to? Why is it doing this?

Posted by on

Ad

2 Answers

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that got 5 achievements.

    Habit-Forming:

    Visited the website for 3 consecutive days.

    New Friend:

    An expert that has 1 follower.

  • Expert
  • 52 Answers

Php is server-side, So the server runs the script, Its not viewable on browser that's why you can't see PHP code. You see the only HTML code when you open the source of the webpage.

Professional PHP Developer ' App Development Company in Melbourne

Posted on Dec 16, 2015

Ad
  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that has over 10 points.

    Mayor:

    An expert whose answer got voted for 2 times.

  • Expert
  • 83 Answers

Hi,

i would like to tell that the php code doesn't appear when you open the source of the webpage , the server hides the php codes simply ,

thanks !

Posted on Sep 03, 2008

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya Technician can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repair professionals here in the US.
click here to Talk to a Technician (only for users in the US for now) and get all the help you need.
Goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

4 Answers

What is the best database to create a Web application ?


Node.js is an open-source, cross-platform JavaScript run-time environment for executing JavaScript code server-side.There are many reasons why developers should use Node.js for web application development, starting with its speed and ending with its proficiency at multi-user, real-time web applications.
Node.Js effective use of JavaScript, Node.js also allows developers to create web servers and networking tools. Additionally, its applications can be run on a variety of servers including Mac OS X, Microsoft Windows, and Unix. Node.js it's an effective solution that we are describing here as the top reasons to use Node.js for web application development.

1] It is fast
Node.js uses V8 engine by Google. It has been written in JavaScript and has an exceptional running speed. Node.js is that it makes the running of the coding (that has been written by developers while developing the program) much faster.

2] It is a good fit for real-time web apps:
Node.js has extraordinary features when it comes to developing real-time applications such as chats application and gaming apps. It is also a good fit for the programs that need an event-based server, as well as non-blocking driven servers. It is worth mentioning that renowned platforms such as PayPal, eBay, LinkedIn, etc. have all been developed using Node.js.

3] Node.js serves as a proxy server:
Node.js has effective features that may be employed to proxy a number of services with differences in their response time. It can also be used to stream the data from different sources. For example, if a server-side application is employed for communicating with third party resources, storing images or collecting data additionally, then Node.js can be used as a proxy server if an enterprise lacks its professional proxy infrastructure.

4] Effective single codebase:
Node.js is now proving its worth as a game-changing technology as developers are able to write JavaScript server-side and client-side coding. And thus, it becomes easy to send and synchronize the data between these two points automatically, helping developers to save time.

NodeJs multitude of benefits, Nodejs development the gaining popularity of this platform could prove to be a turning point for any web development business.

node-js-development-rfbvczbm0ah4v4z4tlnhl14w-5-0.jpg

Feb 22, 2016 | Computers & Internet

1 Answer

I need source code for create login page plz send


Hi,

Can u mention pls... which language(PHP,JAVA... etc) source code is you want.

Thanks and Regards
Trinoj

Aug 05, 2011 | Computers & Internet

2 Answers

Hi jjohnfixer The download works fine U can try for yourself this is in the web root http://pages.videotron.com/mikelac/demosong01.mp3 and i also created another directory with only the files that where...


Hi, Michael. Okay, I found your problem. Your site does not have PHP enabled. To demonstrate, try this link:

http://pages.videotron.com/mikelac//flashmp3player/flashmp3player.php?file_dir=mp3

Expected:

A blank page which, when you view the source of the page, contains a list of filenames to play. That will be the source data for the Flash music player. It looks like this (again, when you "view source" in your browser): http://pastebin.com/EUeSbd8C

Actual:

Instead, you see the source code of the php page. That means the webserver is not actually running the PHP code, it's just treating it like any old text file.

You will need to find a way to enable PHP on your web host.

Create a file called "test.php" in your web root and paste in the little PHP snippet on this page: http://pastebin.com/BaUinLjs

You can use that to tell if PHP is working on your site. It should say just "hello world" and not show any PHP code when you load the page when PHP is enabled.

Hope that helps!

Jan 13, 2011 | Computers & Internet

1 Answer

How to create a chat code or messenger code in php


Are you asking how to start coding a chat program in php or are you asking for code?
If it is code you want - you may wish to look at one of a number of Open Source projects that already do what you want.
http://opensourcescripts.com/dir/PHP/Chat/ has a list of projects that include PHPOpenChat and phpFreeChat. Some use AJEX and PHP others... use other methods.

Jan 27, 2010 | The PHP Group PHP

2 Answers

How can i download the source code of this php script ? http://www.brainhandles.com/testmobile.php if i do a right click and save as instead of the source code, the result html file generated by the php...


Generally the php code executes on the server and you get the results of the code execution not the code itself. The output from the php is html and that is interpreted by the browser that is why you can see it when you select show source.

Anyway, it looks like that site has a bit of a tutorial on how that code works. The description and the code you are looking for is here

Have fun :)

Sep 20, 2009 | Computers & Internet

1 Answer

What is the source code for page navigation in php


check this code snippet
[PHP]
<?php
//If you use it, please link to my site
$full_path = getenv("REQUEST_URI");
//put the base URL in case you need it
$base = "http://subomain.domain.ext";
//Get the name of the file
$page_file = basename($full_path);
//The files are named file_1.php, file_2.php, etc. Extract number from it.
$page_num = substr($page_file
, strrpos($page_file, "_") + 1
, strpos($page_file, ".php") - strrpos($page_file, "_") - 1
);
$partial_path = substr($page_file, 0, strrpos($page_file, "_"));
//Build array of pagenumbers. Here are ten pages.
$all_pages = array (1,2,3,4,5,6,7,8,9,10);
foreach ($all_pages as $all_page)
{
//Create link to all the previus pages and put in prev-image.
if ($all_page < $page_num)
{
print "<a href="$partial_path"."_". $all_page . ".php"><img src="images/prev.gif" alt="$all_page" border="0"></a>";
}
//Create I-am-here-image.
elseif ($all_page == $page_num)
{
print "<img src="images/here.gif" alt="$page_num" border="0">";
}
//Create links to all the next pages and put in next-image.
else
{
print "<a href="$partial_path"."_" . $all_page . ".php"><img src="images/next.gif" alt="$all_page" border="0"></a>";
}
}
?>
[/PHP]

Jul 06, 2009 | Adtran Computers & Internet

1 Answer

Printer only prints source code


Yup ive had customer's come across this issue a number of times try going to mozilla.com and downloading mozilla firefox and then opening a page and try to print and the printout will come out fine its the web software ur using(internet explorer/aol explorer/opera) that is causing this problem.
Please let me know the outcome i may just have another patch for you

Jun 16, 2009 | HP Photosmart C4180 All-In-One InkJet...

3 Answers

Java source code for hospital management system


Sir,
I need a project of Hospital management system. Since client needs project in very sort time so plz send same type of project at my email id that can help me out in database design or full code in a professional way .. Please be in touch with me.
regards Varun kumar
email : er.varunsoft@gmail.com

Apr 18, 2009 | Computers & Internet

1 Answer

I need java source code for chat application reply


Your answer is here:
Solution # 1
http://www.web-tech-india.com/software/jsp_chat.php

Solution # 2
http://www.topshareware.com/java-source-codes-for-chat-application/downloads/1.htm

Solution # 3
http://www.codeproject.com/KB/java/java_applet_chat_with_gui.aspx

Good luck

Feb 26, 2009 | Computers & Internet

Not finding what you are looking for?
The PHP Group PHP Logo

Related Topics:

377 people viewed this question

Ask a Question

Usually answered in minutes!

Top The PHP Group Computers & Internet Experts

dhnguyen

Level 2 Expert

281 Answers

Computer Links

Level 3 Expert

2385 Answers

Mike

Level 3 Expert

4341 Answers

Are you a The PHP Group Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...