All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: newb question: why php?
PostPosted: Thu Dec 15, 2016 1:11 pm 
Offline
User avatar

Joined: Thu Jun 21, 2012 6:30 pm
Posts: 3477
Pouch: 5,486.50 Coins

Bank: 240,206.00 Coins

Location: Coruscant
Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode
I also use php for easy layout editing. It can also be used to give the option of multiple layouts or "skins" and contact forms as well as other server side tricks like text/images that change depending on the date/time.

_________________


Top
 Profile  
 
 Post subject: Re: newb question: why php?
PostPosted: Sat Jan 07, 2017 5:20 pm 
Offline
Freelance Staffer
User avatar

Joined: Thu Jul 19, 2012 5:02 pm
Posts: 2495
Pouch: 2,004.00 Coins

Location: Alberta Canada
Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode
Masao wrote:
The other easy vulnerability is if you dynamically include files (like a page.php?name or a page.php?x=name), if you don't check that it's only including files on your server, someone could try to load an external file by typing it in the browser page.php?[insert full url of a malicious file]

I'm kinda confused by this because I use the page.php?name on all my sites. Could you explain it to me? :o

_________________
There are shadows before us - but only because the light is at our back.


Top
 Profile  
 
 Post subject: Re: newb question: why php?
PostPosted: Sun Jan 08, 2017 4:27 am 
Offline
Host
User avatar

Joined: Thu Jun 16, 2011 12:29 am
Posts: 621
Pouch: 105.50 Coins

Bank: 360.00 Coins

Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode
On mobile, or else I'd include full code explanation, sobs I'm going to be without internet for a few more days :sob:

But basically, depending on how you include your page, it might not check for if the file you're including is locally existing or not.

So instead of including your own subpage.php, someone could include their remote file. But if your dynamic include is just using one file that splits content in itself, then it's not a problem.

Basically the stuff after the ? is the page query, so when you type that in your browser and it gets sent back to your server and php interprets it as a query, and your code can so whatever it likes with that info.

For url includes, it usually means the name of a file to include, or something to request back from the database. Our forum URL is an example of that: the numbers after their labels are the id of the correct forum section or topic to find in the database. And the code behind the scenes uses that id to fill in a SQL command that retrieves the info from the database.

_________________
THE FATE OF DESTRUCTION IS ALSO THE JOY OF REBIRTH.


Top
 Profile  
 
 Post subject: Re: newb question: why php?
PostPosted: Sun Jan 08, 2017 5:41 pm 
Offline
Freelance Staffer
User avatar

Joined: Thu Jul 19, 2012 5:02 pm
Posts: 2495
Pouch: 2,004.00 Coins

Location: Alberta Canada
Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode
Okay yeah mine is just one file. I think I understand. Thanks for explaining it to me Masao! :D

_________________
There are shadows before us - but only because the light is at our back.


Top
 Profile  
 
 Post subject: Re: newb question: why php?
PostPosted: Fri Mar 24, 2017 9:44 am 
Offline

Joined: Fri Mar 17, 2017 11:26 am
Posts: 18
Pouch: 9.50 Coins


Hi everyone!

I have a relevant question about PHP. I know there are PHP5 and PHP6... I read that PHP7 is much faster than previous versions. True? What about other advantages of PHP7?


Top
 Profile  
 
 Post subject: Re: newb question: why php?
PostPosted: Fri Mar 24, 2017 1:43 pm 
Offline
Communications Staffer
User avatar

Joined: Sat Oct 13, 2012 7:55 pm
Posts: 1147
Pouch: 215.00 Coins

Location: Canada
Click the icon to see the image in fullscreen mode
Actually there isn't any PHP6! PHP went directly from 5.6 to 7.

But yes, PHP7 is much faster than the previous versions! You can check out what is new on the PHP.NET Manual.

_________________
Join in the Tale, in the Blight, of Conquest and Lies
Come the Sun, to Tarnish in the Sky
Vow that we shall Tear the Light - Dark seize the Throne
Lost in thoughts, all alone


Top
 Profile  
 
 Post subject: Re: newb question: why php?
PostPosted: Mon Mar 27, 2017 4:11 am 
Offline

Joined: Fri Mar 17, 2017 11:26 am
Posts: 18
Pouch: 9.50 Coins


Thank you! I read that all php codes are handled server side. What does it mean?

I am new to php. I hope my question does not look too silly.


Top
 Profile  
 
 Post subject: Re: newb question: why php?
PostPosted: Fri Mar 31, 2017 5:55 pm 
Offline
User avatar

Joined: Thu Jun 21, 2012 6:30 pm
Posts: 3477
Pouch: 5,486.50 Coins

Bank: 240,206.00 Coins

Location: Coruscant
Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode Click the icon to see the image in fullscreen mode
jacky999 wrote:
Thank you! I read that all php codes are handled server side. What does it mean?

I am new to php. I hope my question does not look too silly.


It means that everything is processed by the server rather than by the person's computer and the page displays the end result. That's why if you view the source you'll see the code that was generated rather than the php itself.

_________________


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Style created by © Matti, gry komputerowe, reklama sem reklama. Game of Thrones sigils by Highgarden.

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group