Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
say you have an IMAGE included in your PHP script
Old 07-02-2008, 12:34 AM say you have an IMAGE included in your PHP script
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
how would you go about giving it a particular dimension (of your choosing) on your page?
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-02-2008, 01:33 AM Re: say you have an IMAGE included in your PHP script
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
I sure don't understand your question. Beyond using basic html to define your image, I'm not sure what you are asking.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-02-2008, 03:16 AM Re: say you have an IMAGE included in your PHP script
Extreme Talker

Latest Blog Post:
Chocolate Dessert With Diamond
Posts: 247
Trades: 0
I don't really understand what you are going to ask but if you ask for your site dimension, it's best that you design your site which can adopt all sizes. Some user tend to use smaller window than in normal one. Once they do this and your site can't adopt resizing, your design will now scatterd.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

ajcones is offline
Reply With Quote
View Public Profile Visit ajcones's homepage!
 
Old 07-02-2008, 08:48 AM Re: say you have an IMAGE included in your PHP script
Skilled Talker

Posts: 94
Trades: 0
For the dimensions of the image it would be

PHP Code:
$size getimagesize($filename);
 
$imgWidth $size[0];
$imgHeight $size[1]; 
http://us2.php.net/getimagesize
__________________
Sell Templates? Try our
Please login or register to view this content. Registration is FREE
! See a live
Please login or register to view this content. Registration is FREE
ChadR is offline
Reply With Quote
View Public Profile
 
Old 07-02-2008, 08:44 PM Re: say you have an IMAGE included in your PHP script
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
I just realized how well I did not ask that question, lol Allow me to try again...

If I have a script i'm running with these values:

PHP Code:
<?
  session_start
();
  include 
"../affconfig.php";
  include 
"./lang/$language";
  if(!
aff_check_security())
  {
    
aff_redirect('index.php');
    exit;
  }
  
  include 
"header.php"
     
  print 
"<p><br>".AFF_C_CONTACT." <a href=mailto:";
  print 
$emailinfo;
  print 
">";
  print 
$emailinfo;
  print 
"</a>.";
  include 
"footer.php"
?>
And I want to include HTML within the parameters of that code, (particularly an image), how would I adjust where that image sits on that PHP page?

and

Is it possible to include HTML within a PHPcode to achieve the results I am already familiar with when I include PHP?

because I am having some difficulty making a PHPpage with HTML in it
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 07-02-2008, 08:45 PM Re: say you have an IMAGE included in your PHP script
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
(so nobody gets scared and freaks out, this is a segment of a script with a GNU license)
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 07-02-2008, 09:04 PM Re: say you have an IMAGE included in your PHP script
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
It would be placed inline where the rest of the html is located. For instance, if you wanted the image inside the header block, you would need to edit your header.php file.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-03-2008, 05:24 AM Re: say you have an IMAGE included in your PHP script
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 680
Name: Lashtal
Trades: 0
Woah...

that sounds so crazy it just might work!

Thank you.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to say you have an IMAGE included in your PHP script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30296 seconds with 12 queries