473,804 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP script + .htaccess file integration

Can we write php script in .htaccess file? please explain with
suitable example.

Jul 12 '07 #1
2 1512
rf
<jy************ @gmail.comwrote in message
news:11******** **************@ d55g2000hsg.goo glegroups.com.. .
Can we write php script in .htaccess file?
No.

--
Richard.
Jul 12 '07 #2
jyotsna.purkar wrote:
Can we write php script in .htaccess file?
No.
please explain with suitable example.
Here is a suitable example:
Jul 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6147
by: Geoff Soper | last post by:
I'm not quite sure if the answer to my question lies in the Apache or PHP realm. If I have a php script running on Apache which outputs a JPEG image such as http://domain/get_image.php?id=15&size=thumb can I somehow disguise it as http://domain/image15_thumb.jpg to allow browser caching? I'm assuming the majority of people's browsers don't cache images generated from scripts such as PHP? For this reason I would imagine the solution...
8
2128
by: Joe Randstein | last post by:
Hi! I need the best way to solve a problem, I'm a newbie. I have "login.php", a login script. That page first displays a login form with itself as target of a post-request to validate data when user presses the login-button (I can't change that setup). If the login is not correct I want to display the login form again and show an additional line displaying the error, that is easy and already working.
3
2129
by: Jerry | last post by:
Hi All: Is there any way I can get my script to be able to create and CHMOD folders and files??? I always get the following error: mkdir(TESTDIR): Permission denied in /usr/www/users... Is there a way I can enable the script to do all that by placing a ..htaccess file which contains some permissive directives?
8
13152
by: Stefan van Roosmalen | last post by:
Hi there, The first page of my Internet website must be INDEX.HTM. But, if I want to embed some PHP code in this page, I must rename it to INDEX.PHP. Easy, but not simple, because INDEX.PHP will not load as the default startup-page of my website. So, my question is: How can I embed some PHP code within a normal HTML page (without using the
1
2796
by: neha | last post by:
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using are apache version2. mod_python v3.1.14 python2.4 The problem is,when i m running my python script,after starting apache
0
1407
by: Pete Beech | last post by:
Hi, We have an ASP.NET 1.1 webapp, deployed on an integration and a production server - exactly the same code. One of the pages has client side validation script, using the validation Webcontrols. The HTML rendered out from production is different to that from integration, although they are both running ASP.NET 1.1 (verified using aspnet_regiis -lk, looking
10
2224
by: =?ISO-8859-1?Q?Fran=E7oise_Debat?= | last post by:
Hello, I wonder if anybody can help. I have an IP blocking script which displays a blank screen if an IP is detected from a list in an external file. The problem is, the script only reads the last IP¨in the file, not every one. Can somebody tell me where this is going wrong? <?php //get user's IP address
4
1576
by: bluegray | last post by:
I'm writing a script that outputs html. It works fine in Firefox, however, IE wants to download the file instead of displaying the output. I keep getting the file download dialog instead of the html page. I am doing something like this: print 'Content-Type: text/html ; charset=utf-8\nCache-Control: no-cache \n' print '<html><body>some text and html</body></html>'
3
5199
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10359
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9177
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3005
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.