Jump to content

what does \f do when surrounded by double quotes?


emehrkay

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.