Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Can I Install Apache/MYSQL Side By Side With IIS?


However I also have a few sites I maintain that are Nix/PHP/MySQL. I would like to install PHP and MySQL on my windows machine. It would be ok if the PHP pages worked in the IIS environment such as http://localhost/index.php

However I thinka better solution may be to install
apache/php/mysql/phpmyadmin side by side with IIS.

Would I be able to run it side by side with my IIS

To get to IIS : http://localhost/index.asp
To get to Apache: http://localapache/index.php

I suppose I would like to use .htaccess locally to test mod_rewrites.




View Complete Forum Thread with Replies

Related Forum Messages:
Form Validation - Server Side? Or Client Side?
Which is best to use? or is it nesacary to use both?

View Replies !
Creating 2 Rows/tables Side By Side
I have created this code to allow me to view items, however they are appearing on the top in a colum, how 2 change the code so it will all me to c 2 tables side by side, with 2 row in each table, one with the image and i with the information from the database. Code:

View Replies !
Server-side To Client-side
Is there a way to install PHP on the client, so I don't have to use a server (which I currently don't have)? I know it is possible with Perl.

View Replies !
Getting Images Side By Side In A Table
I have the following simple code segment, and want to get the 2 images side by side - instead vertically on top of each other as they are now: Code:

View Replies !
Is Client-side Or Server-side?
I'd like to take a look at PHP but the problem is that
this far, i've used Java because it doesn't require
anything else from the server it's downloaded from
(if compiled as an Applet, of course). How is it with
PHP? Will i have to nag on the administrators of the
server where my website is to install anything? Code:

View Replies !
Side By Side Comparison?
How hard would it be to make a script with php and mySQL that allowed a user to select products from a list and have the DB queried and create a side-by-side comparison of slected products?

View Replies !
Install Apache,MySQL And PHP
I may sound like a newbie, but I've started my new job and we are running on Windows XP where previously I was using LINUX , and now I want to install Apache,MySQL and PHP, not done this for a while.

Been to php.net but confused as to which one to download, any helpers? Also where to install the other stuff.

View Replies !
Install Apache PHP And MySQL
install apache and configure php and my sql to
work with apache.

View Replies !
Run Php 4 And 5 Side By Side??
I am trying to run some php code on our web hosting company's server but I keep getting blank pages. He says, "According to my sysadmin it's running both 4 and 5 side by side and will display the earlier version in the phpinfo() which is php 4."  All my php pages works on my loacl machine just not the company's web server. 

I keep getting a blank page when I try to run a simple databse connection string that should definiely redirect to the error page but it wont. Which also works on my local machine.
<?php
$mysqli = @mysqli_connect("server", "username", "password", "database") or die(header("Location: error.html"));
 ?>

But when I use Dreamweaver to connect to the database it connects just this connection string seems to not work and other php code ddealing with the database.  But I did get an error to display when it was  ttime to execute the mysqli funtion.

"Fatal error: Call to undefined function: mysqli_real_escape_string() in /home/content/L/a/n/Langley/html/userlogin_e.php on line 12"

Can someone tell me this error is happening becasue mysqli functions is disabled or the $mysqli connection string is not getting executed which it wasn't? Or it could be both reasons?

Do you think he is actually running php 5 or mysqli functions and/or disabled? Is it possible to run 4 and 5 at the sametime?

View Replies !
Client Side PHP Is Possible
Don't believe me. Then head over to . Interestingly, I did a search and only one other thread makes reference to this cool little Mozilla plugin which allows you to run and/or test php scripts on your local machine without a server running. Earlier today, I wrote this short tutorial explaining how to set up windows so you can double click a php file in windows explorer and have it open and run in Mozilla rather than having to type the full path into Mozilla's address bar. Look for some screenshots in the near future.

View Replies !
Server-side
I have a need to simulate the submission of an html-like <form> on the server, and was wondering if anyone knew of something out there that could do that.

View Replies !
Client Side
I know its probably not the right forum, but I don't know any better :/ Feel free to direct me to the right forum if you can. Sooo, right on to the real question:

At our company we have an online webshop with php, with a postgres backend. It works, it's nice and such. BUT, my boss had a brilliant idea: we need an offline client too. And it would be soooo nice if we could make use of the existing php code

Basically what I want to know: it is possible to run the php code on the client pc, in an offline mode, just for browsing our catalogue. I presume it would require a "webserver" with php and a database engine of some sort. Anyone ever heard of such a solution?

View Replies !
Header/side Bar
I am looking at a site right now that uses PHP and modern CSS to produce a page with very clean, simple, well-structured HTML. The very slick thing that it does is that when I click from page-to-page on the site, only the stuff in the "main content" of the page appears to "load" -- the header and sidebars do not reload. They remain completely unaffected. I think this is a really awesome technique, and I'm not sure how it is accomplished. Is it PHP? Is it CSS.

View Replies !
Redirecting On The Server Side?
I'm using PHP 4.4.4. After processing some data, I'd like to redirect
to another page for further data processing. The way I'm redirecting
right now is

header("Location: next_page.php");

However, as you know this causes information to be sent to the client
before the next page is contacted. Is there a way I can go to
"next_page.php" without contacting the client?

View Replies !
COOKie On SERVER Side
Is there a way to set a cookie on the server side with a time stamp rather on the client side. If yes then how...if no then y not?

View Replies !
Exe File On Client Side
I need to launch an *.exe file that must be executed on the client side and not on the server side; can i make it with PHP?

View Replies !
Validation - Server-side Vs JS?
I'm trying to settle on a type of coding routine that I can learn, be comfortable with, and then use for any project that comes my way.

Next up on the list is what type of validation I should use post-form-submission. I've slaved for weeks over one php-based concept that works very nicely (the form is re-called upon submit and any required fields not filled in - or not filled in correctly - are highlighted in red with the previous field content re-displayed.). Very nice and I was quite proud of myself.

Then I was reading somewhere that server-side validation shouldn't be used because of increased server strain. Darn! So, I bow to the feet of the masters here to get their opinion. On the one hand, I really like .php and use it for everything I can; conversely, I don't know a lick of JS to save my life and am concerned over the possibility that some (yes, apparently very, very few) users have js. disabled in their browsers - even though this is apparently pretty unlikely, when you're doing a business application that NEEDS correct validation, this could become a real problem real fast.

the type of forms I typically deal with aren't that long; however, I'm on a project now with tons and TONS of forms that a user needs to fill out - and which need validation - and so the "server-strain" question is beginning to gnaw at me.

The thought, as well, of re-doing all my php validation work in JS doesn't, as one might imagine, thrill me either.

View Replies !
How Do You Get Variable To The Other Side Of A Script
I don't have very much experience programming at all, so bear with me. I
have a Service Request web form that is setup as follows:

Index.html Login Page-//Usernames on MySQL -->

trylogon.php-//Use $POST for Usernames and Passwords authenticates then
opens -->

Form.php-//Submit service request to MySQL -->

Add.php-//Adds info to the database, prints confirmation page.

This is all working fine. The one problem is that the "Form.php" page
makes them enter their Username again in the form. Users would like it to
automatically populate that with the Username they plugged into the Login
page. I don't know how to go about this? Some of the things I have tried
simply won't pass the variable for the Username to the Form after it goes
through trylogon.php. I have PHP 5.12, and global variables are turned
off by default.

View Replies !
Server Side Configuration
I created a guestbook following a tutorial online, and it works fine on my side, but when I upload the file I get a few warning errors. PHP works, but there's something wrong with connecting to the database.

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /public_html/temp/guestbook.php on line 39

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /public_html/temp/guestbook.php on line 41

The tables are created using PHPmyAdmin, and apparently It makes the connection to the server, but for some reason it's having problems. Here is the code used to create the table from the info in the database: Code:

View Replies !
Change Anything On The Client Side
Following piece of code will change anything on the client side of the site and will not chnage anything on the server side. You refresh the page and u will get the original page.

But I had read some where that using javascript+ajax+php page can be changed on the server side. I don't know how that can be done or am I wrong? You need to put this code in address bar after loading of the site. Code:

javascript:function test(){ document.getElementById("a").innerHTML="I know this is possible but how" } test()

View Replies !
Server Side Redirect
I have a little programming experience in ASP and I need to change a
conditional redirection script into PHP. The script prevents a page to be
viewed outside a frameset. Redirection should be on server level. Any help
would be greatly appreciated. I have never code in PHP ever, so an example
of a complete page would be exellent (I tried to post my complete page here
but my news server blocks that).

if (Request.ServerVariables("HTTP_REFERER")= =
"http://my-php-host/test/frameset.html")
Response.redirect("http://my-asp-host/test/landing.asp");
else
Response.write("you may not view this page");

View Replies !
Server-Side Includes
I don't want to use Server-Side Includes and recently found out about PHP Includes. (I am new to PHP :P) I've heard that it is simple. If you can provide me with a link to a great tutorial on how I should get started, that would be great.

View Replies !
Php Server Side Includes
I'm doing my first big project for a website using php with server side includes. No biggie, except that when I try to use the ssi in a sub-directory, it doesn't want to cooperate. At all.

<?php include "includes/header.php";?>

That works just fine when it comes to files in the main directory. But that was overcrowded, and I wanted to create sub-directories for expanding the site. However, attempting to do these following techniques failed to provide the desired result with files in the sub-directories:

<?php include "/includes/header2.php";?>
<?php include "../includes/header2.php";?>
<?php include "http://www.****.com/includes/header2.php";?>

View Replies !
Client Side Secrets
This maybe more of a Javascript question than PHP, but as it requires some understanding about what is sent over the line and what not, I assume this is the better forum to ask. I'm building a php app, and I'm planning to use md5/hmac-md5 for the password protection. I cannot always use ssl, for that would simplify things, and provide much better protection. For this to work, I need to generate a secret (no problem), and pass this to the client (this can be done by using the md5 of the password as a symmetric
key). So far so good.

to prevent someone having to type his password any time he wants to change a password (which is doable for ordinary users, but not for admins who do this routinely for other users), I want this secret stored in the client, available to javascript, between pages. A cookie isn't an option, as that's sent over the line. I was thinking to put the application a (hidden)frame, and the secret in a variable in another, but I have the feeling there should be an easier way. Does anyone have an idea?

View Replies !
Server Side Validation
I have this basic script I wrote. Right now I only have a single form input for demo purposes which will not process if the field is left blank. The thing I cannot get to work is the error to also be displayed if the form is submitted while no value is entered:

<?php 
if(isset($_POST['submit'])){ // If the form was submitted
    validate_input(); // Check for empty fields
    if(count($errors) != 0){ // If there are errors,
     displayForm(); // redisplay the form
    } else { 
print_r($_POST); //Include Processing
}
} else {
displayForm();
}

View Replies !
Session Side-effect By Php 4.2.3.
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3.

Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session. bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

View Replies !
Validation Server Side
I want to do validation server side (because I will have several front ends for the same back-end and I don't want to have to do my validation over and over again) and I had this plan on how to do the validation... For some reason it doesn't actually put out anything to the screen or source code view.... Can somebody please help?

  // make sure the required variables were posted
  if( isset($_POST['firstName']) AND isset($_POST['lastName']) AND isset($_POST['gradYear']) AND isset($_POST['birthYear']) AND isset($_POST['birthMonth']) AND isset($_POST['birthDay']) ) {
    $firstName = $_POST['firstName'];
    $lastName = $_POST['lastName'];
    $gradYear = $_POST['gradYear'];
    $birthYear = $_POST['birthYear'];
    $birthMonth = $_POST['birthMonth'];
    $birthDay = $_POST['birthDay'];
    $birthDate = $birthYear . '-' . $birthMonth . '-' . $birthDay;
   
    // add the record
    $objAlumni =  new Alumni();
    $objAlumni->First = $firstName;
    $objAlumni->Last = $lastName;
    $objAlumni->GradYear = $gradYear;
    $objAlumni->BirthDate = new QDateTime($birthDate);
    $objAlumni->Save();
   
    // print a line indicating that the record was added
    print('Record added for ' .  $lastName . ', ' . $firstName);
   
  // if the variables were not posted print that they are required!
  } else {
    // get the boolean value indicating whether they were posted
    $blnSetStatusArray = array(
      'First Name' => isset($_POST['firstName']),
      'Last Name' => isset($_POST['lastName']),
      'Graduation Year' => isset($_POST['gradYear']),
      'Birth Date' => isset($_POST['birthYear']) OR isset($_POST['birthMonth']) OR isset($_POST['birthDay'])
    ); // end blnSetStatus array
   
    // for each one, if it wasn't posted add a line saying it is required
    while( $blnSetStatus = current($blnSetStatusArray) ) {
      if( !$blnSetStatus ) {
        print( key($blnSetStatusArray) . ' is required!/n');
      } // end if
    } // end loop
  } // end if/else

I appreciate your consideration!!

View Replies !
How To Turn Results Up Side Down
Im getting some results from a mysql database and im using this query

SELECT * FROM news WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= create_date LIMIT 5

now, it do send me back the most recent 5 files but the problem is that it shows me first the oldest result and the newest go to the bottom.

What can i do so the newest show at the top and not at the bottom?


View Replies !
Server Side Posting (SSL)
I am having compatibility problems with MSXML to server post on a Java enterprise server. I am looking for a PHP alternative to get around the compatibility issue.

Here is my sample code in ASP:

<%@LANGUAGE="VBScript"%>
<%
Dim xmlhttp
Set xmlhttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
xmlhttp.Open "POST", "https://www.somewebsite.com/xyz.jsp", False
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"

xmlhttp.send "Variable=1"
if (xmlhttp.status <> 200 ) then
response.write "Post FAILED"
else
response.write "Post SUCCESSFUL"
response.write "returned status=" & xmlhttp.status
end if

'Below is the object that generates the msxml3.dll error 'c00ce56e' by the MSXML2 Object
response.write xmlhttp.responseText
Set xmlhttp = Nothing
%>

Apparently, MSXML does not support the encoding type that Java Enterprise server has. Can someone point me to a similar PHP server side posting tutorial that is similar to the functionalities of the ASP script above?

View Replies !
Server Side Includes
I know extremely minimal about php and the only way I can use it is by modifying sumthing and seeing what it does but I do sorta undrtsnad how bits of it work. I am using this automated article site builder thing that when given articles it converts them into php pages using templates created with tag things like #ARTICLE_BODY#. This uses ppc codes in the builder but instead of using the code there I have decided to use an include thingo. THis is the include that I am adding instead of the ppc code. Code:

<?php include("ppc1.inc"); ?>

I then create a ppc1.inc file in the main folder. This is what I need help with if it is possible. The builder creates many directories and when the pages are uploaded it requires that the ppc1.inc file be in every directory that has a page using the include. How do I get it so I only have the ppc1.inc in the main folder? ie the public_html of the domain. I know how to use it with the domain by using the web address to the ppc1.inc in the include but how to do it without doing this.

View Replies !
Server Side Scripting
i'm a web designer trying to break into development, i've just finished php and mysql web development 2nd edition by luke welling, my question is, should i concentrate on php programming for a while or do you advise me to learn other technologies like asp and coldfusion? do employers expect you to know more than one server side scripting language or do you normally specialise in a chosen language?

View Replies !
Wav File From Out Side Web Directory
im righting a script that plays recorded phone calls...well the phone calls are recorded to a directory "/var/spool/asterisk/monitor/" and i need them to be embeded on a page for us to listen to. I have never had to jump out of the web directory before to grab a file so i haven't the slightest idea of how to do it. Here is the code for the page won't be much help but here it is anyways

<?php
include("inc/mainfunc.php");
$UID = $_REQUEST['what'];
$DB->query("SELECT calldate FROM cdr WHERE uniqueid = '".$UID."'");
list($Calldate)=$DB->next_record();

echo "<embed src='/var/spool/asterisk/monitor/".date("Ymd-his",strtotime($Calldate))."-".$UID.".wav' width=300 height=20 autoplay=true loop=false></embed>";
php?>

View Replies !
Server Side Work
I'm working on a site where users can submit reminders that they want to be reminded (for birthdays, appointments, etc.). How can I, with PHP, make the server look hourly through the database to see if anybody needs a reminder sent to them that hour, and if so, the person would be sent an email by the site automatically. How can I make the server do all this without actually opening any page?

View Replies !
Client Side Stuff
I'm wondering if there is a way to optimize an image BEFORE uploading it to the server. PHP can do this after uploading, but can it do anything to a file before uploading? If php can't do it, does anybody know how it can be done? Someone said javascript, but I don't know if that works.


View Replies !
Running A Client-side App
I have a registration and login option available on my site using php and mysql. When the username and password is authenticated I want it to open an app for the client and the app is dependent upon authentication from the website. I have seen a lot of diiferent forums but nothing really solid or up to date. Does anyone have any clue on how this can be done?

View Replies !
Client Side Problem
Can i (in IE) set a value to 'value' proberty of the filefield form element. if yes how i can do that, and what updates should i do to send file to the server and copy it.

View Replies !
Server-side Cookie?
I have an area of my site that has restricted access. When a user logs in, I'd like to check to see if they have read one or any number of "important announcements" and if they have not read them, bring them up in a window(s) (kinda like a "EULA") and ask them to confirm that they have read the content before they are allowed to complete their login.

From the reading I've done, cookies all seem to reside on the browser side but I'd rather keep the info on the server to save the user from having to click through the announcements if they logon from a different PC. Is doable or is this "bad form"? Code:

View Replies !
Session Side Effect
So I have a session that works just great, then i send them to paypal for payment, bring them back and the only way i could think of how to do it was through COOKIES so i set one up before they went to processing. I come back they get logged in fine but at the bottom of the page i get this error.

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively.

View Replies !
Using Server Side Scripting
I was wondering if there was any way to use PHP to insert constant values into a form? Basically I want to stay away from using an html form with a hidden attribute to the input tag. Let's say my constant value is 55.21. This value has to be included in the form when it gets processed but I don't want anybody to be able to View Source, or download the page and then View Source (which wipes out the whole slew of Right Click Disable scripts.

View Replies !
Text Wrap Is Side A TD
I have a TABLE that is set to width="300px", However, when I write a long line of text, it forces the table to expand in size. Is there some code that allows it to wrap the text once it has hit the 300PX mark? Here the code.

<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>asdclkasdbjckashbdckajshbckajshdcbkajsbckjhabsdkjhasbdckjhabsdjkbchaskjdhbcakjshdbcakjshdbakjshdbckjashdbckajhdsbckajhbdckjahsbdckjhbkjhabsdkjchb</td>
</tr>
</table>

View Replies !
Server-side Encryption
I'm working on a script that handles some personal information submitted through a form. I need to be able to receive the form results by e-mail, but I'd rather that the data was encrypted for the e mail. Basically, I need to find some way to use PHP to encrypt the data on the server, then send me the encrypted data. Then, I'll need a de-crypting application on my PC in order to receive the data. I have used something like this with Perl, and basically it uses a Perl module and a private key to encrypt the data.

View Replies !
Server Side Form Verification
I am looking for a PHP script that makes a form verification.

The action of the form would be the same page in order to keep variables easy to get. Error message will be personalise for each form's object.

View Replies !
Get Server Side Time And Date
How could i get the Date and Time of the server where my website is hosted?

Time and date give the local datetime.

View Replies !
How We Can Draw Image At Client Side?
How we can draw image at client side and save it on server.
like opening paintbrush in I.E. and saving that image on server.
Can any one help me how to do this using php?

View Replies !
Server Side Session Management
Environment: Apache, PHP, Oracle DB, Unix OS.
Issue: Maintain user session when Cookies are NOT allowed.

What are the options to maintain a session on a load balancing (Apache, multiple web servers) environment and client side cookies are not allowed? Please address security, not losing sessions in your suggestions.

View Replies !
Server Side Scripting Comparison
I am looking for a chart/martrix that outlines the differences in the major service side engines (php, java, .net, asp, etc).

View Replies !
Split Files In Client Side
I want to upload large files, so i would like to split it on client side and recollect it in server ....

View Replies !
Weak Points In Security Side
I have some weak points in security side /php/ !!!so
I want to IMPROVE my skils in php security . !!!! , pleeeeez if you
have any resrces or any for example ebook

View Replies !
Manipulate The String On The Server Side
Say I give a user a text box to enter a string and they enter something like:

Quote: HHHHHHHHIIIIIIIIIIIIIIIIIII!!!!!!!!!!!!!!!!!!

Is there an efficient way to either:

1. Validate the form on the client side to make sure the user doesnt enter, say, more than 5 of the same characters consecutively, or

2. Manipulate the string on the server side to take away anything more than 5 of the same consecutive characters. Would a JavaScript regex be efficient to validate it before it is sent to the server?

View Replies !
Is There Any Time Dependency Client Side
I am executing a script which takes time more that 10 min , this execution is happening on server side which may take upto 10 min, and after that it throws output to client browser, but in mean time tcp/ip error connection time out appears at client browser.

Now my question is, is there any dependency on clients browser so that it gets time out if it does't get any response from server for some time. I think this is not related to web server as I increased time out in web server and still this problem occurs.

View Replies !
Server-side XForms Processing With PHP
I've done a LOT of research lately into XForms, and I am thoroughly
convinced that a good implementation of this technology would help me
immensely in converting my department's paper forms into interactive
online systems.

There are a couple of problems I'm facing that I'm hoping someone here
could help with. Number one: browser support for XForms is pitiful,
and I can't expect my target audience to download plugins/extensions
and the like. Number two: JavaScript is my Achilles heel, and I don't
have the first clue about Java, yet every workable XForms
implementation I've ever found uses some combination or other of those
technologies. The Java problem is compounded by the fact that I'm not
in control of my own server; I don't believe I have permission to
install Java code (the server people haven't answered that question
yet), even if I DID know how to use it.

So...this means implementations like Chiba and Orbeon are out of the
question, and although FormFaces is good JavaScript (that I don't have
to look at :D), it's WAY too slow for the forms I'm trying to use it
for. I've also played around with AjaxForms since it only actually
requires Java on the development machine, but it's incorrectly
implementing several crucial XForms specs.

Does anyone here know of a good server-side XForms engine written in
pure PHP (no Java)? It's fine by me if it generates
DHTML/JavaScript/etc. so long as I don't have to write the JavaScript
myself...I realize some kind of client scripting is necessary to make
the coolest stuff in XForms work; I just don't want to have to write it
myself.

Alternatively...I've heard good things about UGO + DENG, a Flash-based
XForms system...the only problem with that is that the website
responsible for that project doesn't seem to be working.

I really need some help with this, even if only to be told that what
I'm looking for doesn't exist yet.

View Replies !
Client Side Screen Resolution
I have a fishing related site with a billion photos,
where 600 pixels as a maximum photo width looks OK
at both low resolution and high resolution,
but spectacular in neither. Browser stats sites
say 37% of all users still use 800x600 resolution.
So if you have a site you have to deal with that issue
somehow.
But compromises piss me off.

The pages you make (as php developer) could
use client-side javascript to detect the local
screen resolution. Then, theoretically, you could
send an Ajax message back to the server, to set
a session variable, so all subsequent requests
could be either dynamically generated, with differing
image sizes, or you could, maybe, use url-rewriting
to redirect to the right static html (with differing
image sizes).

But that's got a hidden catch22. Because the 37% of
all users who still use 800x600 resolution probably won't
have browsers that can deal with Ajax requests.

Has anybody ever figured out how to optimize image
sizes for different screen resolutions?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved