FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » changing video source from youtube to my site
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
changing video source from youtube to my site [message #181316] Fri, 10 May 2013 09:28 Go to next message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma: 0
Senior Member
I have a long long list of videos on my site all stored in a database.
The way I have it structured in the php code is for all the videos to be
played in the supplied youtube's <iframe> scheme.
But what if I want to have a video source on my site?
In BASIC, I could easily say if left$(x$,4)="this" then do this.
So I need some kind of trigger that tells php this video is handled
differently.
What string handler can I use to check the trigger with?
Re: changing video source from youtube to my site [message #181317 is a reply to message #181316] Fri, 10 May 2013 10:25 Go to previous messageGo to next message
SwissCheese is currently offline  SwissCheese
Messages: 17
Registered: December 2012
Karma: 0
Junior Member
On 05/10/2013 05:28 AM, richard wrote:
> I have a long long list of videos on my site all stored in a database.
> The way I have it structured in the php code is for all the videos to be
> played in the supplied youtube's <iframe> scheme.
> But what if I want to have a video source on my site?
> In BASIC, I could easily say if left$(x$,4)="this" then do this.
> So I need some kind of trigger that tells php this video is handled
> differently.
> What string handler can I use to check the trigger with?
>

http://php.net/manual/en/ref.strings.php

--
Norman
Registered Linux user #461062
-Have you been to www.php.net yet?-
Re: changing video source from youtube to my site [message #181318 is a reply to message #181316] Fri, 10 May 2013 17:49 Go to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
Am 10.05.2013 11:28, schrieb richard:
> I have a long long list of videos on my site all stored in a database.
> The way I have it structured in the php code is for all the videos to be
> played in the supplied youtube's <iframe> scheme.
> But what if I want to have a video source on my site?
> In BASIC, I could easily say if left$(x$,4)="this" then do this.
> So I need some kind of trigger that tells php this video is handled
> differently.
> What string handler can I use to check the trigger with?
>

the video source should be in the database, it is an essential attribute of the video.

/Str.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Unique array of arrays - how can I do this?
Next Topic: Security risks allowing users to upload a css file?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 05:58:08 GMT 2024

Total time taken to generate the page: 0.02139 seconds