A simple get avatar function |
[eluser]Iwasignited[/eluser]
Hello everyone. Its me again. This time, I have a question. I wrote: Code: function getAvatar($userid) in my avatars folder, I placed a file named 5.jpg but my user whose userid = 5 (a test one) always receives 'noavatar.png' as the avatar. Please let me know what Im doing wrong. Thank you all.
[eluser]Sbioko[/eluser]
Code: var_dump($dest);
[eluser]Iwasignited[/eluser]
I dont understand the destination var receives: http://localhost/CMS/avatars/5.gif http://localhost/CMS/avatars/5.jpeg http://localhost/CMS/avatars/5.jpg http://localhost/CMS/avatars/5.png
[eluser]Sbioko[/eluser]
Aha, I understood the problem. Show your .htaccess file :-)
[eluser]Sbioko[/eluser]
Ok, I'll talk in more understandable way. Does your urls look like: http://test.com/index.php?c=main&m=index¶m=testing?
|
Welcome Guest, Not a member yet? Register Sign In |