Search found 3 matches

by whitedragon101
Sat May 25, 2019 11:49 am
Forum: PHP General
Topic: Restricting access to videos?
Replies: 0
Views: 946

Restricting access to videos?

I need to restrict pdf and video content on a learning platform website from being accessible to non users. For the pdf files I put them above the public html folder then used a php file to get the pdf using filegetcontents. However the video side has been a nightmare. The code below works for a sma...
by whitedragon101
Tue Apr 10, 2018 7:50 am
Forum: PHP coding => General
Topic: 30 second php question - whats wrong with this most basic class?
Replies: 2
Views: 678

Re: 30 second php question - whats wrong with this most basic class?

hyper wrote:
Tue Apr 10, 2018 6:58 am
Drop the dollar sign after the ->
Thanks so much :)

Its one of those code blindness wheres wally fixes where you look at something over and over and don't see the difference.

Like a capitol letter in a whole page of code giving you white screen of death ;)
by whitedragon101
Mon Apr 09, 2018 2:56 pm
Forum: PHP coding => General
Topic: 30 second php question - whats wrong with this most basic class?
Replies: 2
Views: 678

30 second php question - whats wrong with this most basic class?

I trying to learn the Class syntax for PHP and I have produced this simple example of setting a class variable and then getting it. It returns the error : "$prop1 undefined variable " Anyone know whats wrong? Thanks class MyClass { public $prop1 = "I'm a class property!"; public function getProp1() ...