[php] link generation

Viewer

copydownloadembedprintName: link generation
  1. $link = Yii::$app->params['frontendUrl'].'projects_pictures/'.$listData->id;
  2. echo $link; //it generates/prints this link http://portfolio.com/projects_pictures/3
  3. //but when i pass $link to file_exist() then it says it is not a file/directory. 
  4. //in short it skip this link and moves to else part of condition
  5. //this Yii::$app->params['frontendUrl'] has link to http://portfolio.com/

Editor

You can edit this paste and save as new:


File Description
  • link generation
  • Paste Code
  • 23 Jan-2022
  • 386 Bytes
You can Share it: