Thread: PHP installation

  1. #1
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732

    PHP installation

    Hi, I am trying to install PHP on my embedded board. I am pretty no sure about few things which I would like to clarify with you all.

    At the movement I have thttpd web server running on my board. But it don't have PHP installed on the board. And I believe that thttpd support PHP to certain extent. And hence I installed or perhaps it was already installed.

    The memory which I am left on my flash is up to 4MB. I will have to installed it within that. Is there is any compressed version of PHP available? Or if I install the full version of PHP it going to eat up my memory. Is there anything like that?

    And I believe that I have to compile it before I install it onto target board. Can you please help me out in this.

    Thanks a lot

    ssharish

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    Hum. Unless there's something I'm missing, you can't install a language.

  3. #3
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    Quote Originally Posted by Desolation View Post
    Hum. Unless there's something I'm missing, you can't install a language.
    Well sorry i dint get you. Why is that i cant install a language. Cos i will have to build a user interface for my system which i wrote in C. So that user can operate the board through the web interface which intern call the C code.

    Any idea of alternative? There should be a way that i would be able to run the PHP code on the board.

    Thanks a lot again.

    ssharish

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,412
    Why is that i cant install a language.
    Desolation is being pedantic :P
    You cannot install PHP, but you can install a PHP interpreter, just as you cannot install C++, but you can install a C++ compiler.

    The memory which I am left on my flash is up to 4MB. I will have to installed it within that. Is there is any compressed version of PHP available? Or if I install the full version of PHP it going to eat up my memory. Is there anything like that?
    Download the source then compile with only the necessary options.

    Cos i will have to build a user interface for my system which i wrote in C. So that user can operate the board through the web interface which intern call the C code.
    Have you considered writing a CGI program in C?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    You cannot install PHP, but you can install a PHP interpreter, just as you cannot install C++, but you can install a C++ compiler.
    Well sorry, i should have put it in a proper words. But what i meant was that. And yes it should have been a PHP interpreter.

    I will have a go with CGI on C?

    Thanks for that

    ssharish

  6. #6
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by laserlight View Post
    Desolation is being pedantic :P
    You cannot install PHP, but you can install a PHP interpreter, just as you cannot install C++, but you can install a C++ compiler.
    But because the PHP interpretter is called "PHP," why couldn't you "Install PHP?" This goes beyond pedantic.

  7. #7
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,412
    But because the PHP interpretter is called "PHP," why couldn't you "Install PHP?" This goes beyond pedantic.
    Go ask Desolation. Personally, I usually talk about "PHP installation" and "installing PHP". You only cannot install PHP in the same way as you cannot install C++, which means that you can install C++, if your C++ compiler (or anything that can be installed, for that matter) happens to be called C++. (And it is called c++ sometimes, so...)
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  8. #8
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Considered perl? Seriously, much nicer than PHP IMO, and not bloated to hell.

    No pedantic comments about my post please, I've kept my post purely demotic -- which is apparently the opposite of pedantic, learn something everyday

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,412
    Considered perl? Seriously, much nicer than PHP IMO, and not bloated to hell.
    Ruby (on Rails) seems to be all the rage today.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. combining c php and mysql
    By Thoth in forum C Programming
    Replies: 2
    Last Post: 01-30-2009, 10:55 AM
  2. VC++6 installation wizard
    By BrownB in forum Windows Programming
    Replies: 2
    Last Post: 07-20-2005, 12:44 AM
  3. PHP on my Computer!
    By xxxrugby in forum Tech Board
    Replies: 4
    Last Post: 03-15-2005, 09:34 AM
  4. php script question (is this possible?)
    By Leeman_s in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 12-30-2003, 09:20 PM
  5. PHP 4.3.0 released
    By codingmaster in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-30-2002, 07:40 AM