Link to home
Start Free TrialLog in
Avatar of aej1973
aej1973

asked on

what does this statement mean in php?

Can someone let me know what this translates to ?

$mediaFolder = dirname(__FILE__).'/media';

$wavFilename = sprintf('%s/u%d_m%d.wav', $mediaFolder, (int)$recordingRow['uniqueid'], (int)$recordingRow['msgnum']);

Thank you,
A
SOLUTION
Avatar of mankowitz
mankowitz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aej1973
aej1973

ASKER

how about this...?


sprintf('%s/u%d_m%d.wav', $mediaFolder, (int)$recordingRow['uniqueid'], (int)$recordingRow['msgnum']);
Avatar of aej1973

ASKER

I mean... '%s/u%d_m%d
http://php.net/manual/en/function.sprintf.php

The % codes are part of the formatting that sprintf() does.
Avatar of aej1973

ASKER

ok, what does the /u  mean? That is the part that is confusing me, and also %d_m. Thank you.

A
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aej1973

ASKER

Thanks.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ummmm, why did you give a grade of B when people were still answering you?
Please see the grading guidelines here:
https://www.experts-exchange.com/help/viewHelpPage.jsp?helpPageID=26

I'd like to call your attention to these expectations:
A should be the default grade awarded unless the answer is deficient.
And to this requirement:
A B grade means the solution given lacked some information or required you to do a good amount of extra work to resolve the problem. When closing the question, the asker should explain why a B grade was awarded.
So what was wrong with the answers and why did you not follow up before giving the bad grade?
Avatar of aej1973

ASKER

Ray,

you are right I have made a mistake in my grading, how can I go back and correct this? I apologize for this error.

Regards,
A
You can use the "Request Attention" button to ask a moderator for assistance.  The mods can change the grade or re-open the question if you still need assistance.

Thanks and regards, ~Ray
Avatar of aej1973

ASKER

Thanks Ray, I have submitted the request.
Avatar of aej1973

ASKER

Thank you.