php support

Joined
Mar 30, 2011
Messages
3
Reaction score
0
Points
1
Hi all,

I am currently developing somthing for the company I am interning at and an new to developing for the Ipad/Iphone. What I would like to know is if these devices have php support.

Thanks all!
James S
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,765
Reaction score
2,105
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
PHP support usually requires that a web server is running to execute the PHP interpreter over your files..

The iOS devices do not run a web server and don't have the PHP interpreter, if you jailbreak it, there MIGHT be a chance you can run those two..

However, if you want to develop an application for any iOS device, you'd want to do it using Objective-C and the Cocoa Touch framework.

Regards
 
OP
J
Joined
Mar 30, 2011
Messages
3
Reaction score
0
Points
1
Thanks for the fast response Razor, Im not planing on having the iOS device be the server but rather the client. will a Website generated server side work on a device? It seems like it would

I applogise for my ignerence on this topic.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
PHP support does not depend on the client - all the work is done on the server. PHP code is executed on the server and respond with HTML, Javascript or both depending on how the page has been coded. In other words, any browser that support HTML and Javascript will be fine (all browsers). For instance, let's say I have the following if statement:
Code:
$x = 1;
if ($x == 1) {
     echo "<h1>The number is 1</h1>";
} else {
     echo "<h1>The number is not 1</h1>";
}
That code is executed on the server and would return <h1>The number is 1</h1> which the browser would then have to interpret which wouldn't be an issue given that it's plain old HTML.

(For those of you who write PHP, excuse my code if it's wrong - I haven't written it in a while).
 
OP
J
Joined
Mar 30, 2011
Messages
3
Reaction score
0
Points
1
That is exactly what I was hoping for! Thank you for the quick responses. I will be back to this form in the future.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top