Jump to content
php.lv forumi

user avatar.


jancuks2

Recommended Posts

Esmu izveidojis skruptu kas izvada lietotaju sarakstu kurā rakstīts ir Lietotāja vārds un avatars. Uzspiežot uz avatara atveras sīkāka info par to lietotāju.

 

Bet problēma ir tāda kad ja avatars ir upload mapē tas parādās. Bet ja ir ieliks links uz bildi rāda error. Un nokopējot bildes adresi adrese ir šāda.

 

Ja bilde atrodas uz kāda cita servera.

 

http://*********/f/uploads/http://bildites.lv/images/c239f8pzey3mpc2cthau.jpg

 

Ja uz tā paša servera.

 

http://*********/f/uploads/avatar.jpg

 

 

PHP kods

 

Lieko Izņēmu.

Edited by jancuks2
Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...