Welcome Guest, Not a member yet? Register   Sign In
Retrofitting App to use CodeIgniter
#13

[eluser]dcunited08[/eluser]
Quote:instead of using chdir() to help old scripts scope themselves, i just went in a modified the scripts.

however, your solution may be better in the long run. i'll try it out, but could you let me know if you get into any problems with chdir() yousrself? thanks.

I have used it several times for different includes and requires and, so far, havn't had a problem. If I could go in and change every script, I would change it to use the library functions. The problem is with relative links here there and everwhere, there is no way for me to really do that. Say I have a file ./1.php and ./1/2.php and wanted both of them to look at ./1/3/2.php. They would need different includes from their relative locations, not something I would like to do with a search and replace. I put the second chdir in to return it to the original directory so that it does not have issues further down the line.


Messages In This Thread
Retrofitting App to use CodeIgniter - by El Forum - 09-12-2008, 09:25 AM
Retrofitting App to use CodeIgniter - by El Forum - 09-12-2008, 11:37 AM
Retrofitting App to use CodeIgniter - by El Forum - 09-15-2008, 04:12 AM
Retrofitting App to use CodeIgniter - by El Forum - 09-15-2008, 04:27 AM
Retrofitting App to use CodeIgniter - by El Forum - 09-15-2008, 07:56 AM
Retrofitting App to use CodeIgniter - by El Forum - 09-16-2008, 07:01 AM
Retrofitting App to use CodeIgniter - by El Forum - 09-16-2008, 11:43 AM
Retrofitting App to use CodeIgniter - by El Forum - 09-16-2008, 12:09 PM
Retrofitting App to use CodeIgniter - by El Forum - 09-16-2008, 02:13 PM
Retrofitting App to use CodeIgniter - by El Forum - 09-17-2008, 01:37 PM
Retrofitting App to use CodeIgniter - by El Forum - 09-17-2008, 07:32 PM
Retrofitting App to use CodeIgniter - by El Forum - 09-18-2008, 10:08 AM
Retrofitting App to use CodeIgniter - by El Forum - 09-18-2008, 12:19 PM
Retrofitting App to use CodeIgniter - by El Forum - 09-18-2008, 12:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB