Re: [PHP] mysql: UPDATE statment

2001-05-11 Thread Christian Dechery
is incorrect... the correct UPDATE syntax is: UPDATE user_polls set field='value', field2='value2', field3=value3 where id=$id; hope it helps... . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP G

[PHP] fopen() and persmissions

2001-05-10 Thread Christian Dechery
but what happens is that, the file isn't mine... it belongs to nobody... so I have no rights to it in FTP or telnet... is there a better solution then either of these two??? . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web

Re: [PHP] sending attachments via mail(), possible?

2001-05-09 Thread Christian Dechery
At 15:17 9/5/2001 -0400, Tym Rehm wrote: >You have to open the file and encode it. >Check out this: > >/* Define the attachment and encode it base64 */ >$filename="/var/www/sf/Ftp_User_Info.doc"; $fd = fopen($filename, "r"); >$contents = fread($fd, filesize($filename)); >$encoded=chunk_split(ba

Re: [PHP] About MySQl and Transactions

2001-05-09 Thread Christian Dechery
At 20:09 9/5/2001 +0200, Fredrik Rodland wrote: >I don't think MySql does not have support for transactions. Try using >another DB - like postgres. yes it does... download Mysql-Max or install BDB in your mysql dist (if you are under *ux or *ix)... Mysql-Max is the newest Mysql dist including

[PHP] sending attachments via mail(), possible?

2001-05-09 Thread Christian Dechery
$mail_body"; mail("[EMAIL PROTECTED]","CDYOU Pedido: ".$num_pedido,$mail_body,$header); } the headers are sent perfectly... and if I echo the $mail_body (I think) it's correct, but when I get the mail it's all screwed up... thanks... ___

Re: [PHP] Working with numbers

2001-05-09 Thread Christian Dechery
At 11:22 9/5/2001 -0700, Gerry wrote: >Could you suggest a function for displaying decimal zeros. > >For example I have this: >$num = "2.00"; >$num2 = "3.00"; >$result = $num + $num2; >echo "$result"; > >I get "5" but not "5.00" try $result = (float)$num + (float)$num2; -- PHP General Mailing

[PHP] attach file to email

2001-05-09 Thread Christian Dechery
How do I attach a file to an email? I'd have a mailbody also, with some text... ad I wanna attach a text file to it, but I don't want it to be appended in the body... I want it as an attachment. _____ . Christian Dechery - CTO .. WebDeveloper @ Webstyl

RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Christian Dechery
At 07:45 9/5/2001 -0700, you wrote: >You decided it was using binary because \n was not being converted to \r\n? > >Aren't you just struggling with the difference between unix and windows >files? > >Perhaps if you filtered the files replacing \n to \r\n when destination is >windows platform. than

RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Christian Dechery
At 08:39 9/5/2001 -0500, Boget, Chris wrote: > > header("Content-type: application/download"); > >I think you'd need to change this to: > >header("Content-type: text/plain"); > >but I could be wrong... > > > and where can I find reference on these header stuff? > >Not sure. I find bits and pieces

[PHP] download successfull... but in binary... why?

2001-05-09 Thread Christian Dechery
tion:".$att." filename=".$filename); but the problem is, the output is comming as binary... so the '\n' is not working, instead it'comming as a one giant line with lots of weird chars instead of '\n'... how do I force it to be in ASCII mode? and where can I find r

Re: [PHP] VERY URGENT

2001-05-08 Thread Christian Dechery
email >address or by my >Tel:874-762-727947, >fax:874-762-727949. > >yours truly > >SOLOMON BALOGUN. > > > > > > >________ >Do You Yahoo!? >For regular News updates go to http://in.news.yahoo.com &

Re: [PHP] forcing download instead of showing output

2001-05-08 Thread Christian Dechery
then put the headers? In this case I'd have a file that I don't want... I'd have to delete it later on, isn't there a way I can just redirect all the output generated by php to a download and instruct the browser the filename to be saved? Where can I get some reference t

[PHP] forcing download of new file

2001-05-08 Thread Christian Dechery
I think 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]

Re: [PHP] forcing upload instead of showing doc

2001-05-08 Thread Christian Dechery
>Hi, > > >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

[PHP] forcing upload instead of showing doc

2001-05-08 Thread Christian Dechery
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

[PHP] arrays and strings... a little confusing.

2001-05-07 Thread Christian Dechery
;, so it doesn't work both ways. How does PHP works with this? I come from C where a string 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 -- PH

[PHP] % always return int?

2001-05-03 Thread Christian Dechery
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 unsubscri

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
urfing... going from one page to another is almost a primitive... u know where I'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:

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
ery time we set a cookie. Imagine the >fuss we'd 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-ma

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
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 >>abso

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
gt;[ ] Enable Javascript > ^ > Not ticked > >Oops. I just broke that redirection. :) 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. Netscap

RE: [PHP] redirection to another page function

2001-04-22 Thread Christian Dechery
At 11:22 23/4/2001 +1000, Jason Murray wrote: > > Is there any PHP native function to redirect to another page or URL? > >No, because you can only redirect a browser to another page using the >appropriate HTTP command (it is a header) or JavaScript. > > > I would like that once the user clicks on

