Introduction and questions...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: Jason Pruim [mailto:japruim@xxxxxxxxxx] 
Sent: terça-feira, 9 de Janeiro de 2007 17:37
To: php-general@xxxxxxxxxxxxx
Subject:  Introduction and questions...

Hi Everyone, I'm very new to php and to this list. I'm hoping to be  
able to suck up as much knowledge from this list as I possibly can  
and be able to help and contribute in the future.

But until that time, I'm in need of some help.

I'm trying to write an image gallery script(Or program/application?)  
for displaying images on a web page. That part of it is working just  
fine, what I want to add though is the ability for people who use  
this script to be able to copy/paste a link to insert the HTML into  
their page/weblog.

In other words... How do I get it to display the text: <img  
src="myserver.com/path/to/picture" height="reasonable size"> instead  
of actually displaying the picture? 
=============================================================
Check htmlentities on www.php.net/htmlentities.
It converts < " and other characters to their correspondent html entities
(http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/re
ference/charsets/charset2.asp )
=============================================================

Here is a copy/paste from the  
code I've been using:
if ($i <= '5')                                    // column count  
(designed for 5 columns wide - change the 5 for however many wanted)
             {
                 $i = $i + '1';
                 echo '        <td align="left" width="115"  
height="100">
                                 <a href="'.$filename.'"><img src="'. 
$filename.'" height="60" border="0" /></a><br />
                                 <font size="1" face="tahoma">'. 
$filename.'<br />'.filesize($filename).' bytes. <BR /> link info:  
<img src=&quot;http://www.raoset.com/media/images/texas/images/'. 
$filename.'&quot; height="50%" ></font>
                             </td>

I have tried another more robust script but this is the one I'm  
currently working with. I'm usually a quick learner but right now I'm  
just lost, and I can't see the trees through the forest.I'm pretty  
sure I'm using php4.*, If someone can tell me where exactly to find  
that I would be more then happy to tell you the EXACT version I'm  
using. :) I'm not real good on the command line YET... It's another  
one of my many projects filed under "CRITICAL" Ahhh... The joys of a  
small business and wearing many many hats :)
=============================================================
Check www.php.net/phpinfo.
1. Create a php file onn your webserver named phpinfo.php.
2. Insert the following code:
<?php
phpinfo();
?>
3. Call the script from your browser.
=============================================================

Anyway... Long enough post for my question I think, if you need more  
info let me know, and thanks in advance for any help even if it's  
just a RTFM... Just please include TFM ;)

-- 

Jason Pruim
japruim@xxxxxxxxxx
Production & Technology Manager
MQC Specialist (2005 certified)
3251 132nd Ave
Holland MI 49424
616.399.2355
www.raoset.com


"We hold these truths to be self-evident. That all men are created  
equal, that they are endowed by their creator with certain  
unalienable rights, (and) that among these are Life, Liberty, and the  
pursuit of Happiness."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux