Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 1st January 2016, 23:25
kOni kOni is offline
Senior Member
 
Join Date: Apr 2012
P2P
Posts: 17
Default Error msg
Hello and happy new year!

stderr("Error", "Access denied");

I want insted this error msg to display an image.
Reply With Quote
  #2  
Old 2nd January 2016, 00:38
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
img src ?
or make a variable that will have img src and trigger the variable from there instead of Access Denied..
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #3  
Old 2nd January 2016, 00:50
kOni kOni is offline
Senior Member
 
Join Date: Apr 2012
P2P
Posts: 17
Default
Quote:
Originally Posted by DND View Post
img src ?
or make a variable that will have img src and trigger the variable from there instead of Access Denied..

Image i think... that will fit in all resolution screens.
Reply With Quote
  #4  
Old 2nd January 2016, 21:49
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
You can do something like this:

PHP Code:
$errorimage "<img src='pic/error.png' width='80%'>";

stderr("Error""$errorimage"); 
or

PHP Code:
stderr("Error""<img src='pic/error.png' width='80%'>"); 
and you can play with height and width values as you wish.
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
  #5  
Old 2nd January 2016, 21:52
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
and what did i said was... !?
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #6  
Old 2nd January 2016, 21:55
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
Quote:
Originally Posted by DND View Post
and what did i said was... !?
I just showed him what you said above
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
  #7  
Old 2nd January 2016, 23:34
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
you shouldn't.. he needs to learn. not to receive everything on a silver plate.
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #8  
Old 3rd January 2016, 00:14
kOni kOni is offline
Senior Member
 
Join Date: Apr 2012
P2P
Posts: 17
Default
Quote:
Originally Posted by Chez View Post
You can do something like this:

PHP Code:
$errorimage "<img src='pic/error.png' width='80%'>";

stderr("Error""$errorimage"); 
or

PHP Code:
stderr("Error""<img src='pic/error.png' width='80%'>"); 
and you can play with height and width values as you wish.

Thanks Chez but allready did this and i have this result...
Click the image to open in full size.

i want only the img in full screen with out the error msg.
Reply With Quote
  #9  
Old 4th January 2016, 14:54
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
check the stderr function.. doh!
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #10  
Old 4th January 2016, 23:40
kOni kOni is offline
Senior Member
 
Join Date: Apr 2012
P2P
Posts: 17
Default
Quote:
Originally Posted by DND View Post
check the stderr function.. doh!
I want the img src only for one php file, i don't want to change the stderr function because that will change all error msg to img src error msg, right?
Reply With Quote
Reply

Tags
error , msg

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 10:59. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.