[PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
John W. Holmes propably said: Do you have a session_start() on the page? It looks like you have a trans_sid enabled. PHP will add that to all of your URLs automatically. Can you disable it in php.ini? Yes trans_sid is enabled and i have a session_start on the page. What is trans_sid doing

SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
To reply to myself .) I disabled trans_sid on the actual site by using: ini_set('session.use_trans_sid',false); session_start(); But i still want to know what trans_sid does for me. What am i missing out on when not using it? - D, loves google -- PHP General Mailing List

SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
Justin French propably said: You'd loose session for those without cookies. The work around for this would be to hard-code the session ID to all URLs across your site for all pages you wish to carry a session through -- a real pain. Indeed. It HAS TO use a session ID from the first page

SV: SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
Justin French propably said: In order to set and then check a cookie, you need to go through a page... so you'd have to set something in the URL like ?cookieset=1 anyway, in order to knwo you had set it, in order to check it. In other words, you'll need some guff in the URL, in order for

[PHP] Quickie

2002-09-30 Thread Daniel Alsén
Guys, i've been away for a while - enjoying a much needed vacation in lovely Hungary and expanding my company. Now im back to bother you with easy questions ;) I am doing a small site multilingual and will display different content depending on what language the user choses. When the user comes

SV: [PHP] Quickie

2002-09-30 Thread Daniel Alsén
John W. Holmes propably said: Is register globals on or off? On. Now - without doing anything - i managed to change the value of $lang to 'en' with a link (pagesname.php?lang=en). But i can't change it back with ?lang=se. Should i get someting to eat to get my brain working? - D -- PHP

SV: SV: [PHP] Quickie

2002-09-30 Thread Daniel Alsén
Thanks guys! That did the trick. Time to study these sessions a bit more thourough it seems :) Another thing - the first time the page is loaded every link on the page gets a '?PHPSESSID=...etc...' attached to itself. But only the first time. It dissapears after the first click i make. I've

[PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Daniel Alsén
the destination page. Any pointers on how i can do this? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 705 38 10 30 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Daniel Alsén
You could use a form and have a hidden vield that contains a value. The user would have to click the submit button for the variable/value to carry over though. I thought about that. But i have two possible values (via two links) that could be passed and i can´t really get it together. Two

SV: SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Daniel Alsén
Yes, there is a way to do it without using any forms. I may be able to help you better if you could show me the relevant code -- I'm not sure if what I have in mind is really applicable to what you want to do. It´s not really advanced: session_start(); session_register('text_size'); if

[PHP] Receipts

2002-03-20 Thread Daniel Alsén
forced to deny receipts from a mailing list. # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 705 38 10 30 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] URL cloaking?

2002-03-01 Thread Daniel Alsén
Hi, my webhost offers wildcard dns for subdomains. However - the subdomains only redirects from sub.domain.com to domain.com/sub. I want to cloak the url to remain sub.domain.com. Is there any easy way to do that with a php-snipplet? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL

[PHP] PHP features

2002-02-26 Thread Daniel Alsén
Hi! Which function should i turn on in the PHP installation to get rid of variables being sent in the url (if i don´t explicitly want them there of course)? - D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Return values?

2002-02-25 Thread Daniel Alsén
Hi, how do i display return values from functions? Ie i want to see whether mail() returns TRUE or FALSE. - D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Difference between two dates

2002-02-19 Thread Daniel Alsén
Read this article at PHPbuilder: http://www.phpbuilder.com/columns/akent2610.php3 - D - Original Message - From: Uma Shankari T. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 9:50 AM Subject: [PHP] Difference between two dates Hello, How

Re: [PHP] please reply -copy right

2002-02-19 Thread Daniel Alsén
You don´t have to register anywhere. You don´t even have to add a copyright notice. But if you do you are signalling that the content of the website is protected by copyright laws. No more complicated than that... - D - Original Message - From: Dani [EMAIL PROTECTED] To: [EMAIL

[PHP] Help with query

2002-02-09 Thread Daniel Alsén
Hi, i can´t seem to get my head to wake up... How would i do to count how many different values that exists in a mysql field? Ie i have a date-field and need to know how many different dates that exists in the table. Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704

SV: [PHP] Help with query

2002-02-09 Thread Daniel Alsén
Thanks guys! - Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] One more quickie

2002-02-09 Thread Daniel Alsén
Don´t really want to bother you with these quickies - but: If i have a result from mysql that is a date (2002-02-09) - how do i change that into a variable with only the first 7 characters (2002-02)? Thanks # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ

[PHP] Number of rows reurned?

2002-01-20 Thread Daniel Alsén
Hi, how can i get the number of rows reuturned by this query? $sql = select date from statistik where shooter='$shooter_login' group by date; I want to add a page function and limit the returned rows on each page - but i can´t get the total number of rows. Regards # Daniel Alsén

SV: [PHP] Number of rows reurned?

2002-01-20 Thread Daniel Alsén
Thanks. I knew that - really. Meltdown upstairs :) - D -Ursprungligt meddelande- Från: Jason Wong [mailto:[EMAIL PROTECTED]] Skickat: den 20 januari 2002 18:53 Till: Daniel Alsén; PHP List Ämne: Re: [PHP] Number of rows reurned? On Monday 21 January 2002 01:45, Daniel Alsén

[PHP] While on array?

2002-01-20 Thread Daniel Alsén
). How would i do that? Does the loop behave the same way - running until the array is out of data? Thanks! # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http

[PHP] Need a quick tip...

2002-01-16 Thread Daniel Alsén
approach this? I obviously need some sort of function that can check todays date and count how many months it needs to print from the given startdate. Thanks # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http

SV: SV: [PHP] Re: Still need help with miscount

2002-01-06 Thread Daniel Alsén
I don't know if this is actually it, but the line $num_vals[$i] = mysql_fetch_array($result); seems strange to me - doesn't mysql_fetch_array return an array? You should try list($num_vals[$i]) = mysql_fetch_array($result); and see if you get any improvements... No, that was not it. It

[PHP] Printing return value of array_count_values?

2002-01-05 Thread Daniel Alsén
Hi! How do i echo the return values of array_count_values? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe

SV: [PHP] Re: Still need help with miscount

2002-01-05 Thread Daniel Alsén
(or counting the values) after only a couple of rows from the db. The result looks like: 3 : 4 5 : 2 7 : 2 9 : 2 And there should be alot more of those keys...and a couple of keys more as well... I would appreciate any help on this guys. I am s stuck :( # Daniel Alsén| www.mindbash.com

[PHP] Miscount

2001-12-14 Thread Daniel Alsén
= mysql_query($shot_counts); $bam = mysql_fetch_array($results); # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

RE: [PHP] Miscount

2001-12-14 Thread Daniel Alsén
-Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: den 14 december 2001 23:53 To: Daniel Alsén; PHP Subject: Re: [PHP] Miscount I do not know if this will solve your problem but you should enclose each logical query segment with parenthesies... -- PHP General

[PHP] Call to undefined function: bcdiv()

2001-12-13 Thread Daniel Alsén
Hi, i when i run a script that contains a bcdiv() calculation i get this error: Call to undefined function: bcdiv() I am using bcdiv() successfully in other scripts. However i vaguely remember getting an error message some time for some operation in bcdiv... Any ideas? Regards # Daniel Alsén

[PHP] Can i do this?

2001-12-13 Thread Daniel Alsén
= '$i' || shooter='$shooter_login' shot_five = '$i'; $result = mysql_query($shot_count); $num_vals[$i] = mysql_fetch_array($result); } I guess it´s the last row that is troubling - getting an array into an array. If the code is good - how do i echo the results? # Daniel Alsén

RE: [PHP] Can i do this?

2001-12-13 Thread Daniel Alsén
Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: den 13 december 2001 16:30 To: Daniel Alsén; PHP Subject: RE: [PHP] Can i do this? didn't check your code specifically, but you can definitely have arrays nested inside of arrays...to see how to print them out use something

[PHP] Arrays...

2001-12-12 Thread Daniel Alsén
to master arrays. I am tearing my hair out here. Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Help with mysql query

2001-12-11 Thread Daniel Alsén
that are stored). Can i do this in a smart way without having to write fifty queries and add every fifth of them up? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General

[PHP] Doing statistics with MySql data?

2001-12-09 Thread Daniel Alsén
Hi, i have a MySql table with five columns that are filled with different numerical values. I need some pointers to where i can learn how to build statistics out of this data (ie the average value of a column, how many instances there is of a certain value etc). Regards # Daniel Alsén

[PHP] Stripping slashes from db-insert?

2001-12-01 Thread Daniel Alsén
Hi, i know this has been asked before - but: When i add entries to MySql (varchar and text) all and ' gets a slash in front of them. How do i get rid of these slashes? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22

[PHP] Strange problem...

2001-11-30 Thread Daniel Alsén
, user_mail, user_icq, user_msn, user_www, user_login, user_password) ; $query .= values('$user_name', '$user_birthdate', '$user_city', '$user_mail', '$user_icq', '$user_msn', '$user_www', '$user_login', '$user_password'); Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86

[PHP] Redirect upon execution of script...

2001-11-25 Thread Daniel Alsén
- what do i do? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] Redirect upon execution of script...

2001-11-25 Thread Daniel Alsén
2. User fills in a form, clicks submit which calls the same script, passing itself the values. Depending on the value passed by the submit button, the script processes the information (INSERT or UPDATE) and sets $done = 1 if successful. The second scenario is easier to handle. Call the

RE: [PHP] Redirect upon execution of script...

2001-11-25 Thread Daniel Alsén
Thanks for all the help guys! I am sure i will solve this when i have a go at it again :) - Daniel -- 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

RE: [PHP] Check contents of variable

2001-11-20 Thread Daniel Alsén
How about: if (substr($url,0,7) http://;) $url = http://; . $url; Thanks! That´s just the function i am looking for. I looked it up in the manual. Correct me if i am wrong - if i don´t set the second parameter in substr it just continues to read until the variable is finished? If i set

[PHP] Session problem

2001-11-16 Thread Daniel Alsén
there only seems to be functions to unset or unregister the actual data inside the session - not the id itself. Any ideas? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- PHP General Mailing List (http

RE: [PHP] Session problem

2001-11-16 Thread Daniel Alsén
(); - Daniel -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: den 16 november 2001 15:40 To: Daniel Alsén Subject: Re: [PHP] Session problem I think you can set a new session id using session_start() so if you need a new id just destroy the old one using

[PHP] User authentication?

2001-11-04 Thread Daniel Alsén
in was dead links). Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] Hotel booking/managment system?

2001-11-02 Thread Daniel Alsén
Hi, does anyone have the script that is supposed to be stored at http://hrs.rics.ru/? Or does anyone know of any other hotel booking system or a similar script in php? I am mainly interested in the concept of the system. Database relations and buildup. Regards # Daniel Alsén

[PHP] Loading message

2001-10-25 Thread Daniel Alsén
Hi, is there a easy way in php to display text like Loading... while elements on a page is being loaded from the server? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- PHP General Mailing List (http

RE: [PHP] Re: Loading message

2001-10-25 Thread Daniel Alsén
ckground:black'Please wait/div body onload='hidelayer()' /body script function hidelayer() { if(document.all) document.all['loadinglayer'].style.visibility=hidden; else document.layers['loadinglayer'].visibility=hide; } /script hope that helps Daniel alsén [EMAIL PROTECTED

RE: [PHP] Re: Loading message

2001-10-25 Thread Daniel Alsén
Is your script really taking that long to be parsed that you need a loading progress bar or is the html (including graphics etc) just very big? Parts of the page is rather heavy loaded. The main php file loads fine and displays it´s contents until it reaches one of the heavy includes (heavy

RE: [PHP] Re: Loading message

2001-10-25 Thread Daniel Alsén
I agree with you Derek, It also depends on the webserver and your connection speed... perhaps the pages is already parsed and processed but your connection is slow somehow and you're getting the page partially as if it is beeing show while it is beeing processed/parsed. Actually i know why

RE: [PHP] Re: Loading message

2001-10-25 Thread Daniel Alsén
Could i have a hint of what you have done Jon? - Daniel Totally incorrect. I have a page on our intranet that checks whois information against about 10 whois servers. Right at the top of the page it says Checking. As soon as a response comes back from a whois server it shows in the

[PHP] Adding zeros to date

2001-10-05 Thread Daniel Alsén
, 06, $date); $date = str_replace(7, 07, $date); $date = str_replace(8, 08, $date); $date = str_replace(9, 09, $date); } $datemonth = $year . $month . $date; echo $datemonth; # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462