[PHP] CGI x DSO: Output Buffering

2001-04-22 Thread Christian Dechery
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 -- P

[PHP] strtok not working...

2001-04-22 Thread Christian Dechery
$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: [EMA

[PHP] weird mail() behaviour

2001-04-22 Thread Christian Dechery
message either... ____ . 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]

Re: [PHP] huge PHP file, hardcore processing

2001-04-10 Thread Christian Dechery
>multiple IP addressees, 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? ____

Re: [PHP] huge PHP file, hardcore processing

2001-04-10 Thread Christian Dechery
for tcp/ip connections > 33 dbmsspxn.dllfor ipx/spx connections > 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... :(

Re: [PHP] huge PHP file, hardcore processing

2001-04-09 Thread Christian Dechery
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 > &g

Re: [PHP] huge PHP file, hardcore processing

2001-04-09 Thread Christian Dechery
w can I access an MS SQL database from Apache??? ________ . 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:

[PHP] huge PHP file, hardcore processing

2001-04-09 Thread Christian Dechery
script mentioned above. Does IIS really suck, 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: [EMA

[PHP] anything wrong with php.net?

2001-04-08 Thread Christian Dechery
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 PROT

Re: [PHP] Char Problem

2001-04-07 Thread Christian Dechery
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: > > > > > > > > >If you just enter " and click send you see what my problem is.

[PHP] doubt in ob_*() functions

2001-04-05 Thread Christian Dechery
thing else something something else ________ . 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

[PHP] probs with session_register() solved...

2001-04-05 Thread Christian Dechery
er 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 unsu

[PHP] ob_*() functions in Win9x

2001-04-05 Thread Christian Dechery
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] For

Re: [PHP] output buffering

2001-04-05 Thread Christian Dechery
set anywhere u want... but of course... the best way is to code right and not to mess with headers once the output has started... but sometimes I wish I could, u know? It would really make somethings a lot simpler... . Christian Dechery (lemming) . http://www.tanamesa.c

[PHP] output buffering

2001-04-04 Thread Christian Dechery
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) .

[PHP] using system() on NT/2K

2001-04-02 Thread Christian Dechery
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 ____ .

[PHP] problems with session_register()...

2001-04-02 Thread Christian Dechery
t get 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

[PHP] registering an array into a session (?)

2001-03-31 Thread Christian Dechery
$step_times_array=unserialize($step_times); $step_times_array[$step]=$total_time; $step_times=serialize($step_times_array); } why doesn't $step_times gets registered correctly? it always register an empty var... ___

[PHP] fetching MS SQL errors...

2001-03-31 Thread Christian Dechery
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

Re: [PHP] problem loading extension

2001-03-31 Thread Christian Dechery
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 erro

[PHP] problem loading extension

2001-03-31 Thread Christian Dechery
ctly, PHP is working fine... 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

Re: [PHP] MS SQL error handling...

2001-03-31 Thread Christian Dechery
s were lost... 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] MS SQL error handling...

2001-03-30 Thread Christian Dechery
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 named

[PHP] MS SQL errors...

2001-03-29 Thread Christian Dechery
which is not really 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

[PHP] arrays in sessions, please!

2001-03-29 Thread Christian Dechery
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

[PHP] Sessions: what's wrong sith this code?

2001-03-28 Thread Christian Dechery
times 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 ad

[PHP] array in sessions

2001-03-27 Thread Christian Dechery
How do I store (and update) an array within a session... Like I'd have 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? ________ . Chri

php-general@lists.php.net

2001-03-26 Thread Christian Dechery
By doing this: is PHP using the same amount of memory as this: because it seems to me, that the script gets a little slower when I introduce the function method. . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web

Re: [PHP] 'How to jump..' part 2

2001-03-26 Thread Christian Dechery
ly worked... thanks for the hint: function array_sshift(&$array,$number_of_elements=1) { for($count=0;$count<$number_of_elements;$count++) { array_shift($array); } } ______

Re: [PHP] 'How to jump..' part 2

2001-03-26 Thread Christian Dechery
ements) it would work fine... I'll try... but thanks 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 co

[PHP] 'How to jump..' part 2

2001-03-25 Thread Christian Dechery
Regarding my last email (about jumping the first 7 rows of an array)... why does this code doesnt work? for(reset($array),$count=0;$count<6;next($array),$count++); . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer --

[PHP] How to jump 7 rows in array

2001-03-25 Thread Christian Dechery
tion per file, more then 20 overall)... ________ . 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: [E

[PHP] getting numeric index of array

2001-03-25 Thread Christian Dechery
"whatever" ); 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 NU

[PHP] huge time/memory consuming script

2001-03-25 Thread Christian Dechery
I get 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:

RE: [PHP] executables (.exe)

2001-03-22 Thread Christian Dechery
ath\to\php-script.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! _______

[PHP] executables (.exe)

2001-03-21 Thread Christian Dechery
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? ____ . Chri

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
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/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] T

