| | |
Hi.......Help me get started with PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 5
Reputation:
Solved Threads: 0
Guys, i have installed PHP 5 on my windows system, i am able to browse to info.php which shows a listing, but if i create another simple page with a echo statement then i and not able to browse that page. i get the HTTP 500 internal server error. i have both the pages in the same folder.
hepl please
hepl please
•
•
Join Date: Apr 2009
Posts: 257
Reputation:
Solved Threads: 37
make a folder in www directory and put your page in it and try to browse.
•
•
Join Date: Apr 2009
Posts: 257
Reputation:
Solved Threads: 37
you can make a simple echo file with the name of "index.php" in you folder. so when you will click on your folder listed on first page you will be redirected to index.php page. but if you have file with different name then you have to go that page manually. or type your file name in address bar e.g
http://localhost/mytestfolder/testfile.php
if if your file name is index.php then its enough to right
http://localhost/mytestfolder/
http://localhost/mytestfolder/testfile.php
if if your file name is index.php then its enough to right
http://localhost/mytestfolder/
•
•
Join Date: May 2008
Posts: 254
Reputation:
Solved Threads: 20
Tizag has some realy great beginer tutorials on PHP (They helped me learn in about 1 month)
Tizag PHP Tutorials
Enjoy
Tizag PHP Tutorials
Enjoy
My Blog, Life and everything that matters to me - SamRudge.co.uk
2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
•
•
Join Date: Feb 2009
Posts: 9
Reputation:
Solved Threads: 6
No, you don't have to create a new folder for every page. However, in order for php code to be executed, you not only need to make sure to use the <?php opening and ?> closing tags, but also make sure that the directory is in fact configured as a DocumentRoot in apache (assuming you use apache).
Also you cannot "browse" to it using the filesystem, but need to type in the valid URL for the page, which most likely will be something like this: http://localhost/<directory>/filename.php
It might help if you tell us the directory structure as well as how you configured the DocumentRoot.
Hope this helps...
Also you cannot "browse" to it using the filesystem, but need to type in the valid URL for the page, which most likely will be something like this: http://localhost/<directory>/filename.php
It might help if you tell us the directory structure as well as how you configured the DocumentRoot.
Hope this helps...
•
•
Join Date: Jul 2008
Posts: 148
Reputation:
Solved Threads: 25
Actually in a purely PHP file, the closing tag ?> should be excluded.
It is necessary when you are jumping in an out of php control structures that are mixed with html or some other kind of output.
It is necessary when you are jumping in an out of php control structures that are mixed with html or some other kind of output.
If you're question/problem is solved don't forget to mark the thread as Solved!
-- Code I post is usually but not always tested. If it is tested it will be against 5.2.11 or 5.3.0
-- Code I post is usually but not always tested. If it is tested it will be against 5.2.11 or 5.3.0
•
•
Join Date: Apr 2009
Posts: 5
Reputation:
Solved Threads: 0
hi,
i have put the php.ini in windows folder.
and have set the doc_root to C:Inetpub/wwwroot. this is where i have the two scripts. I have also configured the IIS virtual directory to C:Inetpub/wwwroot. i am able to open a page which has just phpinfo(). the other page has one echo statement and the phpinfo(), but i am not able to browse it. i try to browse it by using the ip address.
i have put the php.ini in windows folder.
and have set the doc_root to C:Inetpub/wwwroot. this is where i have the two scripts. I have also configured the IIS virtual directory to C:Inetpub/wwwroot. i am able to open a page which has just phpinfo(). the other page has one echo statement and the phpinfo(), but i am not able to browse it. i try to browse it by using the ip address.
![]() |
Similar Threads
- PHP Joomla (PHP)
- PhP scripting help (PHP)
- PHP 5 - Over before it began (PHP)
- mysql php problems (PHP)
- Using PHP to Send Email to a single DB list member every 24 hrs. (PHP)
- PHP question i think! (Site Layout and Usability)
- Very new to PHP (PHP)
Other Threads in the PHP Forum
- Previous Thread: Admin Panel script
- Next Thread: mail help
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary broken buttons cakephp checkbox class cms code cron curl database date directory display dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail mediawiki menu mlm mod_rewrite multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search server sessions sms soap source sp space speed sql subdomain syntax system table tag tutorial update upload url validation validator variable vbulletin video web webdesign websphere white xml youtube





