CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, Fhalcon, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Sat Dec 14, 2019 3:41 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Running php and html in same file in codelobster
PostPosted: Tue Jan 22, 2019 4:38 am 
Offline

Joined: Tue Jan 22, 2019 4:22 am
Posts: 3
Hello everyone,
I'm new on here and as well as with codelobster, and php. I will appreciate your assistance and help so as to get me started. The situation is as follows:
I'm trying to write php codes that I want to use for doing things like handling and validating forms in html and other things. I tried the following simple lines of codes below but that does not work (the file is a php file):

<?php
$text="Hello world!";
?>

<!DOCTYPE html>
<html>
<body>

<?php
echo " $text";
?>

</body>
</html>


Top
 Profile  
 
 Post subject: Re: Running php and html in same file in codelobster
PostPosted: Tue Jan 22, 2019 6:41 am 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3467
Hi.

Do you have some web server installed?
e.g. does any simple PHP code work?

Thanks,
Codelobster Team.


Top
 Profile  
 
 Post subject: Re: Running php and html in same file in codelobster
PostPosted: Tue Jan 22, 2019 5:21 pm 
Offline

Joined: Tue Jan 22, 2019 4:22 am
Posts: 3
Admin wrote:
Hi.

Do you have some web server installed?
e.g. does any simple PHP code work?

Thanks,
Codelobster Team.


Hello,
Thank you for your prompt reply and your assistance in this matter.
I've run a php only file (code snippet below) but after clicking on the preview button i get the message "This site can't be reached". I guess i can say i don't have any web server installed on my machine. I did think (pardon my ignorance) that having codelobster alone would suffice. What should i do in terms of a web server, which one would require me the least space and easy to use?

Thanks


Top
 Profile  
 
 Post subject: Re: Running php and html in same file in codelobster
PostPosted: Tue Jan 22, 2019 5:22 pm 
Offline

Joined: Tue Jan 22, 2019 4:22 am
Posts: 3
gdb50Can wrote:
Admin wrote:
Hi.

Do you have some web server installed?
e.g. does any simple PHP code work?

Thanks,
Codelobster Team.


Hello,
Thank you for your prompt reply and your assistance in this matter.
I've run a php only file (code snippet below) but after clicking on the preview button i get the message "This site can't be reached". I guess i can say i don't have any web server installed on my machine. I did think (pardon my ignorance) that having codelobster alone would suffice. What should i do in terms of a web server, which one would require me the least space and easy to use?

Thanks


Code snippet:

<?php
echo "<h2>PHP is Fun!</h2>";
echo "Hello world!<br>";
echo "I'm about to learn PHP!<br>";
echo "This ", "string ", "was ", "made ", "with multiple parameters.";
?>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2016 phpBB Group