I need a function such that it returns a string holding the contents
of function in other php file..,
*************** *************** *************** *************** *************** *************** *************
allFunctions.ph p:
*************** *****
class clsA{
function a{
..,
..if($test){ //testing condition.,
}
..,aNewFn(); // Calling other function..,
...
..
while(){..,
..,
}
..,
}
function b{
..,
..if($test){ //testing condition.,
}
..,aNewFn2(); // Calling other function..,
...
..
while(){..,
..,
}
..,
}
}//End of Class.,
*************** *************** *************** *************** *************** *************** *************
getFnContent.ph p //Now I need a function such as .,
*************** *******
<?
$tmpFnContent = getFunctionCont ents("allFuncti ons.php","clsA" ,"a") ;
echo "Function 'a' in Class 'clsA' has".$tmpFnCont ent ;
function getFunctionCont ents($file,$cla ss,$functionNam e) /*I want
to develop this function*/
{
----
----
return $functionConten t ;
}
?>
Hope U understand the problem.,
Please explain me how to achieve this by providing me a algorithm or
flow..,
Is there any library function ., to meet my requirement?
Thanks..,
Kesavan Muthuvel m.*******@hotma il.com 2 1425
On 14 Nov, 08:37, Kesavan <k7.in...@gmail .comwrote:
I need a function such that it returns a string holding the contents
of function in other php file..,
*************** *************** *************** *************** *************** *************** *************
allFunctions.ph p:
*************** *****
class clsA{
function a{
..,
..if($test){ //testing condition.,
}
..,aNewFn(); // Calling other function..,
...
..
while(){..,
..,
}
..,
}
function b{
..,
..if($test){ //testing condition.,
}
..,aNewFn2(); // Calling other function..,
...
..
while(){..,
..,
}
..,
}
}//End of Class.,
*************** *************** *************** *************** *************** *************** *************
getFnContent.ph p //Now I need a function such as .,
*************** *******
<?
$tmpFnContent = getFunctionCont ents("allFuncti ons.php","clsA" ,"a") ;
echo "Function 'a' in Class 'clsA' has".$tmpFnCont ent ;
function getFunctionCont ents($file,$cla ss,$functionNam e) /*I want
to develop this function*/
{
----
----
return $functionConten t ;
}
?>
Hope U understand the problem.,
Please explain me how to achieve this by providing me a algorithm or
flow..,
Is there any library function ., to meet my requirement?
Thanks..,
Kesavan Muthuvel
m.kesa...@hotma il.com
If you want to examine the file without loading it into the current
namespace then try token_get_all() , alternatively include the file and
use function_exists () / method_exists() or the reflection API - see http://www.php.net/manual/en/languag...reflection.php
C.
Thanks Colin McKinnon.. for your kind reply.,,
So., Can I implement my requirement with token_get_all() ..,
Is there any samples avail on www related to my problem?
With u I implement What I want..,
Kesavan Muthuvel m.*******@hotma il.com
On Nov 14, 10:28 pm, "C. (http://symcbean.blogsp ot.com/)"
<colin.mckin... @gmail.comwrote :
On 14 Nov, 08:37, Kesavan <k7.in...@gmail .comwrote:
I need a function such that it returns a string holding the contents
of function in other php file..,
*************** *************** *************** *************** *************** *************** *************
allFunctions.ph p:
*************** *****
class clsA{
function a{
..,
..if($test){ //testing condition.,
}
..,aNewFn(); // Calling other function..,
...
..
while(){..,
..,
}
..,
}
function b{
..,
..if($test){ //testing condition.,
}
..,aNewFn2(); // Calling other function..,
...
..
while(){..,
..,
}
..,
}
}//End of Class.,
*************** *************** *************** *************** *************** *************** *************
getFnContent.ph p //Now I need a function such as .,
*************** *******
<?
$tmpFnContent = getFunctionCont ents("allFuncti ons.php","clsA" ,"a") ;
echo "Function 'a' in Class 'clsA' has".$tmpFnCont ent ;
function getFunctionCont ents($file,$cla ss,$functionNam e) /*I want
to develop this function*/
{
----
----
return $functionConten t ;
}
?>
Hope U understand the problem.,
Please explain me how to achieve this by providing me a algorithm or
flow..,
Is there any library function ., to meet my requirement?
Thanks..,
Kesavan Muthuvel
m.kesa...@hotma il.com
If you want to examine the file without loading it into the current
namespace then try token_get_all() , alternatively include the file and
use function_exists () / method_exists() or the reflection API - seehttp://www.php.net/manual/en/language.oop5.r eflection.php
C.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Wentink |
last post by:
Does anybody have a simple script that let's me popup a picture from a
thumbnail?
The ones i found are all very very complicated and messy in the source...
Thanks,
Tintin
|
by: milkyway |
last post by:
Hello,
I have an HTML page that I am trying to import 2 .js file (I created)
into. These files are: row_functions.js and data_check_functions.js.
Whenever I bring the contents of the files into this HTML file, all is
OK but whenever the functions are separated (as it is now), when I run
the page, I get the following error:
Line 73, object expected.
|
by: Jakej |
last post by:
I've been using a javascript in an html file for a banner slider, and
it works as desired. But I'd like to use it on more than one page and
it would be great if I could transfer the code to a .js file and call
it with the
<script src="filename.js"></script> tags as I do for many other .js
files. But, when I try to do that way, it doesn't work right. It will
display the banner text, but only on the 0,0 page coordinate and
doesn't slide....
|
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
Hello,
I have a very simple problem but cannot seem to figure it out. I have a
very simple php script that sends a test email to myself. When I debug
it in PHP designer, it works with no problems, I get the test email. If
|
by: Rahul |
last post by:
Hi Everybody
I have some problem in my script. please help me. This is script file.
I have one *.inq file. I want run this script in XML files. But this
script errors shows . If u want i am attach this script
files and inq files. I cant understand this error. Please suggest me.
You can talk with my yahoo id b_sahoo1@yahoo.com. Now i am online.
Plz....Plz..Plz...
| |
by: Synapse Syndrome |
last post by:
Hi
I've been given what I am told is a PHP script to be used on my server. I
do not know any PHP.
I am trying to use a feature of a program called ArchiCAD. This feauture
allows CAD drawing files to be published on a webpage, and viewed and
commented on using a java applet.
The problem is that with ArchiCAD v10, it now makes spaces and uses other
|
by: Chuck Renner |
last post by:
Please help!
This MIGHT even be a bug in PHP!
I'll provide version numbers and site specific information (browser, OS,
and kernel versions) if others cannot reproduce this problem.
I'm running into some PHP behavior that I do not understand in PHP 5.1.2.
I need to parse the HTML from the following carefully constructed URI:
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted
********************************************************
For this teeny job, please refer to:
http://feeds.reddit.com/feed/8fu/?o=25
|
by: hotflash |
last post by:
Hi Master CroCrew,
I found a good PURE ASP that will allow you to upload 10MB file to the server and the file contents such as Network, Author, Title, etc... will insert to MS Access at the same time.
Below is a working script that I used. Let's say after the file is uploaded to the server and a record created with the file contents above to the MS Access (using the script below). If I want to UPDATE that record let's say, change the...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |