RE: [PHP] Extracting just the filename from REQUEST_URI

2001-03-28 Thread FvH
Start parsing the string from the string-length to the begin. so //training/olddata/file.htm is 27 chars long Start at 27 and parse it back till you've found the '/' char for the first time. Read the positionnr. of the / and copy that position+1...strlen and you're ready.

[PHP] HTTP Referer has to be changed.

2001-02-01 Thread FvH
Hi, I've got a problem with the HTTP_REFERER. I'll explain it to you now. I've got a site where I can't logon to to change some things. That site checks the HTTP_REFERER variable and if it matches with what's in the MySQL db it passes you through. Now I've got a site which has to have access to