Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5877 > unrolled thread

image and youtube links in array

Started byrichard <member@newsguy.com>
First post2012-05-09 10:13 -0400
Last post2012-05-09 19:35 +0100
Articles 13 — 5 participants

Back to article view | Back to comp.lang.php


Contents

  image and youtube links in array richard <member@newsguy.com> - 2012-05-09 10:13 -0400
    Re: image and youtube links in array Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-09 10:35 -0400
      Re: image and youtube links in array richard <member@newsguy.com> - 2012-05-09 10:57 -0400
        Re: image and youtube links in array Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-09 12:24 -0400
        Re: image and youtube links in array The Natural Philosopher <tnp@invalid.invalid> - 2012-05-09 19:34 +0100
      Re: image and youtube links in array richard <member@newsguy.com> - 2012-05-09 11:14 -0400
        Re: image and youtube links in array Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-09 12:25 -0400
        Re: image and youtube links in array Jeff North <jnorthau@yahoo.com.au> - 2012-05-10 09:48 +1000
          Re: image and youtube links in array richard <member@newsguy.com> - 2012-05-09 22:21 -0400
            Re: image and youtube links in array "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2012-05-10 03:12 +0000
            Re: image and youtube links in array Jerry Stuckle <jstucklex@attglobal.net> - 2012-05-09 23:54 -0400
    Re: image and youtube links in array "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2012-05-09 15:54 +0000
      Re: image and youtube links in array The Natural Philosopher <tnp@invalid.invalid> - 2012-05-09 19:35 +0100

#5877 — image and youtube links in array

Fromrichard <member@newsguy.com>
Date2012-05-09 10:13 -0400
Subjectimage and youtube links in array
Message-ID<qyvuxuh23j6x.wjrg0in4tiot.dlg@40tude.net>
I want to create an array in php that would have a list of several hundred
items.
Each item would have ten seperate fields.
One of those fields would be a link to an image, and another, a link to a
youtube video.
youtube now has a simpler method of using an iframe rather than using their
old embedding code.

I do not want just the page link from the url. I want to show the video on
my page.

The idea being, left column shows basic list of names.
Right column shows images, video and more information.

Oh and Beau, either shut the fuck up or contribute in a civil manner.

[toc] | [next] | [standalone]


#5880

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-05-09 10:35 -0400
Message-ID<jodvcj$u5u$2@dont-email.me>
In reply to#5877
On 5/9/2012 10:13 AM, richard wrote:
> I want to create an array in php that would have a list of several hundred
> items.
> Each item would have ten seperate fields.
> One of those fields would be a link to an image, and another, a link to a
> youtube video.
> youtube now has a simpler method of using an iframe rather than using their
> old embedding code.
>
> I do not want just the page link from the url. I want to show the video on
> my page.
>
> The idea being, left column shows basic list of names.
> Right column shows images, video and more information.
>
> Oh and Beau, either shut the fuck up or contribute in a civil manner.

Linking to a video vs. showing a video has nothing to do with PHP.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#5883

Fromrichard <member@newsguy.com>
Date2012-05-09 10:57 -0400
Message-ID<rh485hd8naap$.10fbxhdckhqgx$.dlg@40tude.net>
In reply to#5880
On Wed, 09 May 2012 10:35:57 -0400, Jerry Stuckle wrote:

> On 5/9/2012 10:13 AM, richard wrote:
>> I want to create an array in php that would have a list of several hundred
>> items.
>> Each item would have ten seperate fields.
>> One of those fields would be a link to an image, and another, a link to a
>> youtube video.
>> youtube now has a simpler method of using an iframe rather than using their
>> old embedding code.
>>
>> I do not want just the page link from the url. I want to show the video on
>> my page.
>>
>> The idea being, left column shows basic list of names.
>> Right column shows images, video and more information.
>>
>> Oh and Beau, either shut the fuck up or contribute in a civil manner.
> 
> Linking to a video vs. showing a video has nothing to do with PHP.

then how do forums do it?
I've seen the main page source code for simple machines and it is nothing
but pure php. No html in it. 
So how do they embed links and that into the output?

[toc] | [prev] | [next] | [standalone]


#5889

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-05-09 12:24 -0400
Message-ID<joe5no$5t7$3@dont-email.me>
In reply to#5883
On 5/9/2012 10:57 AM, richard wrote:
> On Wed, 09 May 2012 10:35:57 -0400, Jerry Stuckle wrote:
>
>> On 5/9/2012 10:13 AM, richard wrote:
>>> I want to create an array in php that would have a list of several hundred
>>> items.
>>> Each item would have ten seperate fields.
>>> One of those fields would be a link to an image, and another, a link to a
>>> youtube video.
>>> youtube now has a simpler method of using an iframe rather than using their
>>> old embedding code.
>>>
>>> I do not want just the page link from the url. I want to show the video on
>>> my page.
>>>
>>> The idea being, left column shows basic list of names.
>>> Right column shows images, video and more information.
>>>
>>> Oh and Beau, either shut the fuck up or contribute in a civil manner.
>>
>> Linking to a video vs. showing a video has nothing to do with PHP.
>
> then how do forums do it?
> I've seen the main page source code for simple machines and it is nothing
> but pure php. No html in it.
> So how do they embed links and that into the output?

They generate the proper HTML to do it.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#5893

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2012-05-09 19:34 +0100
Message-ID<joedbf$419$6@news.albasani.net>
In reply to#5883
richard wrote:
> On Wed, 09 May 2012 10:35:57 -0400, Jerry Stuckle wrote:
> 
>> On 5/9/2012 10:13 AM, richard wrote:
>>> I want to create an array in php that would have a list of several hundred
>>> items.
>>> Each item would have ten seperate fields.
>>> One of those fields would be a link to an image, and another, a link to a
>>> youtube video.
>>> youtube now has a simpler method of using an iframe rather than using their
>>> old embedding code.
>>>
>>> I do not want just the page link from the url. I want to show the video on
>>> my page.
>>>
>>> The idea being, left column shows basic list of names.
>>> Right column shows images, video and more information.
>>>
>>> Oh and Beau, either shut the fuck up or contribute in a civil manner.
>> Linking to a video vs. showing a video has nothing to do with PHP.
> 
> then how do forums do it?
> I've seen the main page source code for simple machines and it is nothing
> but pure php. No html in it. 
> So how do they embed links and that into the output?

PHP writes "pure html" to the browser.

examine the source code of a page with an embedded video to lean what 
"pure html" you need to get that to work.



-- 
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.

[toc] | [prev] | [next] | [standalone]


#5885

Fromrichard <member@newsguy.com>
Date2012-05-09 11:14 -0400
Message-ID<17c37aytbt0sv.jfrgge29dzk3.dlg@40tude.net>
In reply to#5880
On Wed, 09 May 2012 10:35:57 -0400, Jerry Stuckle wrote:

> On 5/9/2012 10:13 AM, richard wrote:
>> I want to create an array in php that would have a list of several hundred
>> items.
>> Each item would have ten seperate fields.
>> One of those fields would be a link to an image, and another, a link to a
>> youtube video.
>> youtube now has a simpler method of using an iframe rather than using their
>> old embedding code.
>>
>> I do not want just the page link from the url. I want to show the video on
>> my page.
>>
>> The idea being, left column shows basic list of names.
>> Right column shows images, video and more information.
>>
>> Oh and Beau, either shut the fuck up or contribute in a civil manner.
> 
> Linking to a video vs. showing a video has nothing to do with PHP.

yeah well then is this guy wrong?
http://www.codeproject.com/Articles/200739/PHP-Iterative-Array-Viewer-and-HTML-Viewer

[toc] | [prev] | [next] | [standalone]


#5890

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-05-09 12:25 -0400
Message-ID<joe5q5$5t7$4@dont-email.me>
In reply to#5885
On 5/9/2012 11:14 AM, richard wrote:
> On Wed, 09 May 2012 10:35:57 -0400, Jerry Stuckle wrote:
>
>> On 5/9/2012 10:13 AM, richard wrote:
>>> I want to create an array in php that would have a list of several hundred
>>> items.
>>> Each item would have ten seperate fields.
>>> One of those fields would be a link to an image, and another, a link to a
>>> youtube video.
>>> youtube now has a simpler method of using an iframe rather than using their
>>> old embedding code.
>>>
>>> I do not want just the page link from the url. I want to show the video on
>>> my page.
>>>
>>> The idea being, left column shows basic list of names.
>>> Right column shows images, video and more information.
>>>
>>> Oh and Beau, either shut the fuck up or contribute in a civil manner.
>>
>> Linking to a video vs. showing a video has nothing to do with PHP.
>
> yeah well then is this guy wrong?
> http://www.codeproject.com/Articles/200739/PHP-Iterative-Array-Viewer-and-HTML-Viewer

