Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 10-06-2008, 08:59 PM PHP Assistance
Extreme Talker

Posts: 172
Name: Jason
Location: Tennessee
Trades: 1
I am trying to add

<? include ("display.php"); ?>

to my html page at the bottom. I insert the code but nothing happens.
__________________

Please login or register to view this content. Registration is FREE
|
LordStryfe is offline
Reply With Quote
View Public Profile Visit LordStryfe's homepage!
 
 
Register now for full access!
Old 10-06-2008, 09:32 PM Re: PHP Assistance
Novice Talker

Posts: 14
Name: Ben
Trades: 0
try
<?php include ( "display.php") ?>


- Ben
ForumFiller is offline
Reply With Quote
View Public Profile
 
Old 10-06-2008, 11:37 PM Re: PHP Assistance
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
<? is shorthand for <?php provided that it is enabled in your config. I believe that if you are embedding code into XML or XHTML then you should use the <?php tag rather than <?. Other than that they work the same. I usually just stick to <?php.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by NullPointer; 10-06-2008 at 11:42 PM..
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 10-07-2008, 03:19 AM Re: PHP Assistance
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
(junk posts deleted BTW)

PHP won't run on .htm(l) pages

it has to be a .php extension or you need to have set your server to parse .htm(l) as .php.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to PHP Assistance
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13828 seconds with 12 queries