LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

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

Rep: Reputation: 15
php HTTP_RAW_POST_DATA na 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-26-2004, 04:11 AM   #2
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
You should post this to the Programming forum. PHP Coding does not relate to Linux Software, so you won't find much replies here!

If a mod could move it, that'd be great.
 
  


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 no value in function dinges Programming 1 12-27-2004 11:59 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


All times are GMT -5. The time now is 06:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration