[PHP] Re: SESSION variable and register_globals

2003-02-10 Thread Bastian Vogt
blah") also must be used to properly unset the > session with global_register on. Is this true ? Wasn't it in this list, where I heard, better not to use session_unregister() any more?? What do you think about using: $_SESSION["blah"] = ""; to delete a value? Regards

[PHP] Re: Data type issues

2003-01-14 Thread Bastian Vogt
Hi Peter, you're looking for "ord();" cu, Bastian > > Is there some way to make PHP add an int to the ASCII value of a single > character string (since there seems to be no char type)? > > Thanks, > > Peter -- PHP General Mailing List (http://www.p

Re: [PHP] Re: mail()

2002-12-20 Thread Bastian Vogt
Hi, if you use plain text use "\n", elseif you use text/html use "" (and all the other html-tags) HTH, Bastian Edward Peloke schrieb: > Can I still keep the formatting? When I added the Content-type: text/html > to the header last night, the link worked

[PHP] Re: mail()

2002-12-19 Thread Bastian Vogt
Hi, just add "Content-Type: text/html" to the header information of the mail: mail($email,'Thanks',$mailcontent,"From:aircharterunited.com\nContent-Type: text/html"); HTH, Bastian > Hello all, > > I am using the following code but when I view the sent

[PHP] Re: repeat region

2002-12-19 Thread Bastian Vogt
>From the manual: example: $a % $b name: Modulus value: Remainder of $a divided by $b. Not from the manual: example2: 47 % 5 value2: 2 HTH, Bastian > Jeff or anyone, > > Ok, I'll bight. What are you doing with the % and %7 ? > > > $idx=1; >

[PHP] Re: creating objects by reference?

2002-12-19 Thread Bastian Vogt
Hi, if you're interested in the future of object handling, I suppose you to look at this: http://www.zend.com/engine2/ZendEngine-2.0.pdf Regards, Bastian > If you are looking to the future: I don't believe the ability to return > objects by reference will be an option

[PHP] Re: *Cannot connect to db

2002-12-18 Thread Bastian Vogt
Hi, leave out the "@", and give us the error message. "@" suppresses error messages of any function. HTH, Bastian > mySQL; php running in safe mode; compared to the other code on the same > server. here is mine - I don't get any connection. What could be wrong

[PHP] Re: list and (array) get_val

2002-12-18 Thread Bastian Vogt
As you can read here: http://www.php.net/manual/en/function.list.php Note: list() only works on numerical arrays and assumes the numerical indices start at 0. "b" is not numerical, I think ;-) HTH, Bastian > a.php > > list($a) = $_GET; > print $a; > ?> > > an

Re: [PHP] Update query

2002-12-12 Thread Bastian Vogt
Hi, did you "echo $query;" and put the output into phpmyadmin? Perhaps there's an error message that may help you.... HTH, Bastian Steve Jackson schrieb: > It doesn't work in that it doesn't update the database. > I have a form which when loaded takes a variab

[PHP] Re: Pls Help: Moving script from Win to Linux

2002-12-10 Thread Bastian Vogt
Hi, sounds like you should use $_GET['your_variable'] and $_POST['your_variable'] instead of $your_variable Regards, Bastian Shane schrieb: > Greetings gang. > > You know me, I never ask for help if I haven't checked all my other options, but >this is day

[PHP] Re: MySQL ?

2002-12-05 Thread Bastian Vogt
Hi, use mysql_list_tables(); HTH, Bastian Hacook schrieb: > I am really sorry but i can't find any good mySQL good mailing list... > > How can i make a little php function to check if a table exists ? > > Thanks a lot, > Hacook -- PHP General Mailing List (

[PHP] Re: passing sessions via POST

2002-12-05 Thread Bastian Vogt
Hi, make sure there's a "session_start();" on each page. Your server should keep the session_id.If it doesn't try this: HTH, Bastian Myrage schrieb: > How do we pass sessions via post ?? I seem to lose the session once it has > been submitted through the

[PHP] Re: Encrypting a message

