Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Take input and generate XML

 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
So what I need is PHP working on Apache--I did not yet understand what do i need to check I already checked that PHP executable is configured under "General" and shared screen shot for same for just confirmation.

Second thing as advised to verify Composer executable is configured under "Frameworks and Tools". So for this also I shared screen shot.

Based on my understanding I think PHP executable seems to be configured correctly but instead of Composer executable There is a file called composer.bat.

So please advise whether I have all required things now to proceed further to check "you can open your Laravel project using the "PHP Application with Existing Sources" project wizard. When you get to "Run Configuration", make sure to select the public/index.php file of your web service.

You should now be able to run the  application. A nice main page displaying "Laravel" should appear."

So if you still did not mean to focus on above then what exact did you mean when you said "What you need is PHP working on Apache - what you just reposted contains the URLs you need to check for that. Once that works you can start adding PHP pages that process the HTML page you created earlier."

Please clarify above so that I could make some progress.

Thanks


 
Saloon Keeper
Posts: 6448
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
I think I was very specific which two URLs to check to see if PHP is working. You posted them, after all. Not so?

I'm really not minded to repeat myself over and over  if you can't be bothered to read - and think about - what I post.

Do you know what it means to have PHP running in Apache? Do you understand what it lets you do, and how you would go about making it work for you?
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
no, i am still confused because of so many posts by me and you but i guess you meant to say to check below URLs mentioned in Step 4 am i correct?:-

Step 4: PHP (with mod_php, as *.php), Perl by default with *.cgi, SSI with *.shtml are all located in => C:\xampp\htdocs\.
Examples:
- C:\xampp\htdocs\test.php => http://localhost/test.php
- C:\xampp\htdocs\myhome\test.php => http://localhost/myhome/test.php

Do you know what it means to have PHP running in Apache?
If you need to run php files in a web page, you need a web server and apache is one of the web servers available.
Nginx, lighting, litespeed, Cherokee, etc are some other Web servers.



Do you understand what it lets you do, and how you would go about making it work for you?

Search Results
Featured snippet from the web
PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can do, such as collect form data, generate dynamic page content, or
send and receive cookies. But PHP can do much more. ... Command line scripting. You can make a PHP script to run it without any server or browser.
I am not yet sure how can i make it work for my problem resolution,kindly advise on same.


Thanks much..


 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
errors from php links have been attached with this post but i rember earlier upon following stephen instruction i was able to remove these errors on that day and kept on folowwing further instructions and got stuck on that day on this point :-"Open a command line interface in the htdocs folder inside your Xampp installation folder, and type "laravel new projectName", but obviously replace projectName with whatever you want to call your web service. It will take a while to create the new project, so have patience.

To work on the project in NetBeans, you first have to configure NetBeans for PHP. In your NetBeans plugin portal (Tools -> Plugins), under "Available plugins", you will want to install "PHP" and "Composer". It's possible that these are already installed, then they won't appear in the list.

Go to (Tools -> Options -> PHP) and make sure that the PHP executable is configured under "General" and that the Composer executable is configured under "Frameworks and Tools".

After you've verified this, you can open your Laravel project using the "PHP Application with Existing Sources" project wizard. When you get to "Run Configuration", make sure to select the public/index.php file of your web service.

You should now be able to run the  application. A nice main page displaying "Laravel" should appear.
"

Thanks
php-error.png
[Thumbnail for php-error.png]
php-error-from-other-link.png
[Thumbnail for php-error-from-other-link.png]
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
Stephan or any other PHP expert could someone please help here..

Thanks much..
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
it's been 6 days ever since i have been struggling for my problem now and see no hope or not sure whether i have enough tools itself to work on my problem yet,I am lacking expert guidance here very much..
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
Any updates by experts here please?
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
if resolving this problem for experts  through web application is going to be tough then please advise as a simpler way in a desktop kind of app how could we resolve this?


Thanks much...
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
Any updates by experts here on same please?
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator

Tim Moores wrote:I think I was very specific which two URLs to check to see if PHP is working. You posted them, after all. Not so?

I'm really not minded to repeat myself over and over  if you can't be bothered to read - and think about - what I post.

Do you know what it means to have PHP running in Apache? Do you understand what it lets you do, and how you would go about making it work for you?



Hi Are you there please??
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

Is there not any expert left on this forum who could assist regarding my problem soon?

It's been almost 7 days are over and have not been able to solve my problem yet with experts help on this forum,can some experienced expert please advise here soon to resolve my problem as soon as possible now?

Thanks much..
 
Saloon Keeper
Posts: 12022
257
  • Mark post as helpful
  • send pies
  • Report post to moderator
John, you fail to understand that it's not our job to help you. This is something we do for free because we enjoy it. What we get out of it is that we see people develop their understanding of programming.

I haven't looked at this thread in a couple of days because it is not fun. You don't follow and understand instructions well, you show little independent thinking and you are impatient. It feels as if we're doing your job for you, not helping you understand what you must do yourself.

I started off explaining to you what tools I would use to solve this problem quickly. But Tim is correct, you're nowhere near using those tools because you don't understand the basics. He's explained to you that you must first understand what tools like PHP and Apache do for you before you can go on to more complex frameworks and editors.

Now, to show us that you're serious about wanting to be able to solve these kinds of problems yourself, I propose that you first make a simple HTML page that contains a form with no more than two inputs, and that you can submit it to a PHP endpoint that will read the inputs from the form and simply print them to the screen.

You should already know how to make an HTML form. To process the form, send it it to a .php page that lives inside the htdocs folder of Xampp.

If you get stuck FIRST look up information in the PHP manual. If you're still stuck, start a new topic on this website and first show us the work you've done yourself. This topic here is getting too long and misleading.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thanks.

I tried below :-

<html>
<body>

<form action="welcome.php" method="post">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>

</body>
</html>

************
<html>
<body>

Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>

</body>
</html>

***************
but when executing first code i mean with saved html file as ht2 and then  executed it in browser and then eneterd two input fields then i got the output as followings:-

<html>
<body>

Welcome <?php echo $_POST["name"]; ?><br>
Your email address is: <?php echo $_POST["email"]; ?>

</body>
</html>
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am trying my best to resolve this problem and currently as advised trying to take two input fields
and hen trying to display them and created a new thread for the same with name 'HTML form and PHP' once i am able to solve this basic 2 fields form issue then will discuss about main problem.

Thanks much...
 
Tim Moores
Saloon Keeper
Posts: 6448
158
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
OK, closing this topic, as it's too unwieldy now, and is being continued elsewhere.
 
John Ken
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi

I will discuss my main problem in this new thread 'HTML form and PHP' post solving this 'two input fields in HTML form' issue there.


Thanks much....
 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic