| Author |
RE: Advancing my career. |
Coder Disaster
Member
Posts: 92
Location: BIOS
Joined: 01.09.08 Rank: Newbie Warn Level: 20
|
|
@yourself , not trying to be a dick , but can you not do anything your self, you keep asking for members to solve your problems, when you havent even tried to solve it your self.
Try learning php first, and if you get stuck try debugging your code, instead of just posting here asking us to solve it.
Im a coding disaster |
|
| Author |
RE: Advancing my career. |
Zephyr_Pure
Member

Posts: 2402
Location:
Joined: 15.09.06 Rank: God |
|
Apparently, the OP has the amazing ability to turn something as simple and basic as possible into a monumental undertaking. Just post the source of the page that you're using PHP on... all the source, including the HTML, from that one page. Then, maybe we can see exactly wtf you're trying to do.
I still check PMs from time to time.


Our responses were moronic, why shouldn't he follow suit? - Futility |
|
| Author |
RE: Advancing my career. |
mambo
Member

Posts: 265
Location: The Web
Joined: 26.12.07 Rank: Monster |
|
|
yours31f wrote:
I believe your right, I talked to some people at a local tattoo shop and they were interested but they want to see my portfoilio, which isn't too great right now, so I told them I would build one and bring it to them, so I guess it's time for me to get busy coding.
Are you suggesting you could go from web designer to tattoo artist
those 2 things couldn't be further apart
 |
|
| Author |
RE: Advancing my career. |
jjbutler88
Colemak User

Posts: 590
Location:
Joined: 22.04.07 Rank: Guru |
|
Coder Disaster wrote:
I can help you on it if you want in security etc.
Coder Disaster wrote:
<?php
$page = $_get['page'];
if (isset($_GET['page']))
{
require("http://www.cthecode.com/parts/$page"  ;
}
else
{
require("http://www.cthecode.com/parts/ibody.htm"  ;
}
require("http://www.cthecode.com/parts/footer.htm"  ;
?>
Man I wouldnt take security help from this guy, this code looks mighty vulnerable to LFI...
|
|
| Author |
RE: Advancing my career. |
themastersinner
Member
Posts: 27
Location:
Joined: 03.12.07 Rank: God |
|
yea i would have done something like...
<?php
$page = $_GET['page'];
$pages = array('tutorials.htm', 'other.htm');
if (in_array($page, $pages))
{
require("parts/$page");
}
else
{
require("parts/ibody.htm");
}
require("parts/footer.htm");
?>
|
|
| Author |
RE: Advancing my career. |
jjbutler88
Colemak User

Posts: 590
Location:
Joined: 22.04.07 Rank: Guru |
|
Yeah, thats another way to do it, means you have to keep that array current though. You could combine allow_url_include=OFF (to prevent RFI) with a stripping function to remove all periods, that would be good, and could be reused across the site.
|
|
| Author |
RE: Advancing my career. |
yours31f
Second to one

Posts: 1678
Location: Dallas Texas
Joined: 27.04.07 Rank: Satan |
|
mambo wrote:
yours31f wrote:
I believe your right, I talked to some people at a local tattoo shop and they were interested but they want to see my portfoilio, which isn't too great right now, so I told them I would build one and bring it to them, so I guess it's time for me to get busy coding.
Are you suggesting you could go from web designer to tattoo artist
those 2 things couldn't be further apart
No i was talking about making the tattoo shops web site.
Debugging is what programmers do to beta software to make it take up more room on your hard drive if it is running too efficiently.

|
|
| Author |
RE: Advancing my career. |
Coder Disaster
Member
Posts: 92
Location: BIOS
Joined: 01.09.08 Rank: Newbie Warn Level: 20
|
|
jjbutler88 wrote:
Coder Disaster wrote:
I can help you on it if you want in security etc.
Coder Disaster wrote:
<?php
$page = $_get['page'];
if (isset($_GET['page']))
{
require("http://www.cthecode.com/parts/$page"  ;
}
else
{
require("http://www.cthecode.com/parts/ibody.htm"  ;
}
require("http://www.cthecode.com/parts/footer.htm"  ;
?>
Man I wouldnt take security help from this guy, this code looks mighty vulnerable to LFI...
I never said that was secure, i just fixed the broken code, didnt make it better.
He needs to learn this stuff himself, he cant expect people to do it all for him.
Im a coding disaster |
|
| Author |
RE: Advancing my career. |
yours31f
Second to one

Posts: 1678
Location: Dallas Texas
Joined: 27.04.07 Rank: Satan |
|
I would like to make my code work before I improve it. Thats why it's not secure yet.
Debugging is what programmers do to beta software to make it take up more room on your hard drive if it is running too efficiently.

|
|
| Author |
RE: Advancing my career. |
Coder Disaster
Member
Posts: 92
Location: BIOS
Joined: 01.09.08 Rank: Newbie Warn Level: 20
|
|
One bit of advice i was told about security on websites ,is be very ,very paranoid about it , go over the top if needs be to protect it.
Im a coding disaster |
|
| Author |
RE: Advancing my career. |
yours31f
Second to one

Posts: 1678
Location: Dallas Texas
Joined: 27.04.07 Rank: Satan |
|
Ok Thank you.
Debugging is what programmers do to beta software to make it take up more room on your hard drive if it is running too efficiently.

|
|
| Author |
RE: Advancing my career. |
Pwnzall
Member

Posts: 234
Location:
Joined: 10.04.08 Rank: Hacker Level 3 |
|
How much are you making?
Pure madness! There must be a method! There is a method!
Edited by Jelmer de Hen on 24-06-11 03:42 |
|
| Author |
RE: Advancing my career. |
yours31f
Second to one

Posts: 1678
Location: Dallas Texas
Joined: 27.04.07 Rank: Satan |
|
its not that i cant get customers, its that i live in a small (er) town so there is not that many websites needed. all the "big" companies already have sites, but i was making (i think i might have already said this) 33-50 dollars an hour.
Debugging is what programmers do to beta software to make it take up more room on your hard drive if it is running too efficiently.

|
|
| Author |
RE: Advancing my career. |
Zephyr_Pure
Member

Posts: 2402
Location:
Joined: 15.09.06 Rank: God |
|
|
yours31f wrote:
its not that i cant get customers, its that i live in a small (er) town so there is not that many websites needed. all the "big" companies already have sites, but i was making (i think i might have already said this) 33-50 dollars an hour.
If you had real knowledge and ability, location would not limit you. Quit settling for small-time, petty jobs, and wrap your mind around some real work. Do something amazing in PHP... or, just continue to suck at it and everything else web-related while you con a bunch of small-town dumbasses with your crap skills.
Think I'm flaming you because I enjoy it? Shut up; of course I enjoy it. Pay attention and learn, then hate me. Don't care; my advice comes, regardless. Practice PHP on your own, ask questions when your resources do not give you an answer after a FEW days, then you'll learn how to be proficient.
I still check PMs from time to time.


Our responses were moronic, why shouldn't he follow suit? - Futility |
|