emehrkay Posted November 21, 2007 Share Posted November 21, 2007 I just installed php5.2.5 on a server and I am porting over an old script. Every time there is an \f surrounded by double quotes in one of the include/require paths, there is a blank space causing the include/require call to fail. What does it do and can I turn that off in the ini somehow? Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/ Share on other sites More sharing options...
trq Posted November 21, 2007 Share Posted November 21, 2007 Escapes the f. Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-395962 Share on other sites More sharing options...
emehrkay Posted November 21, 2007 Author Share Posted November 21, 2007 That is strange because these includes work fine on the other servers, do you think it has something to do with the version of php that i installed? The one throwing the errors is 5.2.5 while the other servers run an older version of 5.1.x Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-395970 Share on other sites More sharing options...
trq Posted November 21, 2007 Share Posted November 21, 2007 Can wee see the line in question? Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-395974 Share on other sites More sharing options...
emehrkay Posted November 21, 2007 Author Share Posted November 21, 2007 require_once(CLASS_PATH."lms\schema\faculty_dao.php"); I know it doesnt need the parens, I didnt write it. The only way for me to get these to work is if I go through the source and change the double quotes to single and I really shouldnt have to do that. Any ideas? Is there something in the INI? This is the frist time that i've really installed/tweaked php and the ini file. Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-395982 Share on other sites More sharing options...
emehrkay Posted November 21, 2007 Author Share Posted November 21, 2007 sorry. that include produces PHP Warning: require_once(e:/jasi/classes/lms\schemaaculty_dao.php) Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-395986 Share on other sites More sharing options...
kenrbnsn Posted November 21, 2007 Share Posted November 21, 2007 Change the backslashes to forward slashes. Or change the double quotes to single quotes. A "\f" is probably a formfeed character. Ken Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-395990 Share on other sites More sharing options...
trq Posted November 21, 2007 Share Posted November 21, 2007 The slashes are around the wrong way. They either need to be escaped or turned around. require_once(CLASS_PATH."lms\\schema\\faculty_dao.php"); require_once(CLASS_PATH."lms/schema/faculty_dao.php"); Seems it may be some windows thing as windows uses backward slashes. There may be a setting that fixes this, but I'm not sure. Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-395991 Share on other sites More sharing options...
emehrkay Posted November 21, 2007 Author Share Posted November 21, 2007 Oh ok it is a formfeed. I was just wondering if there was a setting somewhere that allowed for it to be used, because on one server \f works as expected. On this new install it gives me the blank/box space. From here on out I can recommend that single quotes, along with no php short tags [two things i've found during this new install], not be used anymore, but right now changing them all is not an option. Thanks for the help Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-395995 Share on other sites More sharing options...
revraz Posted November 21, 2007 Share Posted November 21, 2007 Did you change from Unix/Linux to Windows? Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-396017 Share on other sites More sharing options...
emehrkay Posted November 21, 2007 Author Share Posted November 21, 2007 No I didnt change os, but I just found out that we have a copy of php 5.1 configured already in vss. I will install that one and see if that makes a difference Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-396032 Share on other sites More sharing options...
trq Posted November 21, 2007 Share Posted November 21, 2007 Fix the code! Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-396034 Share on other sites More sharing options...
emehrkay Posted November 21, 2007 Author Share Posted November 21, 2007 Fix the code! lol hey it's not my call. I'd love to, but whatever the 5.1 install works and I have no idea why. Thanks guys Link to comment https://forums.phpfreaks.com/topic/78249-what-does-f-do-when-surrounded-by-double-quotes/#findComment-396046 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.