unique situation, fopen, mysql can't be called
From: Jonah (nomail_at_nomail.com)
Date: 04/28/04
- Next message: spartan789_at_hotmail.com: "PHP 4.3.6 POST problems (but not GET)"
- Previous message: Paul Delannoy: "Re: split string ?"
- Next in thread: Virgil Green: "Re: unique situation, fopen, mysql can't be called"
- Reply: Virgil Green: "Re: unique situation, fopen, mysql can't be called"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Apr 2004 12:08:04 -0400
Hi
I've run some tests and I have to conclude that
mysql and fopen doesn't work when you call it in this way.
I don't understand why, it's got to be either one of 2 things:
a) this just can't be done, and I'm ignorant of why
b) there is a workaround and/or i'm doing this the wrong way
Hopefully someone can enlighten me?
Here's the situation:
HTML PAGE
img src=script1.php
SCRIPT1.PHP
//redirects to script2.php
header(Location: $urltoscript2)
SCRIPT2.PHP
//writing to a file doesn't work
//writing to a table in mysql doesn't work
header(Location: $urltoimage)
Information can be passed via query string from the
html page to script1, to script 2, and the image
does get displayed, but mysql and writing
to a file just won't work unless you call script2 directly.
I have tested this in the following way:
1) I tried accessing the html page which displays img src,
script2.php didn't write to mysql as intended
2) I tried accessing script1.php directly,
script2.php didn't write to mysql as intended
3) I tried accessing script2.php directly,
script2.php DID write to mysql successfully
Same goes for writing to a file.
How can I make this work?
Any ideas?
Thanks for your time.
- Next message: spartan789_at_hotmail.com: "PHP 4.3.6 POST problems (but not GET)"
- Previous message: Paul Delannoy: "Re: split string ?"
- Next in thread: Virgil Green: "Re: unique situation, fopen, mysql can't be called"
- Reply: Virgil Green: "Re: unique situation, fopen, mysql can't be called"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|