It has absolutely ZERO to do with what you're asking for.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#5902

FromJeff North <jnorthau@yahoo.com.au>
Date2012-05-10 09:48 +1000
Message-ID<a90mq7t21e5n49va1gvsam9jaje0t1hid0@4ax.com>
In reply to#5885
On Wed, 9 May 2012 11:14:23 -0400, in comp.lang.php richard
<member@newsguy.com>
<17c37aytbt0sv.jfrgge29dzk3.dlg@40tude.net> wrote:

>| On Wed, 09 May 2012 10:35:57 -0400, Jerry Stuckle wrote:
>| 
>| > On 5/9/2012 10:13 AM, richard wrote:
>| >> I want to create an array in php that would have a list of several hundred
>| >> items.
>| >> Each item would have ten seperate fields.
>| >> One of those fields would be a link to an image, and another, a link to a
>| >> youtube video.
>| >> youtube now has a simpler method of using an iframe rather than using their
>| >> old embedding code.
>| >>
>| >> I do not want just the page link from the url. I want to show the video on
>| >> my page.
>| >>
>| >> The idea being, left column shows basic list of names.
>| >> Right column shows images, video and more information.
>| >>
>| >> Oh and Beau, either shut the fuck up or contribute in a civil manner.
>| > 
>| > Linking to a video vs. showing a video has nothing to do with PHP.
>| 
>| yeah well then is this guy wrong?
>| http://www.codeproject.com/Articles/200739/PHP-Iterative-Array-Viewer-and-HTML-Viewer

No.
Think of it this way - php holds the structure and html formats the
output.
If you look at the code you will notice that there are lots of <div>
and <span> and other html elements.
To see what is happening try this:
<?php
echo "pic1.jpg";
echo "<img src='pic1.jpg'>";
?>
If you load the above into a browser you will get the text "pic1.jpg"
then the actual image of pic1.jpg.
HTH

[toc] | [prev] | [next] | [standalone]


#5903

Fromrichard <member@newsguy.com>
Date2012-05-09 22:21 -0400
Message-ID<67o50i55dwpo$.74o7c52uoejl$.dlg@40tude.net>
In reply to#5902
On Thu, 10 May 2012 09:48:27 +1000, Jeff North wrote:

> On Wed, 9 May 2012 11:14:23 -0400, in comp.lang.php richard
> <member@newsguy.com>
> <17c37aytbt0sv.jfrgge29dzk3.dlg@40tude.net> wrote:
> 
>>| On Wed, 09 May 2012 10:35:57 -0400, Jerry Stuckle wrote:
>>| 
>>| > On 5/9/2012 10:13 AM, richard wrote:
>>| >> I want to create an array in php that would have a list of several hundred
>>| >> items.
>>| >> Each item would have ten seperate fields.
>>| >> One of those fields would be a link to an image, and another, a link to a
>>| >> youtube video.
>>| >> youtube now has a simpler method of using an iframe rather than using their
>>| >> old embedding code.
>>| >>
>>| >> I do not want just the page link from the url. I want to show the video on
>>| >> my page.
>>| >>
>>| >> The idea being, left column shows basic list of names.
>>| >> Right column shows images, video and more information.
>>| >>
>>| >> Oh and Beau, either shut the fuck up or contribute in a civil manner.
>>| > 
>>| > Linking to a video vs. showing a video has nothing to do with PHP.
>>| 
>>| yeah well then is this guy wrong?
>>| http://www.codeproject.com/Articles/200739/PHP-Iterative-Array-Viewer-and-HTML-Viewer
> 
> No.
> Think of it this way - php holds the structure and html formats the
> output.
> If you look at the code you will notice that there are lots of <div>
> and <span> and other html elements.
> To see what is happening try this:
> <?php
> echo "pic1.jpg";
> echo "<img src='pic1.jpg'>";
> ?>
> If you load the above into a browser you will get the text "pic1.jpg"
> then the actual image of pic1.jpg.
> HTH

Thank you.
http://1littleworld.net/echo1.php

That was all I wanted to know. So obviously, the answer to my question is
yes it can be done.

[toc] | [prev] | [next] | [standalone]


#5904

From"Beauregard T. Shagnasty" <a.nony.mous@example.invalid>
Date2012-05-10 03:12 +0000
Message-ID<jofbmn$7qo$1@dont-email.me>
In reply to#5903
richard the sto0pid wrote:

> Thank you.
> http://1littleworld.net/echo1.php
> 
> That was all I wanted to know. So obviously, the answer to my question
> is yes it can be done.

Well, of course it can be done. However, that little test page is a far 
cry from what you asked about in your OP.

From your statement, I'd say it appears that a huge lightbulb just went 
off over your head. 

"So *that's* how you write PHP!!!"

-- 
   -bts
   -This space for rent, but the price is high

[toc] | [prev] | [next] | [standalone]


#5908

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-05-09 23:54 -0400
Message-ID<jofe5p$iin$4@dont-email.me>
In reply to#5903
On 5/9/2012 10:21 PM, richard wrote:
> On Thu, 10 May 2012 09:48:27 +1000, Jeff North wrote:
>
>> On Wed, 9 May 2012 11:14:23 -0400, in comp.lang.php richard
>> <member@newsguy.com>
>> <17c37aytbt0sv.jfrgge29dzk3.dlg@40tude.net>  wrote:
>>
>>> | On Wed, 09 May 2012 10:35:57 -0400, Jerry Stuckle wrote:
>>> |
>>> |>  On 5/9/2012 10:13 AM, richard wrote:
>>> |>>  I want to create an array in php that would have a list of several hundred
>>> |>>  items.
>>> |>>  Each item would have ten seperate fields.
>>> |>>  One of those fields would be a link to an image, and another, a link to a
>>> |>>  youtube video.
>>> |>>  youtube now has a simpler method of using an iframe rather than using their
>>> |>>  old embedding code.
>>> |>>
>>> |>>  I do not want just the page link from the url. I want to show the video on
>>> |>>  my page.
>>> |>>
>>> |>>  The idea being, left column shows basic list of names.
>>> |>>  Right column shows images, video and more information.
>>> |>>
>>> |>>  Oh and Beau, either shut the fuck up or contribute in a civil manner.
>>> |>
>>> |>  Linking to a video vs. showing a video has nothing to do with PHP.
>>> |
>>> | yeah well then is this guy wrong?
>>> | http://www.codeproject.com/Articles/200739/PHP-Iterative-Array-Viewer-and-HTML-Viewer
>>
>> No.
>> Think of it this way - php holds the structure and html formats the
>> output.
>> If you look at the code you will notice that there are lots of<div>
>> and<span>  and other html elements.
>> To see what is happening try this:
>> <?php
>> echo "pic1.jpg";
>> echo "<img src='pic1.jpg'>";
>> ?>
>> If you load the above into a browser you will get the text "pic1.jpg"
>> then the actual image of pic1.jpg.
>> HTH
>
> Thank you.
> http://1littleworld.net/echo1.php
>
> That was all I wanted to know. So obviously, the answer to my question is
> yes it can be done.

I never said it couldn't be done.  It's just not a PHP problem.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#5886

From"Beauregard T. Shagnasty" <a.nony.mous@example.invalid>
Date2012-05-09 15:54 +0000
Message-ID<joe3vq$pgm$1@dont-email.me>
In reply to#5877
richard wrote:

> Oh and Beau, either shut the fuck up or contribute in a civil manner.

I might if you would post in a civil manner.

Too bad you're not smart enough to decipher the codeproject page you 
cited.

-- 
   -bts
   -This space for rent, but the price is high

[toc] | [prev] | [next] | [standalone]


#5894

FromThe Natural Philosopher <tnp@invalid.invalid>
Date2012-05-09 19:35 +0100
Message-ID<joedd2$419$7@news.albasani.net>
In reply to#5886
Beauregard T. Shagnasty wrote:
> richard wrote:
> 
>> Oh and Beau, either shut the fuck up or contribute in a civil manner.
> 
> I might if you would post in a civil manner.
> 
> Too bad you're not smart enough to decipher the codeproject page you 
> cited.
> 
I agree, the aggressive teenage attitude makes one feel like not being 
helpful.



-- 
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web