unique situation, fopen, mysql can't be called

From: Jonah (nomail_at_nomail.com)
Date: 04/28/04


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.



Relevant Pages

  • Re: question about playlist
    ... I have a dynamic playlist, playlist_1.asx, created by a php script from a ... the mysql table contain information about: ... movie near to the playing movie, and when change the movie, contextually ... Change the information in the *database* table, or in the HTML table? ...
    (microsoft.public.windowsmedia.server)
  • Re: HTML pages are faster then php?
    ... Lamp Lists wrote: ... as far as I know html page will download faster then the same page made with php getting the same info from mysql, ... let's pretend we are building php/mysq based website of one football team. ...
    (php.general)
  • Re: Strange MySQL Problem...
    ... Whatever you 'print' in your CGI script is part of the Response, ... If the response is an HTML page, the Content-Type should say text/html, NOT image/jpeg. ... One doesn't "upload an image into mysql": one uploads an image, and some script on the server saves the image into mysql database. ...
    (comp.lang.python)
  • Re: an old geezer running visual studio for the first time
    ... TB, in the MySQL website, there's a mySql ADO.NET provider. ... Consider developing your aspx and ascx files in FrontPage, ... >> definitely NOT the place to write HTML - so no need for you to think ... Familiarize yourself with the starter kits at the following link: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: =?ISO-8859-15?Q?bin=E4re_Datei_=28blob=29_per_python?= =?ISO-8859-15?Q?_in_mysql
    ... MySQL Datenbank aufzunhemen. ... beim ' im html mysql stockt. ... Dann musst Du das ' escapen - oder eben einen Treiber + Prepared ... Statement benutzen, die das zusammen für Dich erledigen. ...
    (de.comp.datenbanken.mysql)