PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old May 27th, 2004, 09:30 AM
Lucifix Lucifix is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 13 Lucifix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can't include PHP

I am totaly newbie with PHP... here is my problem.

I want to include PHP in PHP file. Actauly in table. This is how it looks:
php Code:
Original - php Code
  1.  
  2. ."<br>
  3. <table border=0 width="99%" align="center" cellpadding=0 cellspacing=0 bgcolor="#02243F">
  4.   <tr>
  5.     <td> <table width="100%" border="0" cellspacing="1" cellpadding="0">
  6.       <tr>
  7.          <td bgcolor="#FFFFFF" align="left">   <table width="100%" BACKGROUND="themes/bluebyu3/images/backg.jpg" border="0" cellspacing="0" cellpadding="0">
  8.            <tr>
  9.              
  10.              <td align="left" width="60%">
  11. //PHP Code goes here
  12.  
  13. </tr>
  14.          </table></td>
  15.        </tr>
  16.   </table></td>
  17.  </tr>
  18. </table>
  19. n"


PHP file which I want to include is in other directory (etc. upper code is in /phpforum, and include file is in root directory).

I know that I did totaly mess here, but please try to help me.

Reply With Quote
  #2  
Old May 27th, 2004, 10:07 AM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: Can't include PHP

PHP manual should answer all your questions.
(http://www.php.net/manual/en/function.include.php)

Reply With Quote
  #3  
Old May 27th, 2004, 10:13 AM
Lucifix Lucifix is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 13 Lucifix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Can't include PHP

Thanks for you response, but if I insert this code, nothing shows up
php Code:
Original - php Code
  1.  
  2. <?php
  3. include 'randomt.php';
  4. ?>

Reply With Quote
  #4  
Old May 27th, 2004, 03:11 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: Can't include PHP

Your statement will search for the file using default path (the one which is in your php.ini file). Try using absolute path.

Also the file you are including must be within <?php ?> tags like standard php code.

Reply With Quote
  #5  
Old June 3rd, 2004, 07:08 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Can't include PHP

you forgot the brackets:

php Code:
Original - php Code
  1.  
  2. <?php
  3. include ('filetoinclude');
  4. ?>

Reply With Quote
  #6  
Old June 3rd, 2004, 07:08 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Can't include PHP

you forgot the brackets:

php Code:
Original - php Code
  1.  
  2. <?php
  3. include ('filetoinclude');
  4. ?>

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Can't include PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not 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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway