Jump to content

[SOLVED] setting pc to work like a server.. problems..


jasonc

Recommended Posts

i have only done this once before and this was like a few years ago but today i am not getting very far..

 

i wish to set up my pc to work as though it is a unix linux server but having problems.

 

i have got the installer from php.net and installed it. and added in the location of my webfolder.  but when i view my pages the php is not being procesed.

 

i have checked the manual and it says something about

Windows extensions

 

but i can not figure this out, and dont remember it last time.

 

what should i be doing to get this to work correctly.

 

i wish to have the php work and also mysql to work too please advise the correct way to do this.  i did not get to setup mysql last time i done this so any help on this would be great.

 

yes there is a manual but i can not get my head around what i should be looking at to get this working right.

 

Link to comment
Share on other sites

You need to make sure the php module is loaded by apache (assuming you're using apache as your web server).

i used the following instaler...

php-5.3.0-Win32-VC9-x86.msi

 

 

 

?  now i am lost, i thought when i first done this all i can remember is runing an einstaler and that was it

 

apache ?

 

i have created the folder for my files to go in and viewed the complete folder location to view the page...

 

file:///C:/apache/htdocs/www.mysite.com

 

but the php is not processing at all

Link to comment
Share on other sites

Firstly, the php-5.3.0-Win32-VC9-x86.msi is an installing for windows. You said you wanted to setup a unix / linux like server, what are you using, Linux or Windows?

 

Secondly, php won't serve web pages by itself, you need a web server installed, have you done this and what server have you installed?

 

Thirdly, this topic belongs in PHP Installation Help as it has nothing to do with programing php.

Link to comment
Share on other sites

example....

 

<?

echo("hello");

?>

 

 

ok i have just tried to use <?php...  and this works now.

 

how do i change WAMP to accept <?  as wel las <?php as my page do not all have <?php at the start!

 

there are way to many to ater them now.

 

 

Link to comment
Share on other sites

ok restarted the pc and started all services and even checked that apache had the include modual set and still not working.

 

just a thought should the include be in its own line.

 

<?

include("file.php");

?>

 

or can i use it like..

 

<? include("file.php"); ?>

 

i would have thought both ways work

 

also i have changed the settings in the php menu of WAMP to not show the php code (expose php) but still the php code shows in the source code when i view it to see if it included the other files in the page

 

i have restarted the pc again and started all services and viewed my page and the include is still not working.

 

all the php coding is shown in the source code? even though i have changed the setting in the php settings to not show php, expose php

 

also <?=$myvars;?> does not work either

Link to comment
Share on other sites

i changed the settingusing the WAMP menu, i clicked the icon near the clock and selected

 

php > php settings > short open tag  has a tick beside it now

 

restarted my pc and started all services and viewed the page, still al but the include are working

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.