473,513 Members | 11,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Include Is Not Working

28 New Member
I am using an include file in my php program. This include file is not working with php program file ,but it is working with browser(http://yoga.womans-health.net/Includes/NewsFeed.php?CAT=About+Yoga). Code is given below
Expand|Select|Wrap|Line Numbers
  1. include  'http://yoga.womans-halth.net/Includes/NewsFeed.php?CAT=About+Yoga';
  2.  
your help is greatly appreciated.. thanks
Feb 2 '08 #1
3 1319
jenkinsloveschicken
56 New Member
benoypaul,

Have you tried referencing the working directory/relative path? ie.

Expand|Select|Wrap|Line Numbers
  1.  
  2. include('Includes/NewsFeed.php')
  3.  
  4.  
Also, check out php.net. Search for include and check out the documentation. There are many different ways of approaching this type of problem.

Post back if you are still having problems.

Regards,
Jenkins
Feb 2 '08 #2
Markus
6,050 Recognized Expert Expert
It's searching for a file named: NewsFeed.php?CAT=About+Yoga

and that probably isnt how the file is named. I suspect it is: NewsFeed.php

I'm not sure if there's a way to add variables to the end of an included file name.
Feb 3 '08 #3
ifedi
60 New Member
It's searching for a file named: NewsFeed.php?CAT=About+Yoga

and that probably isnt how the file is named. I suspect it is: NewsFeed.php

I'm not sure if there's a way to add variables to the end of an included file name.
Yeah, of course.
The query string (ie the '?' and all that comes after it is probably the offender. Donno what its doin in an include statement.

Ifedi.
Feb 8 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

11
2975
by: Yannick Turgeon | last post by:
Oups! I did a typing error in my last post. Fixed. ----------- Hello all, We are currently changing our web server and, in the process, updating PHP version from 4.3.0 to 4.3.5. The problem...
2
1936
by: Mike | last post by:
I don't completely understand the documentation for the include() function: "Files for including are first looked in include_path relative to the current working directory and then in...
5
6078
by: Danny Anderson | last post by:
Hola! I am working on a program where I am including a library that came with my numerical methods textbook. The "util.h" simply includes a large number of files. I had to change the util.h...
5
2495
by: David Mathog | last post by:
One thing that can make porting C code from one platform to another miserable is #include. In particular, the need to either place the path to an included file within the #include statement or to...
2
4627
by: WisTex | last post by:
I've come across a very weird problem. Virtual includes work on all my ASP pages on the entire website, including those in subdirectories, yet they won't work on a particular page I created, even...
6
2776
by: +86 | last post by:
i encountered this problem: "include('inc.php')" will work problely but "include('./inc.php') doesn't work .. both file_exists('inc.php') or file_exists('./inc.php') didn't return the right...
8
2125
by: The Cool Giraffe | last post by:
One thing i do know for sure. When one creates a CPP file, one needs to include the H file. Now, having said that, i wonder if there are some general hints, requirements or standard guide lines on...
11
26526
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
10
1937
by: Raheem | last post by:
Hello, I built a development version of a live website on my hosted account. However the development version is having problems with finding include files. After troubleshooting I was able to...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5677
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.