| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) | |
|
Registered User
Fresh Surpasser
Joined in Dec 2005
15 posts
Gave thanks: 5
Thanked 0 times
|
Ok,I learned a little bit about php $Get and opendir recently.tested it and it worked like a charm and everything was happy.
I tooka break for like a week and came back online and saw the page was full of errors,don't know what happened. The function works on some lines and not on others,don't know why but its making me yank my hair out ![]() here is the link to it:http://www.dollnation.org/dollmakers...elf-doll-maker and here is the code of it: Quote:
Please help me and I will love you forever?
__________________
Server: Sh83 |
|
|
|
|
|
|
#2 (permalink) |
|
Registered User
Seasoned Poster
Joined in Aug 2004
Lives in Endwell, New York
Hosted on Dedicated
68 posts
Gave thanks: 9
Thanked 6 times
|
First issue I see is you never set $id before using it. Reverse lines 5 and 6 so it is:
$id = $_GET['id']; $dir_path = "./$id/body"; instead of: $dir_path = "./$id/body"; $id = $_GET['id'];
__________________
Matt Rydzik http://coaster-net.com "Your Guide to the World of Extreme Thrills!" COASTER-net Dedicated: Last edited by CoasterBGW; July 21st, 2008 at 11:26 AM.. |
|
|
|
| This user thanks CoasterBGW for this great post! | pogogal (July 21st, 2008) |
|
|
#3 (permalink) |
|
Surpass Developer
Excelling Contributor
Joined in Jan 2004
Lives in Florida
Hosted on decc.surpasshosting.com
511 posts
Gave thanks: 20
Thanked 78 times
|
You need to sanitize $id also. If it is going to be a number, the easiest way of doing it is:
$id = (int)$_GET['id'];
__________________
Mark Surpass Hosting Developer sɹnoʎ uɐɥʇ ɹǝʇʇǝq sı bıs ʎɯ |
|
|
|
| This user thanks Mark for this great post! | pogogal (July 21st, 2008) |