wildteen88 Posted August 5, 2009 Share Posted August 5, 2009 In what file are you saving your php code? All PHP code must be saved in files ending in .php, example filename.php. All files must be saved in WAMP's www folder (eg C:/wamp/www) To run your php scripts you must be going http://localhost Also there is no need to restart your PC when changing PHP settings. Your only need to restart the WAMP services. Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891319 Share on other sites More sharing options...
PFMaBiSmAd Posted August 5, 2009 Share Posted August 5, 2009 And what does a phpinfo() statement show for the actual short_open_tag setting? Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891320 Share on other sites More sharing options...
jasonc Posted August 5, 2009 Author Share Posted August 5, 2009 And what does a phpinfo() statement show for the actual short_open_tag setting? it shows 'On' on both local and master ---------- yep al files are in the http://localhost/mysite/ i have used the include(); in the index.php file and al files i include are .php some files are in a folder... mysite/index.php main index file mysite/a_file_to_include.php mysite/moreincludefiles/include1.php Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891326 Share on other sites More sharing options...
PFMaBiSmAd Posted August 5, 2009 Share Posted August 5, 2009 In your php.ini, set error_reporting = E_ALL and set display_errors = ON, stop and start your web server to get any change made to php.ini to take effect, then try your code again. Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891328 Share on other sites More sharing options...
jasonc Posted August 5, 2009 Author Share Posted August 5, 2009 which one? C:\wamp\bin\apache\Apache2.2.11\bin\php.ini C:\wamp\bin\php\php5.3.0\php.ini ? Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891330 Share on other sites More sharing options...
Jago6060 Posted August 5, 2009 Share Posted August 5, 2009 If you're just looking to essentially serve webpages with PHP/MySQL, just download WAMPServer or XAMPP for Windows. Both of those programs handle the Apache web server, PHP, MySQL, and some extras. You'll probably need to though. Its definitely not complicated though, 5 minute setup for both programs. Keep in mind... "Linux:In a world without walls, who needs Windows?" Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891336 Share on other sites More sharing options...
jasonc Posted August 5, 2009 Author Share Posted August 5, 2009 If you're just looking to essentially serve webpages with PHP/MySQL, just download WAMPServer or XAMPP for Windows. Both of those programs handle the Apache web server, PHP, MySQL, and some extras. You'll probably need to though. Its definitely not complicated though, 5 minute setup for both programs. Keep in mind... "Linux:In a world without walls, who needs Windows?" i am using WAMP the INCLUDE(); is not working <?php include("file.php"); ?> or <? include("file.php"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891338 Share on other sites More sharing options...
wildteen88 Posted August 5, 2009 Share Posted August 5, 2009 the INCLUDE(); is not working In what way? As in you're getting errors. A blank screen. What? You need to be more descriptive about your problem. Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891344 Share on other sites More sharing options...
jasonc Posted August 5, 2009 Author Share Posted August 5, 2009 my code is not the problem it works on live server. not that it is a secret or anything i just gave an example. to show that neither work i have even created a new site in WAMP and just used a dummy set of files and still nothing is being included. using the <? include("file.php"); ?> or <?php include("file.php"); ?> the file.php has... <?php echo("hello"); ?> in it my index.php file is this... <?php include("file.php"); ?> this is the basic example to test that my code is working or not and this basic example is not working anyway Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891345 Share on other sites More sharing options...
jasonc Posted August 5, 2009 Author Share Posted August 5, 2009 WAMP is not processing the include() at al it is just adding the php code to the file that is outputted in the source code when viewed Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891348 Share on other sites More sharing options...
PFMaBiSmAd Posted August 5, 2009 Share Posted August 5, 2009 His include problem has been solved - ok sorry i just figured it out, i was viewing the file and not the localhost... my shortcut on the screen was taking me to the wrong location. Quote Link to comment https://forums.phpfreaks.com/topic/168911-solved-setting-pc-to-work-like-a-server-problems/page/2/#findComment-891399 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.