I am using mod_rewrite to take all non-existant .htm files called and change them into .php then direct those called files that still do not exist to one file which works magic to run a web site.
THe following is in a .htaccess file:
RewriteEngine on
rewritecond %{REQUEST_FILENAME} !-f...
I found that thread here: thread608-494818 it did not work for me. IE still wants to connect to the internet the moment I click a Fully Qualified Domain Name, including my own.
I need to find a way perhaps to set up a DNS system on my PC, but there has got to be asimpler/smarter way.
Perhaps if you do:
<script language="JavaScript" type="text/javascript">
<!--
if (top==self)
self.location.href="index.php?page=<?php echo $_SERVER['REQUEST_URI']; ?>";
-->
</script>
and then have index.php load $_GET['page'] into the frame.
I do a lot of php script testing on my home box Win 98SE. I have apache running with virtualhosts set up and pointed to in my hosts file.
In order to mimic what happens on the live server I have created the domains hosted on my computer with the tld of .bob so I connect to mydomain.bob instead...
I had some trouble with this.
I used
exec('rm -rf modules');
to remove the directory "modules" which was in the same directory as the php script holding this command.
I had echo statemants on each side of the command and they printed out, but the directory was never deleted.
I am trying to delete a large tree of files on my server. What I need is a way to delete it quickly using php.
I usually use telnet with rm -rf directory
But I do not have telnet access to this particular server. How can I do this in PHP?
I have a table set up with a background image. When the mouse goes over a cell it changes color and when the mouse goes out the image peeks out again, but only in IE. Netscape changes the color on mouseover, but I can't get it to revert on mouse out.
Oh, I also put in the javascript to make...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.