2002-12-04 Thread Bastian Vogt
Hi, $array = ($var1, $var2, $var3, $var4); for (...) { $counter++; $counter = $counter % 4; // "%" is the "mod-" operator which returns the rest of the division $counter / 4 // here you use the variable $array[$counter] } HTH, Bastian Rodrigo De Oli

[PHP] Re: assignment to $this inside constructor

2002-12-04 Thread Bastian Vogt
Hi, I suggest reading from page 12 of this document: http://www.zend.com/engine2/ZendEngine-2.0.pdf There's an example which matches with your technique Regards, Bastian Filippo Veneri schrieb: > Let's begin with a small code snippet: > > > > class A { &g

[PHP] Re: PHP Sessions

2002-12-04 Thread Bastian Vogt
If the session is started on any other page befor and the variable is registered before, the answer should be "yes". AFAIK, php treats the main script and the included ones as one script. Maybe the session_start() is missing somewhere? Regards, Bastian Andy Kirk schrieb: > Can anyo

Re: [PHP] Whimper, help :)

2002-12-04 Thread Bastian Vogt
Hi, could you get the error message with mysql_error() and post it here? Bye, Bastian John Taylor-Johnston schrieb: > http://ccl.flsh.usherb.ca/print/print.html?search=%26quot%3Bready+maria%26quot%3B > http://ccl.flsh.usherb.ca/print/index.html?search=%26quot%3Bready+maria%26quot%3B

Re: [PHP] "x" as a multiplier

2002-12-03 Thread Bastian Vogt
uot; x ".$newheigt; but I think, this is not necessary! HTH, Bastian > Exactly. But it's only giving me one of the numbers without the space > between the numbers and the x. > > > > $newwidth . "x" . $newheight -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: some data output formatting and grouping question...

2002-12-02 Thread Bastian Vogt
will work, but I guess it does! ;-) Just try it out in phpmyadmin or so... Regards, Bastian Victor schrieb: > I just have a fucking mental block; I cannot at all conceive the > necessary syntax to or even the theoretical algorithm that I need, to do > the following: > > Consider the follow

[PHP] Re: Can't recover data in php posted with a form tag.

2002-11-29 Thread Bastian Vogt
hi, you could try to fetch the value from the superglobal variable "$_POST" or "$HTTP_POST_VARS" (echo $_POST[clSQL]; echo $HTTP_POST_VARS[clSQL];) regars, bastian Luc Roettgers schrieb: > I have 2 files runQuery.php and doSQL.php, where the first one is posting data

[PHP] Newbie: Can't get my PHP server to work

2002-11-26 Thread Marcos Bastian
r setup; I already tried to change the INI file in my W2000 forder, allowing uploads. My whole objective is to create a public file repository for our company. Please? Any ideas? Thanks in advance! Bastian - Denver, CO. please reply to newsgroup, or directly to bstn-spam"at"earthlink

[PHP] Re: checkboxes

2002-11-22 Thread Bastian Vogt
hi, your missing some brackets "[]"! this should work better: AAA SSS regards, Bastian > Hello; > > I want to do that: > > I have two checkboxes: > if first one is checked assign the value as a; > if first one is checked assign the value as s; >

Re: RES: [PHP] Passing Variables from one php doc to another

2002-11-21 Thread Bastian Vogt
hi, then you have to do it like this: http://www.example.com/doo.php?dah=something&dee= regards, Bastian > I tried to use this way but it doesnt work I think its because it is a > variable that I have to pass, something like: > > http://www.example.com/doo.php?d

Re: [PHP] SMs

2001-01-14 Thread Bastian
Hello! A requirement is a special server that sends them, but such a server costs money, every message costs some. Another way is to send the messages to the mailaddress. I only know it from Germany: [EMAIL PROTECTED] Bastian -- //End of message "Dhaval Desai&quo

[PHP] Subdomain-Service

2001-01-14 Thread Bastian
Hello! Are there any scripts to create an Subdomain-Service (yourname.domain.com) without having Wildcards? I've got a danish-script, but it's not that, what I expected, becuase it needs wildcars. Thanks!! Reagards, Bastian -- PHP General Mailing List (http://www.php.net/) To u