newbie with HTTP problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
petra
Forum Newbie
Posts: 4
Joined: Tue Jun 18, 2002 5:10 am

newbie with HTTP problems

Post by petra »

Hi,
I'm new to PHP programming and I have to write a program that receives data sent via HTTP to the server.
A client program (*.exe) on a windows pc sends data via POST to my server -> it opens my php-file on the server and posts data to it.
Unhappily I can't receive any data at all. My php-file doesn't have any form inputs and no submit button to pass the data with POST to another page. The client program should only open the php-file and pass many data to it.

I tried to receive the data (and write them into a file) in the same php-file with $GLOBALS, $HTTP_POST_DATA and $HTTP_POST_VARS but there were none.

Can anybody help me how to manage it ?!

Thanx
_____
PE|RA

I'm using the following things:
$_POST[SERVER_SOFTWARE] => Apache/1.3.20 (Linux/SuSE) PHP/4.0.6
$_POST[SERVER_PROTOCOL] => HTTP/1.0
User avatar
Wayne
Forum Contributor
Posts: 339
Joined: Wed Jun 05, 2002 10:59 am

Post by Wayne »

Have you checked your servers error logs to see whether the information is actually hitting the page?

Also try writing the content to another file instead, as if the php-file is in use it should be locked and unable to write to.
Post Reply