First php text problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

First php text problem

Postby iftekhar » 25. November 2010 05:53

Hello everyone,this is my first post after installing xampp 1.7.3 lite.As usual,like every newcomer I get in a problem.
That is in the notepad when i want to save text as a test.php it saves as test.php.text.Then I changed the "hide extension"from the tools menu and try again.It didnot work.After that,download scite.exe(suggested by someone in this forum):finally i able to save a text as a php.But Result is the same"object not found"
is there anythis else i have to do?I also have the notepad plus downloaded but not installed.
Thank you for ur patience.
iftekhar
 
Posts: 8
Joined: 25. November 2010 05:39

Re: First php text problem

Postby Altrea » 25. November 2010 06:06

iftekhar wrote:That is in the notepad when i want to save text as a test.php it saves as test.php.text.

If you want to save a file with Windows notepad in a different file-type then .txt then you have to change the filetype in the save dialog from "textfiles (*.txt)" to "All Filetypes" (or something like that). But to use a php-script-editor is always the better solution, thats right.

iftekhar wrote:finally i able to save a text as a php.But Result is the same"object not found"
is there anythis else i have to do?I

That depends. But you don't say anything about where you have saved the .php file and how you tried to access/request it. So i can't say anything about what you are doing wrong.

iftekhar wrote:also have the notepad plus downloaded but not installed.

Thats my favorite editor. Give it a try, maybe you like it too :D
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: First php text problem

Postby iftekhar » 25. November 2010 06:50

That depends. But you don't say anything about where you have saved the .php file and how you tried to access/request it. So i can't say anything about what you are doing wrong.


I saved it to htdocs(a folder named example) in the xampp
iftekhar
 
Posts: 8
Joined: 25. November 2010 05:39

Re: First php text problem

Postby Altrea » 25. November 2010 08:55

Altrea wrote:... and how you tried to access/request it ...
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: First php text problem

Postby iftekhar » 25. November 2010 12:29

Altrea wrote:
Altrea wrote:... and how you tried to access/request it ...

Then test the put http://localhost to check the xampp status.it works.Well anyway i made a php file by notepad++
and put this in htdocs/example folder.Now i can access the http://localhost/example
It shows me contains in the folder.but when trying to any file then it shows a blank page now' Here is the picture; for your better understandings.

Image

that doesnot show the php file.still they are php.
iftekhar
 
Posts: 8
Joined: 25. November 2010 05:39

Re: First php text problem

Postby Altrea » 25. November 2010 12:42

Well, without your sourcecode, i can't say anything about your blank page problem.
But you can show the sourcecode your browser gets from the server. Maybe there are some hidden outputs which can explain what error occurs.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: First php text problem

Postby iftekhar » 25. November 2010 14:16

Altrea wrote:Well, without your sourcecode, i can't say anything about your blank page problem.
But you can show the sourcecode your browser gets from the server. Maybe there are some hidden outputs which can explain what error occurs.

How can i find out the sourcecode for that page.
iftekhar
 
Posts: 8
Joined: 25. November 2010 05:39

Re: First php text problem

Postby Altrea » 25. November 2010 14:18

Output-Sourcecode: in Mozilla Firefox => CTRL+U
File-Sourcecode: Open your File with an editor.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: First php text problem

Postby iftekhar » 27. November 2010 14:05

Altrea wrote:Output-Sourcecode: in Mozilla Firefox => CTRL+U
File-Sourcecode: Open your File with an editor.

Here it is.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb">
<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="en-gb" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

<title>Apache Friends Support Forum &bull; View topic - First php text problem</title>



<!--
phpBB style name: prosilver
Based on style: prosilver (this is the default phpBB3 style)
Original author: Tom Beddard ( http://www.subBlue.com/ )
Modified by:

NOTE: This page was generated by phpBB, the free open-source bulletin board package.
The phpBB Group is not responsible for the content of this page and forum. For more information
about phpBB please visit http://www.phpbb.com
-->

<script type="text/javascript">
// <![CDATA[
var jump_page = 'Enter the page number you wish to go to:';
var on_page = '1';
var per_page = '';
var base_url = '';
var style_cookie = 'phpBBstyle';
var style_cookie_settings = '; path=/; domain=.apachefriends.org';
var onload_functions = new Array();
var onunload_functions = new Array();



/**
* Find a member
*/
function find_username(url)
{
popup(url, 760, 570, '_usersearch');
return false;
}

/**
* New function for handling multiple calls to window.onload and window.unload by pentapenguin
*/
window.onload = function()
{
for (var i = 0; i < onload_functions.length; i++)
{
eval(onload_functions[i]);
}
}

window.onunload = function()
{
for (var i = 0; i < onunload_functions.length; i++)
{
eval(onunload_functions[i]);
}
}

// ]]>
</script>
<script type="text/javascript" src="./styles/prosilver/template/styleswitcher.js"></script>
<script type="text/javascript" src="./styles/prosilver/template/forum_fn.js"></script>

<link href="./styles/prosilver/theme/print.css" rel="stylesheet" type="text/css" media="print" title="printonly" />
<link href="./style.php?id=1&amp;lang=en_us&amp;sid=55442b84a461fbbebf9ed2c0d4113ece" rel="stylesheet" type="text/css" media="screen, projection" />

<link href="./styles/prosilver/theme/normal.css" rel="stylesheet" type="text/css" title="A" />
<link href="./styles/prosilver/theme/medium.css" rel="alternate stylesheet" type="text/css" title="A+" />

<link href="./styles/prosilver/theme/large.css" rel="alternate stylesheet" type="text/css" title="A++" />



</head>

<body id="phpbb" class="section-viewtopic ltr">

<div id="wrap">
<a id="top" name="top" accesskey="t"></a>
<div id="page-header">
<div class="headerbar">
<div class="inner"><span class="corners-top"><span></span></span>

<div id="site-description">
<a href="./index.php" title="Board index" id="logo"><img src="./styles/prosilver/imageset/site_logo.gif" width="139" height="52" alt="" title="" /></a>
<h1>Apache Friends Support Forum</h1>
<p></p>
</div>


<div id="search-box">
<form action="./search.php" method="post" id="search">

<fieldset>
<input name="keywords" id="keywords" type="text" maxlength="128" title="Search for keywords" class="inputbox search" value="Search…" onclick="if(this.value=='Search…')this.value='';" onblur="if(this.value=='')this.value='Search…';" />
<input class="button2" value="Search" type="submit" /><br />
<a href="./search.php" title="View the advanced search options">Advanced search</a>
</fieldset>
</form>
</div>


<span class="corners-bottom"><span></span></span></div>
</div>

<div class="navbar">
<div class="inner"><span class="corners-top"><span></span></span>

<ul class="linklist navlinks">
<li class="icon-home"><a href="./index.php" accesskey="h">Board index</a> <strong>&#8249;</strong> <a href="./viewforum.php?f=34">XAMPP in English</a> <strong>&#8249;</strong> <a href="./viewforum.php?f=16">XAMPP for Windows</a></li>

<li class="rightside"><a href="#" onclick="fontsizeup(); return false;" onkeypress="return fontsizeup(event);" class="fontsize" title="Change font size">Change font size</a></li>

<li class="rightside"><a href="./viewtopic.php?f=16&amp;t=42802&amp;start=0&amp;view=print" title="Print view" accesskey="p" class="print">Print view</a></li>
</ul>



<ul class="linklist rightside">
<li class="icon-faq"><a href="./faq.php" title="Frequently Asked Questions">FAQ</a></li>

<li class="icon-pages"><a href="/f/impressum.php">Imprint</a></li>

<li class="icon-register"><a href="./ucp.php?mode=register">Register</a></li>
<li class="icon-logout"><a href="./ucp.php?mode=login" title="Login" accesskey="x">Login</a></li>

</ul>

<span class="corners-bottom"><span></span></span></div>
</div>

</div>

<a name="start_here"></a>
<div id="page-body">

<h2><a href="./viewtopic.php?f=16&amp;t=42802&amp;start=0">First php text problem</a></h2>
<!-- NOTE: remove the style="display: none" when you want to have the forum description on the topic body --><div style="display: none !important;">Problems with the Windows version of XAMPP, questions, comments, and anything related. <br /></div>

<div class="topic-actions">

<div class="buttons">

<div class="reply-icon"><a href="./posting.php?mode=reply&amp;f=16&amp;t=42802" title="Post a reply"><span></span>Post a reply</a></div>


</div>


<div class="search-box">
<form method="post" id="topic-search" action="./search.php?t=42802">
<fieldset>
<input class="inputbox search tiny" type="text" name="keywords" id="search_keywords" size="20" value="Search this topic…" onclick="if(this.value=='Search this topic…')this.value='';" onblur="if(this.value=='')this.value='Search this topic…';" />
<input class="button2" type="submit" value="Search" />
<input type="hidden" value="42802" name="t" />
<input type="hidden" value="msgonly" name="sf" />

</fieldset>
</form>
</div>

<div class="pagination">
9 posts
&bull; Page <strong>1</strong> of <strong>1</strong>

</div>


</div>
<div class="clear"></div>


<div id="p168671" class="post bg2">
<div class="inner"><span class="corners-top"><span></span></span>

<div class="postbody">


<h3 class="first"><a href="#p168671">First php text problem</a></h3>

<p class="author"><a href="./viewtopic.php?p=168671#p168671"><img src="./styles/prosilver/imageset/icon_post_target.gif" width="11" height="9" alt="Post" title="Post" /></a>by <strong><a href="./memberlist.php?mode=viewprofile&amp;u=48709">iftekhar</a></strong> &raquo; 25. November 2010 05:53 </p>



<div class="content">Hello everyone,this is my first post after installing xampp 1.7.3 lite.As usual,like every newcomer I get in a problem.<br />That is in the notepad when i want to save text as a test.php it saves as test.php.text.Then I changed the &quot;hide extension&quot;from the tools menu and try again.It didnot work.After that,download scite.exe(suggested by someone in this forum):finally i able to save a text as a php.But Result is the same&quot;object not found&quot;<br />is there anythis else i have to do?I also have the notepad plus downloaded but not installed.<br />Thank you for ur patience.</div>



</div>


<dl class="postprofile" id="profile168671">
<dt>
<a href="./memberlist.php?mode=viewprofile&amp;u=48709">iftekhar</a>
</dt>



<dd>&nbsp;</dd>

<dd><strong>Posts:</strong> 4</dd><dd><strong>Joined:</strong> 25. November 2010 05:39</dd>

</dl>


<div class="back2top"><a href="#wrap" class="top" title="Top">Top</a></div>

<span class="corners-bottom"><span></span></span></div>

</div>

<hr class="divider" />

<div id="p168672" class="post bg1">
<div class="inner"><span class="corners-top"><span></span></span>

<div class="postbody">


<h3 ><a href="#p168672">Re: First php text problem</a></h3>
<p class="author"><a href="./viewtopic.php?p=168672#p168672"><img src="./styles/prosilver/imageset/icon_post_target.gif" width="11" height="9" alt="Post" title="Post" /></a>by <strong><a href="./memberlist.php?mode=viewprofile&amp;u=41947">Altrea</a></strong> &raquo; 25. November 2010 06:06 </p>



<div class="content"><blockquote><div><cite>iftekhar wrote:</cite>That is in the notepad when i want to save text as a test.php it saves as test.php.text.</div></blockquote><br />If you want to save a file with Windows notepad in a different file-type then .txt then you have to change the filetype in the save dialog from &quot;textfiles (*.txt)&quot; to &quot;All Filetypes&quot; (or something like that). But to use a php-script-editor is always the better solution, thats right.<br /><br /><blockquote><div><cite>iftekhar wrote:</cite>finally i able to save a text as a php.But Result is the same&quot;object not found&quot;<br />is there anythis else i have to do?I</div></blockquote><br />That depends. But you don't say anything about where you have saved the .php file and how you tried to access/request it. So i can't say anything about what you are doing wrong.<br /><br /><blockquote><div><cite>iftekhar wrote:</cite>also have the notepad plus downloaded but not installed.</div></blockquote><br />Thats my favorite editor. Give it a try, maybe you like it too <img src="./images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /></div>

<div id="sig168672" class="signature"><span style="font-style: italic">It's like porn for programmers</span> <img src="./images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /></div>

</div>


<dl class="postprofile" id="profile168672">
<dt>
<a href="./memberlist.php?mode=viewprofile&amp;u=41947">Altrea</a>
</dt>



<dd>&nbsp;</dd>

<dd><strong>Posts:</strong> 1162</dd><dd><strong>Joined:</strong> 17. August 2009 13:05</dd>

</dl>


<div class="back2top"><a href="#wrap" class="top" title="Top">Top</a></div>

<span class="corners-bottom"><span></span></span></div>
</div>

<hr class="divider" />

<div id="p168673" class="post bg2">
<div class="inner"><span class="corners-top"><span></span></span>

<div class="postbody">


<h3 ><a href="#p168673">Re: First php text problem</a></h3>

<p class="author"><a href="./viewtopic.php?p=168673#p168673"><img src="./styles/prosilver/imageset/icon_post_target.gif" width="11" height="9" alt="Post" title="Post" /></a>by <strong><a href="./memberlist.php?mode=viewprofile&amp;u=48709">iftekhar</a></strong> &raquo; 25. November 2010 06:50 </p>



<div class="content"><blockquote class="uncited"><div>That depends. But you don't say anything about where you have saved the .php file and how you tried to access/request it. So i can't say anything about what you are doing wrong.</div></blockquote><br /><br />I saved it to htdocs(a folder named example) in the xampp</div>



</div>


<dl class="postprofile" id="profile168673">

<dt>
<a href="./memberlist.php?mode=viewprofile&amp;u=48709">iftekhar</a>
</dt>



<dd>&nbsp;</dd>

<dd><strong>Posts:</strong> 4</dd><dd><strong>Joined:</strong> 25. November 2010 05:39</dd>

</dl>


<div class="back2top"><a href="#wrap" class="top" title="Top">Top</a></div>

<span class="corners-bottom"><span></span></span></div>
</div>

<hr class="divider" />

<div id="p168677" class="post bg1">

<div class="inner"><span class="corners-top"><span></span></span>

<div class="postbody">


<h3 ><a href="#p168677">Re: First php text problem</a></h3>
<p class="author"><a href="./viewtopic.php?p=168677#p168677"><img src="./styles/prosilver/imageset/icon_post_target.gif" width="11" height="9" alt="Post" title="Post" /></a>by <strong><a href="./memberlist.php?mode=viewprofile&amp;u=41947">Altrea</a></strong> &raquo; 25. November 2010 08:55 </p>



<div class="content"><blockquote><div><cite>Altrea wrote:</cite>... and how you tried to access/request it ...</div></blockquote></div>

<div id="sig168677" class="signature"><span style="font-style: italic">It's like porn for programmers</span> <img src="./images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /></div>

</div>


<dl class="postprofile" id="profile168677">
<dt>
<a href="./memberlist.php?mode=viewprofile&amp;u=41947">Altrea</a>
</dt>



<dd>&nbsp;</dd>

<dd><strong>Posts:</strong> 1162</dd><dd><strong>Joined:</strong> 17. August 2009 13:05</dd>

</dl>


<div class="back2top"><a href="#wrap" class="top" title="Top">Top</a></div>

<span class="corners-bottom"><span></span></span></div>
</div>

<hr class="divider" />

<div id="p168680" class="post bg2">
<div class="inner"><span class="corners-top"><span></span></span>

<div class="postbody">


<h3 ><a href="#p168680">Re: First php text problem</a></h3>

<p class="author"><a href="./viewtopic.php?p=168680#p168680"><img src="./styles/prosilver/imageset/icon_post_target.gif" width="11" height="9" alt="Post" title="Post" /></a>by <strong><a href="./memberlist.php?mode=viewprofile&amp;u=48709">iftekhar</a></strong> &raquo; 25. November 2010 12:29 </p>



<div class="content"><blockquote><div><cite>Altrea wrote:</cite><blockquote><div><cite>Altrea wrote:</cite>... and how you tried to access/request it ...</div></blockquote></div></blockquote><br />Then test the put <!-- m --><a class="postlink" href="http://localhost">http://localhost</a><!-- m --> to check the xampp status.it works.Well anyway i made a php file by notepad++<br />and put this in htdocs/example folder.Now i can access the <!-- m --><a class="postlink" href="http://localhost/example">http://localhost/example</a><!-- m --><br />It shows me contains in the folder.but when trying to any file then it shows a blank page now' Here is the picture; for your better understandings.<br /><br /><a href="http://img17.imageshack.us/my.php?image=89924012.png" class="postlink"><img src="http://img17.imageshack.us/img17/3686/89924012.png" alt="Image" /></a><br /><br />that doesnot show the php file.still they are php.</div>



</div>


<dl class="postprofile" id="profile168680">
<dt>
<a href="./memberlist.php?mode=viewprofile&amp;u=48709">iftekhar</a>
</dt>



<dd>&nbsp;</dd>

<dd><strong>Posts:</strong> 4</dd><dd><strong>Joined:</strong> 25. November 2010 05:39</dd>

</dl>


<div class="back2top"><a href="#wrap" class="top" title="Top">Top</a></div>

<span class="corners-bottom"><span></span></span></div>

</div>

<hr class="divider" />

<div id="p168682" class="post bg1">
<div class="inner"><span class="corners-top"><span></span></span>

<div class="postbody">


<h3 ><a href="#p168682">Re: First php text problem</a></h3>
<p class="author"><a href="./viewtopic.php?p=168682#p168682"><img src="./styles/prosilver/imageset/icon_post_target.gif" width="11" height="9" alt="Post" title="Post" /></a>by <strong><a href="./memberlist.php?mode=viewprofile&amp;u=41947">Altrea</a></strong> &raquo; 25. November 2010 12:42 </p>



<div class="content">Well, without your sourcecode, i can't say anything about your blank page problem.<br />But you can show the sourcecode your browser gets from the server. Maybe there are some hidden outputs which can explain what error occurs.</div>

<div id="sig168682" class="signature"><span style="font-style: italic">It's like porn for programmers</span> <img src="./images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /></div>

</div>


<dl class="postprofile" id="profile168682">
<dt>

<a href="./memberlist.php?mode=viewprofile&amp;u=41947">Altrea</a>
</dt>



<dd>&nbsp;</dd>

<dd><strong>Posts:</strong> 1162</dd><dd><strong>Joined:</strong> 17. August 2009 13:05</dd>

</dl>


<div class="back2top"><a href="#wrap" class="top" title="Top">Top</a></div>

<span class="corners-bottom"><span></span></span></div>
</div>

<hr class="divider" />

<div id="p168683" class="post bg2">

<div class="inner"><span class="corners-top"><span></span></span>

<div class="postbody">


<h3 ><a href="#p168683">Re: First php text problem</a></h3>
<p class="author"><a href="./viewtopic.php?p=168683#p168683"><img src="./styles/prosilver/imageset/icon_post_target.gif" width="11" height="9" alt="Post" title="Post" /></a>by <strong><a href="./memberlist.php?mode=viewprofile&amp;u=24392">wole</a></strong> &raquo; 25. November 2010 12:44 </p>



<div class="content">short tag ???</div>



</div>


<dl class="postprofile" id="profile168683">
<dt>
<a href="./memberlist.php?mode=viewprofile&amp;u=24392">wole</a>
</dt>



<dd>&nbsp;</dd>

<dd><strong>Posts:</strong> 397</dd><dd><strong>Joined:</strong> 11. April 2007 10:37</dd>

</dl>


<div class="back2top"><a href="#wrap" class="top" title="Top">Top</a></div>

<span class="corners-bottom"><span></span></span></div>

</div>

<hr class="divider" />

<div id="p168685" class="post bg1">
<div class="inner"><span class="corners-top"><span></span></span>

<div class="postbody">


<h3 ><a href="#p168685">Re: First php text problem</a></h3>
<p class="author"><a href="./viewtopic.php?p=168685#p168685"><img src="./styles/prosilver/imageset/icon_post_target.gif" width="11" height="9" alt="Post" title="Post" /></a>by <strong><a href="./memberlist.php?mode=viewprofile&amp;u=48709">iftekhar</a></strong> &raquo; 25. November 2010 14:16 </p>



<div class="content"><blockquote><div><cite>Altrea wrote:</cite>Well, without your sourcecode, i can't say anything about your blank page problem.<br />But you can show the sourcecode your browser gets from the server. Maybe there are some hidden outputs which can explain what error occurs.</div></blockquote><br />How can i find out the sourcecode for that page.</div>



</div>


<dl class="postprofile" id="profile168685">
<dt>
<a href="./memberlist.php?mode=viewprofile&amp;u=48709">iftekhar</a>

</dt>



<dd>&nbsp;</dd>

<dd><strong>Posts:</strong> 4</dd><dd><strong>Joined:</strong> 25. November 2010 05:39</dd>

</dl>



<div class="back2top"><a href="#wrap" class="top" title="Top">Top</a></div>

<span class="corners-bottom"><span></span></span></div>
</div>

<hr class="divider" />

<div id="p168686" class="post bg2">
<div class="inner"><span class="corners-top"><span></span></span>

<div class="postbody">


<h3 ><a href="#p168686">Re: First php text problem</a></h3>
<p class="author"><a href="./viewtopic.php?p=168686#p168686"><img src="./styles/prosilver/imageset/icon_post_target.gif" width="11" height="9" alt="Post" title="Post" /></a>by <strong><a href="./memberlist.php?mode=viewprofile&amp;u=41947">Altrea</a></strong> &raquo; 25. November 2010 14:18 </p>



<div class="content">Output-Sourcecode: in Mozilla Firefox =&gt; CTRL+U<br />File-Sourcecode: Open your File with an editor.</div>

<div id="sig168686" class="signature"><span style="font-style: italic">It's like porn for programmers</span> <img src="./images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /></div>

</div>


<dl class="postprofile" id="profile168686">
<dt>
<a href="./memberlist.php?mode=viewprofile&amp;u=41947">Altrea</a>
</dt>



<dd>&nbsp;</dd>

<dd><strong>Posts:</strong> 1162</dd><dd><strong>Joined:</strong> 17. August 2009 13:05</dd>

</dl>


<div class="back2top"><a href="#wrap" class="top" title="Top">Top</a></div>

<span class="corners-bottom"><span></span></span></div>
</div>

<hr class="divider" />

<form id="viewtopic" method="post" action="./viewtopic.php?f=16&amp;t=42802&amp;start=0">

<fieldset class="display-options" style="margin-top: 0; ">

<label>Display posts from previous: <select name="st" id="st"><option value="0" selected="selected">All posts</option><option value="1">1 day</option><option value="7">7 days</option><option value="14">2 weeks</option><option value="30">1 month</option><option value="90">3 months</option><option value="180">6 months</option><option value="365">1 year</option></select></label>

<label>Sort by <select name="sk" id="sk"><option value="a">Author</option><option value="t" selected="selected">Post time</option><option value="s">Subject</option></select></label> <label><select name="sd" id="sd"><option value="a" selected="selected">Ascending</option><option value="d">Descending</option></select> <input type="submit" name="sort" value="Go" class="button2" /></label>

</fieldset>

</form>
<hr />


<div class="topic-actions">
<div class="buttons">

<div class="reply-icon"><a href="./posting.php?mode=reply&amp;f=16&amp;t=42802" title="Post a reply"><span></span>Post a reply</a></div>

</div>


<div class="pagination">
9 posts
&bull; Page <strong>1</strong> of <strong>1</strong>

</div>

</div>


<p></p><p><a href="./viewforum.php?f=16" class="left-box left" accesskey="r">Return to XAMPP for Windows</a></p>

<form method="post" id="jumpbox" action="./viewforum.php" onsubmit="if(document.jumpbox.f.value == -1){return false;}">


<fieldset class="jumpbox">

<label for="f" accesskey="j">Jump to:</label>

<select name="f" id="f" onchange="if(this.options[this.selectedIndex].value != -1){ document.forms['jumpbox'].submit() }">

<option value="-1">Select a forum</option>
<option value="-1">------------------</option>
<option value="31">Apache Friends</option>

<option value="1">&nbsp; &nbsp;Apache Friends</option>

<option value="12">&nbsp; &nbsp;Ankündigungen und Neuigkeiten</option>


<option value="2">&nbsp; &nbsp;Allerlei</option>

<option value="32">XAMPP auf Deutsch</option>

<option value="4">&nbsp; &nbsp;XAMPP für Windows</option>

<option value="3">&nbsp; &nbsp;XAMPP für Linux</option>

<option value="28">&nbsp; &nbsp;XAMPP für Mac OS X</option>


<option value="24">&nbsp; &nbsp;XAMPP für Solaris</option>

<option value="9">&nbsp; &nbsp;XAMPP-Wunschzettel</option>

<option value="26">&nbsp; &nbsp;XAMPP AddOns</option>

<option value="33">Grundlagen und Wissenswertes</option>

<option value="5">&nbsp; &nbsp;Apache</option>


<option value="7">&nbsp; &nbsp;MySQL</option>

<option value="6">&nbsp; &nbsp;PHP</option>

<option value="8">&nbsp; &nbsp;Perl</option>

<option value="11">&nbsp; &nbsp;ProFTPD</option>

<option value="14">&nbsp; &nbsp;phpMyAdmin</option>


<option value="15">&nbsp; &nbsp;Webmin</option>

<option value="27">&nbsp; &nbsp;FileZilla</option>

<option value="34">XAMPP in English</option>

<option value="13">&nbsp; &nbsp;Announcements and news</option>

<option value="16" selected="selected">&nbsp; &nbsp;XAMPP for Windows</option>


<option value="17">&nbsp; &nbsp;XAMPP for Linux</option>

<option value="29">&nbsp; &nbsp;XAMPP for Mac OS X</option>

<option value="25">&nbsp; &nbsp;XAMPP for Solaris</option>

</select>
<input type="submit" value="Go" class="button2" />
</fieldset>

</form>


<h3>Who is online</h3>
<p>Users browsing this forum: No registered users and 6 guests</p>
</div>

<div id="page-footer">

<div class="navbar">
<div class="inner"><span class="corners-top"><span></span></span>

<ul class="linklist">
<li class="icon-home"><a href="./index.php" accesskey="h">Board index</a></li>

<li class="rightside"><a href="./memberlist.php?mode=leaders">The team</a> &bull; <a href="./ucp.php?mode=delete_cookies">Delete all board cookies</a> &bull; All times are UTC + 1 hour </li>
</ul>

<span class="corners-bottom"><span></span></span></div>
</div>

<!--
We request you retain the full copyright notice below including the link to www.phpbb.com.
This not only gives respect to the large amount of time given freely by the developers
but also helps build interest, traffic and use of phpBB3. If you (honestly) cannot retain
the full copyright we ask you at least leave in place the "Powered by phpBB" line, with
"phpBB" linked to www.phpbb.com. If you refuse to include even this then support on our
forums may be affected.

The phpBB Group : 2006
//-->

<div class="copyright">Powered by <a href="http://www.phpbb.com/">phpBB</a> &copy; 2000, 2002, 2005, 2007 phpBB Group

</div>
</div>

</div>

<div>
<a id="bottom" name="bottom" accesskey="z"></a>

</div>

<script type="text/javascript" src="mobiquo/tapatalkdetect.js"></script>
</body>
</html>
iftekhar
 
Posts: 8
Joined: 25. November 2010 05:39

Re: First php text problem

Postby Altrea » 27. November 2010 14:10

Thats the sourcecode your browser shows you, when you request one of the php files which just show a blank page?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: First php text problem

Postby iftekhar » 27. November 2010 14:13

Altrea wrote:Thats the sourcecode your browser shows you, when you request one of the php files which just show a blank page?

Amazing it shows
<?
echo "Hello World,This is My First PHP Script";
?>
iftekhar
 
Posts: 8
Joined: 25. November 2010 05:39

Re: First php text problem

Postby Altrea » 27. November 2010 14:15

short_open_tags

try <?php instead of <?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: First php text problem

Postby iftekhar » 27. November 2010 14:21

Altrea wrote:short_open_tags

try <?php instead of <?


I dont get it.Are you trying to say me to write php like this
<?echo "Hello World,This is My First PHP Script";?>
iftekhar
 
Posts: 8
Joined: 25. November 2010 05:39

Re: First php text problem

Postby Altrea » 27. November 2010 14:23

iftekhar wrote:<?
echo "Hello World,This is My First PHP Script";
?>

Thats your sourcecode now.

But it should be
Code: Select all
<?php
echo "Hello World,This is My First PHP Script";
?>


Exact the same with php echo:
instead of
Code: Select all
<?=$var?>


use this
Code: Select all
<?php echo $var; ?>
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: First php text problem

Postby iftekhar » 27. November 2010 14:33

Altrea wrote:
iftekhar wrote:<?
echo "Hello World,This is My First PHP Script";
?>

Thats your sourcecode now.

But it should be
Code: Select all
<?php
echo "Hello World,This is My First PHP Script";
?>


It is working!! absolutely amazing.after long time finally i have done it by ur help.Keep surprising me.
Image
iftekhar
 
Posts: 8
Joined: 25. November 2010 05:39


Return to XAMPP for Windows

Who is online

Users browsing this forum: jeanneotts and 108 guests