[PHP] REPLACE problem

2001-10-03 Thread Daniel Alsén
# Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- 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

RE: [PHP] REPLACE problem

2001-10-03 Thread Daniel Alsén
A quick look at the REPLACE syntax tells me that REPLACE works exactly like INSERT, except that if an old record in the table has the same value as a new record on a unique index, the old record is deleted before the new record is inserted. So if id isn't a unique index, you could expect

[PHP] Grabbing

2001-09-21 Thread Daniel Alsén
is that the search only works on the actual text in the html-document. It doesn´t seem to be able to use htmltags as $begin or $end. And another question: does the search of $end begins from $begin? Or does it scan the whole document for both strings? Regards # Daniel Alsén| www.mindbash.com

[PHP] Quickie

2001-09-21 Thread Daniel Alsén
How do i send the user on to another page at the end of the execution of a script? # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] More Image gallery

2001-09-20 Thread Daniel Alsén
A little contribution from me as well... I have altered the Todd Kennedy script a bit. Instead of reading a textfile for the filenames it scans the directory and displays all pictures (jpegs) that are there. Go get it at: http://www.mindbash.com/scripts/mygallery.zip # Daniel Alsén

RE: [PHP] about image gallery

2001-09-20 Thread Daniel Alsén
yours doen't need a text file with the image file names but this is usefull when you want to establish the order thumbs are shown A matter of taste i guess. I wanted a script that needed as little work as possible after i uploaded it. Next thing to do is add page numbers for faster

[PHP] Even more image gallery

2001-09-20 Thread Daniel Alsén
Updated the Todd script again... Now there are page numbers added with the next and prev links. http://www.mindbash.com/scripts/mygallery.zip Hepp! # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- PHP General Mailing

[PHP] Combining strings?

2001-09-19 Thread Daniel Alsén
and month in numbers. But how do i join $date and $month and put a / in between them in a new string? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

RE: [PHP] Combining strings?

2001-09-19 Thread Daniel Alsén
Thanks guys! -- 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]

[PHP] Replacing datafile with array

2001-09-18 Thread Daniel Alsén
getting the word 'Array' at the start? $handle=opendir('.'); while (false !== ($file = readdir($handle))) if ($file != . $file != .. ereg(.jpg,$file)) { $retVal[count($retVal)] = $file; } # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED

RE: [PHP] Re: Replacing datafile with array

2001-09-18 Thread Daniel Alsén
Hmm... it still doesn´t work. If i echo $retVal i just get the word 'Array' (the same number of times that the number of files in the directory). If i echo $file i get the file listing...however, it doesn´t pass on the content to the rest of my script. Maybe someone could help me out with the

RE: [PHP] Re: Replacing datafile with array II

2001-09-18 Thread Daniel Alsén
function... $retVal = array(); rest of script here Daniel alsén [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, i am trying to replace a datafile wich contains the contents of a directory with an array. I am reading the directory and a

RE: [PHP] Re: Replacing datafile with array Sorry... .)

2001-09-18 Thread Daniel Alsén
, if anyone wants to help out, or has a good solution, to make this databasedriven - please e-mail me. Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

[PHP] Help with database queries

2001-09-17 Thread Daniel Alsén
/TD TD bgColor=#efefefspan class='text'b%s/b/span/TD TD bgColor=#efefefspan class='text'%smin/span/TD /TR\n, $myrow[artnr], $myrow[titel], $myrow[dur]); } while ($myrow = mysql_fetch_array($result)); echo /table\n; } else { echo span class='text2'No records available.../span; } # Daniel Alsén