Jul 20, 2008

Xamp / Php.ini Question - How to use php files from non-htdocs folder

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Software

free web hosting

Xamp / Php.ini Question - How to use php files from non-htdocs folder

jlhaslip
I recently installed the XAMP software as per snilildude's Tutorial and I have a question about the php.ini file or something like that.
The Application is default installed. I haven't altered anything yet, so this should be a textbook case.
Presently, the only folders recognized to run php scripts from is the htdoc folder (root). Is there a way to alter the configuration (or path or whaever) so if I double click a 'php' file that resides elsewhere, the file gets parsed and served as php in the browser. Would the Browser have to be open already when this is done, because that is part of the equation.
Ideally, it would be best if : when I double-click a file anywhere on the system, it figures out that the Browser needs to be open, opens it if required, starts the server if required as well, and presents the page in the Browser. Am I asking for too much here?
I don't know if that is possible or not, but I would at least like the php files to be loaded through the parser from elsewhere besides the htdocs folder. Whether I need to have the Server up and running can be my decision.

XAMP on Windows 98se, php 5, haven't touched php configuration or .htaccess yet.

 

 

 


Reply

Saint_Michael
hey haslip i solve your problem right away delete xampp and get WampServer its alot more organized this then xampp believe me im using it right now thanks to mayank.

Reply

Tyssen
Jim, I've just done the same thing as you in the last couple of days. There's a thread over at CSSCreator that discusses just what you're asking.

Reply

jlhaslip
Thanks guys.
If I have any problems with xampp, I'll try the other one.

Reply

Tyssen
The only problem I had was configuring Apache to accept different local sites. Once I'd figured that out it was no problem. And really the reason you'd be using Apache is to understand more about how to configure it (otherwise you'd just install PHP and run it under IIS), so I wouldn't ditch XAMPP in favour of another install for that reason.

Reply

jlhaslip
Tyssen,

I'm running win98se and I don't have IIS, so that's why the Apache.
Plus, it mimics the server at the trap, so if it works on this local machine, it'll be good at the Trap, too. ( I hope )

Reply

aboodx
i use the easyphp
its easy and good
you can download it from here

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : xamp, php, ini, php, files, htdocs, folder

  1. Best Way To Transfer Files
    I just bought a laptop (6)
  2. 1350 Great Free Logos (jpg + Psd)
    With both jpg and original psd files to edit (6)
    1350 Great Free Logos (With both jpg and psd files)
    http://rapidshare.com/files/126291346/1346...Great.Logos.zip This is a great collection of
    logos, they are already made logos which you can use like that or just use to create other logos, do
    what you want, they are free, they came from free websites that give this logos for free and lot
    more, but i just took the good ones mainly. There is also a small collection of 100 logos inside
    the compressed file, which you can use to insert those graphics in your logo/design/web design
    projects, do what you want with them ....
  3. Debug Exe Files
    How to debug an exe file. (4)
    Think that we have written a program, and some codes are wrong. We can go back to compiler and
    change the code, and compile again. But I will show you how to correct our mistakes without using
    the compiler. Let's start: I have written a program in Delphi. Let's see my mistake. I
    have created a form like this. After this I wrote the codes in the Compare Button click as
    below. CODE 1.   procedure TForm1.ComparebuttonClick(Sender: TObject); 2.   var
    3.     a,b:integer; 4.   begin 5.     a := StrToInt(EditA.Text); 6.     b :....
  4. Mysql
    Several files in one field. (2)
    Hi guys. I want t know if it is posible to have so many entries for one object in a field in MySQL.
    I know my question may not be clear because I lack in terminology but pliz try and help. What I want
    to do is for axample have a database of my clients with the following fields for every client:
    fname, lname, more than one photos, contrubutions(comments, jokes, testimonials posted) etc. I want
    to have the things like the photos in the same field but they have to be unique so that my php code
    can deal with them individually llike they are coming from different fields.....
  5. Tutorial : Hide Folder Without Any Softwares
    Descriptive enough! (10)
    It's easy, just a few steps and your folder will be hidden First step : Create folder, name it
    using alt+0160 Second : A folder will be created with name 1 space, then right click the folder,
    properties, customize, change icon, see for a blank icon and press apply Enjoy Video tutorial
    uploaded by me http://www.youtube.com/watch?v=EW8dD3KeUJk Have fun.....
  6. Converting Audio Files In Vista
    how do you do it? (7)
    Ok, so I have some .wav files that I'd like converted into .mp3. I knew how to do it in XP, but
    I can't find windows audio converter in Vista....does vista even have that, or is it under a new
    name? Also, is it possible to convert video files, like .flv into .avi?....
  7. How Do I Acces My Www Folder And More?
    (9)
    Guys i want to change my WWW but im not sure how to do this i would be happy if anyone helps me also
    i have a mySQL created by navicat and i want to upload that so like ppl from my site can make
    account on my mySQL PLZ help me i would be really happy....
  8. Search For Video Files And Display Them
    Using a batch file in windows (0)
    In windows you need to be able to see the file's extension so you can rename a .txt file to .bat
    This batch code I wrote searches your C:\ drive for video files and drops the results into a
    file. That file is then processed into links on a web-page. The web-page is then opened for you to
    view. Click the links to view the file, right click -> save as to save to another place on your
    computer. I use it a lot after browsing videos on the web. It's fun to see what videos end up
    cached (left on the computer from browsing) Insert this into a file named vid-searc....
  9. Deleted Some Important Files In Your Usb/ Mem Stick?
    (1)
    if you did then use a file recovery program. there are recovery programs unique to your brand like
    sony's recovery program for their memory sticks. i have heard so many people just pity
    themselves because of this one.....
  10. Acessing Files In Mac Os X
    How to access your files from a different machine? (0)
    I have a mac book pro and an imac at home. I have accounts of user 'sone' on both machines
    and I scan most of my on the imac and it gets saved automatically in my home/pictures folder. I know
    its not shared by default here but is there any way I can be able to mount that folder or even give
    access to myself from my macbook pro to it? It would save a lot of tedious steps to share it other
    wise i.e copying it to another shared folder. Any information much appreciated thank you. ***** OK
    never mind I just learned I can do it easily enough. OS X already provided ac....
  11. Need Some Help In File Browser
    listing all sub folders and files in them. (8)
    Hey I want to create a very simple file browser, so that, it reads all the sub-folders which are
    places in a directory, and the files inside the sub-folders (It reads only files inside sub-folders
    and list them in simply. ) Also, it creates a directory (any name) inside each sub folder. My
    Following code reads on the files inside the main directory, it does not read the files inside the
    sub-folders.. I appreciate any help. CODE <? $path = "./"; $dir_handle =
    @opendir($path) or die("Unable to open $path"); whil....
  12. Save Youtube Files
    (21)
    Hi, I'm running a tool called MelodyCan for my Napster library and recently discovered 1 perfect
    feature - YouTube downloader! It allows to download YouTube videos from the site and convert to
    various video formats. Install the trial version from http://www.convert-any-media.com/ and go to
    your Internet Explorer. All you need is to load Youtube page with a video clip and click on "Save
    Youtube video" button or something like that.. and the clip will be saved to the desired location
    /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif"....
  13. Best Way To Lock A Folder Without Using An Application
    (13)
    Steps: 1- make a new folder ( name it as you like ) 2- inside this folder make a (.TXT ) file &
    copy the following inside it: CODE Quote: cls @ECHO OFF title Folder Private if EXIST
    "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST Private goto
    MDLOCKER :CONFIRM echo Are you sure you want to lock the folder(Y/N) set/p
    "cho=>" if %cho%==Y goto LOCK if %cho%==y goto LOCK if %cho%==n goto END if %cho%==N
    goto END echo Invalid choice. goto CONFIRM :LOCK ren Private "Control Panel.{21EC2020-3AEA....
  14. Windows Ntfs Folder And File Compression. Good Or Bad?
    (6)
    I believe everyone in this forum knows what a file system means and that every windows user knows
    what FAT and NTFS means so I am not gonna start going into those. Well, the NTFS (Windows NT file
    system) offers a few advantages over the good ol' FAT (File allocation table) file system one of
    which is the files and folders compression. This I have done quite a number of times to save disc
    space (and it really does save some disc space). i am using my computer as an example here. Consider
    my 35GB partition which is carrying my Windows Vista Operating sys and has less ....
  15. How To Disable "show Hidden Files And Folders" In Folder Option
    (11)
    How to disable "Show hidden files and folders" in Folder Option As you know, you can hide files
    or folders in Microsoft Windows ( to hide a file or folder , right click on file or folder >select
    properties and then select Hide file) But if you open Folder Option and check "Show hidden files
    and folders " you can see hidden files. to disable "Show hidden files and folders" feature follow
    below steps : 1- Click start > Run > type regedit to run Windows Registry Editor. 2- Go to following
    address: QUOTE HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/Current Versio....
  16. Informix To Sql Server (or How To Open .unl Files)
    how to import .unl files into SQL Server 2000 without Informix softwar (2)
    Does anyone know how to import .unl files into SQLServer 2000? My boss gave me this task to migrate
    an old database into SQLServer. I don't have informix installed since the files were sent to me
    via email. All files have .unl extension and I don't have a clue how to view them. I've
    tried opening them using excel but it can't be read. Does anyone know how to do this? Or at
    least know how to open/view the file using excel or any other program that could be easily migrated
    to sqlserver? Please, I need to migrate the files as soon as possible. Thanks....
  17. Make A Folder Named Con
    you can never do that (6)
    an interesting thing that you never exprienced it@ try to create a file or folder named con in
    windows! you will never be succed to that! and also you are not able to make these names
    too!!!!:D con nul lpt1 lpt2 lpt3 com1 com2 and com3 !!!: /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />:D you have prize if you
    make a folder named them!:D but you can use this option to lock your cd(s) !!:
    /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />:D you ca....
  18. Flatfile User Login/signup
    Uses text files only (compatable with forums and message system) (24)
    With this tutorial, you will learn how to create a textfile login script. This user membership
    script is for use also with my forums and message system scripts. I will also give you the scripts
    to make it so that people can change their profiles. Ok, The first thing we need to do is make the
    database. To do this, create a blank text file called 'userdata.txt' , make sure it is ALL
    LOWER-CASE. Edit this file and put
    '**username|##|password|##|email|##|rank|##|userid|##|name|##|picture**'. This will not be
    used, however it will give you an idea of how the....
  19. Strange .log Files On My Desktop
    (10)
    Since this morning, two new visitors has camped out on my desktop. One is lcapi0.log , & when you
    open it you get: QUOTE 19:50:36.703 F20:F24 WARN :: module=lcapi flavor=fre
    version=1.7.226.0 (RTC Version 4.3.5371.0) 19:50:38.109 F20:F24 INFO :: Initialize(0) 19:50:38.609
    F20:F24 INFO :: MUI not Enabled 19:50:44.625 F20:F24 INFO :: SetDeviceDisabled 0->0 19:50:44.656
    F20:F24 INFO :: SetDeviceDisabled 0->1 19:50:44.656 F20:F24 TRACE :: SetDevice 00000000->00000000
    19:50:44.656 F20:F24 INFO :: SetDeviceDisabled 0->0 19:50:44.656 F20:F24 TRACE :: SetDevic....
  20. How To Lock A Folder And Keep It Private
    title explains it (13)
    okay people i had a member ask earlyer how to lock folder and or a file and i had the answer, and i
    though to my self after i had written it maybe everyone may need to do thsi so ill post it into a
    tutorial, okay so i wrote this for someoneelse earlyer and am posting it here for all to see: you
    dont need software to lock a folder or add a password to a folder right okay this is my little
    tutorial on how to lock a folder, here we go first things first you need a random folder or the
    folder you wish to lcok then put what ever you want to lock into the folder, then right c....
  21. Linux Question: Amarok And File Permissions
    please help, i can't get it to work with all music files (4)
    hey, i use to use Linux DC++ to download music from some hubs and i usually download it to
    /home/downloads/ and then i move the files to my collection on another HDD a sata one, on
    sda3/music/ but when i move the files using krushader root mode they become posessed by root and
    amarok can't play them displaying a locker on the file's icon. I tried to " chmod 774 music
    ", where music is my music directory, as root in konsole but no luck. What should i do to make a
    whole directory accessible from amarok as user?....
  22. Try To Make Con Folder In Microsoft Os
    Reason why u cant make some folder names in win os (7)
    Guys try to make con folder in win os can u??? yes ??? no??? Answer is No, bcoz their few names
    /ohmy.gif" style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" /> CON, PRN, AUX,
    CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4,
    LPT5, LPT6, LPT7, LPT8, LPT9 can be more too. are all Windows reserved device names from the early
    days of DOS. i tried this in CMD "mkdir \\.\c:\CON" This will create CON folder
    in e: drive. u will Reply from OS The directory name is invalid. Try if u get succe....
  23. Files With Mdf Extension
    how to open them (6)
    please transfer this topic to a subforum if this isn't the appropriate subforum. i can't
    seem to find one that might fit this topic. thanks i have downloaded a file from a torrent client
    along with other files. i'm trying to figure out if the mdf file is the rip from the dvd that
    i'm looking for. the problem is i don't know how to open it(the mdf file). i've looked
    through the net and it says that i should use ISOBuster. i've tried it but i don't know
    exactly the steps on extracting the files on the mdf file. any help would be appreciate....
  24. Cannot Delete Folder After Lost Ftp Connection
    permission not given to delete file (7)
    hello, well i had created a subdomain and was transferring files into the folder i was disconnect
    from the server many times while uploading the files via ftp once when i reconnect, i saw a file
    with an unusual name something starting with preftp... i tried deleting the file, but it said that
    permission was not granted to do that i tired deleting the complete folder and also tried deleting
    the subdomain from the cpanel but it was of no use can anyone help me with this? thx for your time
    Modified topic title. ....
  25. The Icons Of Zip Files Are Wrong Everytime!
    Windows 2000 (3)
    Hello! I am going crazy for a silly little thing. Please help me anyone! The icon for
    ZIP files never shows the way it is supposed to. Instead it insists on displaying the Windows
    'default document' icon for ZIP files. If I rightclick a zip and choose icon properties, I
    can set the icon to be fetched from the winzip executable instead, and all looks fine and dandy
    inside the properties dialog, but after refreshing or repairing icon cache it is still the default
    document icon that is displayed. If I try to change the icon enough times it will ev....
  26. Css And Javascript Combined For Dynamic Layout
    use of different CSS files at same site (9)
    This tutorial is meant for people that are dealing with problems while coding their site at 100% of
    width. Important notice: Some people has JavaScript disabled, so they will not be able to load CSS
    file (take this in account when creating your website). How this script works. In the HEAD of your
    HTML document will apply this command, so variable.js file will be load at start: CODE
    <script type="text/javascript" src="variable.js"></script> In
    browser JavaScript file variable.js is loaded. This Javascript file consist of this para....
  27. Does Anyone Know How To Make Exe Files
    (17)
    Does anyone know any software for making exe files, I want to make simple programs not propper
    one's. Thanks.....
  28. Defragment: Cannot Defrag All Fragmented Files
    What can I do about this? (9)
    This is what I get after I defrag, "all files could not be defragged". I think this is slowing
    down my computer, so what can I do? I have a couple movies on my hard drive that are about 700MB
    and 900MB. Does this have something to do with this big red area? Thanks.....
  29. Getting List Of Directories And Files Using Php
    PHP Function for Directory and File List (6)
    is there a php function that lists the content of some folder.... example: /New folder new.txt
    left.gif download.zip dc.exe ....so is there..? /rolleyes.gif' border='0'
    style='vertical-align:middle' alt='rolleyes.gif' /> ....
  30. Converting Video Files From One Format To Another
    help plz :) (6)
    hey i have learnt this nice way to open mov files in imageready and insert them in sigs,graphics and
    other stuff its really cool,this only works with .mov files and i really need to know if sumone here
    can do that,i need to change a wmv file into a .mov file so i cant add the movie to a sig,i have
    tried many video format conversion programs but they dont accept the mov format,the mov format is a
    quicktime video format,so anyone here know how to change a video file into a quicktime mov video
    format? thnx in advance....

    1. Looking for xamp, php, ini, php, files, htdocs, folder