RE: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
ing... I'd rather work 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

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
l files as php files, 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? W

Re: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
a DSO module or CGI for me to use SSI?? . [ 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 th

RE: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
nks to .php in files like 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.tanames

[PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
Can't I or or ??? I'm trying to, the script works fine if I load it normally, but as an include in a shtml (server parsed) file it always returns "error ocurred bla bla bla". What am I doing wrong? . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmas

[PHP] switch with multiple case

2001-03-14 Thread Christian Dechery
case else print error end select %> 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 l

[PHP] DSO x CGI

2001-03-14 Thread Christian Dechery
thing 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

[PHP] DSO x CGI

2001-03-12 Thread Christian Dechery
thing 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

[PHP] php4ts.dll error

2001-03-09 Thread Christian Dechery
t runs 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 Gener

[PHP] in_array() with multidimensional array

2001-03-09 Thread Christian Dechery
} ?> 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 List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PR

[PHP] can't load extension

2001-03-08 Thread Christian Dechery
iles needed to run this application [something like that, doesn't really matter]) in Unknown on line 0" why? why? whyy? . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer

[PHP] connecting do MS Access...

2001-03-04 Thread Christian Dechery
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

[PHP] user_error() default error type

2001-02-28 Thread Christian Dechery
t E_USER_ERROR in 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 Develop

[PHP] redefine constants

2001-02-28 Thread Christian Dechery
tant it's only 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.

Re: [PHP] Caller's __LINE__

2001-02-28 Thread Christian Dechery
will always show the line of 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 command

[PHP] running a big sql script

2001-02-19 Thread Christian Dechery
like $sql="create 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 _____

[PHP] better (cleaner and smaller) code

2001-02-19 Thread Christian Dechery
st 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? . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer

[PHP] the best so far

2001-02-15 Thread Christian Dechery
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.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing

Re: [PHP] need better solution

2001-02-14 Thread 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 > &

Re: [PHP] need better solution

2001-02-14 Thread Christian Dechery
o "Error: " . mysql_errno() . ':' . mysql_error() . "\n"; > echo "Query: $query\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

[PHP] need better solution

2001-02-14 Thread Christian Dechery
r solution? . [ 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 administrato

Re: [PHP] PHP globals aren't really globals

2001-02-14 Thread Christian Dechery
the compiler... I just came with a nice foreach() to make my globals local, and I have 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 D

RE: [PHP] PHP globals aren't really globals

2001-02-14 Thread Christian Dechery
hy not in PHP? that's what I wanna know, why globals in PHP doesn't really work like globals? . [ 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: [EMA

[PHP] PHP globals aren't really globals

2001-02-14 Thread Christian Dechery
with 50 fields and want a function to validate all of them, u have to pass them all to the function or build a little piece of code to make all th $GLOBALS local right? Is this really the idea of global vars? . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . h

Re: [PHP] mysql_error() not really helping

2001-02-14 Thread Christian Dechery
ery I run (altough I find this very annoying) that tells me when there's a sql 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: [E

[PHP] mysql_error() not really helping

2001-02-13 Thread Christian Dechery
't know where is the error, unless 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 PR

Re: [PHP] Re:LOCK TABLES x COMMIT/ROLLBACK

2001-02-13 Thread Christian Dechery
ic updates >code is completed. > >Be interested to know if anyone has got 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... __

Re: [PHP] checkboxes and arrays

2001-02-13 Thread Christian Dechery
it like this: for each checkbox I did echo " Cb1 "; then I check if isset(${"asset_".$id}) in my code... it's working fine... but it's kinda 'dirty'... I'll try yours... thanks! :) . Christian Dechery (lemming) . http:/

[PHP] LOCK TABLES x COMMIT/ROLLBACK

2001-02-12 Thread Christian Dechery
ommit/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 co

[PHP] checkboxes and arrays

2001-02-12 Thread Christian Dechery
How can I associate a list of checkboxes to a list of texfields? if I had only several checkboxes I'd have: Cb1 Cb2 ... etc... but what if have: Cb1 Cb2 http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] transactions

2001-02-11 Thread Christian Dechery
done without transactions? With code? I don't think so... can anyone clear my mind here... I have this problem... I need to update 4 tables at once, and if something goes wrong I have to UNDO everything ________ . Christian Dechery (lemming) . http://www.tanames

[PHP] mysql auto-increment

2001-02-11 Thread Christian Dechery
from 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 admi

Re: [PHP] afraid !

2001-02-11 Thread Christian Dechery
e commend line? not really... there are many very nice Mysql 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 /

[PHP] checkbocks, arrays and more

2001-02-11 Thread Christian Dechery
heckboxes 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 commands, e-mail: [EMAIL PROTECT

[PHP] mysql default cfg

2001-02-09 Thread Christian Dechery
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 Tecno

RE: [PHP] mysql not reporting errors

2001-02-09 Thread Christian Dechery
kinda stupid don'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://

[PHP] mysql not reporting errors

2001-02-09 Thread Christian Dechery
doesn'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

<    1   2