|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
SitePoint Articles
Join Date: Apr 2001
Posts: 0
|
Article Discussion
This is an article discussion thread for discussing the SitePoint article, "Build a PHP Multiple Picture Showcase Using PHP and HTML"
|
|
|
|
|
|
#2 |
|
SitePoint Zealot
![]() ![]() Join Date: Oct 2007
Location: In the blogosphere
Posts: 108
|
You'd be handling that in HTML, this only deals with rotating the image and spitting the image out.
|
|
|
|
|
|
#3 |
|
SitePoint Member
Join Date: Oct 2007
Posts: 5
|
Correct me if im wrong but the html output will be,
<img src='mysite.com/rotate.php?i=1'> <img src='mysite.com/rotate.php?i=2'> <img src='mysite.com/rotate.php?i=3'> How does the html know which picture goes to which link without tweaking the code in php, as surely you will have to pass the correct hyperlink with the image? Thanks |
|
|
|
|
|
#4 |
|
SitePoint Member
Join Date: Apr 2008
Posts: 3
|
what am I doing wrong
what am I doing wrong
I am getting the error; Cannot modify header information - headers already sent by (output started at /home/seehereo/public_html/jengasupplementscom/2/rotate.php:9) in /home/seehereo/public_html/jengasupplementscom/2/rotate.php on line 33 example http://jengasupplements.com.au/2/rotate.php PHP Code:
|
|
|
|
|
|
#5 |
|
SitePoint Member
Join Date: Apr 2008
Posts: 3
|
I figured it out...
I created a rotate.php with just the configuration php (top stuff), then created a index file with just the <img src='http://www.xx.com/rotate.php?i=0'>image #1 and it worked fine ![]() http://jengasupplements.com.au/2/1.php |
|
|
|
|
|
#6 |
|
SitePoint Member
Join Date: Apr 2008
Posts: 3
|
attached is a zip file with pre made files for dummies like me
|
|
|
|
|
|
#7 |
|
SitePoint Zealot
![]() ![]() Join Date: Oct 2007
Location: In the blogosphere
Posts: 108
|
If you really wanted to do something like that, you would the script to include the <img src> tags, something ti doesn't currently do.
|
|
|
|
|
|
#8 |
|
SitePoint Member
Join Date: Oct 2007
Posts: 5
|
Thats what i have been trying to do with,
$images=array( "<a href='link1.html'><img src='img1.gif'></a>", "<a href='link2.html'><img src='img2.gif'></a>", "<a href='link3.html'><img src='img3.gif'></a>" ); but i seem unable to output it on the page. Any suggestions where im going wrong? |
|
|
|
|
|
#9 |
|
SitePoint Zealot
![]() ![]() Join Date: Oct 2007
Location: In the blogosphere
Posts: 108
|
Yep, its wrong in the sense that you're trying to adapt the script for something it wasn't meant to do making it overly complex in the process.
Refer to http://www.sitepoint.com/forums/showthread.php?t=510395 , that might fit your requirements more. |
|
|
|
|
|
#10 |
|
SitePoint Member
Join Date: Oct 2007
Posts: 5
|
That looks just the job, will try it when i get home from work.
Thanks |
|
|
|
|
|
#11 |
|
SitePoint Member
Join Date: Apr 2009
Posts: 8
|
anyone have any ideas on this?
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 01:36.









Hybrid Mode
