Folder Permissions And Virtual Users With (Not Virtual Directories Related.)
It is basically a simple front end written in PHP for users of a CMS in which this file manager is used. Like I said, it's a front end that connects directly to a specified base directory on my server. For example, Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Virtual Directories?
Virtual Directories? I've been working with ColdFusion for my real job and sticking with PHP for my side work and have a question. In CF, they have virtual directories you can set up that you can use the address of mydomain.com/admin and have it access files from another location on the same server thisdomain.com/clientadmin I was wondering if there is something similar to this in PHP. I run a reseller account on a server and can access databases from different domains, so I was hoping this could be possible. If anyone has any ideas, please let me know.
View Replies !
Blogs And 'virtual Directories'
Throughout the past few years, I've been working on a personal blog that I've written using PHP. I recently noticed that a lot of blogs support the following URL syntax: /archives/2004/04/03/ /archives/2004/03/ /archives/2004/ and so on and so forth. The thing is, they obviously don't have an actual HTML or PHP page in that directory; I doubt even that those directories actually exist. My guess is that they are doing some sort of URL re-writing using .htaccess in combination with perhaps a single PHP page that takes in parameters as a GET query. It's just a guess, of course. The thing is: I really have no idea how they are doing this. So, how would I implement something like this on my site using Apache and PHP? What is the technical term for this style of 'URL re-writing' even called? I don't mind doing a little research on my own, but I can't seem to nail down exactly what keywords I need to search for in the first place!
View Replies !
Virtual Folder
i have been making a mod for IPB that allows members to make a advanced profile. what i want is for the members to create a virtual folder via the UCP. the data will be stored in a table in my database. It will work by when i user types in www.domain.com/*membername* it will go to either index.php or an error page with a script that searches the database for that user name and redirects it do the real page. the database will have the username and user id in it and the script will look for the username in the database and pull out the user id and add it to ppages.php?id=*userid*. what is the best way to achive this without having to edit your DNS or anything. it can use .htaccess but nothing that requires root access.
View Replies !
Virtual URL Name
I am able to retrieve the server name with $SERVER_NAME but I have several domain names pointing to the same site and I need to detect which URL the user entered into his browser to reach the site. i.e. 2 domain names domain1.com and domain2.com both point to the domain1.com server, some users get there through the urlo domain1.com and others by entering domain2.com into their browser. When the page loads I need to detect which one they used to get there?
View Replies !
Virtual()
I understand I was using virtual() for the wrong reason and from now on I'll use include() or require(). However, I'm curious about a problem I found. I have a test server (Red Hat 7.3, Apache 1.3.23, PHP 4.1.2, Server API Apache) where virtual() calls work in all cases. However, in the production server (Red Hat 9, Apache 2.0.40, PHP 4.2.2, Server APIApache 2.0 Filter) they work for all files except *.php ones. Whenever I use virtual() to include a PHP file all output is lost and browser gets an empty page. I just wonder why ?
View Replies !
Virtual() With IIS
I am developing a web page in dreamweaver. i am using iis, php, mysql. on one of my webpages i tried to use php function virtual() , but it didnt work. then i read the dreamweaver help and found out that this function will only work if i am using apache server. but the dreamweaver help also states that under specific circumstances the iis server is able to process this php function. Therefore id like to know what i should do to get this function going, because i dont want to use the file function instead.
View Replies !
Looking For A Substitute For Virtual()
I'm working on a PHP script that needs to pull in some HTML output generated by a Perl script. On my development server, I was able to do this with the virtual() function. But when I tried it on my production server (shared hosting), it threw an error about virtual() being an undefined function. So it looks like, for one reason or another, my host doesn't allow the use of that function. So, are there any good substitutes? I know I can use include() and use the full http address of the file I want to use, but according to some posts around here, that's much slower than using the file system and I guess it clutters up server logs unnecessarily. So I'd rather not use that method. And obviously, using a relative path with include() just pulls in the Perl code itself instead of the output.
View Replies !
Can't Get PHP To Run On ISS Virtual Directory.
I can't get PHP to run on ISS virtual directory. PHP runs fine if run from the www root, but if I create a virtual directory to another local drive and put the PHP files in there I cannot run them. If I put a normal html file in the virtual directory that works fine. I have checked the app mappings and PHP is in there and mapped, any ideas?
View Replies !
PGP With PHP On A Virtual Web Server
I'm trying to encrypt an e-mail web form using PGP3. One of my problems is that my unix virtual server does not allow SSH or Telnet access so I can not remotely add my public key to my webserver's public key. Thus, I am forced to upload my public key via ftp to the selected directory "www.mydomain.com/temp", and call on the key from there. The popular PHP/PGP script below by Julie does not work as I continually receive PGP Error # 5 messages. This is probably due to the fact that it can't find the public key to encrypt with. Any suggestions or workarounds? My hands are tied with my current ISP since ftp is about the only way I can communicate with my server files, and ftp is pretty limited in what it can do. Code:
View Replies !
IIS Virtual Paths
(Summary: is there a way to convert virtual paths to physical paths using PHP on IIS?) I hope I'm not covering old ground, but I've spent a couple of hours looking for this information and have so far failed. I'm creating a PHP site that will run on IIS (not my choice, so please don't just say "use Apache"), and I want to implement a virtual directory system to allow multiple "installations" that use a single code location. (This would mean that I could update the base code once and all the sites would "receive" the change, but using virtual paths each site has it's own configuration files, etc.) For this to work correctly, I need to be able to convert a virtual path on IIS into a physical path, and this is where I'm failing to find any useful information. Unfortunately I'm coming round to the conclusion that there isn't a way of doing this.
View Replies !
Php.ini And Virtual Hosts
I want to control some php configuration options with the php.ini file. Is this possible given that my site is on a virtual host? If so where do I place the file and how do I tell PHP to use it?
View Replies !
IIS Virtual Site With PHP
first off I will tell you I am running Windows Server 2003, PHP 4.3.2, and IIS 6.0. I have multiple domains hosted, each resolving to my IP - while I have created a Virtual Site in IIS for each one. It works great, except for PHP. www.bob.com resolves to xxx.xxx.xxx.xxx it actually lies within /wwwroot/bob/ If I try to load a PHP page in a webrowser, I get "No input file specified". I checked the mappings, they are correct for .php. I am stumped on this one..
View Replies !
Exec() And Virtual()
I'm trying to run an outside cgi script with exec or virtual. When I run commands such as exec("ls -l") and the like, everything works fine, but when I try to run my cgi script it either doesn't run or in the case of calling virtual I get a: Warning: virtual(): Unable to include 'tester.cgi' - request execution failed in directory on line 3
View Replies !
Virtual Xml DOMDocument
I would like to create a class that acts like an Xml document so that I can pass it through an XSLT transform. But, there is never any Document created. Basically, what I'm trying to do, is a virtual XML layer over a persistence framework that allows you to access a database with XPath queries. I've already done something like this in another project and language, but, it's too custom to pass into an XSLT transform. Also, the database huge. I only want to read the portions in... requested by all the XPATH stuff in the XSLT file. So, I basically want to do something like..... class DBDOMDoc extends DOMDocument { var $PersistenceObject; // This object is the head of the hierarchy... .... override reading of the nodes, with Persistence Framework requests (db queries ) } $xml = new DBDOMDoc; $xml->PersistenceObject = $someDBObj; // Configure the transformer $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); // attach the xsl rules if ( $argc == 4 && $argv[3]=='dom' ){ echo $proc->transformToDoc($xml)->firstChild->wholeText; } else { echo $proc->transformToXml($xml); }
View Replies !
Virtual Permalinks?
I would like to offer my members the option of accessing their homepages via virtual links like: www.mydomain.com/membername_membersurname.html or www.mydomain.com/membername_membersurname/ or membername_membersurname.mydomain.com However, if there are more than one member with exactly same name and surname (is quite possible), I would like a page to be displayed, with a list of member names AND ID nos for example. So they can choose the right thing.
View Replies !
Virtual Hosts
Is it at all possible to run a php 'virtual host' like the virtual hosts in apache? I want to be able to make users have their own temp folder in their home folder and also so I can restrict some of their options without disabling mine as well. I have googled this but don't know what it would be called. I haven't found anything after several days of searching. does this mean it doesn't exist?
View Replies !
Virtual Visit
I need to have a form page on one of my sites do a virtual visit to a form page on another site and populate the form fields on that remote page. I know it's being done, but don't have a clue how.
View Replies !
Virtual Includes
I am in the process of learning PHP - having used ASP for the past 7 years. So far I'm finding it to be very user-friendly. However there's one issue I can't quite get my head around: includes. In ASP, I would normally set up a site-specific includes folder in the site root, and use the following code: <!--#include virtual="/includes/header.asp"--> However, from what I gather, PHP requires that you set assign the path of your include folder to you include_path parameter in the php.ini I've since learned that you assign multiple paths to this parameter. However we host many sites on our server, and they will very likely all have includes named "header.php" and "footer.php" etc. So my question is can you tie a particular include_path to a particular site - or do I have to give all my includes unique names?
View Replies !
Virtual Verse SSI
I inherited an Apache setup that after years of modifications, needs a bit of a cleanup. Every .html file is processed for both SSIs and PHP. The only active SSI is a virtual include of a CGI script, which is on almost every file. PHP use is more sporadic, used only on a certain fraction of pages (we have thousands of articles). I want to change all <!--#include virtual="..."--> references to use the PHP virtual() function instead and disable SSI parsing. I haven't seen any benchmarks one way or another, just some anecdotal references. Here is a small snippet of the Apache 2 config: ... AddHandler server-parsed .html AddType application/x-httpd-php php Options Includes ExecCGI FollowSymLinks ... <FilesMatch ".(php|htm?l|)$"> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 524288 </FilesMatch> ... AddOutputFilter PHP .html ...
View Replies !
Virtual Folders
I can't get file command like file($fileName) and file_exists($fileName) to work with a file stored on another server and accessible through a virtual folder. /resources/ is a virtual folder pointing to a location on a remote server that is accessible via network, file_exists("/resources/tmp/test.txt")src = "/resources/tmp/test.txt" however does work oddly enough.
View Replies !
Apache Virtual
I'm using PHP 5.1.1 with Apache 2.0.54 and several virtual hosts. PHP is installed as a module. I've created a very simple test page containing <?php phpinfo(); ?> and placed it at the doc root of three of my hosts. The main site hosted by Apache executes the page perfectly and displays the expected output. None of my virtual hosts, however, will execute the page. The virtual hosts attempt to load the page for a long time, then timeout. No errors are placed into my log files.
View Replies !
Virtual Path
Is there something to include virtual in php like in asp? in asp: <!-- #include virtual="/transit/functions/transfer.asp" -->
View Replies !
Virtual Directory Support ?
Looking at the phpinfo() page, I was wondering what the variable Virtual Directory Support was. I'm actually looking for a mechanism to translate: http://www.mysite.com/forum/computers/ into: http://www.mysite.com/index.php?1=forum&2=computers If you know what I mean. I see all those fancy sites with this kind of structure. It seems that those directories are parsed as PHP variables. My questions: 1) Is this called Virtual Directory Support? 2) How do I setup such a structure? I'm using PHP 4.3.3RC1 with Apache 2.0.46.
View Replies !
PHP And Perl, Virtual() Not Recognized
I have a Perl script that reads a javascript navigation file and outputs a sitemap. It works well on one server, but when I try to install the same script on another server, it comes up with the following error: Fatal error: Call to undefined function: virtual() in /home/takeback/public_html/sitemap.php on line 5 Why wouldn't the server recognize the virtual function? The server is running Apache/1.3.29 (Unix).
View Replies !
Virtual Library Missing?
I am trying to install PHP5, MySQL, and PHPMyADMIN on my local machine. I've done this many times before with previous versions of PHP. I am aware that MySQL is not supported by default in PHP5+ but I cannot get it configured because the virtual library does not exist. Everything installed without a problem, but when editing the PHP.ini file to point the the extension_dir the /ext folder does not exist (C:/PHP/ext/). I can't find the dll files anywhere on the machine. I've run phpinfo() and the system insists that /ext exists, but it doesn't.
View Replies !
FOXSERV And VIRTUAL HOSTS
i have added to my "httpd.conf" virtual servers and now it looks like: ....... ServerName localhost DocumentRoot "C:/FoxServ/www/" ........ NameVirtualHost * <VirtualHost *> ServerName serwer1 DocumentRoot /www/serwer1 </VirtualHost> <VirtualHost *> ServerName serwer2 DocumentRoot /www/serwer2 </VirtualHost> the apache window saysno errors and nothing happens when i write http://localhost or http://serwer1 or http://serwer2
View Replies !
Mail() And IIS Virtual SMTP
I'm trying to get the PHP mail() function to work with a localhost IIS Virtual SMTP server. However, I keep getting an error message: quote: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in f:Inetpubwwwrootformsmail.php on line 4 I don't understand what other settings to change or how to get it to talk to the virtual SMTP domain. Anybody know how?
View Replies !
VIRTUAL CARD GAME
I am building a virtual card game, once the data is randomly selected 4 images: ie players cards, these are displayed, the next 4 cards are the "Computer's" hand, The balance of the random array must also figure into the equation, since further cards may be drawn to improve an initial hand. I have structured it by using two tables A- To store card image name/value pairs and B- To capture the data from table A so that the hand dealt to player and computer can be manipulated, ie an update would be performed when new cards are drawn, and old cards are deleted from the shuffle. I am not sure that this is the right way to go about it. Initially I wanted to use an assoc array of image name/value pairs then once randomised these values would be stored in said table B. B's columns are id, game_id, yourcards, yourscore, computercards, computersscore, extracards, ip. ip deatails are only used to access previous scores, game _id will be used to track the game, no SESSIONS can be used since the cache has to be cleared using a header to insure that a new game is displayed by the browser when "START OVER" is selected.
View Replies !
Virtual Dedicated Server
Free PHP-hosting/development platform available in exchange for creating a simple webfront for the (non-commercial) service. The server is hosted in a cybercenter with a 100Mbit connection to the Internet. The system is running FreeBSD-4 and I will make a dedicated jailed rootshell available.
View Replies !
Cron Job With Virtual Hosting?
I made a PHP script that creates an HTML file. I want that script to execute every hour. I have a virtual hosting account so I don't know how much I can do, i.e. setting up a proper cron job. Any ideas? Also, if people are constantly hitting the HTML page that my PHP script creates will PHP overwrite the file properly so it gets used when it's written to disk?
View Replies !
Virtual Command Not Working
I'm really an ASP coder but have been asked to fix someones php site. I've had a look at their pages and none of the php pages that are using the "virtual()" command are working. When I replace the command with the include() command they seem to work again. Can anyone tell me why the virtual may have stopped working (it was working before) and another fix apart from replacing all instances of virtual with include? I'm not really sure what the difference is between them..
View Replies !
Document_root For Virtual Domain
Is there an easy way in php of obtaining the document root for virtual domains? For example, apache is usually configured to serve pages from /usr/local/apache2/htdocs So if I do. <? echo $_SERVER['DOCUMENT_ROOT']; ?> I'd get /usr/local/apache2/htdocs. However, many domains can be hosted on one IP using virtualhosts config. How do I obtain the document_root for those domain in php?
View Replies !
Virtual Directory Support In PHP
I've looked around as to this subject, but found no answer so thought i'd just ask. What is Virtual Directory Support? It's marked as disabled in most PHP installations i've found that have publicly accessible <?phpinfo()?> pages. (bad idea really).
View Replies !
Running Across Virtual Servers
I have a 2 websites running off of an apache server on a iSeries AS/400 and with that I have virtual servers running those sites out of port 8081 but they do not read PHP files. However, I have ZendCore running off of Port 89 - where I am able to run PHP scripts that are stored in "/www/zendcore/htdocs". My question is how do I get it to were the websites running off of the port 8081 are able to run PHP scripts? Do I need to move those entire sites over to the"/www/zendcore/htdocs" directory or is there a way to communicate between them and have them read PHP across all virtual servers and not just Port 89?
View Replies !
Include_path Vs Virtual Host Tags
I am having some trouble with php's include_path directive. If I look at phpinfo() the include path is set to c:php4pear (running php as apache module on win2k php v.4.2.4 dev) In my virtual host tags I have specified php_value include_path "c:dirdirhtdocs;". This directive is being ignored and it keeps reporting the include_path as c:php4pear. I have looked at the php.ini file in c:winnt and the include_path directives there are commented out. Where else could php be getting this from and how can it be overriding the apache conf directives?
View Replies !
Date/Time On Virtual Host
I am working on a site that will be hosted on a server in the US, but it's audience is primarily Australian. So I want to display the date and time items were posted etc in Australian time. What is the best way to accomplish this. I know I can use someting like: gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98)); to get GMT for the current time on the server. But how do I add the 10 or 11 hours difference to reflect the current time in Australia?
View Replies !
Getting Libcurl Up And Running On Virtual Host
I am using Virtual hosting and have to SSH in to set up and compile Curl. I was wondering if anyone had any recommendations of tutorials or directions of where to get started? I am using Linux with Apache, I am hoping to get some good direction because when I edit this area of the server, I am on my own from the hosting company, so if I screw up I am sol.
View Replies !
Virtual Servers And $_SERVER[DOCUMENT_ROOT]
I'm new to php and was wondering if someone could help me out with the best way to accomplish this. I have Solaris 9/Apache 1.3.31/PHP 5.1.4 that I compiled from source code and installed. I have multiple virtual web servers configured in httpd.conf and php scripts run only if they are placed in my first VirtualHost DocumentRoot directory as defined in httpd.conf: <VirtualHost X.X.X.X:80> DocumentRoot /usr/local/apache/sites/webdocdir </VirtualHost> I would like to get php scripts to run in one of my other virtual servers defined in httpd.conf. Right now, my $_SERVER[DOCUMENT_ROOT] gets defined (I think) from httpd.conf such that it points to /usr/local/apache/sites/webdocdir. This I can see from the results of a phpinfo(). Is there some way of configuring Apache and/or php so that I am not forced to put php scripts in /usr/local/apache/sites/webdocdir?
View Replies !
Decent PHP Virtual Server Host
I'm currently using startlogic.com for my PHP/MySQL virtual server. At $20, it's hard to beat the price. Unfortunately, I'm getting more and more dissatisfied with their uptime. I need PHP, MySQL, and the ability to host multiple domains. Are there any other hosts y'all have had good or bad experiences with?
View Replies !
Virtual Directory Does Not Allow Contents To Be Listed.
I am getting this error when I try to list a DIR using php: This Virtual Directory does not allow contents to be listed. I was wondering if this is my hosting causing this error or if I need to show the script As there are no PHP erors I think it could be a hosting company problem.
View Replies !
Open_basedir Leaking Between Virtual Hosts
I am setting open_basedir to include only the DocumentRoot and PHP installation tree in 16 out of 18 VirtualHosts on our (test) apache server. This is running apache 2.0.53 and PHP 5.0.3. If I force a graceful restart, then fetch a trivial PHP page containing little more than a single call to phpinfo(); from each host, I get the correct value reported for open_basedir from the first few requests, then the value seems to cycle round the value expected for the first 5 VirtualHosts - I presume that each pre-forked process that apache uses is hanging on to its value of open_basedir even though it is next used to serve a page from a different VirtualHost. Code:
View Replies !
Virtual Include Path Issue
I have a problem including a file where there should be no problem whatsoever: I have the following structure /home/blast/test/ -> Mapped to virtual directory So when i type in http://test.example.ie/ i get /home/blast/test/ Now in the /home/blast/test/ directory i have a file called index.php and process_login.php I am calling process_login.php from index.php The problem is process_login.php needs to include a file in home/blast/test/includes/ I have entered the following code in process_login.php Code:
View Replies !
Virtual Cash/money System.
I was wondering if anyone knows of a php money system for purchasing downloads. (Kinda like an e commerce system). However the website will not use any real cash at all, people who do things for our company will be given “Virtual Cash� (Manually entered data). They can then login to there account so they can purchase downloads.
View Replies !
Absolute Paths & Virtual Hosts
I needed a way to include files from anywhere in my file structure. This code worked perfectly: <?php include($_SERVER["DOCUMENT_ROOT"].'/_includes/components/header.php'); ?> Now I have multiple sites that I run locally under virtual hosts in Apache. For my includes to work now, I need the path to resolve to the virtual host directory, instead of the localhost htdocs directory. How can I get the include path to resolve to the virtual host directory?
View Replies !
|