Debugging without any extension |
Site Admin
|
How would you run such scripts on the server?
Apache for example requires the line below: AddType application/x-httpd-php .php without an extension you can't run php scripts. |
||||||||||||
|
|
The php script is called "main"
My .htaccess has: <Files main> SetHandler application/x-httpd-php </Files> AddType application/x-httpd-php . .php .phtml .html I'm not too sure how valid the AddType is, but on my win2000 server it works fine. I've also seen php scripts in production without any extensions, eg the cms app "sitellite" uses "index" php script without an extension. From the sitellite .htaccess: <Files index> ForceType application/x-httpd-php </Files> |
||||||||||||
|
Any response? |
|
Hello - any response yet how to debug scripts without any extension? I've figured that I can add extensions to the scripts and use find/replace to change the script names where referenced within the scripts whenever I want to debug, and then change them all back before loading for production, but it's (a) a real pain, and (b) not all the scripts are that neatly named so I've already had a few problems using this find/replace method, and (c) some scripts (ADODB) keep their extensions, so it just adds to the problem using this work-around. There are more than a hundred scripts in my app, so I'm really keen to find another way to do this. Any help would be appreciated.
|
||||||||||||
|
Site Admin
|
I tried and did not experience any problems so far.
a) open tools->settings->IDE->Associations and add *. for either php4 or php5 language b) create new file and save it as index. (don't forget to add dot at the end of the name) c) add necessary content to the file and run with debugger. FYI: I'm using phped v4. |
||||||||||||
|
|
Ahh... the dot after the filename - I hadn't tried that. I've just downloaded v4 now to upgrade, so I'll give it a try. Thanks.
|
||||||||||||
|
Debugging without any extension |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by