PHP Insertion Question
#11
can any one tell me how to do this action in steps like go to file and put code in and go to .....

thanx for help guys.
#12
That depends on where you want to show the output of your code.
Greets,
Michael
-------------
[Image: donation_drive_sig.png]
#13
wow....

thanx for reply

i want it to be in portal

Regards,
#14
Open portal.php and search for:
if(!chdir($forumdir) && $forumdir)
{
	die("\$forumdir is invalid!");
}
Add after:
ob_start();
include ("./path_to_your_file/file.php");
$mycontent = ob_get_contents();
ob_end_clean();
After that you can insert the variable $mycontent into the template portal where you want the output of your script to be shown.
Greets,
Michael
-------------
[Image: donation_drive_sig.png]
#15
Realy.....

good job and well done.

Best regards,
#16
working gooooooooooooodBig GrinWink
#17
This is a old thread, I cant seem to get it working, I guess the newer versions doesn't work this way, do they?

It's also hard to search the forum when you can't search for 3-letter words like "PHP".
#18
If you're using 1.4 it's probably better for you to make a new thread in the correct forum rather than bump one that's over 2 years old. And if you could search for 3 letter words you'd have so many results it'd be pointless. I wouldn't be surprised if 30% if threads here have 'PHP' in them....
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
#19
(2009-04-09, 01:24 PM)MattRogowski Wrote: If you're using 1.4 it's probably better for you to make a new thread in the correct forum rather than bump one that's over 2 years old. And if you could search for 3 letter words you'd have so many results it'd be pointless. I wouldn't be surprised if 30% if threads here have 'PHP' in them....

Is it available in 1.4 by default, If yes ,. Then where I find it ?
#20
No idea what you're asking here...
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.


Forum Jump:


Users browsing this thread: 1 Guest(s)