LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2006, 11:21 PM   #1
prabhatsoni
Member
 
Registered: Oct 2004
Location: India
Distribution: FC 12
Posts: 233

Rep: Reputation: 30
php function from my library not working


Hello everybody
It is strange.THe phpinfo() function gets parsed into the html page and properly displayed.

I have written my own functions and put them in one file "genl_func.php" and put this file in "/usr/include/php/include" directory.

The include_path directive in the "/etc/php.ini" file has been set:

include_path = ".:/php/includes:/usr/include/php/include/"

When from my html code I call any function contained in this file nothing happens. In fact when I view the source of the resulting html, I find that all the lines after call of the functions have been omitted.

Of course I have put the
<?php include("genl_func.php") ?>
at the top of the page.

even simple function like
Code:
testi() {
 echo "Hello World !";
}
are not being executed.


What is the catch ?



Any help ?


Prabhat Soni

Last edited by prabhatsoni; 03-09-2006 at 11:22 PM.
 
Old 03-10-2006, 04:06 AM   #2
prabhatsoni
Member
 
Registered: Oct 2004
Location: India
Distribution: FC 12
Posts: 233

Original Poster
Rep: Reputation: 30
OK, I got it.

There was a minor problem in one of the functions, and this minor problem got metamorphosed into this .

Fuzzy logic !


Prabhat Soni
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php mail() function not working as it should on my box juancha Linux - Newbie 14 02-16-2006 12:43 PM
php, else function not working. Erhnam Programming 4 06-01-2005 07:48 AM
gets library function in C reddazz Programming 3 03-27-2005 02:04 AM
Passing one php function result as a parameter to another php function davee Programming 13 09-12-2004 12:08 PM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration