TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-29-2009, 11:50 PM   #1 (permalink)
The Wanderer
 
Join Date: Jan 2009
Posts: 16
Thanks: 3
DotNetTim is on a distinguished road
Default Can't get PHP 5. to work? Newbie windows PHP guy

Hello. I installed PHP 5.? Whatever the latest version is on my Windows Vista Machine. I also used Winxamp lite or whatever it's called and it installed ok. The problem is that I tried to use a PHP file in the HTDocs folder and it try's to download instead of showing up in the browser under the local user or local IP. I know from past experience with Classic ASP this is usually because the PHP dll or whatever it is that interpruts the files isn't being used? I tried to install in several directories. I intalled Winxamp / Apache lite in c:\ instead of program files directory. So, can someone tell me what else to do? Oh, I can click on the http file and it gives the ole "it works" message so I know the web server is working. So why not PHP? I'm wanting to use Netbeans as the IDE which I have setup, but obviously that won't work until I get PHP to work for me. Any help would be greatly appreciated. I'm an ex Classic asp developer, so I think I can learn PHP pretty easy, once I get it working.
I also have MySQL 5.+ working as well..
Thanks
Tim
DotNetTim is offline  
Reply With Quote
Old 02-02-2009, 05:12 AM   #2 (permalink)
The Contributor
 
planepixel's Avatar
 
Join Date: Feb 2009
Posts: 28
Thanks: 10
planepixel is on a distinguished road
Default

create a file phpinfo.php
and write following code.
PHP Code:
<?php

phpinfo
();
?>
now save it in htdocs directory.

now go to 'localhost/phpinfo.php'

if you see information regarding php in tabular structure then your php is working fine. if not then php is not configured properly. I hope you are not opening php file from file menu of browser. usually if you try to open using file->open only then it start to download file as you mentioned.
planepixel is offline  
Reply With Quote
Old 02-02-2009, 03:49 PM   #3 (permalink)
The Wanderer
 
Join Date: Jan 2009
Posts: 16
Thanks: 3
DotNetTim is on a distinguished road
Default

Hello.
Thank you for helping. I'm still stuck. I installed "Wamp Server" after un-installing everything, and I mean everything I could that I thought would maybe cause a problem. I then installed the "Wamp Server" which did install, but the browser still tries to open the file and then I get the "Save" dialog. I've been a classic ASP programmer for over 10 years, so I know it's because the PHP interpruter isn't finding the correct DLL or something I'm guessing? So, I'm uninstalling Wamp and going to re-install. I found a post on the web that said if you have Inetpub which I do have this will mess up apache or php, I don't remember. Either way, I have made sure I deleted this directory and made sure that I that IIS wasn't installed which it isn't. So, I'll try again and let you know what I get. I did add these lines to the php.config file to insure that the config file was correct: AddType Application/x-httpd-php .php
LoadModule php5_module “c:/php/sapi/php5apache2_2.dll” but no deals again. Maybe I didn't add them at the right place.

Does PHP run as an ISAPI or CGI or ? I apologize but I don't know much about it yet, but I'll learn in a couple days once I get it configured.

Thanks again, and I'll write back once I get Wamp Server to run again, and I'll run the little function you wrote me.
Thank you
Tim
DotNetTim is offline  
Reply With Quote
Old 02-02-2009, 06:51 PM   #4 (permalink)
The Contributor
 
planepixel's Avatar
 
Join Date: Feb 2009
Posts: 28
Thanks: 10
planepixel is on a distinguished road
Default

I have been using both XAMPP and WAMP for 5-6 months and never faced a problem.before that i had IIS also on my system. so our case is very same but i never faced any problem.

just install any one of them and let me know if problem persists.i hope that it would go away.do not install PHP, MySQL and Apache separately at this stage as you may make mistake while configuring.

these package work straight out of box. you do not have to configure a single thing.just run installer and start developing.

and i also suggest that before you install these make sure you have uninstalled previous versions from your system.
planepixel is offline  
Reply With Quote
The Following User Says Thank You to planepixel For This Useful Post:
DotNetTim (02-04-2009)
Old 02-06-2009, 05:51 PM   #5 (permalink)
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

Are you remembering to start the local server first? Pointing a browser directly at a php file without first starting the local server will always just open the file.
__________________
www.kidneydialysis.org.uk
Dr John is offline  
Reply With Quote
Old 02-07-2009, 02:11 AM   #6 (permalink)
The Wanderer
 
Join Date: Jan 2009
Posts: 16
Thanks: 3
DotNetTim is on a distinguished road
Default

Yes, I started the Apache Server, PHP Engine, and mySQL server since it's a service, so all of the above were running. Now, I have WAMP and it serves the PHP pages no problem. The only thing I'm worried about is debugging. It's looking like I might have to do what I used to have to do with classic ASP which is use variables and write them out in certain parts of the PHP scripts to see the values. I hate that, but I don't see how else to do so? I have Netbeans, but someone else on this forum says Eclipse rocks, so I might have to try it..
Thanks so much. I really appreciate it. I just wish I could have gotten it to run without downloading WAMP. I mean I wish I could have setup PHP 5.? and then setup the full free version of mySQL and then setup Netbeans or some other IDE and debugged locally, uploaded using the IDE to make copy of the local files, etc, like I do with ASP.Net which has a killer Copy function for just uploading / ftp'ing to the hosting company. Then I only have to change the connection values, and I do that by code with checking the IP address of the requesting file which is compiled.. That said, I still need to get PHP to work and at least now I have it where I can play with it locally. I just need to decide which IDE to use and learn how to copy my Database which someone else on this forum explained using Dump to copy to the mySQL DB at my host. So, it's going to be fun from here on out. Thanks so much for the help. See other posts if you please..
Tim
DotNetTim is offline  
Reply With Quote
Old 02-07-2009, 10:25 AM   #7 (permalink)
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

PHP is designed to run from a web server, to give more power and more interactions for your web pages, that's why you need to use a local server on your PC.

I'd guess your ASP pages were using the built-in IIS of Windows - which is doing exactly the same job as the wamp you installed.

PS PHP doesn't really need an IDE, you can write the code in any text editor just as easily.
__________________
www.kidneydialysis.org.uk
Dr John is offline  
Reply With Quote
Old 10-18-2012, 01:03 PM   #8 (permalink)
The Addict
 
Join Date: Oct 2012
Posts: 244
Thanks: 0
dashixiong is on a distinguished road
Default

Some conservatives have Coach Factory Outlet pushed that critique further, saying that Mr. Obama’s policies are too costly, often assist the wrong people Louis Vuitton Belts and could have the paradoxical effect of driving up college costs. The dispute turns not just on different Coach Factory Outlet assessments of how policies play out, but on differing philosophical views about the role of government. During Gucci Belts his time in office, Mr. Obama has sharply increased aid to low- and middle-income students, notably through the Pell Grant Coach Factory Outlet program, which grew from $14.6 billion given to 6 million students in 2008, to nearly $40 billion for Coach Factory Outlet almost 10 million students this year. His administration also made it easier to request aid, shortening the Coach Factory Online complex federal application and allowing people to transfer their financial information electronically from the Internal Coach Outlet Online Revenue Service database. But while many education experts laud his efforts, analysts of varying political Coach Outlet Online stripes have also questioned how much impact some of the president’s policies will have, noting that the prices Coach Online Outlet charged by colleges, and student borrowing, continue to climb.But behind the headlines about soaring costs, the Coach Factory Outlet Online reality is more complex and wildly uneven, because a growing number of students receive Coach Outlet Online financial aid, and only relatively high-income families pay those fast-rising sticker prices. Adjusted for Coach Factory Online inflation, the College Board calculates, the average net price changed little over the last decade at private Coach Factory Outlet schools, and rose only modestly at public ones.Defending federal spending, Arne Duncan, the secretary of Hermes Belts education, said that for more than 30 years, college prices had risen even when federal aid had not, leading him to believe Coach Factory Online there was zero correlation.
dashixiong is offline  
Reply With Quote
Old 10-22-2012, 09:20 AM   #9 (permalink)
The Addict
 
Join Date: Oct 2012
Posts: 244
Thanks: 0
dashixiong is on a distinguished road
Default Coach Outlet

You’ve relativelyCoach Outlet recently arrived in New Delhi after living in two of Asia’s other great cities,Coach Outlet Store Online Tokyo and Hong Kong, for several years. Do these cities feel like they’re part of the same continent? Yes, and no. In terms Coach Factory Onlineof infrastructure, they couldn’t be more different. Getting regularCoach Outlet power and water at my house in New Delhi is never a sure thing, even though Coach Purse Outlet OnlineI’m paying the same rent that I paid in Tokyo and almost the same electricity prices. Both Hong Kong and Tokyo are also crowded places,Coach Factory Outlet Online but both cities are incredibly well planned and efficiently run. Efficient is not a word I would use to describe my Coach Bags Outlet Onlineday-to-day life in New Delhi. On the other hand, one thing that I think Hong Kong and New Delhi have in common isCoach Handbags Outlet a shared sense of optimism — a feeling that the best is yet to come. That’s definitely not the feeling you get in Tokyo,Coach Outlet Online or in the U.S. when I go home. It’s a big part of what I find addictive about living and working in this part of the world. You feel like you’re watching the future unfold.
dashixiong is offline  
Reply With Quote
Old 11-16-2012, 11:35 AM   #10 (permalink)
The Addict
 
Join Date: Nov 2012
Posts: 331
Thanks: 0
shui1880 is on a distinguished road
Default

Need some cool and refreshing water http://www.drdreheadphones-sale.net fun this summer to beat the heat in Georgia? We have just what you are looking for! Tubing, kayaking, water slide, hot tub cabins, Dr Dre Headphones and indoor & outdoor swimming pools are waiting for you all in one spectacular location at the Coosawattee River Resort in Ellijay. Whether the excitement of dr dre beats
a monster water slide Dr Dre Beats or the relaxation of a float down the Coosawattee River, we have the way for you to soothe that sweltering summer sizzle.
shui1880 is offline  
Reply With Quote
Old 01-29-2013, 12:04 PM   #11 (permalink)
The Addict
 
Join Date: Oct 2012
Posts: 244
Thanks: 0
dashixiong is on a distinguished road
Default

Organizers said Coach Outlet Online was opportune because the battle’s 150-year anniversary is in December, and Fredericksburg Coach Factory Outlet has been preparing to mark the sesquicentennial. in the new agreement is that Coach Outlet Online revolutionary councils from 14 Syrian provinces now each have a representative, though not all live Coach Online Outlet in Syria. The hope is that will bind the coalition to those inside the country. Perhaps Coach Bags Outlet the most important body the new group is expected to form is a Revolutionary Military Council Coach Factory Online to oversee the splintered fighting organizations and to funnel both lethal and nonlethal Coach Factory Outlet military aid to the rebels. It should unite units of the Free Syrian Army, various militias Coach Outlet Store Online and brigades in each city and large groups of defectors. Before the ink was even dry on the Coach Outlet Store final draft, negotiators hoped that it would bring them the antiaircraft missiles they crave to Coach Factory Stores take on the Syrian Air Force. The United States and Britain have offered only Coach Handbags Outlet nonmilitary aid to the uprising. A similar attempt by the Syrian National Council to Coach Factory Store supervise the military never jelled. Organizers said funding was too haphazard. Eventually foreign Coach Factory Online governments like Qatar and Saudi Arabia, which are financing and arming the rebels, found Coach Factory Online their own favorite factions to deal with. Foreign leaders notably including Secretary of State Coach Outlet Hillary Rodham Clinton urged this unification largely so they could coordinate their Coach Factory Outlet efforts and aid through a group of technocrats. Once it receives international recognition, the Coach Outlet Store Online coalition is supposed to establish a temporary Coach Outlet Online military never jelled.Organizers said Coach Outlet Online was opportune because the battle’s 150-year anniversary is in December, and Fredericksburg Coach Factory Outlet has been preparing to mark the sesquicentennial. in the new agreement is that Coach Outlet Online revolutionary councils from 14 Syrian provinces now each have a representative, though not all live Coach Online Outlet in Syria. The hope is that will bind the coalition to those inside the country. Perhaps Coach Bags Outlet the most important body the new group is expected to form is a Revolutionary Military Council Coach Factory Online to oversee the splintered fighting organizations and to funnel both lethal and nonlethal Coach Factory Outlet military aid to the rebels. It should unite units of the Free Syrian Army, various militias Coach Outlet Store Online and brigades in each city and large groups of defectors. Before the ink was even dry on the Coach Outlet Store final draft, negotiators hoped that it would bring them the antiaircraft missiles they crave to Coach Factory Stores take on the Syrian Air Force. The United States and Britain have offered only Coach Handbags Outlet nonmilitary aid to the uprising. A similar attempt by the Syrian National Council to Coach Factory Store supervise the military never jelled. Organizers said funding was too haphazard. Eventually foreign Coach Factory Online governments like Qatar and Saudi Arabia, which are financing and arming the rebels, found Coach Factory Online their own favorite factions to deal with. Foreign leaders notably including Secretary of State Coach Outlet Hillary Rodham Clinton urged this unification largely so they could coordinate their Coach Factory Outlet efforts and aid through a group of technocrats. Once it receives international recognition, the Coach Outlet Store Online coalition is supposed to establish a temporary Coach Outlet Online military never jelled.
dashixiong is offline  
Reply With Quote
Old 02-01-2013, 11:02 AM   #12 (permalink)
The Contributor
 
Join Date: Feb 2013
Posts: 32
Thanks: 0
sara111 is on a distinguished road
Default

Candor Recruitment Agency is one the most helpful and reliable company.
candor consultancy
candor manpower
staffing companies
candor services
staffing companies
sara111 is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Defining your World: All About Constants Wildhoney General 15 01-29-2013 12:32 PM
ffmpeg work with PHP moiseszaragoza Advanced PHP Programming 2 01-02-2009 05:07 PM
ffmpeg work with PHP moiseszaragoza Javascript, AJAX, E4X 5 12-11-2008 02:05 AM
PHP Newbie here ! PixelDawn Member Introductions 14 01-15-2008 05:40 PM
Make html pages work like php sam Tips & Tricks 2 02-09-2007 01:00 PM


All times are GMT. The time now is 09:25 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design