I am trying to create a link to a jpg file on my php website using a wildcard to return the string to the browser. Here is the function
[code=php]
function getUserProfile( $userid) {
if ($userid == SPY_USERID) return NULL;
return('../images/comprofiler/' . $userid . '*' . ".jpg");
[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
This returns http://mysite.com/images/comprofiler/63*.jpg
it should return http://mysite.com/images/comprofiler...josfsfj234.jpg
63 is the userid.
Someone please show me the proper sytax for wilcards. Thanks
[code=php]
function getUserProfile( $userid) {
if ($userid == SPY_USERID) return NULL;
return('../images/comprofiler/' . $userid . '*' . ".jpg");
[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
This returns http://mysite.com/images/comprofiler/63*.jpg
it should return http://mysite.com/images/comprofiler...josfsfj234.jpg
63 is the userid.
Someone please show me the proper sytax for wilcards. Thanks
Comment