On Wed, 2007-09-05 at 10:29 -0400, Dan Shirah wrote:
Correction, I am now getting this error:
PHP Warning: file(fruits.txt)
[function.filehttp://develop1/credit%20card%20processing/function.file]:
failed to open stream: No such file or directory
PHP Warning: in_array()
Correction, I am now getting this error:
PHP Warning: file(fruits.txt)
[function.filehttp://develop1/credit%20card%20processing/function.file]:
failed to open stream: No such file or directory
PHP Warning: in_array()
[function.in-arrayhttp://develop1/credit%20card%20processing/function.in-array]:
I found that the script accually breaks on this line :
[Mon Jul 14 12:17:26 2003] [error] PHP Notice: INSERT INTO tbl_news
(band_id, date, heading,heading_eng, ingress,ingress_eng, body,body_eng)
VALUES (-1,2003-07-14,TESTAMENT endelig til Norge!!!, Spiller p Rock
in - spesial treat for the
[snip]
I found that the script accually breaks on this line :
[Mon Jul 14 12:17:26 2003] [error] PHP Notice: INSERT INTO tbl_news
(band_id, date, heading,heading_eng, ingress,ingress_eng, body,body_eng)
VALUES (-1,2003-07-14,TESTAMENT endelig til Norge!!!, Spiller p
Rock
in - spesial treat for
I found out that what the script accually does is choke on \n\n,
empty lines. I havnt found a way to solve this with the script,
What I do now is use TextPad and just replace all occurencies
of \n\n with \n-\n or something and it works all nice. But this
is a bad way of doing it, since the script
[snip]
I found out that what the script accually does is choke on \n\n,
empty lines. I havnt found a way to solve this with the script,
What I do now is use TextPad and just replace all occurencies
of \n\n with \n-\n or something and it works all nice. But this
is a bad way of doing it, since the
On Tue, Dec 16, 2003 at 01:30:14PM +0100, Kim Steinhaug wrote:
:
: I found out that what the script accually does is choke on \n\n,
: empty lines. I havnt found a way to solve this with the script,
:
: What I do now is use TextPad and just replace all occurencies
: of \n\n with \n-\n or
Hello,
Thanks for you reply. The first approach works, I succesfully
imported 1.903.541 entries into my mySQL database, phew!
Problem was that as mentioned I had to massage the data
beforehand, which with TextPad didnt take to much time but
again I love my scripts to be complete and be
Attached is a little textfile on 4 lines, it will choke afte 1 line
due to the \n\n problem.
I use this loop to parse it :
$file= error_log.txt;
if($fp=fopen($file, r+))
{
while($line=trim(fgets($fp)))
{
echo $line . br;
}
}
--
Kim Steinhaug
Do you have long lines? If not try this:
$file = error_log.txt;
if (($fp = fopen($file,'r+') !== 0)
{
// Increment the 1024 sufficiently to read enough data, fgets
automatically stops at \n
while ($line = fgets($fp,1024))
{
if ($line != ) echo($line.br);
}
}
Alternatively, do
form action=https://my.server/reports.php; method=post
target=_blank
input type=submit value='Show PDF'
/form
form action=https://my.server/reports.php; method=get
target=_blank
input type=submit value='Show PDF'
/form
These forms are identical with the exception of the post/get methods.
A PDF
Tom Rogers wrote:
Hi
get data is insecure by nature so the whole page is insecure and no
warnings, as soon as you post you invoke the security. You probably have a
url on your page that is coming from an insecure server (http:// instead
of https://)
Tom
Believe me when I say that there
The GET method form works fine, while the POST method (which is what I
need to use) pops up a message about the page containing both secure and
nonsecure data.
WTF?
Well, the new browser window opens, but you're loading a PDF, not HTML, so
it's not really getting any data at all. The
Thank you, Richard. I think I understand now... I experienced this HTML
behavior when trying to debug this problem, but figured it had little
to do with the problem. HTML coming up in that page (even the pdf, as
garble) was not producing a warning... Now I understand.
One last question,
14 matches
Mail list logo