troubleshooting Question

java or jquery script to run a php script saved as a seperate .php file on server

Avatar of lexusgs430
lexusgs430 asked on
1 Comment1 Solution336 ViewsLast Modified:

I am working with a server side scripting language that does not allow php to be used directly in conjunction with the server side templates, so to work around it, I am hoping that there is a way that I can through Java, call the PHP script which will be saved as a separate PHP file on my web server, which I believe should work around the problem. Im assuming this is possible in javascript or jquery if that would be easier. Anyways, I installed wordpress on a subdomain on my site, so basically I am trying to import blog posts from word press into my main home page template which is managed through the server side scripting form. Hopefully that makes sense.

Anyways Im including the php code from the wordpress import so basically lets assume the wordpress code im posting is saved as "wordpressNews.php" on my webserver.


$posts = get_posts('numberposts=10&order=ASC&orderby=post_title');
foreach ($posts as $post) : start_wp(); ?>
<?php the_date(); echo "<br />"; ?>
<?php the_title(); ?>    
<?php the_excerpt(); ?> 
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros