Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
I want to run a php script in joomla (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: I want to run a php script in joomla
#767
seawolf (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
I want to run a php script in joomla 2 Years, 11 Months ago Karma: 0  
Hi i am an amateur and i need your help.I have a reservation php script and i want to use it in joomla ,i tried by wrapping it ,it is a solution but it is not so good.
I copy and paste the php code of file book.php in your php module but it does not work also.
I made a page using your php component and i used the following code but nothing again.
Do you have any idea how can i run the script in joomla 1.5?

<?
include(JPATH_ROOT.'/components/com_php/files/book.php';
?>

and i have the following error.
request "Could not execute SQL query" SELECT * FROM WHERE id=6
I have installed all the script in folder "files" in the same path as above.

Thanks for your time i will appreciate if you help me
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1400
Bnt (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:I want to run a php script in joomla 11 Months, 4 Weeks ago Karma: 0  
Actually i have the same problem.

Please, i need to know how i can run an script in joomla 1.5.

Thanks for your help!!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1401
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:I want to run a php script in joomla 11 Months, 4 Weeks ago Karma: 10  
The solution is specific to the script. What to watch out for are file paths. If database tables are being referenced, make sure they are there. The other main issue is forms, they have to be directed to joomla's index.php file and the fields option=com_php&Itemid=1 has to be set (where 1 is the menu id).

Please post the portion of the code you're having problems with.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1402
Bnt (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:I want to run a php script in joomla 11 Months, 4 Weeks ago Karma: 0  
Actually i solved the problem.

When i try:

include( JPATH_ROOT.'/components/com_php/files/my_file.php' );

Joomla gave an error with the location of the address, after looking during some days for information, i solved it including the address in the path, like this:

$path = '/components/com_php/files/';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
include( 'my_file.php' );


Thanks for your time and help, and my greetings for the joomla PHP pages component team, it works awesome!!!
 
Report to moderator   Logged Logged  
 
Last Edit: 2011/02/18 01:02 By Bnt.
  The administrator has disabled public write access.
#1403
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:I want to run a php script in joomla 11 Months, 4 Weeks ago Karma: 10  
Thanks for posting your solution. I will take a note of that in the documentation.

Cheers.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.