Jump to content

New to PHP and need help with web page accessing a server


AlphaSkidz

Recommended Posts

Hello, I'm new to this forum and PHP and need some help.  At work, we have users with Windows and Macs, so an Access database will not work because of the Macs.  I need a program that allows a user to select from 5 inputs and their results be displayed to them.  From what I have read it's PHP.  Here are our specs: 

 

OS:  MS Windows 2008
DB: SQL Server 2012
IIS:  IIS 6.0, but will probably update to IIS 7
 
Will PHP be what I need to and then add in simple HTML to create a web page?  Is there an "Out of the box" program I could install to help with this?  This needs to be accessible anywhere, and on any OS.  Please let me know what additional info you need.  Thanks in advance. 
Link to comment
Share on other sites

Are we trusting users to not blow things up?  

I mean, if you just want to give DB access to users, something web-based like PHPMyAdmin has tons of features, but it's dangerous 'cause they can do anything (delete, drop tables/DB's, etc.)

PHP is a server-side scripting language that goes well with SQL systems to create DB-driven web pages, so, yes, PHP could be what you need to create a "web page".  

But you haven't given us much to go on to decide what your needs are. 

Hope this helps,

Link to comment
Share on other sites

We are definitely not trusting users to not blow things up.  What information can I give you to help with this topic?  Essentially we have a server that holds our data.  I imagine a page that has Site, Brand, Gender, Style, Start Date, and End Date.  The user will select data this is in a drop down list and hit a run button, and it will bring back the appropriate data that matches the criteria they specified.  I built this same functionally with Forms and Queries within Microsoft Access.  However, this will not work with Macs, so it is useless.  I am trying to find something that will mimic that same functionally in Access, but available to every OS.  My thoughts were something browser based would be my best option.  I was wondering if I would have to learn PHP and do it that way, or if there was a program already out there that could do the same.  I hope this helps, let me know if you need additional info. 

Link to comment
Share on other sites

 

so I believe the link you posted would not work on a Mac...Correct?

Yes. On your Windows Server you'll want to setup IIS with PHP. Then on your Mac you'd open the browser and go to the IP Address for your Windows Server so you can run the PHP scripts for accessing the Access Database.

Edited by Ch0cu3r
Link to comment
Share on other sites

We are definitely not trusting users to not blow things up.  What information can I give you to help with this topic?  Essentially we have a server that holds our data.  I imagine a page that has Site, Brand, Gender, Style, Start Date, and End Date.  The user will select data this is in a drop down list and hit a run button, and it will bring back the appropriate data that matches the criteria they specified.  I built this same functionally with Forms and Queries within Microsoft Access.  However, this will not work with Macs, so it is useless.  I am trying to find something that will mimic that same functionally in Access, but available to every OS.  My thoughts were something browser based would be my best option.  I was wondering if I would have to learn PHP and do it that way, or if there was a program already out there that could do the same.  I hope this helps, let me know if you need additional info. 

Thanks.  If you have HTML/Design knowledge, you can create a form page with "site, brand", etc.  The trick there would be getting the right data to display on the page, tied to the DB.  And then you'd need to write a handler which would search and display the correct results.

 

I would advise that if this application is to be "public-facing", you may wish to consider hiring the work done, but if security from external bad guys is not of great concern (intraweb only), it would be a good learning experience for you.

 

PHP is, indeed, well-suited for this task; a number of other server-side languages might also be acceptable (python, perl, ruby, ASP).  PHP is generally seen as having the lowest barriers to entry.  In my experience, Python isn't terribly difficult, either, but I did learn it after I'd already learned PHP.

 

Depending on your learning style, a book, Youtube videos, web tutorials, or even the documentation at php.net will be valuable resources for you in learning what to do.

 

Of course, your first task would be getting PHP up and running in your IIS.  I wanted to say that PHP and IIS may require some hurdles to get working, but I don't *know* that for a fact (I've never installed IIS as a separate package and my professional admin experience is almost exclusively on 'Nix systems). It appears to me that I saw way more installation questions from Windows users than from *Nix users, but then, there *are* way more Windows users than *Nix users ;)

Edited by dalecosp
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.