Searching Video's for xamp, php, ini, php, files, htdocs, folder
Similar
Best Way To
Transfer
Files - I
just bought
a laptop
1350 Great
Free Logos
(jpg + Psd)
- With both
jpg and
original psd
files to
edit
Debug Exe
Files - How
to debug an
exe file.
Mysql -
Several
files in one
field.
Tutorial :
Hide Folder
Without Any
Softwares -
Descriptive
enough!
Converting
Audio Files
In Vista -
how do you
do it?
How Do I
Acces My Www
Folder And
More?
Search For
Video Files
And Display
Them - Using
a batch file
in windows
Deleted Some
Important
Files In
Your Usb/
Mem Stick?
Acessing
Files In Mac
Os X - How
to access
your files
from a
different
machine?
Need Some
Help In File
Browser -
listing all
sub folders
and files in
them.
Save Youtube
Files
Best Way To
Lock A
Folder
Without
Using An
Application
Windows Ntfs
Folder And
File
Compression.
Good Or Bad?
How To
Disable
"show
Hidden Files
And
Folders"
; In Folder
Option
Informix To
Sql Server
(or How To
Open .unl
Files) - how
to import
.unl files
into SQL
Server 2000
without
Informix
softwar
Make A
Folder Named
Con - you
can never do
that
Flatfile
User
Login/signup
- Uses text
files only
(compatable
with forums
and message
system)
Strange .log
Files On My
Desktop
How To Lock
A Folder And
Keep It
Private -
title
explains it
Linux
Question:
Amarok And
File
Permissions
- please
help, i
can't
get it to
work with
all music
files
Try To Make
Con Folder
In Microsoft
Os - Reason
why u cant
make some
folder names
in win os
Files With
Mdf
Extension -
how to open
them
Cannot
Delete
Folder After
Lost Ftp
Connection -
permission
not given to
delete file
The Icons Of
Zip Files
Are Wrong
Everytime
3; - Windows
2000
Css And
Javascript
Combined For
Dynamic
Layout - use
of different
CSS files at
same site
Does Anyone
Know How To
Make Exe
Files
Defragment:
Cannot
Defrag All
Fragmented
Files - What
can I do
about this?
Getting List
Of
Directories
And Files
Using Php -
PHP Function
for
Directory
and File
List
Converting
Video Files
From One
Format To
Another -
help plz :)
advertisement



Xamp / Php.ini Question - How to use php files from non-htdocs folder



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE