home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 3509
Discussions: 188,361, Posts: 2,243,343, Members: 232,588
Old January 28th, 2005, 07:36 PM     #41 (permalink)
Senior Member
 
James T's Avatar
 
Join Date: Jul 2004
Location: New Zealand
Posts: 582
Quote:
Originally Posted by VHockey86
You'll need the text inside to be in an "echo" block for that to work though right?
?

James T is offline   Reply With Quote
Old January 29th, 2005, 12:20 AM     #42 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,327
Well, simply enclosing some text inside of a <?php ?> block isnt going to make it show up on the page (in fact, you'll get a parse error if you don't)
you need to use the "echo" command to pass it there

like this:

Code:
<html>
<head>
</head>
<body>
Some testing stuff outside of php <br>
<?php echo "some stuff inside php"; ?><Br>
Some more stuff outside of php.
</body>
</html>


Last edited by VHockey86 : January 29th, 2005 at 12:24 AM.
VHockey86 is offline   Reply With Quote
Old January 29th, 2005, 02:04 AM     #43 (permalink)
Senior Member
 
James T's Avatar
 
Join Date: Jul 2004
Location: New Zealand
Posts: 582
Ah, you misunderstood.

If you enclose say <p>some text.</p> inside like <? <p>some text.</p> ?> then mod_php treats it as a comment and never sends <p>some text.</p> at all. But if it fails you see some text.?> displayed by your web browser or <? <p>some text.</p> ?> if you look at it raw.

The point being a simple test for php being present. And one I had tested on my own box.

James T is offline   Reply With Quote
Reply


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

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian install on NTFS HD? rsteve Linux and Unix 6 February 11th, 2004 11:55 PM
DO LINUX/WINDOWS USERS FAVOR INTEL/AMD ? MegalosSkylaki Applications and Operating Systems 39 January 2nd, 2003 06:21 PM
Linux sande Applications and Operating Systems 18 August 14th, 2002 09:30 PM
thinking of switching to mandrake freem Applications and Operating Systems 34 December 11th, 2001 09:11 PM

Most Active Discussions
Is It Just Me? (2866)
Obama plans to CUT taxes (48)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (432)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Dual Modem Connection for Internet? (6)
Titan quest and Immortal Throne, an.. (17)
FolderChat: Weekend time again! (375)
Recent Discussions
VISTA (1)
fuji finepix (6)
dual monitor, and video? (21)
Upgrading RAM (3)
Dual booting problem (2)
CS/COND ZERO AGAIN (2)
Best Graphic card under 110£ (2)
Screensavers in Vista (6)
Artifact problem (2)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 02:41 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28