LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-27-2004, 01:38 AM   #1
dinges
LQ Newbie
 
Registered: Nov 2004
Location: Netherlands
Distribution: Centos 4, Ubuntu
Posts: 26

Rep: Reputation: 15
php HTTP_RAW_POST_DATA no value in function


Hi,

When I use HTTP_RAW_POST_DATA in a function - called via a 'required' - I get an error ' undefined variable'. But when I use it in the main php file that is called by a client everything is OK.
usage:
Code:
	if (!empty($GLOBALS['HTTP_RAW_POST_DATA'])) {
		$req = $HTTP_RAW_POST_DATA;
		print $req . "\n";	
	}
What am I doing wrong?
 
Old 12-27-2004, 11:59 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Why not use : $req = $GLOBALS['HTTP_RAW_POST_DATA'];
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php, else function not working. Erhnam Programming 4 06-01-2005 07:48 AM
PHP Variable = function? wh33t Programming 2 01-22-2005 06:28 AM
php HTTP_RAW_POST_DATA na value in function dinges Linux - Software 1 12-26-2004 04:11 AM
need help in PHP header() function ArulPrabhuT Programming 1 11-26-2004 10:17 AM
Passing one php function result as a parameter to another php function davee Programming 13 09-12-2004 12:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration