Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8095907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:17:35+00:00 2026-06-05T21:17:35+00:00

I am turning my PHP/MySQL/jQuery Mobile/Javascript webapp into a app thanks to Phonegap. I

  • 0

I am turning my PHP/MySQL/jQuery Mobile/Javascript webapp into a app thanks to Phonegap. I want to get rid of all PHP code (except while exchanging data with the server) to feed Phonegap with HTML pages. Data-wise, this is not a problem because views and data accesses were properly separated.

My problem is that I used PHP to apply the DRY principle (any HTML pattern that was repeated was rendered with a PHP function call). Since I will be working on both the webapp and the iPhone app, I need to be able to easily export changes to the page into the Phonegap project.

So I am looking for a way to export the pages of my webapp using some command line function in Eclipse. Ideally I would add builders like this to Eclipse:

php -F htdocs/index.php > phonegapdirectory/index.html

I am obviously missing something because nothing is output. The php command is waiting for direct input and I need to type in exit for the result to be output correctly.

Any idea on how to make it right?
Is there any other good practice exporting PHP to HTML to Phonegap?

Thanks a lot for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:17:38+00:00Added an answer on June 5, 2026 at 9:17 pm

    Why do you need to use -F? Are you planning on passing input into the php files?

    You could just use

    php htdocs/index.php > phonegapdirectory/index.html
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to something as simple as turning this is a test into new
Possible Duplicate: jQuery 1.7 - Turning live() into on() Just switching my code from
I am working on Moodle but have a php-mysql related doubt which is turning
I'm crawling a website using php. As I don't know much about turning php
I need help in turning this linq expression into a linq statment. SampleData.Publishers and
Hello all i'm turning objects on (adding the class .active) and off on a
I'm turning a list into a set in Python, like so: request.session['vote_set'] = set(request.session['vote_set'])
I'm looking for a method of turning a NSMutableArray into a string. Is there
I am having some problems turning the SQL below into a Zend Db query.
Hey im not getting anywhere with turning wcf into a restful service. So I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.