|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
How can I incude a file? (PHP)
Guys how to us incude? I did this code. And says the file does not exisits.
Code:
<?php incude"php/stats/stats.php"; ?>
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++! |
#2
|
||
|
I don't see any incude function on php.net
PHP Code:
|
#3
|
||
|
But when I downloaded another differant source code, then it was like this.
PHP Code:
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++! |
#4
|
||
|
Need to see the whole code .... Manual doesn't have incude in it.
|
#5
|
||
|
Ok here it is...
File = index1.php File2 = stats.txt File One- PHP Code:
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++! |
#6
|
||
|
Don't see the "incude" line you been talking about in the code...
I need to see the code where the "INCUDE" is being used. You know LINE BEFORE "INCUDE" <?php incude'php/stats/stats.php'; ?> LINE AFTER "INCUDE" |
#7
|
|||
|
Quote:
include on php.net: http://us3.php.net/manual/en/function.include.php It sounds like your path isn't correct. You need to make sure that the path is correct, relative to your script. icI |
#8
|
||
|
I think it's fair to assume that incude was a typo that he has just repeated a few times without realising. He must have called include correctly in the script otherwise he would have received a "Call to undefined function" error rather than a file does not exist error.
As icishoot said, you need to check that the path to the file you are including is correct and that the file exists etc. (check for typos aswell).
__________________
|
#9
|
||
|
^^ hehe i think that might work
|
#10
|
||
|
Oh Thanks
__________________
Sorry bums, now I'm back! Now I know C++! I use Microsoft Visual C++! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
incorporate php file upload with MySQL form? | pauldridge | Tech Support | 1 | 06-16-2010 08:46 AM |
Need some file help please | GaryP | Delta Force | 3 | 08-19-2005 04:06 PM |
PHP-NUKE and PHP | ~BLÃÐE~ | phphq.Net Forums | 9 | 01-19-2005 06:49 AM |
Trying to edit a PHP File | katana*GFR* | phphq.Net Forums | 4 | 08-24-2004 05:06 AM |
File Currupted why??! | Muninn | Tech Support | 3 | 03-28-2003 03:14 PM |