How do I force an output to be recognized by the browser by a downloadable
text file as soon as I press the submit button?
what header(*) stuff should I add before echo-ing stuff?
thanks
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http
,
? // file to post to
header(Content-Type: application/octet-stream);
header(Content-Disposition: attachment; filename=name.doc);
include(file.doc);
?
Wieger
Christian Dechery wrote:
How do I force an output to be recognized by the browser by a downloadable
text file as soon as I press
it is... I once saw it...
thanks
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
all the
output generated by php to a download and instruct the browser the filename
to be saved?
Where can I get some reference to all this header stuff?
thanks
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General
and an array of char is exactly the same thing, so this kinda
confuses me.
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
... but, there
is an integer invovled... is automatically converted to float before
dividing, so that's why no remainder?
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
$string);
so $newStrArray[0] would have exactly what I want... why doesn't strtok()
works here?
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PR
As I've seen and tested, Apache running in Win2k won't do output buffering
running PHP as CGI.
But will perfectly running PHP as DSO.
Any explanations?
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General
?';
/script
?
}
it would work wouldn't it?
________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
at doesn't support
Javascript can't surf trough at least 30% of all websites... it's the
absolute minority. Netscape itself is a minority.
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://w
At 12:22 23/4/2001 +1000, Chris Aitken wrote:
At 11:15 PM 22/04/2001, Christian Dechery wrote:
Yeah... I know that... but, c'mon... a browser that doesn't support
Javascript can't surf trough at least 30% of all websites... it's the
absolute minority. Netscape itself is a minority.
While its
have if we required JavaScript for something. :)
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
'm getting at?
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrato
34 dbmsvinn.dll
35 dbnmpntw.dllfor netbios connections
Sorry I don't use MS SQL Server.
well... I don't have Visual Studio here... so I guess I'm stuck with
shitty-old IIS... :(
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web
, it's easy to co-exist with IIS.
How about give it a try?
I guess I don't have multiple IP adresses on my server... can't I just
install Apache and have it listen on port 8080 instead? Will it co-exist
nicely with IIS?
. Christian Dechery (lemming)
. http
, or is there something very wrong with my config?
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
???
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e
At 18:40 9/4/2001 -0700, you wrote:
On 4/9/01 6:38 PM, "Christian Dechery" [EMAIL PROTECTED] wrote:
At 10:23 10/4/2001 +0900, you wrote:
IIS ISAPI(PHP4.0.4pl1 and PHP4.0.5RC1) does not work well for me and
too many
problems. So I switched to Apache. However, ob_implicit_flu
Is there anything wrong with www.php.net?
I can't access it for two days now...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
At 20:45 7/4/2001 +0200, you wrote:
Hello... I have a problem with some special chars I created some kind of
editor for text files but chars like " get a \ in front everytime you
send it here is my code:
form action="self.html" enctype="text/plain"
textarea name="text" cols="80"
a lot simpler...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
more
of output handling, and not just relying on *_error() functions...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
order to register session vars, the MUST be global"...
this should be crucial manual information, don't u think?
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
as I saw on the manual output_buffering cannot be changed at runtime... so
there is NO WAY? If I want output_buffering I'll have to do it on all my pages?
and does it really cost that much in performance? is it worthed?
. Christian Dechery (lemming)
. http
registered...
BTW... the commented echo above outputs:
step_times="a:1:{s:8:"download";d:4.8891049623489;}"
what is wrong with my code?
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
Why does system() - or any of its cousins, I've tried them all: exec(),
passthru(), backtick operator, etc - doesn't output anything when running
on a Win2k/IIS5 machine?
I ran the exact same script on a WinME/Apache, and the output was perfect
. Christian
...
maybe I didn't implement it the best way... I don't know... but I really
tried every way I can possibly imagine, and it didn't work.
thanks anyway...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List
...
what may be wrong?
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
of course...
it's while loading apache that the error message appears...
restart apache/php?
-jack
Christian Dechery wrote:
I posted a message a while ago about having trouble loading php_mssql.dll
extension.
It gave me that error: 'can't find ...'. So I was stuppid enough to realize
Has anyone successfully handled MS SQL error messages?
some articles? or code? anyone?
thanks...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
step_times_array=unserialize($step_times);
$step_times_array[$step]=$total_time;
$step_times=serialize($step_times_array);
}
/pre
why doesn't $step_times gets registered correctly? it always register an
empty var...
_____
isn't there a better way to handle MS SQL error messages? I can't even
fetch them...
look at these warnings... they only show in development side, I don't want
warnings on the production site, so I turn them off with error_reporting()...
Warning: MS SQL message: There is already an object
Why I can get this to work?
I don't understand... I made another simple script that the only thing it
did was the "build array/serialize it/register the session var/ = next
page load unserialize it into array/update array/serialize it again".. and
it worked like a charm...
I'm doing the exact
y an error, and the query is executed... but returns
false... I don't consider this to be a bug... but there's certainly
something wrong about error handling in mssql_db_functions*()...
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
for each step (step_times) and the total running time
(already working)...
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
er("time");
?
cuz I'll have more pages...
$time["page20"]="300";
is this going to automatically load into the session vars or I have to do
something first?
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Ow
anyway... :)
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
function array_sshift($array,$number_of_elements=1)
{
for($count=0;$count$number_of_elements;$count++)
{
array_shift($array);
}
}
/pre
. Christian Dechery (lemming)
. http
t gets a little slower when I
introduce the function method.
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P
a good 'memory cleaning' so I can
be sure everything is going to get carried out??... there are steps that
I'm worried about taking over 30min to finish, like loading the main table
with 140.000 rows...
thanks...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
quot;
);
I want to, given the key (or value), it returns me the numeric index for
that ocurrence... examples:
given "one" - returns 0
given "whatever" - returns 2
given "two" - returns 1
given "four" - returns NULL or false...
anyone?
___
)...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
Regarding my last email (about jumping the first 7 rows of an array)...
why does this code doesnt work?
for(reset($array),$count=0;$count6;next($array),$count++);
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP
and it
will run on the command line...or just give the full path to the php.exe
file...
C:\php\bin\php.exe C:\path\to\php-script.php
oh okay... I was thinking more of a standalone file like php-script.exe...
but that should work as well...
Thanks!
. Christian Dechery (lemming
this that processess nothing only run a few
"includes" (all built in C)...
but I'd like to be able now to run PHP made stuff... can't I?
. [ Christian Dechery ]
. Webdeveloper @ T Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
PHP General Mailing List (http://w
??
. [ Christian Dechery ]
. Webdeveloper @ T Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL
, but that
causes the SSI and/or the PHP parser not to run.
so... what you're saying is that I can't have a PHP file #--include--'ed
in a regular server parsed html file? it doesn't work?
I can have included C and Perl stuff but not PHP?
Well I gotta tell ya, that sucks! :(
. [ Christian Dechery
something out in
Perl or C...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
rking... there are 4 "include virtual"'s on this page...
this would be the 5th... all of them work,why not this one?
________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
Correct me if I'm completely out of my mind here (often I am).
But I think, I read somewhere that u can compile .php files and make
executables of them to run in the command line like programs... is this
true? How can I get it to work? WHat do I need?
. Christian
case else print error
end select
%
/snip
IN PHP you can't do cases like that, because like in C, u must have a
constant, not a list of them.
Is there anyway to get pass this? Doing a case for each thing even tough it
does the exact same thing as 10 others is going to get a little s
with CGI.
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
t']=$idt[1];
$produtos_sem_tracking[$i]['gen']=$idt[2];
}
?
how can I check for an existing $produtos_sem_tracking['cod'] value for
example?
. [ Christian Dechery ]
. Webdeveloper @ T Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
PHP General Mailing
and when it stops it comes up with
a GPF window for PHP4TS.DLL telling me that Apache caused, so it restarts
apache.
What might be causing this? How can I fix it?
. [ Christian Dechery ]
. Webdeveloper @ T Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
PHP General Mailing List
which is the best way to connect to MS Access and process and request queries?
is it with odbc_*() functions? cuz I found that not that good...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List
the function header...
________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
atributing LN the value of __LINE__...
and in the manual I saw examples where redefining constants were used...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
every call is making that
function call get huge. Isn't there a way I can't default it to that
instead of E_USER_NOTICE (which doesn't really help)...
________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List
nt to write at least code as possible and get the error, the query, the
line number and (possibly) the filename..
isn't there anyway I could build a mask for a function or something like
that to pass __LINE__ as an argument always.. I don't know... any ideas?
. C
reate temporary table tmp; insert into tmp select bla bla bla; ";
$sql.="insert into tmp select bla bla; select * from tmp;";
I cant mysql_query($sql)... it gives me an error msg? Do I really have to
run each step of the script as a separated query
________
. Christ
f
code (the trickiest)...
is there anyway I can define something as a mask for a function or
something? I don't know... just having crazy ideas...
this is pretty good as it is.. I just wanted even better...
. Christian Dechery (lemming)
. http://www.tanamesa.
syntax error...
thanks
. [ Christian Dechery ]
. Webdeveloper @ T Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
?
. [ Christian Dechery ]
. Webdeveloper @ T Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail
to
put them in ALL my functions that handles form vars... I'll consider using
arrays in my next forms
but hey, don't worry... PHP really kicks ASP ass in all matters! :)
cya
. [ Christian Dechery ]
. Webdeveloper @ T Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
ysql_error() . "br\n";
echo "Query: $querybr\n";
exit();
}
}
that's kinda what I have here... but the line of code isn't being shown...
and that is the problem... I for one, think that in an error message the
line of code is crucial.
. [ Christian Dechery ]
At 19:53 14/2/2001 +0100, Christian Reiniger wrote:
On Wednesday 14 February 2001 18:43, Christian Dechery wrote:
that's kinda what I have here... but the line of code isn't being
shown... and that is the problem... I for one, think that in an error
message the line of code is crucial
atomic updates sorted.
tomorrow I'll try to compile BDB, in my Win9x... and get it to work... if
it does REAL transaction than I can develop nicely with mysql... I'll let u
know...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web
I start printing everything on error handling.
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
=checkbox name=checklist[]Cb2 input type=text ...
how would I associate each textfield to its checkbox? In the same array? in
a different one? How??
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http
/rollback...
thanks...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
text next to each of the checkboxes and make them
referrable?
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
clients avaliable... Mascon
for once is very nice
and u can also put together or own PHP form to populate the tables... :)
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net
that...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators
't tell me there's an error... in fact it doesn't show anything...
why is that?
_____
. Christian Dechery - Webdeveloper
.. Diretor de Tecnologia @ Webstyle!
.. http://www.webstyle.com.br
.. http://www.tanamesa.com.br
--
PHP General Mailing List (http://w
n't u think? there's no way someone can code having to stop
at every query line of code to see if there was an mysql_error()
_____
. Christian Dechery - Webdeveloper
.. Diretor de Tecnologia @ Webstyle!
.. http://www.webstyle.com.br
.. http://www.tanamesa.com.br
--
Isn't default config for mysql to report syntax errors on queries and stuff
like that??... it always did, I never altered any config in mysql. And then
today it just STOPPED reporting errors.
_
. Christian Dechery - Webdeveloper
.. Diretor de Tecnologia
101 - 177 of 177 matches
Mail list logo