I have a page with asp on it, it's called
index.asp
my question is can I put a php script for my upload section on the same page? and if so what extention do I use, .php or .asp?
i think the answers no..the server uses the file extension name to recognise who it should ask to parse the script the php parser will not recognise the asp code and vise versa..if somebody does have an answer i'd be interested in hearing it
Not possible, like you can not mix Visual Basic with Pascal code in one file. Only possible when you have ASP code which generates PHP code or otherway around... The ASP is then in a ASP file and it's generate a PHP file, so the webserver knows which kind of code is in which file. But is this what you want...?
I agree that this might be hard to do... but it is posible..
From ASP you can call php code (through php.exe) and return the output with exec();
I have never tried it and probably never will. Let me know if you get it working...
Andreas
yeah i need this too... like i got all my data on a access database and it will be a pain in the ass to move it all to mysql. can you do this with something like a include command like include say index.asp into index.php?? if this is possible it would make my life so much easier...