RE: [PHP] URL problem

2006-02-17 Thread Shaunak Kashyap
If you are in a *nix environment, make a symlink from site_folder/index.php - 
site_folder/example_folder/index.php and that should do it.

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the 
attachments accompanying) it may contain confidential information 
belonging to the sender which is protected.  The information is 
intended only for the use of the intended recipient.  If your are not 
the intended recipient, you are hereby notified that any disclosure, 
copying, distribution or taking of any action in reliance on the 
contents of this information is prohibited. If you have received this 
transmission in error, please notify the sender by reply e-mail and 
destroy all copies of this transmission.

-Original Message-
From: Jesús Alain Rodríguez Santos [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 17, 2006 2:49 PM
To: php-general@lists.php.net
Subject: [PHP] URL problem

I have a following directory:
- folder (site)
   index.php
   - folder (example)
 index.php

the url to this directory will be: http://www.example.com/site/index.php
but I need redirect with: header() function to the index.php inside the folder 
example without the url change
I mean, I want to keep the same url but diferent directory
-- 
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] URL problem

2003-07-07 Thread Brad Pauly
Sparky Kopetzky wrote:
and intercepting it with:

if ($_SERVER['QUERY_STRING'] = ) { disp_cat(); }

However, nothing is happening. phpinfo show $_SERVER['QUERY_STRING'] as 'no value', so this should work.

Anyone know why this doesn't work??
Yes. You are using an assignment operator where you should be using a 
comparison operator. Try using == (or ===):

if ($_SERVER['QUERY_STRING'] == ) { disp_cat(); }

http://us4.php.net/manual/en/language.operators.assignment.php
http://us4.php.net/manual/en/language.operators.comparison.php
Brad



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Url problem

2003-06-12 Thread Jason Wong
On Friday 13 June 2003 04:55, Sparky Kopetzky wrote:

 I'm trying this, it doesn't work and I can't figure out why:

 include_once $SYSTEM_URL . /classes/category.php; where $SYSTEM_URL =
 http://www.example.com; is the url to the web site. and I get this error:

 Fatal error: Cannot instantiate non-existent class: category in c:\program
 files\apache group\apache\htdocs\index.php on line 19

 So, obviously, it's not pointing to the right place. I can load the opening
 page from the url, so I know Apache is trying to load from the htdocs
 folder.

Short answer: you can't include files like that through a URL
Shorter answer: RTFM, study the examples

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The only winner in the War of 1812 was Tchaikovsky.
-- David Gerrold
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php