473,396 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Why library is visible?

Q
Hello,

I have composed php file with included library:
<?php
include("dblib.inc");
........
........
?>

And then if I open this php file with browser I see contents of
librari. Do you know what can it be?

Thank you.
Jul 17 '05 #1
3 1199
On 14 Feb 2005 13:49:49 -0800, op*********@yahoo.com (Q) wrote:
I have composed php file with included library:
<?php
include("dblib.inc");
?>

And then if I open this php file with browser I see contents of
librari. Do you know what can it be?


You've not configured your webserver to treat .inc files differently to
anything else, so it just serves it up using some default content type, and not
through PHP.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
*** Q escribió/wrote (14 Feb 2005 13:49:49 -0800):
<?php
include("dblib.inc");
.......
.......
?>

And then if I open this php file with browser I see contents of
librari. Do you know what can it be?


If the library is PHP code, just rename it to have *.php extension. E.g.:

dblib.inc.php

--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Manda tus dudas al grupo, no a mi buzón
-+ Send your questions to the group, not to my mailbox
--
Jul 17 '05 #3
On 14 Feb 2005 13:49:49 -0800, op*********@yahoo.com (Q) wrote:
Hello,

I have composed php file with included library:
<?php
include("dblib.inc");
.......
.......
?>

And then if I open this php file with browser I see contents of
librari. Do you know what can it be?


Wrap the code in dblib.inc in <?php ?> tags. Includes are always
interpreted as HTML.

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Raymond Hettinger | last post by:
Comments are invited on the following proposed PEP. Raymond Hettinger ------------------------------------------------------- PEP: 329
1
by: Karthik | last post by:
Hi, I have a library libXpm.so.4.11 and a header file xpm.h. Now I have a c code which uses a function in this library. I am not sure how to compile my code with this library. I include the...
2
by: nigel.stephens | last post by:
nigel.stephens@parasolit.­co.uk Nov 24, 10:04 am show options Newsgroups: microsoft.public.dotnet.framework.interop From: "nigel.steph...@parasolit.co.uk" <nigel.steph...@parasolit.co.uk> -...
1
by: nigel.stephens | last post by:
nigel.stephens@parasolit.­co.uk Nov 24, 10:04 am show options Newsgroups: microsoft.public.dotnet.framework.interop From: "nigel.steph...@parasolit.co.uk" <nigel.steph...@parasolit.co.uk> -...
9
by: Tim Marshall | last post by:
Jeff Pritchard's current thread on stopping a library mde being used made me realize I don't have a clue what he's talking about. I would have asked there, but didn't want to hijack his thread. ...
0
by: Jon | last post by:
I have made a dll with a single class in it that will need to be accessible from both other .Net apps and older VB 6 apps, using COM. I have set the project to be COM visible in all the places I...
7
by: Lighter | last post by:
Is overriding a function of a library in accordance with C++ standard? The following code are passed by the VS 2005 and Dev C++. #include <cstdlib> #include <iostream> using namespace std;...
9
by: ARC | last post by:
In case anyone has ran into this yet. The following code used to work with older versions of the MS Outlook library, but would error out in 2007: Dim objOutlook As Outlook.Application Dim...
0
by: CodeSpanker | last post by:
I have a class library that is COM visible as it is instantiated via webpage. V1 of this class library is live and has been installed on client machines so that when they navigate to...
2
by: buu | last post by:
So, I have my class library that contains multiple classes, but I would like to have only one of them to be visible outside the library... how?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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
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,...

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.