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

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.

    Hot-Shot:

    An expert who has answered 20 questions.

  • 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

  • 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

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 expert 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 repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (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:

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

We wish to track clicks and link to our web site from a flash animation. We were supplied with the code below. How do I add the link information? on (release) { if (clickTAG.substr(0,5) == "http:") {...


copy and paste. copy your code open your web site .look for the view source in the dropdown menus at the top of the page, open,
your html code for your site appears then find out where to insert it.there are other methods no more i know

Apr 16, 2009 | Macromedia Contribute 3 And FlashPaper 2...

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:

373 people viewed this question

Ask a Question

Usually answered in minutes!

Top The PHP Group Computers & Internet Experts

Robin Hill
Robin Hill

Level 3 Expert

1260 Answers

Mike

Level 3 Expert

4332 Answers

Mishan Kasiparsad

Level 2 Expert

142 Answers

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

Answer questions

Manuals & User Guides

Loading...