Go Back   vBulletin Setup > vBulletinSetup Information > Blogging Forum

Reply 
 
LinkBack Thread Tools Display Modes
Old 11-10-2008, 01:36 PM   #1
Supporters
vBulletin Owner
 
glennybee's Avatar
 
Join Date: Mar 2008
Location: Scotland
Posts: 1,058
glennybee is just really niceglennybee is just really nice
getting a php script to run in a wordpress page

Hi folks,

I've got a real noodle scratcher on my hands here!

I've bought a favicon generator php/html script and it uses a mysql database. The database has only one table so I've imported that table into my wordpress database and adjusted the config.php of the script to point to the wordpress database. You're going to need to keep up lol....

I've installed a EXEC-PHP plugin in wordpress that allows me to post php code and it displays the output. I know this part is working because I can post...

PHP Code:
<?php echo "This is the Exec-PHP 'Hello World'"?>
...and I get...

Quote:
This is the Exec-PHP 'Hello World'
Now the script has quite a few php files in the main folder and a few other folders. The main script runs in an index.php file. I've taken the contents of the index.php file and pasted it into my wordpress page. The paths inside the script for images, folders, etc. all point within the current folder, i.e. <img src="/tmp">, so obviously this needs to be changed because the current path when it runs would be the title of the page and this isn't a location on the server. So I've added "../favicon/" to all paths and this moves it back to the root and then into the folder where the script is. So all images and folders etc seem to be working ok.

The problem is... there is a zip function which zips a few files up and offers it to download via a download button. This zip file isn't being generated and the preview pictures aren't being shown so something is still not right.

If there's anyone out there who is good with php/html/wordpress, etc. and things they might be able to help, I'd appreciate very much!

Thanks
Glen.
glennybee is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 11-10-2008, 02:25 PM   #2
Supporters
vBulletin Owner
vBSetup Mods
 
Cerberus's Avatar
 
Join Date: Mar 2008
Posts: 1,631
Cerberus is a glorious beacon of lightCerberus is a glorious beacon of lightCerberus is a glorious beacon of lightCerberus is a glorious beacon of light
Re: getting a php script to run in a wordpress page

If your working with php you do not have to paste it in there you could simply include it...But if you need help let me know...I be happy to look at it..Can you like me to the page you want to use it on....Or if get a chance send me a pm....But I can help you out if still need it
__________________
Cerberus / vBulletinSetup Staff
Check the Newsletter & Marketplace for the latest deals.
Looking for a place to Support vBulletinSetup?
Submit your Forum and other Quality Websites.


Cerberus is offline   Reply With Quote
Old 11-10-2008, 03:24 PM   #3
Supporters
vBulletin Owner
 
glennybee's Avatar
 
Join Date: Mar 2008
Location: Scotland
Posts: 1,058
glennybee is just really niceglennybee is just really nice
Re: getting a php script to run in a wordpress page

As I said in the PM but for the benefit of others reading this...

I managed to find out how to include the script but when it runs on the actual page, the directory structure and paths are different so it doesn't display images or run properly. It's pretty much just the same as I had although I now need to adjust the actual index.php file instead of adjusting the blog page...if that makes sense.

Tomorrow is another day...
glennybee is offline   Reply With Quote
Old 11-12-2008, 03:58 PM   #4
Supporters
vBulletin Owner
 
glennybee's Avatar
 
Join Date: Mar 2008
Location: Scotland
Posts: 1,058
glennybee is just really niceglennybee is just really nice
Re: getting a php script to run in a wordpress page

Thanks for the help Blake2181, all working now.
glennybee is offline   Reply With Quote
Old 11-12-2008, 04:18 PM   #5
Supporters
vBulletin Owner
vBSetup Mods
 
Cerberus's Avatar
 
Join Date: Mar 2008
Posts: 1,631
Cerberus is a glorious beacon of lightCerberus is a glorious beacon of lightCerberus is a glorious beacon of lightCerberus is a glorious beacon of light
Re: getting a php script to run in a wordpress page

Quote:
Originally Posted by glennybee View Post
Thanks for the help Blake2181, all working now.
No problem man
__________________
Cerberus / vBulletinSetup Staff
Check the Newsletter & Marketplace for the latest deals.
Looking for a place to Support vBulletinSetup?
Submit your Forum and other Quality Websites.


Cerberus is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Blogging Forum

Tags
page, php, run, script, wordpress

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Rank Checker/SEO Tool Website PHP Script For Sale News Webmaster Auctions 0 05-25-2009 05:52 AM
Page Rank Checker/SEO Tool Website PHP Script For Sale News Webmaster Auctions 0 04-26-2009 08:29 PM
Million Dollar Page - Script PHP - SEO Optimized News Webmaster Auctions 0 04-20-2009 03:26 PM
Page Rank Checker/SEO Tool Website PHP Script For Sale News Webmaster Auctions 0 04-14-2009 05:51 PM
Page Rank Checker/SEO Tool Website PHP Script For Sale News Webmaster Auctions 0 04-09-2009 03:56 PM


All times are GMT -8. The time now is 04:36 AM.