beginner and simple question

Links for php scripts

Moderators: macek, egami, gesf

lemo
New php-forum User
New php-forum User
Posts: 25
Joined: Wed Mar 10, 2004 7:24 am

beginner and simple question

Postby lemo » Fri Apr 09, 2004 4:08 am

hi,
My question is: If I have I script file written in PHP, and I am working on DreamweaverMX.
How can I include this file inside my page??
I tried to write this:
<? include 'http://localhost\/dfcalendar.php'; ?>
where the dfcalendar.php is the file that i want to include it.
localhost: is my server.
but there was an error in the line that contain the include statement??
this is the error:
Warning: Failed opening 'http://localhost\/dfcalendar.php' for inclusion (include_path='.;c:\apache\php\pear') in c:\apache\htdocs\final_site\tmp8r58yvwkgx.php on line 147


so plz :help:
Last edited by lemo on Fri Apr 09, 2004 4:13 am, edited 1 time in total.

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Postby gesf » Fri Apr 09, 2004 4:13 am

Use include 'dfcalendar.php'; if the dfcalendar.php is in the same dir as the other one where you want to include dfcalendar.php!

lemo
New php-forum User
New php-forum User
Posts: 25
Joined: Wed Mar 10, 2004 7:24 am

Postby lemo » Fri Apr 09, 2004 4:17 am

thank you gesf, it worked ....


Return to “PHP Scripts”

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests

cron