top_left top_right
bottom_left
Next Event: Unknown | Forum Rules | QGL Website | Event Registration
openFolder AusForums.com
iconwatfolderLineopenFolder LANs
iconwatfolderLineopenFolder QGL
iconwatfolderLineopenFolder QGL Forum
Author
Topic: php/html gurus
SquarkyD
Posts: 5691
Location: Brisbane, Queensland
ok heres my problem. i have a php photo gallery which has a random image function which i can call using

< ?php @readfile('http://www.mywebsite.com/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ? >

now what i need to do is embed the results of that php call into a HTML file on another server which doesnt support PHP. Is there anyway i can get the output into the html easily?

cheers.
system
--
Fizzer
Posts: 433
Location: Brisbane, Queensland

ok heres my problem. i have a php photo gallery which has a random image function which i can call using <?php @readfile('http://www.mywebsite.com/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>

now what i need to do is embed the results of that php call into a HTML file on another server which doesnt support PHP. Is there anyway i can get the output into the html easily?

cheers.


There you go :P

last edited by Fizzer at 15:12:49 18/May/06
SquarkyD
Posts: 5693
Location: Brisbane, Queensland
ta ;)
Fizzer
Posts: 434
Location: Brisbane, Queensland
if all that function does is generate a random image and then display it why not just have the main.php file produce an image.

I.e. header('image/jpg');
echo $image_file;

then in the html all you would need to do is <img src="http://www.mywebsite.com/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title" />
SquarkyD
Posts: 5694
Location: Brisbane, Queensland
no it also generates captions and a link to the specific folder in the gallery which i want. also i dont wanna f*** around with the main.php because its got alot of s*** in it.
scuzzy
Posts: 12217
Location: Brisbane, Queensland
you could wrap it all in a nasty javascript document.write('htmlhere');
SquarkyD
Posts: 5695
Location: Brisbane, Queensland
care to post an example scuzzy? :)
stinky
Posts: 1569
Location: Brisbane, Queensland
Can you put it inside an iframe and call it from the machine that does have php?

<iframe src="http://phpserver/display_random.php"> </iframe>

then just put that line in the http://phpserver/display_random.php file on the server with php.

Jim
Posts: 4388
Location: Brisbane, Queensland
now what i need to do is embed the results of that php call into a HTML file on another server which doesnt support PHP.
find something the other server _does_ support and use that to make the request, otherwise you can't do what you're asking. you need to be able to make a http request from the other server
hast
Posts: 756
Location: Brisbane, Queensland

copy("http://http://www.mywebsite.com/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title", "ftp://me:xxx@someserver.com/public_html/myfile.html");
system
--
Not a new post since your last visit.
New Post Since your last visit
Back To Forum
Advertise with Us | Privacy Policy | Contact Us
© Copyright 2001-2026 AusGamers Pty Ltd. ACN 093 772 242.
Hosted by Mammoth Networks - Australian VPS Hosting
Web development by Mammoth Media.