Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2003-09-21, 01:00 AM
Triplexx
Guest
 
Posts: n/a
Default

I have recently installed Apache 1.3.28 on Windows XP with PHP 4.3.3 (both manual install and automatic .exe install) and MySQL 3.23.49. I have a script
Code:
<?php

if (! file_exists("$x.php"))

{

include("news/news.php");

}

else

{

include("$x.php");

}

?>
that code lets me do this as my url
"http://whatever.com/index.php?x=page"
I know this works, because I have hosting (not on my computer) and it works fine, but I cant get it to work on my computer. Is there any options that need to be set? or any "extensions" that I keep reading about in the manual install "INSTALL" file. I am completly new to running a server on my computer and I only want it there so I can test any scripts I make. It gets tiring uploading stuff every other second when I make a change. Thanks for any help!
Andrew
Reply With Quote
  #2 (permalink)  
Old 2003-09-21, 03:02 PM
Member
 
Join Date: May 2003
Posts: 47
barand
Default

You need to specify 'includes' path in your php ini file and put included files there.
__________________
Barand
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
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

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



All times are GMT -5. The time now is 12:18 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.