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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 05:28 Go to next message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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 06:25 Go to previous messageGo to next message
SwissCheese is currently offline  SwissCheese
Messages: 17
Registered: December 2012
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 13:49 Go to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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 Oct 22 05:52:14 EDT 2017

Total time taken to generate the page: 0.00714 seconds