Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum

PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 04-17-2008, 03:20 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default Re: Register Globals

Quote:
Originally Posted by phpforfun View Post
You wrote the book on PHP security?! well I wrote the book on writing books on php security, want me to autograph yours?
I am in the process of writing it
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 04-17-2008, 05:39 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,203
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: Register Globals

Quote:
Originally Posted by John View Post
Since this server is running phpSuExec, I don't believe php flags can be set in the .htaccess file - they need to be set as directives in a personal php.ini file, in the directory the flags should be set. However, phpforfun should note, not using variables of the form $_POST and $_GET is a security risk as forms can be easily spoofed. Which is the reason why the server has them disabled by default.

This is true. .htaccess will not work with phpSuExec but you can define your own php.ini file in your home directory.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 04-17-2008, 06:39 PM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 886
Last Blog:
Programming "Just a ...
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Re: Register Globals

Quote:
Originally Posted by Jordan View Post
This is true. .htaccess will not work with phpSuExec but you can define your own php.ini file in your home directory.
ok, thats new to me, but ill look into it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 04-20-2008, 02:44 PM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 886
Last Blog:
Programming "Just a ...
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Re: Register Globals

how do I define the php.ini file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 04-20-2008, 02:51 PM
Surgeon Surgeon is offline
Newbie
 
Join Date: Aug 2007
Posts: 3
Rep Power: 0
Surgeon is on a distinguished road
Default Re: Register Globals

Why not just use: ini_set() at the top of your script(s)?

PHP: ini_set - Manual

Theres other functions there that may also help with your configuration problems.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #16 (permalink)  
Old 04-20-2008, 03:06 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default Re: Register Globals

Quote:
Originally Posted by phpforfun View Post
how do I define the php.ini file?
Make a file called php.ini and add the php directive Jordan described earlier. You should note, that registered globals will be removed in PHP 6. So, sooner or later you will have to switch to the superglobal array format - why not now?

Quote:
Originally Posted by Surgeon View Post
Why not just use: ini_set() at the top of your script(s)?

PHP: ini_set - Manual

Theres other functions there that may also help with your configuration problems.
Setting registered globals at run time will be of little use since, by the time the script runs, the globals have already been set.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 04-21-2008, 02:33 AM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 886
Last Blog:
Programming "Just a ...
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Re: Register Globals

well I just tried to change my code with the globals off, and it gets way too complicated, most of my site would be using $_GET, but then for a few things it uses $_POST, such as sending in a testimony, or signing up on the site.

They may take that function off in php6, but the code I posted to emulate it would still work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Register Controls Anirban Chakraborty C and C++ 1 06-01-2007 11:48 AM


All times are GMT -5. The time now is 06:44 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 97%

Ads