LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2006, 08:20 PM   #1
genthree
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo
Posts: 12

Rep: Reputation: 0
PHP image embedding


I know this is a rather juvenile questions, but I can't seem to figure out how to embed .jpg images in php script. Any help would be appreciated.

Last edited by genthree; 04-19-2006 at 10:09 PM.
 
Old 04-19-2006, 08:55 PM   #2
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
Not exactly sure what you mean by "embed" here, do you mean you want to have some php script, then an image, then more php? Something like this?
Code:
<!-- Start php code -->
<?php
  Do some stuff here;
?>

<!-- "Embedded" image code -->
<img src="blah.jpg" alt="my image here"/>

<!-- continue php code -->
<?php
 more code here;
?>
Or do you mean something else entirely?
 
Old 04-19-2006, 09:03 PM   #3
genthree
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo
Posts: 12

Original Poster
Rep: Reputation: 0
Maybe embed wasn't the word I was looking for. I suppose insert would be more appropriate. I have an image that I need to create as a php file with a caption underneath. Once again I apologize for my complete ignorance of php, but I have googled my heart out and haven't found anything useful.
 
Old 04-19-2006, 11:03 PM   #4
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
Hmmm... ok, I think I see what you mean. This link might at least get you started:

http://www.php.net/manual/en/ref.image.php
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP image gallery drspin Programming 2 12-19-2005 09:16 PM
GD image streams and PHP TylerD75 Programming 2 11-14-2005 05:04 PM
Image sizes in PHP Napalm Llama Programming 7 07-15-2005 11:01 AM
php and gd (image functions) devfreak Linux - Software 1 05-11-2005 06:17 PM
The best image manipuliation way in to PHP dr. Agon Programming 0 01-28-2001 08:04 AM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration