Ask a Question related to PHP Development, Design and Development.
-
Ralph Freshour #1
Get .PHP Filename?
I've been looking thru my PHP functions and can't find what I need -
is there a function that will tell me what .php file is currently
executing?
Thanks...
Ralph Freshour Guest
-
Exporting Changes my filename
Sometimes when I go to export a pdf the filename has somehow changed to a new file name. It doesn't happen all the time only sometimes -
split filename
who can split this file name then subtract "kenny.pdf" file name--> C:\programfiles\funk\pdf\kenny.pdf -
Getting only the filename ??
I'm creating a player that allows you to have multiple files stacked and play anyone of them. The problem now is i need to get only the filename out... -
Opening the same filename
On my computer, (Windows XP FMP 5.5 & FMD 6) I can open two files with the exact same name that are stored in different directories. On my friend's... -
PC to Mac jpg Filename Problem
I'm using PS 7.0.1 on XP Pro, and whenever I save a jpg file and burn it to disc, the filenames dislay completely different on a Mac. For example,... -
Terry Austin #2
Re: Get .PHP Filename?
Ralph Freshour <ralph@primemail.com> wrote in
news:21rvlvo3crema1kiontqaklkl8len3230r@4ax.com:
$_GET['SCRIPT_NAME'] will give you the current path, without any GET data.> I've been looking thru my PHP functions and can't find what I need -
> is there a function that will tell me what .php file is currently
> executing?
>
I think.
$_GET['REQUEST_URI'] will give you the full URI, including any GET data.
--
Larry Flynt for Governor!
Bringing dignity back to the Governor's Mansion
Terry Austin
[email]taustin@hyperbooks.com[/email]
[url]http://www.hyperbooks.com/[/url]
Terry Austin Guest
-
Randell D. #3
Re: Get .PHP Filename?
"Ralph Freshour" <ralph@primemail.com> wrote in message
news:21rvlvo3crema1kiontqaklkl8len3230r@4ax.com...$_SERVER['PHP_SELF'] is just one of a number that could tell you what you> I've been looking thru my PHP functions and can't find what I need -
> is there a function that will tell me what .php file is currently
> executing?
>
> Thanks...
>
want... A whole host of other interesting values are available if you just
call phpinfo(); and check the output (which is in a nice clean table). Note
though that some variables are sent by the client (browser) and not all
clients (browsers) send the same amount of data (ie some reveal more
information, others don't - and some (like me) who have Norton Internet
Security 2003 have some of the headers sent by the client removed before
they hit the server (meaning minimum amount of data).
But if its just findiing out about server side values, then you should/can
rely on phpinfo(); to help you out.
Randell D. Guest
-
Rainer Erismann #4
Re: Get .PHP Filename?
"Ralph Freshour" wrote: I've been looking thru my PHP functions and can't
find what I need -$_SERVER['PHP_SELF'] is the 'parent' script you are executing. If you> is there a function that will tell me what .php file is currently
> executing?
include several files into it, $_SERVER['PHP_SELF'] would still be the
same.
If you need the filename of included files into themselfs, use __FILE__.
Rainer Erismann Guest
-
Matthias Esken #5
Re: Get .PHP Filename?
Ralph Freshour <ralph@primemail.com> schrieb:
Use the function phpinfo() and have a look at all those variables at the> I've been looking thru my PHP functions and can't find what I need -
> is there a function that will tell me what .php file is currently
> executing?
end of the page. You might get some more ideas about your task. :-)
Matthias
Matthias Esken Guest



Reply With Quote

