Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Where Is Include Path?!, help plz urgent
irmlm
post Oct 11 2006, 03:10 PM
Post #1


Newbie [Level 2]
**

Group: Members
Posts: 26
Joined: 6-October 06
Member No.: 31,149



hi
i used this path: (include_path='.:/usr/lib/php:/usr/local/lib/php'
as include path! but it does not work!
please help me! where is the include path of ur free hosting?
Go to the top of the page
 
+Quote Post
jlhaslip
post Oct 11 2006, 04:55 PM
Post #2


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,882
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



Try a php_info().
Go to the top of the page
 
+Quote Post
irmlm
post Oct 11 2006, 06:01 PM
Post #3


Newbie [Level 2]
**

Group: Members
Posts: 26
Joined: 6-October 06
Member No.: 31,149



QUOTE(jlhaslip @ Oct 11 2006, 04:55 PM) *

Try a php_info().

see here plz! www.pgulfblog.com/admin
user:<<removed>>
pass:<<removed>>
i gave 777 permission to admin_hesders.php. and 776 to lang_persian.php . but there is an error still! there was not these errors on my last host! i would be happy if you help me thanks
Notice from jlhaslip:

Turned post invisible since this user and pass shoud not be public.


This post has been edited by BuffaloHELP: Oct 12 2006, 06:52 AM
Go to the top of the page
 
+Quote Post
jlhaslip
post Oct 11 2006, 08:56 PM
Post #4


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,882
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



I turned the last post invisible since the user-name and password is not something which should be made "visible" on the net.

I don't think the problem is with the php "include_path" as your original post suggests. That path is for php to find the libraries for its functions, etcetera.

I believe the current problem has to do with being able to find the correct "include" file and the "path" to the file is incorrect according to the error messages I received when I tried the link you provided.

Without knowing the directory structure of your site and the specifics of the code which is calling the include function, the only thing to suggest is to remove whatever is in front of the 'filename.php' and change it to something like:

"include('filename.php')" which means the 'included' file will be in the same directory. or
"include('./filename.php')" which means the 'included' file will be in the server root.
or
"include('../filename.php')" which means the 'included' file will be in the directory above it.
or maybe :
"include('../includes/filename.php')" which means the 'included' file will be in the directory above it and forward to the 'includes' directory.

Short version of this reply:

Please post some code and the directory structure because without those, we can only guess.

*edit*

And of major concern to you should be the requirement that the sites hosted on the Trap17 server must be available in English. It appears that the index page for your site is in other than English and that violates the Terms of Service, at least to the best of my knowledge. This requirement is very clearly stated in the Trap17 Terms of Service.

http://www.pgulfblog.com/home.php
http://www.trap17.com/forums/index.php?sho...mp;#entry287016
Go to the top of the page
 
+Quote Post
irmlm
post Oct 12 2006, 06:29 AM
Post #5


Newbie [Level 2]
**

Group: Members
Posts: 26
Joined: 6-October 06
Member No.: 31,149



QUOTE(jlhaslip @ Oct 11 2006, 08:56 PM) *

I turned the last post invisible since the user-name and password is not something which should be made "visible" on the net.

I don't think the problem is with the php "include_path" as your original post suggests. That path is for php to find the libraries for its functions, etcetera.

I believe the current problem has to do with being able to find the correct "include" file and the "path" to the file is incorrect according to the error messages I received when I tried the link you provided.

Without knowing the directory structure of your site and the specifics of the code which is calling the include function, the only thing to suggest is to remove whatever is in front of the 'filename.php' and change it to something like:

"include('filename.php')" which means the 'included' file will be in the same directory. or
"include('./filename.php')" which means the 'included' file will be in the server root.
or
"include('../filename.php')" which means the 'included' file will be in the directory above it.
or maybe :
"include('../includes/filename.php')" which means the 'included' file will be in the directory above it and forward to the 'includes' directory.

Short version of this reply:

Please post some code and the directory structure because without those, we can only guess.

*edit*

And of major concern to you should be the requirement that the sites hosted on the Trap17 server must be available in English. It appears that the index page for your site is in other than English and that violates the Terms of Service, at least to the best of my knowledge. This requirement is very clearly stated in the Trap17 Terms of Service.

http://www.pgulfblog.com/home.php
http://www.trap17.com/forums/index.php?sho...mp;#entry287016

thanks for your help! and avbout index page,thtas just a test and my website is not ready yet!
by the way thanks for your help
Go to the top of the page
 
+Quote Post
jlhaslip
post Oct 12 2006, 06:40 AM
Post #6


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,882
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



You are welcome and I hope you understand the difference now between the php "include_path" function and the path for an "included" file.

It can be confusing, sometimes.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Mysql-essential-5.0.51 Installion Problem(2)
  2. Php Include Root Ref(6)
  3. Problem With My Email : [urgent](1)
  4. Include File.php?id=something(13)
  5. Harry Potter: The Deathly Hallows(18)
  6. Sub Domain Problem : Urgent(10)
  7. Php Allow Url Include Question!(10)
  8. Php - Forms, Date And Include(0)
  9. Urgent Problem With My Sql(15)
  10. Question About Php Includes(17)
  11. How Do I Include A Php Sidebar In My Website?(5)
  12. Special Characters In The Web Address(0)
  13. **sig Request** [denied](1)
  14. **sig Request** [denied](1)
  15. Does Php Include Work?(17)
  1. Hosting Account Should Include Wysiwyg Editor(7)
  2. What Does It Mean If Whenever I Flash My Bios...(6)
  3. My Site Is Showing Trap17 Activation Page Only [resolved](2)
  4. Alert! Notice To Hosting Members! Urgent!(26)
  5. Php Include Problem [resolved](4)
  6. Text Image Java Problem(1)
  7. Default Email Problem In My Cpanel(2)
  8. How To Crate Mysql Database?(7)
  9. What Is The Board Path(2)
  10. Include Funtion Php Problems(11)
  11. Php Include Troubles(6)
  12. Include() Statements(4)
  13. Topic View Changed To Include Custom Fields(3)
  14. Path On Server !(3)
  15. Path To /.htaccess Folder?(2)


 



- Lo-Fi Version Time is now: 27th July 2008 - 01:19 AM